yusheng il y a 1 an
Parent
commit
d25db1f5bb
1 fichiers modifiés avec 8 ajouts et 2 suppressions
  1. 8 2
      src/views/oneClickWorkReporting/index.vue

+ 8 - 2
src/views/oneClickWorkReporting/index.vue

@@ -1866,8 +1866,14 @@ export default {
         type: 'warning'
       })
         .then(async () => {
-          const res = await onekeyStop({ id: row.id });
-          console.log(res);
+          await onekeyScrap({
+            tid: row.id,
+            cuttingWork: row.productName.includes('板材') ? '1' : '2'
+          });
+        // 编组进窑成功后重新刷新底部表格数据,并将编组的小车数据重新赋值
+        let ids = this.cuttingTaskTableData.map((item) => item.id);
+          // 调新接口刷新页面下面表格数据
+          await this._getCuttingTaskData(ids);
           this.getOnekeyWorkReportByPageFun();
         })
         .catch(() => {});