|
@@ -527,10 +527,14 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 报工
|
|
// 报工
|
|
|
handleReporting(index, row) {
|
|
handleReporting(index, row) {
|
|
|
|
|
+ if (this.form.qualityMode == 2 && !this.form.qualityResults) {
|
|
|
|
|
+ this.$refs.baseInfoRefs.toggleExpand2();
|
|
|
|
|
+ this.$message.error('请选择质检结果');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.$refs.baseInfoRefs.$refs.form1.validate((valid) => {
|
|
this.$refs.baseInfoRefs.$refs.form1.validate((valid) => {
|
|
|
- if (!this.form.qualityResults) return this.$message.error('请选择质检结果')
|
|
|
|
|
if (!valid) return false;
|
|
if (!valid) return false;
|
|
|
-
|
|
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
|
|
|
|
|
if (this.qualityType == 2 && this.isReportProcessProduce) {
|
|
if (this.qualityType == 2 && this.isReportProcessProduce) {
|
|
@@ -539,6 +543,7 @@ export default {
|
|
|
|
|
|
|
|
if (disposalStatus == null) {
|
|
if (disposalStatus == null) {
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
|
|
+ this.$refs.tabsRef.tabsChange('2')
|
|
|
this.$message.error('请完成以下样品处置!')
|
|
this.$message.error('请完成以下样品处置!')
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -550,6 +555,7 @@ export default {
|
|
|
|
|
|
|
|
if (qualityStatus == '2') {
|
|
if (qualityStatus == '2') {
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
|
|
+ this.$refs.tabsRef.tabsChange('2')
|
|
|
this.$message.error('请完成以下样品质检!');
|
|
this.$message.error('请完成以下样品质检!');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -558,6 +564,10 @@ export default {
|
|
|
this.form.qualityTimeEnd = new Date(this.getNowTime())
|
|
this.form.qualityTimeEnd = new Date(this.getNowTime())
|
|
|
this.form.qualityTimeStart = new Date(this.qualityTimeStart)
|
|
this.form.qualityTimeStart = new Date(this.qualityTimeStart)
|
|
|
|
|
|
|
|
|
|
+ if (this.form.qualityMode == 1) {
|
|
|
|
|
+ this.form.qualityResults = ''
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
let params = {
|
|
let params = {
|
|
|
...this.form,
|
|
...this.form,
|
|
|
sampleList: this.sampleList,
|
|
sampleList: this.sampleList,
|