|
@@ -1866,8 +1866,14 @@ export default {
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
})
|
|
})
|
|
|
.then(async () => {
|
|
.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();
|
|
this.getOnekeyWorkReportByPageFun();
|
|
|
})
|
|
})
|
|
|
.catch(() => {});
|
|
.catch(() => {});
|