|
@@ -332,21 +332,24 @@
|
|
|
if (!this.workReportCategoryList?.length) {
|
|
if (!this.workReportCategoryList?.length) {
|
|
|
return this.$message.error('请添加物料');
|
|
return this.$message.error('请添加物料');
|
|
|
}
|
|
}
|
|
|
- this.categoryMsg = Object.assign(this.categoryMsg, {
|
|
|
|
|
- brandNum: this.infoData.brandNo,
|
|
|
|
|
- sourceCategoryId: this.infoData.categoryId,
|
|
|
|
|
- name: this.infoData.productName,
|
|
|
|
|
- code: this.infoData.productCode
|
|
|
|
|
- });
|
|
|
|
|
- fun({
|
|
|
|
|
- checkState: 1,
|
|
|
|
|
- workReport: this.workReport,
|
|
|
|
|
- workReportCategoryList: [
|
|
|
|
|
- ...this.workReportCategoryList,
|
|
|
|
|
- this.categoryMsg
|
|
|
|
|
- ]
|
|
|
|
|
- }).then((res) => {
|
|
|
|
|
- this.getReportCount();
|
|
|
|
|
|
|
+ this.$confirm('是否确定要报工?', '提示').then(() => {
|
|
|
|
|
+ this.categoryMsg = Object.assign(this.categoryMsg, {
|
|
|
|
|
+ brandNum: this.infoData.brandNo,
|
|
|
|
|
+ sourceCategoryId: this.infoData.categoryId,
|
|
|
|
|
+ name: this.infoData.productName,
|
|
|
|
|
+ code: this.infoData.productCode
|
|
|
|
|
+ });
|
|
|
|
|
+ fun({
|
|
|
|
|
+ checkState: 1,
|
|
|
|
|
+ workReport: this.workReport,
|
|
|
|
|
+ workReportCategoryList: [
|
|
|
|
|
+ ...this.workReportCategoryList,
|
|
|
|
|
+ this.categoryMsg
|
|
|
|
|
+ ]
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ this.$message.success('报工成功!');
|
|
|
|
|
+ this.getReportCount();
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|