diff --git a/client/src/App.vue b/client/src/App.vue index 816e816..63ad2ed 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -7,6 +7,14 @@ + .el-table--medium td,   .el-table--medium th { + padding: 5px 0; + } + .el-form-item { + margin-bottom: 10px; +} + + diff --git a/client/src/views/certapp/certapphandle.vue b/client/src/views/certapp/certapphandle.vue index 120d14c..2bf1bc2 100644 --- a/client/src/views/certapp/certapphandle.vue +++ b/client/src/views/certapp/certapphandle.vue @@ -31,10 +31,9 @@ - 完成受理 + + + @@ -69,7 +68,8 @@ + diff --git a/client/src/views/certapp/dtxform .vue b/client/src/views/certapp/dtxform .vue new file mode 100644 index 0000000..f39fcb3 --- /dev/null +++ b/client/src/views/certapp/dtxform .vue @@ -0,0 +1,430 @@ + + + diff --git a/client/src/views/certapp/productunit.vue b/client/src/views/certapp/productunit.vue index 4014b09..12f2a3b 100644 --- a/client/src/views/certapp/productunit.vue +++ b/client/src/views/certapp/productunit.vue @@ -224,8 +224,11 @@ export default { getList() { this.listLoading = true; getUnitList(this.listQuery).then((response) => { + if (response.data) { + this.tableData = response.data; + } this.listLoading = false; }); diff --git a/client/src/views/certapp/qmsform.vue b/client/src/views/certapp/qmsform.vue index d02478e..96166fb 100644 --- a/client/src/views/certapp/qmsform.vue +++ b/client/src/views/certapp/qmsform.vue @@ -328,12 +328,12 @@ export default { }, created() { - if(this.action!='create'){ - this.formData.id = this.certapp - this.getCertapp_() + if(this.certapp!=null){ +this.formData = this.certapp + } this.getTypeOptions(); - this.getProfOptions() + this.getProfOptions(); }, mounted() {}, methods: { @@ -347,16 +347,12 @@ export default { }, getProfOptions() { - getDictList({ type__code: "industry_classification" }).then(response => { + getDictList({ type__code: "cnas_scope" }).then(response => { this.professionaloptions = genTree(response.data); }); }, - getCertapp_(){ - getCertapp(this.formData.id).then(res=>{ - this.formData = res.data - }) - }, + handelConfirm() { this.$refs["elForm"].validate((valid) => { if (!valid) return; @@ -368,7 +364,7 @@ export default { }else{ createCertapp(this.formData).then((res) => { this.$message.success('成功') - this.$emit("handleCommit", res.data); + this.$router.replace({name:"Certappupdate", params:{id:res.data.id}}) }); } diff --git a/client/src/views/certapp/review.vue b/client/src/views/certapp/review.vue new file mode 100644 index 0000000..847e9b8 --- /dev/null +++ b/client/src/views/certapp/review.vue @@ -0,0 +1,153 @@ + + + diff --git a/client/src/views/enterprise/enterprisecreate.vue b/client/src/views/enterprise/enterprisecreate.vue index cbcae10..eb3bf33 100644 --- a/client/src/views/enterprise/enterprisecreate.vue +++ b/client/src/views/enterprise/enterprisecreate.vue @@ -494,7 +494,7 @@ }, getECtype() { getDictList({ type__code: "economy_type" }).then(response => { - this. economy_typeOptions = genTree(response.data); + this.economy_typeOptions = genTree(response.data); }); }, diff --git a/client/src/views/evaluation/evaluationitem.vue b/client/src/views/evaluation/evaluationitem.vue index 7512fa8..1525ab4 100644 --- a/client/src/views/evaluation/evaluationitem.vue +++ b/client/src/views/evaluation/evaluationitem.vue @@ -4,53 +4,50 @@
新增
- + - + - - + + - + + - - - + + + - + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - 保存 - 重置 - - - - + + + + + + 保存 + 重置 + + + +
@@ -79,7 +79,7 @@ export default { id: null, name:undefined, cert_field: undefined, - pv_scope: undefined, + pv_scope: undefined, pv_class: undefined, ccc_list: undefined @@ -105,7 +105,44 @@ export default { this.getCerttype(); }, mounted() {}, - methods: { + methods: { + typeChange(node,id){ + this.cert_field_code = node.code + this.changeRules(node.code) + }, + changeRules(val) { + if (val == "PV") { + this.rules.pv_scope = [ + { + required: true, + message: "请选择", + trigger: "change" + } + ]; + this.rules.pv_class = [ + { + required: true, + message: "请选择", + trigger: "change" + } + ]; + this.rules.ccc_list = []; + } else if (val == "CCC") { + this.rules.ccc_list = [ + { + required: true, + message: "请选择", + trigger: "change" + } + ]; + this.rules.pv_class = []; + this.rules.pv_scope = []; + } else { + this.rules.pv_class = []; + this.rules.pv_scope = []; + this.rules.ccc_list = []; + } + }, getCerttype() { getDictList({ type__code: "cert_field" }).then(response => { if (response.data) { diff --git a/client/src/views/evaluation/evaluationitemupdate.vue b/client/src/views/evaluation/evaluationitemupdate.vue index dc0c204..1b26c1a 100644 --- a/client/src/views/evaluation/evaluationitemupdate.vue +++ b/client/src/views/evaluation/evaluationitemupdate.vue @@ -6,18 +6,37 @@ - - - + + + + + + + + + + + + + - - - - + + @@ -41,7 +60,9 @@