|
|
@@ -1319,6 +1319,68 @@
|
|
|
// return false;
|
|
|
// }
|
|
|
|
|
|
+ console.log(this.List, 'this.List1111');
|
|
|
+
|
|
|
+ if (this.clientEnvironmentId == 3) {
|
|
|
+ for (const item of this.List) {
|
|
|
+ if (item.singleReport == 0) {
|
|
|
+ if (item.currentTaskDiagram.type == 6) {
|
|
|
+ for (const it of item.sampleQuality) {
|
|
|
+ const data = it.extInfo;
|
|
|
+ if (data.batchReportInfo.length == 0) {
|
|
|
+ if (!data.reportWeight) {
|
|
|
+ this.loading.close();
|
|
|
+ return this.$message.warning('报工重量不能为空');
|
|
|
+ }
|
|
|
+ } else if (data.batchReportInfo.length != 0) {
|
|
|
+ for (const i of data.batchReportInfo) {
|
|
|
+ if (i.allFeedQuantity) {
|
|
|
+ if (!i.allReportWeight) {
|
|
|
+ this.loading.close();
|
|
|
+ return this.$message.warning('报工重量不能为空');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ for (const it of item.semiProductList) {
|
|
|
+ const data = it.extInfo;
|
|
|
+ for (const i of data.batchReportInfo) {
|
|
|
+ if (i.allFeedQuantity) {
|
|
|
+ if (!i.allReportWeight) {
|
|
|
+ this.loading.close();
|
|
|
+ return this.$message.warning('报工重量不能为空');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ for (const i of data.notBatchReportInfo) {
|
|
|
+ if (i.allFeedQuantity) {
|
|
|
+ if (!i.allReportWeight) {
|
|
|
+ this.loading.close();
|
|
|
+ return this.$message.warning('不合格品重量不能为空');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (item.currentTaskDiagram.type != 4) {
|
|
|
+ for (const it of item.semiProductList) {
|
|
|
+ const data = it.extInfo;
|
|
|
+ if (!data.reportWeight) {
|
|
|
+ this.loading.close();
|
|
|
+ return this.$message.warning('报工重量不能为空');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ console.log('123456');
|
|
|
+
|
|
|
if (this.clientEnvironmentId != 2) {
|
|
|
for (let i = 0; i < this.List.length; i++) {
|
|
|
for (let j = 0; j < this.List[i].productRecycleList.length; j++) {
|
|
|
@@ -1425,8 +1487,6 @@
|
|
|
|
|
|
console.log(this.List, 'this.List');
|
|
|
|
|
|
- // return;
|
|
|
-
|
|
|
// this.List[0].product = this.List[0].semiProductList;
|
|
|
this.loadingBtn = true;
|
|
|
jobSave(this.List)
|