Browse Source

[fix]销售管理

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

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

@ -155,34 +155,15 @@
});
var customerCode1 = [[${sysCustomerQuote.customerCode}]];
$(function() {
/*业务员列表*/
// $.ajax({
// url: ctx + 'system/salesOrder/getBinessMembers',
// type: 'get',
// success: function (res) {
// console.log(res)
// if (res.rows.length > 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")
// $("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 {
// $.modal.msgError(res.msg);
// }
// $("input[name='rmbTax']").val(0);
// }
// });
$("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');
});
$(function() {

Loading…
Cancel
Save