|
@@ -650,6 +650,7 @@ function tableDataRemake(changeListData) {
|
|
|
const leafInfo = listinfo.leafXmjs.find(function (item) {
|
|
|
return (item.bwmx === undefined || item.bwmx === clinfo[2]) && (item.quantity !== null ? item.quantity === parseFloat(clinfo[5]) : 0 === parseFloat(clinfo[5]));
|
|
|
});
|
|
|
+ console.log(leafInfo);
|
|
|
if (leafInfo) {
|
|
|
pushbwmx = leafInfo.code + '_' + (leafInfo.bwmx !== undefined ? leafInfo.bwmx : '') + ';' + (leafInfo.quantity !== null ? leafInfo.quantity : 0);
|
|
|
} else {
|
|
@@ -673,10 +674,10 @@ function tableDataRemake(changeListData) {
|
|
|
let pushbwmx = '0;0';
|
|
|
if (listinfo.leafXmjs !== undefined) {
|
|
|
const leafInfo = listinfo.leafXmjs.find(function (item) {
|
|
|
- return (item.bwmx === undefined || item.bwmx === clinfo[2]) && (item.quantity !== null ? item.quantity === parseFloat(clinfo[5]) : 0 === parseFloat(clinfo[5]));
|
|
|
+ return (item.bwmx === undefined || item.bwmx === clinfo[2] || item.jldy === clinfo[2]) && (item.quantity !== null ? item.quantity === parseFloat(clinfo[5]) : 0 === parseFloat(clinfo[5]));
|
|
|
});
|
|
|
if (leafInfo) {
|
|
|
- pushbwmx = leafInfo.code + '_' + (leafInfo.bwmx !== undefined ? leafInfo.bwmx : '') + ';' + (leafInfo.quantity !== null ? leafInfo.quantity : 0);
|
|
|
+ pushbwmx = leafInfo.code + '_' + (leafInfo.bwmx !== undefined ? leafInfo.bwmx : (leafInfo.jldy ? leafInfo.jldy : '')) + ';' + (leafInfo.quantity !== null ? leafInfo.quantity : 0);
|
|
|
} else {
|
|
|
toastr.warning('台账清单列表已不存在'+ clinfo[0] +',已更新变更清单列表');
|
|
|
changeList.splice(index, 1);
|