Browse Source

[fix]

销售管理 客户报价
修改添加客户报价页面业务员字段输入框为文本输入框,
修改绑定数据源为当前登录名自动填充;
销售管理 销售估价
修改添加销售估价页面客户名称输入框为可编辑,修改为选择下拉框客户ID后自动填充名称;
dev
王晓迪 4 months ago
parent
commit
cfc4c87063
  1. 11
      ruoyi-admin/src/main/resources/templates/sales/salesEstimate/add.html
  2. 11
      ruoyi-admin/src/main/resources/templates/system/customerQuote/add.html

11
ruoyi-admin/src/main/resources/templates/sales/salesEstimate/add.html

@ -26,15 +26,14 @@
<div class="form-group">
<label class="col-sm-4 control-label">客户编号:</label>
<div class="col-sm-8">
<select class="form-control" name="customerCode" required>
<select class="form-control" name="customerCode" id="customerCode" required>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-4 control-label">客户名称:</label>
<div class="col-sm-8">
<input name="customerName" class="form-control m-b" type="text" readonly />
<input name="customerName" id="customerName" class="form-control m-b" type="text"/>
</div>
</div>
<div class="form-group">
@ -163,6 +162,7 @@
var prefix = ctx + "sales/salesEstimate"
var userName = [[${@permission.getPrincipalProperty('userName')}]];
$("#form-salesEstimate-add").validate({focusCleanup: true});
var customerList =[[${customerList}]];
//获取客户信息
$(function(){
$("select[name='customerCode']").select2({
@ -177,8 +177,8 @@
cache:true,
processResults: function (res, params) {
var resultList = res.rows;
console.log("传输的数值");
console.log(resultList);
// console.log("传输的数值");
// console.log(resultList);
var options = [];
for(var i= 0, len=resultList.length;i<len;i++){
var option = resultList[i];
@ -199,6 +199,7 @@
})
$('#customerCode').on('select2:select', function (e) {
var data = e.params.data;
// console.log(data);
$("input[name='customerName']").val(data.enterpriseName);
$("select[name='commonCurrency']").val(data.commonCurrency).trigger('change');
$("input[name='rmbTax']").val(data.taxRate);

11
ruoyi-admin/src/main/resources/templates/system/customerQuote/add.html

@ -19,9 +19,10 @@
<div class="form-group" shiro:hasPermission="system:customerQuote:edit">
<label class="col-sm-4 control-label">业务员:</label>
<div class="col-sm-8">
<select class="form-control" name="businessMembers" required>
<option value="">请选择</option>
</select>
<!-- <select class="form-control" name="businessMembers" required>-->
<!-- <option value="">请选择</option>-->
<!-- </select>-->
<input name="businessMembers" class="form-control" type="text" readonly>
</div>
</div>
<div class="form-group">
@ -265,6 +266,8 @@
}
$(function() {
// console.log(loginName);
$("#form-customerQuote-add input[name='businessMembers']").val(loginName);
var options = {
id:'bootstrap-sub-table-quoteChild',
// url: ctx + "system/quoteChild/list",
@ -538,7 +541,7 @@
});
// 初始化时也需要根据当前的货币类型设置一次
$("#commonCurrency_add").trigger('change');
getBusinessMembers();
// getBusinessMembers();
getCustomerCode();
});
function getCustomerCode(){

Loading…
Cancel
Save