|
@@ -543,14 +543,12 @@ function tableDataRemake(changeListData) {
|
|
for (const cl of changeList) {
|
|
for (const cl of changeList) {
|
|
const clinfo = cl.split(';');
|
|
const clinfo = cl.split(';');
|
|
const listinfo = changeListData[clinfo[8] - 1];
|
|
const listinfo = changeListData[clinfo[8] - 1];
|
|
- console.log(listinfo);
|
|
|
|
$('#table-list-select tr[data-index="'+ clinfo[8] +'"]').addClass('table-success');
|
|
$('#table-list-select tr[data-index="'+ clinfo[8] +'"]').addClass('table-success');
|
|
let pushbwmx = '0;0';
|
|
let pushbwmx = '0;0';
|
|
if (listinfo.leafXmjs !== undefined) {
|
|
if (listinfo.leafXmjs !== undefined) {
|
|
const leafInfo = listinfo.leafXmjs.find(function (item) {
|
|
const leafInfo = listinfo.leafXmjs.find(function (item) {
|
|
return (item.bwmx === undefined || item.bwmx === clinfo[2]) && item.quantity === parseFloat(clinfo[5]);
|
|
return (item.bwmx === undefined || item.bwmx === clinfo[2]) && item.quantity === parseFloat(clinfo[5]);
|
|
});
|
|
});
|
|
- console.log(leafInfo);
|
|
|
|
pushbwmx = leafInfo.code + '_' + (leafInfo.bwmx !== undefined ? leafInfo.bwmx : '') + ';' + leafInfo.quantity;
|
|
pushbwmx = leafInfo.code + '_' + (leafInfo.bwmx !== undefined ? leafInfo.bwmx : '') + ';' + leafInfo.quantity;
|
|
} else {
|
|
} else {
|
|
pushbwmx = '0;' + (listinfo.quantity !== null ? listinfo.quantity : 0);
|
|
pushbwmx = '0;' + (listinfo.quantity !== null ? listinfo.quantity : 0);
|