Browse Source

修复:客户报价重新申请审核页面,审核页面重新获取修改后的客户报价物料信息。

dev
zhangsiqi 4 months ago
parent
commit
c4b1c55555
  1. 12
      ruoyi-admin/src/main/resources/templates/system/customerQuote/add.html
  2. 3
      ruoyi-admin/src/main/resources/templates/system/customerQuote/edit.html
  3. 5
      ruoyi-admin/src/main/resources/templates/system/customerQuote/taskModifyApply.html
  4. 1
      ruoyi-admin/src/main/resources/templates/system/customerQuote/taskYwjlVerify.html
  5. 7
      ruoyi-admin/src/main/resources/templates/system/customerQuote/taskYwzgVerify.html
  6. 2
      ruoyi-admin/src/main/resources/templates/system/customerQuote/taskZozjVerify.html

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

@ -589,6 +589,15 @@
var iframeWin = window[layero.find('iframe')[0]['name']]; var iframeWin = window[layero.find('iframe')[0]['name']];
var rowData = iframeWin.$('#bootstrap-select-table').bootstrapTable('getSelections')[0]; var rowData = iframeWin.$('#bootstrap-select-table').bootstrapTable('getSelections')[0];
console.log("rowData: "+rowData); console.log("rowData: "+rowData);
//判断是否重复
var rows = $("#bootstrap-sub-table-1").bootstrapTable('getData').length;
for(var i=0;i<rows;i++){
var data = $("#bootstrap-sub-table-1").bootstrapTable('getData')[i];
if(data.materialNo==rowData.materialCode){
$.modal.alertError("不能选择已添加过的相同料号");
return;
}
}
$("#bootstrap-sub-table-quoteChild").bootstrapTable('insertRow', { $("#bootstrap-sub-table-quoteChild").bootstrapTable('insertRow', {
index:1, index:1,
row: { row: {
@ -652,7 +661,8 @@
$("#bootstrap-sub-table-quoteChild").bootstrapTable('remove', { $("#bootstrap-sub-table-quoteChild").bootstrapTable('remove', {
field: 'materialCode', field: 'materialCode',
values: materialCode values: materialCode
}) });
getTotalAmount();
} }
$("input[name='pricingDate']").datetimepicker({ $("input[name='pricingDate']").datetimepicker({
format: "yyyy-mm-dd", format: "yyyy-mm-dd",

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

@ -455,7 +455,8 @@
$.table.bootstrapTable('remove', { $.table.bootstrapTable('remove', {
field: 'id', field: 'id',
values: rowData.id values: rowData.id
}) });
getTotalAmount();
} }
$("input[name='pricingDate']").datetimepicker({ $("input[name='pricingDate']").datetimepicker({
format: "yyyy-mm-dd", format: "yyyy-mm-dd",

5
ruoyi-admin/src/main/resources/templates/system/customerQuote/taskModifyApply.html

@ -492,9 +492,8 @@
$.table.bootstrapTable('remove', { $.table.bootstrapTable('remove', {
field: 'id', field: 'id',
values: rowData.id values: rowData.id
}) });
let enterpriseSum = $("#enterpriseSum_edit").val(); getTotalAmount();
$("#enterpriseSum_edit").val((enterpriseSum==null?0:enterpriseSum) - rowData.materialNum);
} }
$("input[name='pricingDate']").datetimepicker({ $("input[name='pricingDate']").datetimepicker({
format: "yyyy-mm-dd", format: "yyyy-mm-dd",

1
ruoyi-admin/src/main/resources/templates/system/customerQuote/taskYwjlVerify.html

@ -477,6 +477,7 @@
field: 'id', field: 'id',
values: rowData.id values: rowData.id
}) })
getTotalAmount();
} }
$("input[name='pricingDate']").datetimepicker({ $("input[name='pricingDate']").datetimepicker({
format: "yyyy-mm-dd", format: "yyyy-mm-dd",

7
ruoyi-admin/src/main/resources/templates/system/customerQuote/taskYwzgVerify.html

@ -188,9 +188,7 @@
var sysCustomerQuote = [[${formData}]]; var sysCustomerQuote = [[${formData}]];
var prefix = ctx + "system/customerQuote" var prefix = ctx + "system/customerQuote"
var commonCurrency = $("#commonCurrency_edit option:selected").val(); var commonCurrency = $("#commonCurrency_edit option:selected").val();
$("#form-customerQuote-ywzg").validate({ $("#form-customerQuote-ywzg").validate({focusCleanup: true});
focusCleanup: true,
});
$(function() { $(function() {
/*业务员列表*/ /*业务员列表*/
$.ajax({ $.ajax({
@ -476,7 +474,8 @@
$.table.bootstrapTable('remove', { $.table.bootstrapTable('remove', {
field: 'id', field: 'id',
values: rowData.id values: rowData.id
}) });
getTotalAmount();
} }
$("input[name='pricingDate']").datetimepicker({ $("input[name='pricingDate']").datetimepicker({
format: "yyyy-mm-dd", format: "yyyy-mm-dd",

2
ruoyi-admin/src/main/resources/templates/system/customerQuote/taskZozjVerify.html

@ -236,7 +236,7 @@
{checkbox: true}, {checkbox: true},
{title: '序号',align: 'center', {title: '序号',align: 'center',
formatter: function (value, row, index) { formatter: function (value, row, index) {
return $.table.serialNumber(index); return $.table.serialNumber(index + 1);
} }
}, },
{title: '报价子表id',field: 'id',align: 'center',visible: false}, {title: '报价子表id',field: 'id',align: 'center',visible: false},

Loading…
Cancel
Save