检测任务详情回显

yangwl
shaoyong 3 months ago
parent 4ae54a2f12
commit ee54740385

@ -64,9 +64,9 @@
<el-select v-model="form.remark" placeholder="请选择不合格描述" clearable> <el-select v-model="form.remark" placeholder="请选择不合格描述" clearable>
<el-option <el-option
v-for="dict in remarkList" v-for="dict in remarkList"
:key="dict.dictLabel" :key="dict.dictValue"
:label="dict.dictLabel" :label="dict.dictLabel"
:value="dict.dictLabel" :value="dict.dictValue"
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -229,7 +229,7 @@
</template> </template>
<script> <script>
import { getCkeckProjectList,changeCheckDetailStatus,commitActualValue, import { getCkeckProjectList,changeCheckDetailStatus,getIncome,commitActualValue,
commitCheckResult,getDefectList,getWeightValue,getnoOkVals,getAutoJudge commitCheckResult,getDefectList,getWeightValue,getnoOkVals,getAutoJudge
} from "@/api/quality/income"; } from "@/api/quality/income";
import { getDefectValue, commitDefectValue, updateDefectValue} from "@/api/quality/checkTaskDefect"; import { getDefectValue, commitDefectValue, updateDefectValue} from "@/api/quality/checkTaskDefect";
@ -340,6 +340,7 @@ export default {
this.viewStatus = this.data.checkStatus; this.viewStatus = this.data.checkStatus;
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
this.queryParams.pageSize = 10; this.queryParams.pageSize = 10;
this.getCheckInfo();
this.getList(); this.getList();
this.getDefect(); this.getDefect();
}, },
@ -353,6 +354,7 @@ export default {
this.viewStatus = "1"; this.viewStatus = "1";
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
this.queryParams.pageSize = 10; this.queryParams.pageSize = 10;
this.getCheckInfo();
this.getList(); this.getList();
this.getDefect(); this.getDefect();
}, },
@ -422,6 +424,13 @@ export default {
}); });
}, },
getCheckInfo() {
getIncome(this.data.recordId).then(response => {
this.form = response.data;
});
},
// //
submitBomForm() { submitBomForm() {
//---- //----
@ -449,6 +458,7 @@ export default {
this.$modal.msgSuccess("检测完成"); this.$modal.msgSuccess("检测完成");
this.$emit('saveCheck'); this.$emit('saveCheck');
this.showFlag = false; this.showFlag = false;
this.reset();
}); });
}, },

Loading…
Cancel
Save