Browse Source

[fix]销售管理

修复客户报价的修改页面 国内税率没有值的bug
dev
liuxiaoxu 4 weeks ago
parent
commit
b11ba135cd
  1. 33
      ruoyi-admin/src/main/resources/templates/system/customerQuote/edit.html

33
ruoyi-admin/src/main/resources/templates/system/customerQuote/edit.html

@ -155,34 +155,15 @@
}); });
var customerCode1 = [[${sysCustomerQuote.customerCode}]]; var customerCode1 = [[${sysCustomerQuote.customerCode}]];
$(function() { $(function() {
/*业务员列表*/ // $("input[name='customerFax']").val([sysCustomerQuote.customerFax]);
// $.ajax({ // $("input[name='rmbTax']").val([sysCustomerQuote.taxRate]);
// url: ctx + 'system/salesOrder/getBinessMembers', // $("input[name='customerFax']").change(function () {
// type: 'get', // if ($("input[name='customerFax']").val() == "1") {
// success: function (res) { // $("input[name='rmbTax']").val(sysCustomerQuote.taxRate);
// console.log(res) // } else {
// if (res.rows.length > 0) { // $("input[name='rmbTax']").val(0);
// var usertData = res.rows;
// //alert(JSON.stringify(data));
// for (let i in usertData) {
// // console.log(finishProductData[i].finishProductCode)
// $("#form-customerQuote-edit select[name='businessMembers']").append("<option value='" + usertData[i].userName + "'>" + usertData[i].userName + "</option>");
// }
// $("#form-customerQuote-edit select[name='businessMembers']").val(sysCustomerQuote.businessMembers).trigger("change")
// } else {
// $.modal.msgError(res.msg);
// }
// } // }
// }); // });
$("input[name='customerFax']").val([sysCustomerQuote.customerFax]);
$("input[name='rmbTax']").val([sysCustomerQuote.taxRate]);
$("input[name='customerFax']").change(function () {
if ($("input[name='customerFax']").val() == "1") {
$("input[name='rmbTax']").val(sysCustomerQuote.taxRate);
} else {
$("input[name='rmbTax']").val(0);
}
});
$("#commonCurrency_edit").val(sysCustomerQuote.commonCurrency).trigger('change'); $("#commonCurrency_edit").val(sysCustomerQuote.commonCurrency).trigger('change');
}); });
$(function() { $(function() {

Loading…
Cancel
Save