Przeglądaj źródła

中间计量,计量单元模式,编辑凭证号、草图保存失败

MaiXinRong 5 lat temu
rodzic
commit
b64b1b9c6e
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      app/public/js/stage.js

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

@@ -2282,7 +2282,7 @@ $(document).ready(() => {
                         ctx.drawImage(img, pos.left, pos.top, img.width, img.height);
                     }
                     // 生成上传数据
-                    const updateData = {updateType: 'update', lid: data.lid};
+                    const updateData = {updateType: 'update', lid: data.lid, pid: data.pid};
                     if (data.uuid) {
                         updateData.uuid = data.uuid;
                     } else {
@@ -2299,7 +2299,7 @@ $(document).ready(() => {
                         $('#edit-img').modal('hide');
                     });
                 } else if (data.calc_img) {
-                    postData(window.location.pathname + '/detail/merge-img', {updateType: 'clear', lid: data.lid, uuid: data.uuid}, function (result) {
+                    postData(window.location.pathname + '/detail/merge-img', {updateType: 'clear', lid: data.lid, pid: data.pid, uuid: data.uuid}, function (result) {
                         _.assign(data, result);
                         self.reLoadDetailData();
                         $('#edit-img').modal('hide');