diff --git a/src/views/bjd/dj_input.vue b/src/views/bjd/dj_input.vue index f6ab2e9..887928d 100644 --- a/src/views/bjd/dj_input.vue +++ b/src/views/bjd/dj_input.vue @@ -350,7 +350,7 @@ { required: true, message: - '报检人电话不能为空,该电话用于短信通知企业网上交费。', + '报检人电话不能为空。', trigger: 'change', }, ]" @@ -1627,9 +1627,6 @@ export default { this.templateName = '安全阀报检导入模板.xlsx' } // 区划跟科室加载完成后读取关联数据 - if (this.formState === 'create' || this.formState === 'newBuild') { - this.getBjdDepartment() - } this.getJylb() this.getArea() this.getDepts() @@ -1869,30 +1866,23 @@ export default { this.jylbs = data }) }, + /** + * 查询科室 + */ getDepts() { - // 查询科室 this.api({ url: '/department/all', method: 'get', params: { - shebeizhongleidaima: this.bjd.shebeizhongleidaima + shebeizhongleidaima: this.bjd.shebeizhongleidaima, + quhuadaima: this.bjd.quhuadaima, + jianyanleibie: 'JJ' } - }).then((data) => { + }).then(data => { this.depts = data - }) - }, - getBjdDepartment() { - this.bjdDepartment.shebeizhonglei = this.bjd.shebeizhongleidaima - this.bjdDepartment.jianyanleibie = this.bjd.jianyanleibie - this.bjdDepartment.quhumingcheng = this.bjd.quhuadaima - this.apibjd({ - url: '/bjdDepartment/getBjdDepartment', - method: 'get', - params: this.bjdDepartment - }).then((data) => { - if (data != null) { - this.bjdDepartment = data - this.$set(this.bjd, 'departmentId', this.bjdDepartment.departmentId) + if (this.formState === 'create') { + this.bjdDepartment = this.depts[0] + this.$set(this.bjd, 'departmentId', this.bjdDepartment.id) } }) }, diff --git a/src/views/bjd/jj_input.vue b/src/views/bjd/jj_input.vue index e6323d1..324a373 100644 --- a/src/views/bjd/jj_input.vue +++ b/src/views/bjd/jj_input.vue @@ -10,24 +10,6 @@ 更新/核价 - 审核通过 @@ -46,9 +28,6 @@