yusheng 1 år sedan
förälder
incheckning
3a2f0c87f8
1 ändrade filer med 8 tillägg och 7 borttagningar
  1. 8 7
      src/views/inspectionStatistics/qualityControlWorkOrder/index.vue

+ 8 - 7
src/views/inspectionStatistics/qualityControlWorkOrder/index.vue

@@ -478,7 +478,8 @@ export default {
     savePicture() {
       savePicture({
         id: this.currentRow.id,
-        remark: this.currentRow.remark
+        remark: this.currentRow.remark,
+        picture:this.imgs
       });
       this.currentRow.picture = this.imgs;
       this.setCode();
@@ -542,13 +543,13 @@ export default {
     },
     setCode() {
       const paramsStr = this.obj_to_str({
-        productName: encodeURIComponent(this.currentRow.productName),
-        specification: encodeURIComponent(this.currentRow.specification),
-        productCode: this.currentRow.productCode,
-        batchNo: this.currentRow.batchNo,
-        createTime: this.currentRow.qualityTime&&this.currentRow.qualityTime.split(' ')[0],
+        productName: encodeURIComponent(this.currentRow?.productName),
+        specification: encodeURIComponent(this.currentRow?.specification),
+        productCode: this.currentRow?.productCode,
+        batchNo: this.currentRow?.batchNo,
+        createTime: this.currentRow?.qualityTime?.split(' ')[0],
         designDrawingImg: encodeURIComponent(
-          getImageUrl(this.currentRow.picture.storePath)
+          getImageUrl(this.currentRow?.picture?.storePath)
         )
       });
       this.text ='https://37xu1hy03623.vicp.fun/qms/fromQRCode/designDrawing.html' +