MaiXinRong 5 سال پیش
والد
کامیت
13bbf070f3
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 2 2
      app/public/js/stage.js
  2. 2 2
      app/public/js/stage_im.js

+ 2 - 2
app/public/js/stage.js

@@ -1719,7 +1719,7 @@ $(document).ready(() => {
                         }
                         const data = SpreadJsObj.getSelectObject(info.sheet);
                         if (data) {
-                            const updateData = {lid: data.lid};
+                            const updateData = {lid: data.lid, pid: data.pid};
                             if (data.uuid) {
                                 updateData.uuid = data.uuid;
                             } else {
@@ -1758,7 +1758,7 @@ $(document).ready(() => {
                             const curRow = info.cellRange.row + iRow;
                             const data = info.sheet.zh_data[curRow];
                             if (data) {
-                                const updateData = {lid: data.lid};
+                                const updateData = {lid: data.lid, pid: data.pid};
                                 if (data.uuid) {
                                     updateData.uuid = data.uuid;
                                 } else {

+ 2 - 2
app/public/js/stage_im.js

@@ -403,7 +403,7 @@ const stageIm = (function () {
         if (node.gather_tp) {
             const peg = getPegNode(node);
             const im = {
-                lid: node.id, code: node.code,
+                lid: node.id, pid: '', code: node.code,
                 jl: node.gather_tp, contract_jl: node.contract_tp, qc_jl: node.qc_tp,
                 im_code: getNewImCode(),
                 peg: peg ? getPegStr(peg.name) : '', drawing_code: getDrawingCode(node),
@@ -506,7 +506,7 @@ const stageIm = (function () {
             if (!im) {
                 const peg = getPegNode(node);
                 im = {
-                    lid: node.id, code: p.b_code, name: p.name, unit: p.unit, unit_price: p.unit_price,
+                    lid: node.id, pid: '', code: p.b_code, name: p.name, unit: p.unit, unit_price: p.unit_price,
                     jl: 0, contract_jl: 0, qc_jl: 0,
                     im_code: getNewImCode(),
                     peg: peg ? getPegStr(peg.name) : '', drawing_code: getDrawingCode(node),