|
@@ -430,7 +430,7 @@ $(document).ready(() => {
|
|
|
}
|
|
|
// 判断需要应用调差工料的清单明细
|
|
|
const needAddList = [];
|
|
|
- const gather_qty = [];
|
|
|
+ // const gather_qty = [];
|
|
|
for (const xmj of ledgerSelect.leafXmjs) {
|
|
|
if (xmj.mx_id !== undefined) {
|
|
|
const notx = findNotJoinLeafXmj(xmj);
|
|
@@ -439,8 +439,8 @@ $(document).ready(() => {
|
|
|
return xmj.mx_id === item.mx_id && select.mb_id === item.mb_id;
|
|
|
});
|
|
|
if (ml === undefined) {
|
|
|
- needAddList.push(xmj.mx_id);
|
|
|
- gather_qty.push(xmj.gather_qty);
|
|
|
+ needAddList.push(xmj);
|
|
|
+ // gather_qty.push(xmj.gather_qty);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -450,7 +450,7 @@ $(document).ready(() => {
|
|
|
return false;
|
|
|
}
|
|
|
// 更新至服务器
|
|
|
- postData(window.location.pathname + '/save', { type:'useOther', postData: { mx_id: needAddList, select: select, gather_qty: gather_qty } }, function (result) {
|
|
|
+ postData(window.location.pathname + '/save', { type:'useOther', postData: { addXmj: needAddList, select: select } }, function (result) {
|
|
|
materialListData = result;
|
|
|
toastr.success('成功添加了' + needAddList.length + '条调差工料到其他清单明细中');
|
|
|
const index = gclGatherData.indexOf(ledgerSelect);
|