|
@@ -528,35 +528,30 @@ export default {
|
|
|
// 报工
|
|
// 报工
|
|
|
handleReporting(index, row) {
|
|
handleReporting(index, row) {
|
|
|
this.$refs.baseInfoRefs.$refs.form1.validate((valid) => {
|
|
this.$refs.baseInfoRefs.$refs.form1.validate((valid) => {
|
|
|
- if (!valid) {
|
|
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (!this.form.qualityResults) return this.$message.error('请选择质检结果')
|
|
|
|
|
+ if (!valid) return false;
|
|
|
|
|
+
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
|
|
|
|
|
if (this.qualityType == 2 && this.isReportProcessProduce) {
|
|
if (this.qualityType == 2 && this.isReportProcessProduce) {
|
|
|
for (let i = 0; i < this.sampleList.length; i++) {
|
|
for (let i = 0; i < this.sampleList.length; i++) {
|
|
|
-
|
|
|
|
|
const disposalStatus = this.sampleList[i].disposalStatus;
|
|
const disposalStatus = this.sampleList[i].disposalStatus;
|
|
|
- console.log(disposalStatus, 'disposalStatus')
|
|
|
|
|
|
|
|
|
|
if (disposalStatus == null) {
|
|
if (disposalStatus == null) {
|
|
|
- this.$message.error('请完成以下样品处置!')
|
|
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
- return
|
|
|
|
|
|
|
+ this.$message.error('请完成以下样品处置!')
|
|
|
|
|
+ return;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
for (let i = 0; i < this.sampleList.length; i++) {
|
|
for (let i = 0; i < this.sampleList.length; i++) {
|
|
|
-
|
|
|
|
|
const qualityStatus = this.sampleList[i].qualityStatus;
|
|
const qualityStatus = this.sampleList[i].qualityStatus;
|
|
|
|
|
|
|
|
if (qualityStatus == '2') {
|
|
if (qualityStatus == '2') {
|
|
|
- this.$message.error('请完成以下样品质检!')
|
|
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
- return
|
|
|
|
|
|
|
+ this.$message.error('请完成以下样品质检!');
|
|
|
|
|
+ return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|