|
@@ -608,14 +608,14 @@ $(document).ready(() => {
|
|
|
for (const leaf of gcl.leafXmjs) {
|
|
|
const quantity = leaf.quantity !== undefined && leaf.quantity !== null ? leaf.quantity : 0;
|
|
|
const gcl_id = leaf.gcl_id ? leaf.gcl_id : '';
|
|
|
- const bwmx = leaf.bwmx !== undefined ? leaf.bwmx : '';
|
|
|
+ const bwmx = leaf.bwmx !== undefined ? leaf.bwmx : (gcl.leafXmjs.length > 1 && gcl.name ? gcl.name : '');
|
|
|
const isChecked = data_bwmx.indexOf(
|
|
|
leaf.code + '!_!' + (leaf.jldy ? leaf.jldy : '') + '!_!' +
|
|
|
(leaf.dwgc ? leaf.dwgc : '') + '!_!' + (leaf.fbgc ? leaf.fbgc : '') + '!_!' + (leaf.fxgc ? leaf.fxgc : '')
|
|
|
+ '!_!' + (leaf.gcl_id ? leaf.gcl_id : '0') + '!_!' +
|
|
|
(bwmx !== '' ? bwmx : leaf.jldy ? leaf.jldy : '') + '*;*' + quantity) !== -1 && isCheck ?
|
|
|
'checked' : '';
|
|
|
- const isUsed = _.find(changeUsedData, { gcl_id: leaf.gcl_id, bwmx: leaf.bwmx });
|
|
|
+ const isUsed = _.find(changeUsedData, { gcl_id: leaf.gcl_id, bwmx: bwmx, oamount: leaf.quantity });
|
|
|
const isDisabled = isUsed ? 'disabled ' : '';
|
|
|
codeHtml += '<tr quantity="' + quantity + '" gcl_id="' + gcl_id + '"><td>' + leaf.code + '</td>' +
|
|
|
'<td>' + (leaf.jldy ? leaf.jldy: '') + '</td>' +
|
|
@@ -919,7 +919,7 @@ function tableDataRemake(changeListData) {
|
|
|
(leafInfo.fbgc ? leafInfo.fbgc : '') + '!_!' +
|
|
|
(leafInfo.fxgc ? leafInfo.fxgc : '') + '!_!' +
|
|
|
(leafInfo.gcl_id ? leafInfo.gcl_id : '') + '!_!' +
|
|
|
- (leafInfo.bwmx !== undefined ? leafInfo.bwmx : (leafInfo.jldy !== undefined ? leafInfo.jldy : '')) + '*;*' + (leafInfo.quantity !== null ? leafInfo.quantity : 0);
|
|
|
+ (leafInfo.bwmx !== undefined ? leafInfo.bwmx : (listinfo.leafXmjs.length > 1 && listinfo.name ? listinfo.name : (leafInfo.jldy !== undefined ? leafInfo.jldy : ''))) + '*;*' + (leafInfo.quantity !== null ? leafInfo.quantity : 0);
|
|
|
} else {
|
|
|
toastr.warning('台账清单列表已不存在'+ clinfo.code +',已更新变更清单列表');
|
|
|
// changeList.splice(index, 1);
|
|
@@ -950,7 +950,7 @@ function tableDataRemake(changeListData) {
|
|
|
(leafInfo.fbgc ? leafInfo.fbgc : '') + '!_!' +
|
|
|
(leafInfo.fxgc ? leafInfo.fxgc : '') + '!_!' +
|
|
|
(leafInfo.gcl_id ? leafInfo.gcl_id : '') + '!_!' +
|
|
|
- (leafInfo.bwmx !== undefined ? leafInfo.bwmx : (leafInfo.jldy !== undefined ? leafInfo.jldy : '')) + '*;*' + (leafInfo.quantity !== null ? leafInfo.quantity : 0);
|
|
|
+ (leafInfo.bwmx !== undefined ? leafInfo.bwmx : (listinfo.leafXmjs.length > 1 && listinfo.name ? listinfo.name : (leafInfo.jldy !== undefined ? leafInfo.jldy : ''))) + '*;*' + (leafInfo.quantity !== null ? leafInfo.quantity : 0);
|
|
|
} else {
|
|
|
toastr.warning('台账清单列表已不存在'+ clinfo.code +',已更新变更清单列表');
|
|
|
// changeList.splice(index, 1);
|
|
@@ -1059,7 +1059,7 @@ function remakeChangeSpread() {
|
|
|
gcl_id,
|
|
|
};
|
|
|
const radionInfo = changeList.find(function (info) {
|
|
|
- return info.code === code && (info.lid == lid || parseInt(info.lid) === parseInt(lindex)) && gcl_id == info.gcl_id && info.bwmx === bwmx && parseInt(info.oamount) === parseInt(oamount);
|
|
|
+ return info.code === code && (info.lid == lid || parseInt(info.lid) === parseInt(lindex)) && gcl_id == info.gcl_id && (info.bwmx === bwmx || info.bwmx === xmj_jldy) && parseInt(info.oamount) === parseInt(oamount);
|
|
|
});
|
|
|
if (radionInfo) {
|
|
|
trlist.camount = radionInfo.camount;
|