|
|
@@ -772,7 +772,7 @@
|
|
|
},
|
|
|
|
|
|
async getTeamList(id) {
|
|
|
- if(!id) return;
|
|
|
+ if (!id) return;
|
|
|
const ids = id.split(',');
|
|
|
this.teamList = [];
|
|
|
this.teamUserList = [];
|
|
|
@@ -1514,23 +1514,6 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // for (let i = 0; i < this.List.length; i++) {
|
|
|
- // if (
|
|
|
- // this.List[i].packInfo &&
|
|
|
- // Object.keys(this.List[i].packInfo).length === 0
|
|
|
- // ) {
|
|
|
- // this.loading.close();
|
|
|
- // return this.$message.warning('请到主数据配置包装规格');
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
- // if(this.taskObj.type !=6){
|
|
|
- // if(this.reportNeedFeed==1&&!(this.List[0].semiProductList.length>0||this.List[0].pickOutInList.length>0)){
|
|
|
- // this.loading.close();
|
|
|
- // return this.$message.warning('请先投料再报工');
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
let bol2;
|
|
|
bol2 = this.List.every((e) => {
|
|
|
return (
|
|
|
@@ -1539,14 +1522,6 @@
|
|
|
);
|
|
|
});
|
|
|
|
|
|
- // if (!bol2) {
|
|
|
- // this.$message.warning('请输入合格品数量');
|
|
|
- // this.loading.close();
|
|
|
- // return false;
|
|
|
- // }
|
|
|
-
|
|
|
- // 预制体
|
|
|
-
|
|
|
let wId;
|
|
|
let bol = true;
|
|
|
let _i;
|
|
|
@@ -1589,13 +1564,6 @@
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- // if (!bol) {
|
|
|
- // this.$message.warning(`请完善工单${wId}第${_i}处置方式`);
|
|
|
- // this.loading.close();
|
|
|
-
|
|
|
- // return false;
|
|
|
- // }
|
|
|
-
|
|
|
if (this.clientEnvironmentId == 3) {
|
|
|
for (const item of this.List) {
|
|
|
if (item.singleReport == 0) {
|
|
|
@@ -1666,16 +1634,6 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- // let succ = this.List.some((L) => {
|
|
|
- // return L.productRecycleList.length > 0;
|
|
|
- // });
|
|
|
- // if (succ) {
|
|
|
- // const isRecycle = await this.checkRecycle();
|
|
|
- // if (!isRecycle) {
|
|
|
- // return false;
|
|
|
- // }
|
|
|
- // }
|
|
|
}
|
|
|
|
|
|
if (this.taskObj.type == 4) {
|
|
|
@@ -1688,10 +1646,6 @@
|
|
|
} else {
|
|
|
this.checkPack();
|
|
|
}
|
|
|
-
|
|
|
- // if (!isPack) {
|
|
|
- // return false
|
|
|
- // }
|
|
|
}
|
|
|
|
|
|
if (this.taskObj.type == 1) {
|
|
|
@@ -1763,32 +1717,6 @@
|
|
|
currentTaskDiagram: item.currentTaskDiagram,
|
|
|
workOrderId: item.workOrderId
|
|
|
});
|
|
|
- // await checkReportNumber({
|
|
|
- // currentTaskDiagram: item.currentTaskDiagram,
|
|
|
- // workOrderId: item.workOrderId
|
|
|
- // }).then((res) => {
|
|
|
- // const totalNum = Number(item.formingNum);
|
|
|
- // const reportNum = this.add(
|
|
|
- // item.workReportInfo.notFormedNum,
|
|
|
- // item.workReportInfo.formedNum
|
|
|
- // );
|
|
|
- // const totalReportNum = this.add(reportNum, Number(res));
|
|
|
- // if (totalReportNum > totalNum) {
|
|
|
- // this.$confirm('报工数量大于生产数量, 是否继续报工?', '提示', {
|
|
|
- // confirmButtonText: '确定',
|
|
|
- // cancelButtonText: '取消',
|
|
|
- // type: 'warning'
|
|
|
- // })
|
|
|
- // .then(() => {
|
|
|
- // this.jobBookReport();
|
|
|
- // })
|
|
|
- // .catch(() => {
|
|
|
- // this.loading.close();
|
|
|
- // });
|
|
|
- // } else {
|
|
|
- // this.jobBookReport();
|
|
|
- // }
|
|
|
- // });
|
|
|
}
|
|
|
|
|
|
await checkReportNumber(newList).then((res) => {
|
|
|
@@ -1796,28 +1724,6 @@
|
|
|
this.checkJobBook(res);
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
- // this.loadingBtn = true;
|
|
|
- // jobSave(this.List)
|
|
|
- // .then((res) => {
|
|
|
- // this.loadingBtn = false;
|
|
|
- // this.loading.close();
|
|
|
- // this.$message.success('报工成功');
|
|
|
- // this.checked = false;
|
|
|
- // this.executorIdList = [];
|
|
|
- // this.teamId = '';
|
|
|
- // this.getList(this.idsList);
|
|
|
- // this.$emit('jobSuccess', 'Success');
|
|
|
- // })
|
|
|
- // .catch(() => {
|
|
|
- // this.loadingBtn = false;
|
|
|
- // this.loading.close();
|
|
|
- // });
|
|
|
- // .finally(() => {
|
|
|
- // setTimeout(function () {
|
|
|
- // this.loading.close();
|
|
|
- // }, 3000);
|
|
|
- // });
|
|
|
},
|
|
|
|
|
|
checkJobBook(list) {
|
|
|
@@ -1922,8 +1828,6 @@
|
|
|
},
|
|
|
|
|
|
checkRecycle() {
|
|
|
- // this.loading.close();
|
|
|
-
|
|
|
return new Promise((resolve) => {
|
|
|
this.$confirm('是否跳过副产品回收处置!', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
@@ -1971,7 +1875,6 @@
|
|
|
f['productRecycleList'] = o.extInfo.productRecycleList;
|
|
|
f['semiProductList'] = o.extInfo.semiProductList;
|
|
|
f['modelList'] = o.extInfo.modelList;
|
|
|
- // this.$set(this.List[index].workReportInfo,'executorTime',timestampToDateTime(o.extInfo.workReportInfo.executorTime))
|
|
|
this.$forceUpdate();
|
|
|
}
|
|
|
});
|