项目信息基本完成
parent
44b6323b77
commit
ca58c7eafd
|
@ -63,8 +63,8 @@
|
|||
width: 100px;
|
||||
}
|
||||
|
||||
.middleTd {
|
||||
width: 150px;
|
||||
input, textarea, #productTable td {
|
||||
position: relative;
|
||||
}
|
||||
</style>
|
||||
<body class="white-bg">
|
||||
|
@ -77,7 +77,8 @@
|
|||
<td><input type="text" name="projectCode" class="form-control" placeholder="保存后自动生成" readonly>
|
||||
</td>
|
||||
<td class="shortTd">项目名称<span class="is-required">*</span></td>
|
||||
<td><input type="text" name="projectName" class="form-control"></td>
|
||||
<td><input type="text" name="projectName" maxlength="40" placeholder="限制40个字符"
|
||||
class="form-control"></td>
|
||||
<td class="shortTd">最终客户<span class="is-required">*</span></td>
|
||||
<td><input name="customerName" class="form-control" type="text" required onclick="selectCustomer()">
|
||||
<input name="customerCode" class="form-control" type="hidden"></td>
|
||||
|
@ -85,20 +86,18 @@
|
|||
<tr>
|
||||
<td class="shortTd">BG<span class="is-required">*</span></td>
|
||||
<td>
|
||||
<select name="bgProperty" class="form-control" th:with="type=${@dict.getType('industry_code')}"
|
||||
onchange="changeOrderType()" required>
|
||||
<select name="bgProperty" class="form-control" th:with="type=${@dict.getType('bg_type')}"
|
||||
onchange="changeBg()" required>
|
||||
<option value="">请选择BG</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="shortTd">行业<span class="is-required">*</span></td>
|
||||
<td>
|
||||
<select name="industryType" class="form-control" th:with="type=${@dict.getType('industry_code')}"
|
||||
onchange="changeOrderType()" required>
|
||||
<option value="">请选择合项目阶段</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
th:value="${dict.dictValue}"></option>
|
||||
<td id="industryTypeBox">
|
||||
<select name="industryType" class="form-control"
|
||||
required>
|
||||
<option value="">请先选择BG</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="shortTd"> 代表处 <span class="is-required">*</span></td>
|
||||
|
@ -113,7 +112,7 @@
|
|||
<td>
|
||||
<select name="projectStage" class="form-control"
|
||||
th:with="type=${@dict.getType('project_stage')}"
|
||||
onchange="changeOrderType()" required>
|
||||
required>
|
||||
<option value="">请选择合项目阶段</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
th:value="${dict.dictValue}"></option>
|
||||
|
@ -122,10 +121,11 @@
|
|||
<td>项目把握度<span class="is-required">*</span></td>
|
||||
<td>
|
||||
<select name="projectGraspDegree" class="form-control" required>
|
||||
<option>A</option>
|
||||
<option>B</option>
|
||||
<option>C</option>
|
||||
<option>D</option>
|
||||
<option value="">请选择</option>
|
||||
<option value="A">A</option>
|
||||
<option value="B">B</option>
|
||||
<option value="C">C</option>
|
||||
<option value="D">D</option>
|
||||
|
||||
</select>
|
||||
</td>
|
||||
|
@ -139,7 +139,7 @@
|
|||
<td>
|
||||
<select name="operateInstitution" class="form-control"
|
||||
th:with="type=${@dict.getType('operate_institution')}"
|
||||
onchange="changeOrderType()">
|
||||
onchange="changeInstitution()">
|
||||
<option value="">请选择合作渠道</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
th:value="${dict.dictValue}"></option>
|
||||
|
@ -152,7 +152,7 @@
|
|||
<input name="partnerCode" class="form-control" type="hidden">
|
||||
</td>
|
||||
<td>联系方式</td>
|
||||
<td><input type="text" name="contactWay" class="form-control"></td>
|
||||
<td><input type="text" name="contactWay" class="form-control" placeholder="姓名+电话"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>预计金额(RMB)<span class="is-required">*</span></td>
|
||||
|
@ -162,7 +162,7 @@
|
|||
</td>
|
||||
<td>预计发货时间</td>
|
||||
<td><input name="estimatedDeliverTime" class="form-control" placeholder="yyyy-MM-dd"
|
||||
></td>
|
||||
></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -183,13 +183,14 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td>关键技术问题</td>
|
||||
<td colspan="5"><input type="text" name="key_tech_issue" style="width:98%;"
|
||||
class="form-control"></td>
|
||||
<td colspan="5"><input type="text" name="keyProblem" style="width:98%;"
|
||||
class="form-control" maxlength="200" placeholder="限制200个字符"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>项目简述<span class="is-required">*</span></td>
|
||||
<td colspan="5"><textarea name="project_desc" style="width:98%;" rows="2"
|
||||
class="form-control" required></textarea>
|
||||
<td colspan="5"><textarea name="projectDesc" style="width:98%;" rows="2"
|
||||
class="form-control" required maxlength="200"
|
||||
placeholder="限制200个字符"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -210,7 +211,7 @@
|
|||
<th style="width: 90px">单价(RMB)</th>
|
||||
<th style="width: 120px">总价(RMB)</th>
|
||||
<th style="width: 120px">目录总价(RMB)</th>
|
||||
<th >备注</th>
|
||||
<th>备注</th>
|
||||
<th style="width: 60px">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -223,7 +224,8 @@
|
|||
<table>
|
||||
<tr>
|
||||
<td>服务器配置</td>
|
||||
<td><textarea name="serverConfiguration" class="form-control"></textarea></td>
|
||||
<td><textarea name="serverConfiguration" class="form-control" maxlength="200"
|
||||
placeholder="限制200个字符"></textarea></td>
|
||||
<td>是否国产</td>
|
||||
<td>
|
||||
<select name="countryProduct" class="form-control">
|
||||
|
@ -332,6 +334,7 @@
|
|||
};
|
||||
$.modal.openOptions(options);
|
||||
}
|
||||
|
||||
function selectPeople() {
|
||||
var url = prefix + "/selectPeople";
|
||||
var options = {
|
||||
|
@ -378,6 +381,7 @@
|
|||
|
||||
$.modal.close(index);
|
||||
}
|
||||
|
||||
function doSubmitAgent(index, layero) {
|
||||
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
||||
if (rows.length == 0) {
|
||||
|
@ -398,7 +402,7 @@
|
|||
let tr = $(`
|
||||
<tr>
|
||||
<td class="indexBox">${length + 1}</td>
|
||||
<td><input name=projectProductInfoList[${length}].productBomCode" type="text" class="form-control productBomCode" required></td>
|
||||
<td><input name="projectProductInfoList[${length}].productBomCode" type="text" class="form-control productBomCode" required></td>
|
||||
<td><input name="projectProductInfoList[${length}].model" type="text" class="form-control model" required></td>
|
||||
<td><textarea name="projectProductInfoList[${length}].productDesc" required class="form-control productDesc" placeholder="自动带入" readonly></textarea></td>
|
||||
<td><input name="projectProductInfoList[${length}].quantity" type="number" class="form-control quantity" step="1" required></td>
|
||||
|
@ -422,8 +426,8 @@
|
|||
let tr = $(`
|
||||
<tr>
|
||||
<td>${length + 1}</td>
|
||||
<td><textarea type="text" name="projectOperateLogList[${length}].operateLog" class="form-control" required></textarea></td>
|
||||
<td><input type="text" class="form-control" placeholder="保存后自动填入" required readonly></td>
|
||||
<td><textarea type="text" name="projectWorkProgressList[${length}].workContent" class="form-control" required></textarea></td>
|
||||
<td><input type="text" class="form-control" placeholder="保存后自动填入" readonly></td>
|
||||
<td><input type="text" class="form-control" placeholder="保存后自动填入" readonly></td>
|
||||
</tr>`)
|
||||
$('#workLog tbody').append(tr)
|
||||
|
@ -440,12 +444,12 @@
|
|||
searchProduct(val, 'model', this)
|
||||
})
|
||||
$('#productTable .delRow').on('click', function () {
|
||||
let ele=$(this)
|
||||
$.modal.confirm('是否确认删除',function (){
|
||||
let ele = $(this)
|
||||
$.modal.confirm('是否确认删除', function () {
|
||||
$(ele).parent().parent().remove()
|
||||
$('#productTable tbody tr').each((index,item)=>{
|
||||
$(item).find('.indexBox').text(index+1)
|
||||
})
|
||||
$('#productTable tbody tr').each((index, item) => {
|
||||
$(item).find('.indexBox').text(index + 1)
|
||||
})
|
||||
|
||||
});
|
||||
})
|
||||
|
@ -513,8 +517,8 @@
|
|||
let cataloguePrice = $(this).parent().parent().find('.cataloguePrice').val()
|
||||
$(this).parent().parent().find('.discount').val(val)
|
||||
$(this).parent().parent().find('.price').val((cataloguePrice * val).toFixed(2))
|
||||
let price=$(this).parent().parent().find('.price').val()
|
||||
let quantity=$(this).parent().parent().find('.quantity').val()
|
||||
let price = $(this).parent().parent().find('.price').val()
|
||||
let quantity = $(this).parent().parent().find('.quantity').val()
|
||||
if (price && quantity) {
|
||||
$(this).parent().parent().find('.allPrice').val((price * quantity).toFixed(2))
|
||||
}
|
||||
|
@ -530,6 +534,43 @@
|
|||
$(this).parent().parent().find('.allPrice').val((val * num).toFixed(2))
|
||||
})
|
||||
}
|
||||
|
||||
function changeInstitution() {
|
||||
if ($('[name="operateInstitution"]').val() == 'h3c') {
|
||||
$('[name="partnerName"]').val('新华三')
|
||||
$('[name="partnerCode"]').val('')
|
||||
}
|
||||
}
|
||||
|
||||
function changeBg() {
|
||||
if ($('[name="bgProperty"]').val() != 'YYS') {
|
||||
let datas = [[${@dict.getType('bg_hysy')}]]
|
||||
let str = ``
|
||||
datas.forEach((ele) => {
|
||||
str += `<option value="${ele.dictValue}">${ele.dictLabel}</option> `
|
||||
})
|
||||
$('#industryTypeBox').html(`
|
||||
<select name="industryType" class="form-control" required>
|
||||
<option value="">请选择行业</option>
|
||||
${str}
|
||||
</select>
|
||||
`)
|
||||
} else {
|
||||
let datas = [[${@dict.getType('bg_yys')}]]
|
||||
let str = ``
|
||||
datas.forEach((ele) => {
|
||||
str += `<option value="${ele.dictValue}">${ele.dictLabel}</option> `
|
||||
})
|
||||
$('#industryTypeBox').html(`
|
||||
<select name="industryType" class="form-control" required>
|
||||
<option value="">请选择行业</option>
|
||||
${str}
|
||||
</select>
|
||||
`)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,198 +1,599 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<th:block th:include="include :: header('修改项目管理')" />
|
||||
<th:block th:include="include :: datetimepicker-css" />
|
||||
<th:block th:include="include :: header('新增项目管理')"/>
|
||||
<th:block th:include="include :: datetimepicker-css"/>
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-product-edit" th:object="${projectInfo}">
|
||||
<input name="id" th:field="*{id}" type="hidden">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">项目编码:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="projectCode" th:field="*{projectCode}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">项目名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="projectName" th:field="*{projectName}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">客户code:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="customerCode" th:field="*{customerCode}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">客户名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="customerName" th:field="*{customerName}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">属地:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="province" th:field="*{province}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">项目阶段:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="projectStage" th:field="*{projectStage}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">项目把握度:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="projectGraspDegree" th:field="*{projectGraspDegree}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">汇智支撑人员id:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="hzSupportUser" th:field="*{hzSupportUser}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">运作机构:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="operateInstitution" th:field="*{operateInstitution}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">代理商code:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="partnerCode" th:field="*{partnerCode}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">联系方式:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="contactWay" th:field="*{contactWay}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">预计金额:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="estimatedAmount" th:field="*{estimatedAmount}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">预计下单时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="estimatedOrderTime" th:value="${#dates.format(projectInfo.estimatedOrderTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">预计发货时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="estimatedDeliverTime" th:value="${#dates.format(projectInfo.estimatedDeliverTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">竞争对手:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="competitor" th:field="*{competitor}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">是否国产:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="countryProduct" th:field="*{countryProduct}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">服务器配置:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="serverConfiguration" th:field="*{serverConfiguration}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">关键技术问题:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="keyProblem" th:field="*{keyProblem}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">项目描述:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="projectDesc" th:field="*{projectDesc}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: datetimepicker-js" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "sip/project";
|
||||
$("#form-product-edit").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
<style>
|
||||
body {
|
||||
font-family: "微软雅黑", Arial, sans-serif;
|
||||
}
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-product-edit').serialize());
|
||||
}
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
th, td {
|
||||
border: 1px solid #ccc;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.is-required {
|
||||
color: red;
|
||||
}
|
||||
|
||||
th {
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-weight: bold;
|
||||
font-size: 18px;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.checkbox-group label {
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.add-btn {
|
||||
background: #409eff;
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 5px 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.checkbox-box {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.checkbox-box label {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 5px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.shortTd {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
input, textarea, #productTable td {
|
||||
position: relative;
|
||||
}
|
||||
</style>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form id="form-product-add" th:object="${projectInfo}">
|
||||
<input type="hidden" name="id" th:field="*{id}">
|
||||
<div class="section-title">项目信息</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="shortTd">项目编码<span class="is-required">*</span></td>
|
||||
<td><input type="text" th:field="*{projectCode}" name="projectCode" class="form-control" placeholder="保存后自动生成" readonly>
|
||||
</td>
|
||||
<td class="shortTd">项目名称<span class="is-required">*</span></td>
|
||||
<td><input type="text" th:field="*{projectName}" name="projectName" maxlength="40" placeholder="限制40个字符"
|
||||
class="form-control"></td>
|
||||
<td class="shortTd">最终客户<span class="is-required">*</span></td>
|
||||
<td><input name="customerName" th:field="*{customerName}" class="form-control" type="text" required onclick="selectCustomer()">
|
||||
<input name="customerCode" th:field="*{customerCode}" class="form-control" type="hidden"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="shortTd">BG<span class="is-required">*</span></td>
|
||||
<td>
|
||||
<select name="bgProperty" th:field="*{bgProperty}" class="form-control" th:with="type=${@dict.getType('bg_type')}"
|
||||
onchange="changeBg()" required>
|
||||
<option value="">请选择BG</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="shortTd">行业<span class="is-required">*</span></td>
|
||||
<td id="industryTypeBox">
|
||||
<select name="industryType" th:field="*{industryType}" class="form-control"
|
||||
required>
|
||||
<option value="">请先选择BG</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="shortTd"> 代表处 <span class="is-required">*</span></td>
|
||||
<td id="element1">
|
||||
<input name="agentName" th:field="*{agentName}" class="form-control" type="text"
|
||||
onclick="selectAgent()" required>
|
||||
<input name="agentCode" th:field="*{agentCode}" class="form-control" type="hidden" required>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>项目阶段<span class="is-required">*</span></td>
|
||||
<td>
|
||||
<select name="projectStage" th:field="*{projectStage}" class="form-control"
|
||||
th:with="type=${@dict.getType('project_stage')}"
|
||||
required>
|
||||
<option value="">请选择合项目阶段</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</td>
|
||||
<td>项目把握度<span class="is-required">*</span></td>
|
||||
<td>
|
||||
<select name="projectGraspDegree" class="form-control" th:field="*{projectGraspDegree}" required>
|
||||
<option value="">请选择</option>
|
||||
<option value="A">A</option>
|
||||
<option value="B">B</option>
|
||||
<option value="C">C</option>
|
||||
<option value="D">D</option>
|
||||
|
||||
</select>
|
||||
</td>
|
||||
<td>汇智责任人</td>
|
||||
<td>
|
||||
<input name="hzSupportUserName" class="form-control" type="text"
|
||||
onclick="selectPeople()" th:field="*{hzSupportUserName}">
|
||||
<input name="hzSupportUser" class="form-control" type="hidden" th:field="*{hzSupportUser}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>合作渠道</td>
|
||||
<td>
|
||||
<select name="operateInstitution" class="form-control"
|
||||
th:with="type=${@dict.getType('operate_institution')}"
|
||||
onchange="changeInstitution()" th:field="*{operateInstitution}">
|
||||
<option value="">请选择合作渠道</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</td>
|
||||
<td>代理商<span class="is-required">*</span></td>
|
||||
<td>
|
||||
<input name="partnerName" class="form-control" type="text" required
|
||||
onclick="selectPartner()" th:field="*{partnerName}">
|
||||
<input name="partnerCode" class="form-control" type="hidden" th:field="*{partnerCode}">
|
||||
</td>
|
||||
<td>联系方式</td>
|
||||
<td><input type="text" name="contactWay" class="form-control" placeholder="姓名+电话" th:field="*{contactWay}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>预计金额(RMB)<span class="is-required">*</span></td>
|
||||
<td><input type="number" name="estimatedAmount" class="form-control" th:field="*{estimatedAmount}" required></td>
|
||||
<td>预计下单时间</td>
|
||||
<td><input name="estimatedOrderTime" class="form-control" placeholder="yyyy-MM-dd" th:field="*{estimatedOrderTime}">
|
||||
</td>
|
||||
<td>预计发货时间</td>
|
||||
<td><input name="estimatedDeliverTime" class="form-control" placeholder="yyyy-MM-dd"
|
||||
th:field="*{estimatedDeliverTime}"></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td>竞争对手</td>
|
||||
<td colspan="5" class="checkbox-group">
|
||||
<div class="checkbox-box">
|
||||
<label><input type="checkbox" name="competitorList[0]" value="华为">华为</label>
|
||||
<label><input type="checkbox" name="competitorList[1]" value="锐捷">锐捷</label>
|
||||
<label><input type="checkbox" name="competitorList[2]" value="深信服">深信服</label>
|
||||
<label><input type="checkbox" name="competitorList[3]" value="中兴">中兴</label>
|
||||
<label><input type="checkbox" name="competitorList[4]" value="曙云">曙云</label>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
其它:<input type="text" name="competitorList[5]" th:field="*{competitorList[5]}" class="form-control" style="width: 400px">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>关键技术问题</td>
|
||||
<td colspan="5"><input type="text" name="keyProblem" style="width:98%;"
|
||||
class="form-control" maxlength="200" th:field="*{keyProblem}" placeholder="限制200个字符"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>项目简述<span class="is-required">*</span></td>
|
||||
<td colspan="5"><textarea name="projectDesc" style="width:98%;" rows="2"
|
||||
class="form-control" required maxlength="200"
|
||||
placeholder="限制200个字符" th:field="*{projectDesc}"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="section-title">配置信息</div>
|
||||
<button type="button" class="add-btn" onclick="addProduct({})">添加</button>
|
||||
<table id="productTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
<th>产品编号</th>
|
||||
<th>产品型号</th>
|
||||
<th>描述</th>
|
||||
<th>数量</th>
|
||||
<th style="width: 90px">目录单价(RMB)</th>
|
||||
<th style="width: 90px">指导折扣</th>
|
||||
<th style="width: 90px">折扣</th>
|
||||
<th style="width: 90px">单价(RMB)</th>
|
||||
<th style="width: 120px">总价(RMB)</th>
|
||||
<th style="width: 120px">目录总价(RMB)</th>
|
||||
<th>备注</th>
|
||||
<th style="width: 60px">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<div>
|
||||
<table>
|
||||
<tr>
|
||||
<td>服务器配置</td>
|
||||
<td><textarea name="serverConfiguration" class="form-control" maxlength="200"
|
||||
placeholder="限制200个字符" th:field="*{serverConfiguration}"></textarea></td>
|
||||
<td>是否国产</td>
|
||||
<td>
|
||||
<select name="countryProduct" class="form-control" th:field="*{countryProduct}">
|
||||
<option value="">请选择</option>
|
||||
<option value="1">是</option>
|
||||
<option value="0">否</option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div class="section-title">工作进度</div>
|
||||
<button type="button" class="add-btn" onclick="addLog({})">添加</button>
|
||||
<table id="workLog">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
<th>更新内容</th>
|
||||
<th>更新人员</th>
|
||||
<th>更新时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
<!-- 可动态添加行 -->
|
||||
</table>
|
||||
<div class="section-title">操作日志</div>
|
||||
<table id="sysLog">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
<th>操作人员</th>
|
||||
<th>操作内容</th>
|
||||
<th>操作时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer"/>
|
||||
<th:block th:include="include :: datetimepicker-js"/>
|
||||
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "sip/project"
|
||||
$("#form-product-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-product-add').serialize());
|
||||
}
|
||||
}
|
||||
|
||||
$(function () {
|
||||
var layerIndex = parent.layer.index
|
||||
parent.layer.full(layerIndex)
|
||||
|
||||
$("input[name='estimatedOrderTime']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$("input[name='estimatedDeliverTime']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
</script>
|
||||
initData()
|
||||
|
||||
|
||||
})
|
||||
|
||||
function selectCustomer() {
|
||||
var url = prefix + "/selectCustomer";
|
||||
var options = {
|
||||
title: '选择客户',
|
||||
width: "680",
|
||||
url: url,
|
||||
height: '600',
|
||||
callBack: doSubmitCustomer
|
||||
};
|
||||
$.modal.openOptions(options);
|
||||
}
|
||||
|
||||
function selectPartner() {
|
||||
var url = prefix + "/selectPartner";
|
||||
var options = {
|
||||
title: '选择代理商',
|
||||
width: "680",
|
||||
height: '600',
|
||||
url: url,
|
||||
callBack: doSubmitPartner
|
||||
};
|
||||
$.modal.openOptions(options);
|
||||
}
|
||||
|
||||
function selectAgent() {
|
||||
var url = prefix + "/selectAgent";
|
||||
var options = {
|
||||
title: '选择代理商',
|
||||
width: "680",
|
||||
height: '600',
|
||||
url: url,
|
||||
callBack: doSubmitAgent
|
||||
};
|
||||
$.modal.openOptions(options);
|
||||
}
|
||||
|
||||
function selectPeople() {
|
||||
var url = prefix + "/selectPeople";
|
||||
var options = {
|
||||
title: '选择代理商',
|
||||
width: "680",
|
||||
height: '600',
|
||||
url: url,
|
||||
callBack: doSubmitPeople
|
||||
};
|
||||
$.modal.openOptions(options);
|
||||
}
|
||||
|
||||
function doSubmitCustomer(index, layero) {
|
||||
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
||||
if (rows.length == 0) {
|
||||
$.modal.alertWarning("请选择一个用户");
|
||||
return;
|
||||
}
|
||||
$('[name="customerCode"]').val(rows[0].customerCode);
|
||||
$(' [name="customerName"]').val(rows[0].customerName);
|
||||
$.modal.close(index);
|
||||
}
|
||||
|
||||
function doSubmitPartner(index, layero) {
|
||||
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
||||
if (rows.length == 0) {
|
||||
$.modal.alertWarning("请选择一个代理商");
|
||||
return;
|
||||
}
|
||||
$('[name="partnerCode"]').val(rows[0].partnerCode);
|
||||
$('[name="partnerName"]').val(rows[0].partnerName);
|
||||
|
||||
$.modal.close(index);
|
||||
}
|
||||
|
||||
function doSubmitPeople(index, layero) {
|
||||
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
||||
if (rows.length == 0) {
|
||||
$.modal.alertWarning("请选择一个代理商");
|
||||
return;
|
||||
}
|
||||
$('[name="hzSupportUser"]').val(rows[0].userId);
|
||||
$('[name="hzSupportUserName"]').val(rows[0].userName);
|
||||
|
||||
$.modal.close(index);
|
||||
}
|
||||
|
||||
function doSubmitAgent(index, layero) {
|
||||
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
||||
if (rows.length == 0) {
|
||||
$.modal.alertWarning("请选择一个代理商");
|
||||
return;
|
||||
}
|
||||
$('[name="agentCode"]').val(rows[0].agentCode);
|
||||
$('[name="agentName"]').val(rows[0].agentName);
|
||||
|
||||
$.modal.close(index);
|
||||
}
|
||||
|
||||
// 添加软件
|
||||
function initData() {
|
||||
let arr=[[${projectInfo.projectProductInfoList}]]
|
||||
arr.forEach((ele)=>{
|
||||
addProduct(ele)
|
||||
})
|
||||
let arr2=[[${projectInfo.projectWorkProgressList }]]
|
||||
arr2.forEach((ele)=>{
|
||||
addLog(ele)
|
||||
})
|
||||
console.log(123,arr)
|
||||
|
||||
let arr3=[[${projectInfo.projectOperateLogList}]]
|
||||
arr3.forEach((ele,index)=>{
|
||||
let tr=$(`
|
||||
<tr><td>${index+1}</td><td>${ele.operateUserName}</td><td>${ele.operateLog}</td><td>${ele.operateTime}</td></tr>
|
||||
`)
|
||||
$('#sysLog tbody').append(tr)
|
||||
})
|
||||
changeBg()
|
||||
$('[name="industryType"]').val([[${projectInfo.industryType}]])
|
||||
}
|
||||
|
||||
function addProduct(data) {
|
||||
let length = $('#productTable tbody').find('tr').length
|
||||
let tr = $(`
|
||||
<tr>
|
||||
<td class="indexBox">${length + 1}</td>
|
||||
<td><input type="hidden" name="projectProductInfoList[${length}].id" value="${data.id||''}"><input name="projectProductInfoList[${length}].productBomCode" type="text" class="form-control productBomCode" value="${data.productBomCode||''}" required></td>
|
||||
<td><input name="projectProductInfoList[${length}].model" type="text" class="form-control model" required value="${data.model||''}"></td>
|
||||
<td><textarea name="projectProductInfoList[${length}].productDesc" required class="form-control productDesc" placeholder="自动带入" readonly>${data.productDesc||''}</textarea></td>
|
||||
<td><input value="${data.quantity||''}" name="projectProductInfoList[${length}].quantity" type="number" class="form-control quantity" step="1" required></td>
|
||||
<td><input value="${data.cataloguePrice||''}" name="projectProductInfoList[${length}].cataloguePrice" type="text" class="form-control cataloguePrice" required></td>
|
||||
<td><input value="${data.guidanceDiscount||''}" name="projectProductInfoList[${length}].guidanceDiscount" type="number" class="form-control guidanceDiscount" min="0" max="1" step="0.1" required></td>
|
||||
<td><input value="${data.discount||''}" name="projectProductInfoList[${length}].discount" type="number" class="form-control discount" min="0" max="1" step="0.1" required></td>
|
||||
<td><input value="${data.price||''}" name="projectProductInfoList[${length}].price" type="number" class="form-control price" placeholder="自动计算" required readonly></td>
|
||||
<td><input value="${data.allPrice||''}" name="projectProductInfoList[${length}].allPrice" type="number" class="form-control allPrice" placeholder="自动计算" required readonly></td>
|
||||
<td><input value="${data.catalogueAllPrice||''}" name="projectProductInfoList[${length}].catalogueAllPrice" type="number" class="form-control catalogueAllPrice" placeholder="自动计算" required readonly></td>
|
||||
<td><input value="${data.remark||''}" name="projectProductInfoList[${length}].remark" type="text" class="form-control" ></td>
|
||||
<td><span style="cursor:pointer;color: ff5722" class="delRow">删除</span></td>
|
||||
|
||||
</tr>`)
|
||||
$('#productTable tbody').append(tr)
|
||||
initSearchProduct()
|
||||
initPrice()
|
||||
}
|
||||
|
||||
function addLog(data) {
|
||||
let length = $('#workLog tbody').find('tr').length
|
||||
let tr = $(`
|
||||
<tr>
|
||||
<td>${length + 1}</td>
|
||||
<td><input type="hidden" value="${data.id}" name="projectWorkProgressList[${length}].id"><textarea type="text" name="projectWorkProgressList[${length}].workContent" class="form-control" required>${data.workContent||''}</textarea></td>
|
||||
<td><input type="text" class="form-control" placeholder="保存后自动填入" value="${data.userName||''}" readonly></td>
|
||||
<td><input type="text" class="form-control" placeholder="保存后自动填入" value="${data.workTime||''}" readonly></td>
|
||||
</tr>`)
|
||||
$('#workLog tbody').append(tr)
|
||||
|
||||
}
|
||||
|
||||
function initSearchProduct() {
|
||||
$('#productTable .productBomCode').on('input', function () {
|
||||
let val = $(this).val()
|
||||
searchProduct(val, 'code', this)
|
||||
})
|
||||
$('#productTable .model').on('input', function () {
|
||||
let val = $(this).val()
|
||||
searchProduct(val, 'model', this)
|
||||
})
|
||||
$('#productTable .delRow').on('click', function () {
|
||||
let ele = $(this)
|
||||
$.modal.confirm('是否确认删除', function () {
|
||||
$(ele).parent().parent().remove()
|
||||
$('#productTable tbody tr').each((index, item) => {
|
||||
$(item).find('.indexBox').text(index + 1)
|
||||
})
|
||||
|
||||
});
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
function searchProduct(val, type, ele) {
|
||||
if (!val) {
|
||||
$(ele).parent().parent().find('.productBomCode').val('')
|
||||
$(ele).parent().parent().find('.model').val('')
|
||||
$(ele).parent().parent().find('.productDesc').val('')
|
||||
return
|
||||
}
|
||||
let data = {
|
||||
pageSize: 10,
|
||||
pageNum: 1,
|
||||
isTable: 0
|
||||
}
|
||||
if (type == 'code') {
|
||||
data.productCode = val
|
||||
} else if (type == 'model') {
|
||||
data.model = val
|
||||
}
|
||||
$.operate.post(ctx + 'system/product/list', data, function (res) {
|
||||
if (res.rows.length) {
|
||||
if (type == 'code') {
|
||||
$(ele).parent().parent().find('.model').val(res.rows[0].model)
|
||||
} else if (type == 'model') {
|
||||
$(ele).parent().parent().find('.productBomCode').val(res.rows[0].productCode)
|
||||
}
|
||||
$(ele).parent().parent().find('.productDesc').val(res.rows[0].description)
|
||||
} else {
|
||||
if (type == 'code') {
|
||||
$(ele).parent().parent().find('.model').val('')
|
||||
} else if (type == 'model') {
|
||||
$(ele).parent().parent().find('.productBomCode').val('')
|
||||
}
|
||||
$(ele).parent().parent().find('.productDesc').val('')
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
function initPrice() {
|
||||
$('#productTable .quantity').on('input', function () {
|
||||
let num = $(this).val()
|
||||
let priceVal = $(this).parent().parent().find('.price').val()
|
||||
let cateVal = $(this).parent().parent().find('.cataloguePrice').val()
|
||||
if (priceVal && num) {
|
||||
$(this).parent().parent().find('.allPrice').val((num * priceVal).toFixed(2))
|
||||
}
|
||||
if (cateVal && num) {
|
||||
$(this).parent().parent().find('.catalogueAllPrice').val((num * cateVal).toFixed(2))
|
||||
}
|
||||
})
|
||||
$('#productTable .cataloguePrice').on('input', function () {
|
||||
let val = $(this).val()
|
||||
$(this).parent().parent().find('.price').val(val)
|
||||
let quantity = $(this).parent().parent().find('.quantity').val()
|
||||
if (quantity && val)
|
||||
$(this).parent().parent().find('.catalogueAllPrice').val((val * quantity).toFixed(2))
|
||||
})
|
||||
$('#productTable .guidanceDiscount').on('input', function () {
|
||||
let val = $(this).val()
|
||||
let cataloguePrice = $(this).parent().parent().find('.cataloguePrice').val()
|
||||
$(this).parent().parent().find('.discount').val(val)
|
||||
$(this).parent().parent().find('.price').val((cataloguePrice * val).toFixed(2))
|
||||
let price = $(this).parent().parent().find('.price').val()
|
||||
let quantity = $(this).parent().parent().find('.quantity').val()
|
||||
if (price && quantity) {
|
||||
$(this).parent().parent().find('.allPrice').val((price * quantity).toFixed(2))
|
||||
}
|
||||
})
|
||||
$('#productTable .discount').on('input', function () {
|
||||
let discount = $(this).val()
|
||||
let val = $(this).parent().parent().find('.cataloguePrice').val()
|
||||
$(this).parent().parent().find('.price').val((val * discount).toFixed(2))
|
||||
})
|
||||
$('#productTable .price').change('input', function () {
|
||||
let val = $(this).val()
|
||||
let num = $(this).parent().parent().find('.quantity').val()
|
||||
$(this).parent().parent().find('.allPrice').val((val * num).toFixed(2))
|
||||
})
|
||||
}
|
||||
|
||||
function changeInstitution() {
|
||||
if ($('[name="operateInstitution"]').val() == 'h3c') {
|
||||
$('[name="partnerName"]').val('新华三')
|
||||
$('[name="partnerCode"]').val('')
|
||||
}
|
||||
}
|
||||
|
||||
function changeBg() {
|
||||
if ($('[name="bgProperty"]').val() != 'YYS') {
|
||||
let datas = [[${@dict.getType('bg_hysy')}]]
|
||||
let str = ``
|
||||
datas.forEach((ele) => {
|
||||
str += `<option value="${ele.dictValue}">${ele.dictLabel}</option> `
|
||||
})
|
||||
$('#industryTypeBox').html(`
|
||||
<select name="industryType" class="form-control" required>
|
||||
<option value="">请选择行业</option>
|
||||
${str}
|
||||
</select>
|
||||
`)
|
||||
} else {
|
||||
let datas = [[${@dict.getType('bg_yys')}]]
|
||||
let str = ``
|
||||
datas.forEach((ele) => {
|
||||
str += `<option value="${ele.dictValue}">${ele.dictLabel}</option> `
|
||||
})
|
||||
$('#industryTypeBox').html(`
|
||||
<select name="industryType" class="form-control" required>
|
||||
<option value="">请选择行业</option>
|
||||
${str}
|
||||
</select>
|
||||
`)
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -11,6 +11,7 @@
|
|||
gap: 0;
|
||||
height: 20px;
|
||||
justify-content: center;
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
.sortBox div {
|
||||
|
@ -50,38 +51,40 @@
|
|||
<input type="text" name="projectName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>客户信息:</label>
|
||||
<label>最终客户:</label>
|
||||
<input type="text" name="customerCode"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>行业:</label>
|
||||
<select name="orderType" class="form-control"
|
||||
th:with="type=${@dict.getType('industry_code')}"
|
||||
onchange="changeOrderType()" required>
|
||||
<label>项目阶段:</label>
|
||||
<select name="projectStage" class="form-control"
|
||||
th:with="type=${@dict.getType('project_stage')}" required>
|
||||
<option value="">请选择合项目阶段</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</li>
|
||||
<li id="element1">
|
||||
<label>属地:</label>
|
||||
<select name="province" class="province form-control m-b" data-first-title="选择省">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label>项目阶段:</label>
|
||||
<select name="orderType" class="form-control"
|
||||
th:with="type=${@dict.getType('project_stage')}"
|
||||
onchange="changeOrderType()" required>
|
||||
<option value="">请选择合项目阶段</option>
|
||||
<label>BG:</label>
|
||||
<select name="bgProperty" class="form-control" th:with="type=${@dict.getType('bg_type')}"
|
||||
onchange="changeBg()" required>
|
||||
<option value="">请选择BG</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label>行业:</label>
|
||||
<div id="industryTypeBox" style="float: right">
|
||||
<select name="industryType" class="form-control" required>
|
||||
<option value="">请先选择BG</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<label>项目把握度:</label>
|
||||
<select name="timeType" onchange="changeTimeType()" value="0">
|
||||
<select name="projectGraspDegree" onchange="changeTimeType()" value="0">
|
||||
<option value="">请选择</option>
|
||||
<option value="0">A</option>
|
||||
<option value="1">B</option>
|
||||
<option value="2">C</option>
|
||||
|
@ -90,7 +93,11 @@
|
|||
</li>
|
||||
<li>
|
||||
<label>汇智支撑:</label>
|
||||
<input type="text" name="hzSupportUser"/>
|
||||
<input type="text" name="hzSupportUserName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>代表处:</label>
|
||||
<input type="text" name="agentName"/>
|
||||
</li>
|
||||
<li class="timeSearch" style="width: 80%">
|
||||
<div>
|
||||
|
@ -118,6 +125,7 @@
|
|||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
|
||||
class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<input type="hidden" name="orderByColumn"/>
|
||||
<input type="hidden" name="isAsc"/>
|
||||
|
@ -148,7 +156,6 @@
|
|||
</div>
|
||||
</div>
|
||||
<th:block th:include="include :: footer"/>
|
||||
<th:block th:include="include :: jquery-cxselect-js"/>
|
||||
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permission.hasPermi('sip:product:edit')}]];
|
||||
|
@ -188,27 +195,47 @@
|
|||
},
|
||||
{
|
||||
field: 'customerName',
|
||||
title: '客户名称'
|
||||
title: '最终客户'
|
||||
},
|
||||
{
|
||||
field: 'bgProperty',
|
||||
title: 'BG',
|
||||
formatter: function (value, row, index) {
|
||||
return $.table.selectDictLabel([[${@dict.getType('bg_type')}]], value);
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'industryType',
|
||||
title: '行业'
|
||||
title: '行业',
|
||||
formatter: function (value, row, index) {
|
||||
if(row.bgProperty=='YYS'){
|
||||
return $.table.selectDictLabel([[${@dict.getType('bg_yys')}]], value);
|
||||
|
||||
}else{
|
||||
return $.table.selectDictLabel([[${@dict.getType('bg_hsys')}]], value);
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'province',
|
||||
title: '属地'
|
||||
field: 'agentName',
|
||||
title: '代表处'
|
||||
},
|
||||
{
|
||||
field: 'projectGraspDegree',
|
||||
title: '项目把握度'
|
||||
title: '项目把握度',
|
||||
width:30
|
||||
},
|
||||
{
|
||||
field: 'projectStage',
|
||||
title: '项目阶段'
|
||||
title: '项目阶段',
|
||||
formatter: function (value, row, index) {
|
||||
return $.table.selectDictLabel([[${@dict.getType('project_stage')}]], value);
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'hzSupportUser',
|
||||
title: '汇智支撑人员'
|
||||
title: '汇智负责人'
|
||||
},
|
||||
{
|
||||
field: 'estimatedAmount',
|
||||
|
@ -217,26 +244,29 @@
|
|||
{
|
||||
field: 'estimatedOrderTime',
|
||||
title: '预计下单时间',
|
||||
class: 'time1'
|
||||
class: 'time1',
|
||||
width: 140
|
||||
},
|
||||
{
|
||||
field: 'estimatedDeliverTime',
|
||||
title: '预计发货时间',
|
||||
class: 'time2'
|
||||
class: 'time2',
|
||||
width: 140
|
||||
},
|
||||
{
|
||||
field: 'projectDesc',
|
||||
field: 'updateTime',
|
||||
title: '最后一次更新时间',
|
||||
class: 'time3'
|
||||
class: 'time3',
|
||||
width: 160
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
formatter: function (value, row, index) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>项目详情</a> ');
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick=`openOrder(${row})`><i class="fa fa-edit"></i>生成订单</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
actions.push('<a class="btn btn-success btn-xs mb5' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>项目详情</a> ');
|
||||
actions.push('<a class="btn btn-success btn-xs mb5' + editFlag + '" href="javascript:void(0)" onclick=`openOrder(${row})`><i class="fa fa-refresh"></i>生成订单</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs mb5' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}],
|
||||
|
@ -247,13 +277,6 @@
|
|||
$.table.init(options);
|
||||
initSrot()
|
||||
changeTimeType()
|
||||
var urlChina = '/cnarea/select';
|
||||
$.cxSelect.defaults.url = urlChina;
|
||||
$('#element1').cxSelect({
|
||||
selects: ['province'],
|
||||
nodata: 'none'
|
||||
|
||||
});
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
var startDate = laydate.render({
|
||||
|
@ -344,7 +367,34 @@
|
|||
$('#laydate-endTime').attr('name', 'updateTimeEnd')
|
||||
}
|
||||
}
|
||||
function changeBg() {
|
||||
if ($('[name="bgProperty"]').val() != 'YYS') {
|
||||
let datas = [[${@dict.getType('bg_hysy')}]]
|
||||
let str = ``
|
||||
datas.forEach((ele) => {
|
||||
str += `<option value="${ele.dictValue}">${ele.dictLabel}</option> `
|
||||
})
|
||||
$('#industryTypeBox').html(`
|
||||
<select name="industryType" class="form-control" required>
|
||||
<option value="">请选择行业</option>
|
||||
${str}
|
||||
</select>
|
||||
`)
|
||||
} else {
|
||||
let datas = [[${@dict.getType('bg_yys')}]]
|
||||
let str = ``
|
||||
datas.forEach((ele) => {
|
||||
str += `<option value="${ele.dictValue}">${ele.dictLabel}</option> `
|
||||
})
|
||||
$('#industryTypeBox').html(`
|
||||
<select name="industryType" class="form-control" required>
|
||||
<option value="">请选择行业</option>
|
||||
${str}
|
||||
</select>
|
||||
`)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue