From bc16d211c5a2b31f0e3127a102748806151eaecb Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期四, 14 十二月 2023 16:23:19 +0800 Subject: [PATCH] modified: src/const/crud/customerOrder/customerOrderForm.js modified: src/views/plan/operationtask/operationtask-form.vue modified: src/views/product/workbench/operation-task-pane.vue modified: src/views/product/workbench/taskinfo-pane.vue modified: src/views/product/workbench/workReportCard.vue modified: src/views/quality/finishedProductInspection/finishedProduct-form.vue modified: src/views/quality/newReport/ReportForm.vue modified: src/views/quality/processInspect/processInspect-form.vue modified: src/views/quality/rawMaterial/rawMaterial-form.vue modified: src/views/quality/teststandard/standard-form.vue modified: src/views/technology/completeproductstructure/completeproductstructure-form.vue modified: src/views/technology/document/document-form.vue modified: src/views/technology/operation/operation-form.vue modified: src/views/technology/routing/routing-form.vue modified: src/views/warehouse/changestock/index.vue --- src/views/quality/teststandard/standard-form.vue | 35 +++++++++++++++++++++++------------ 1 files changed, 23 insertions(+), 12 deletions(-) diff --git a/src/views/quality/teststandard/standard-form.vue b/src/views/quality/teststandard/standard-form.vue index 6e9dfa2..4cc5f4c 100644 --- a/src/views/quality/teststandard/standard-form.vue +++ b/src/views/quality/teststandard/standard-form.vue @@ -155,6 +155,23 @@ ZttMonacoEditor, operationDialog }, + watch:{ + visible(newVal){ + if(!newVal){ + this.dataForm = { + id: 0, + standardName: '', + standardNo: '', + remark: '', + judgeFormula: '', + inspectionType: null, + operationId: null, + operationNo: null, + operationName: null, + } + } + } + }, created() { this.funcs = funcForStandard() this.constants = constantForStandard() @@ -194,20 +211,8 @@ this.visible = true this.$nextTick(() => { this.$refs.dataForm.resetFields() - this.dataForm = { - id: 0, - standardName: '', - standardNo: '', - remark: '', - judgeFormula: '', - inspectionType: null, - operationId: null, - operationNo: null, - operationName: null, - } if (this.dataForm.id) { getTestStandard(this.dataForm.id).then((response) => { - console.log(response.data.data) this.dataForm = response.data.data // this.$refs.templateJudgmentCondition.setVal( // this.dataForm.judgeFormula == null @@ -257,6 +262,9 @@ this.visible = false this.isSubmit = false this.$emit('refreshDataList') + }).catch(error=>{ + console.error(error); + this.isSubmit = false }) } else { addTestStandard(this.dataForm).then((data) => { @@ -264,6 +272,9 @@ this.visible = false this.isSubmit = false this.$emit('refreshDataList') + }).catch(error=>{ + console.error(error); + this.isSubmit = false }) } } else { -- Gitblit v1.9.3