Selaa lähdekoodia

前端:选择部门时检查其下是否配置审批人

baichengfei 5 vuotta sitten
vanhempi
commit
254e4f8bf9

+ 0 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/basisedit.vue

@@ -987,7 +987,6 @@ export default {
         })
     },
     orgunitChange (val) {
-      console.log('近来个啥', val)
       if (!val) {
         return false
       }

+ 3 - 3
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplieraudit/_opera/basisedit.vue

@@ -659,7 +659,7 @@
       }
       this.getDictOptions()
       this.initDatas()
-      // this.changeOrgUnit(this.selectDept)
+      this.changeOrgUnit(this.selectDept)
       // this.getorgtreelist()
       // this.getorgtreelistbydeptid()
     },
@@ -790,8 +790,8 @@
           })
       },
       changeOrgUnit (val) {
-        let auditstepcode = 'PROF_RECE'
-        api.getAuditerByDept(val, auditstepcode, this.$axios).then(res => {
+        let auditStepCode = 'PROF_RECE'
+        api.getAuditerByDept(val, auditStepCode, this.$axios).then(res => {
           this.userOptions = res.data.item
         }).catch(err => {
           console.error(err)

+ 1 - 3
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplieraudit/_opera/goodsedit.vue

@@ -594,7 +594,7 @@
       this.getDictOptions()
       this.initDatas()
       // this.orgtreeChange(this.majorDept)
-      // this.changeOrgUnit(this.selectDept)
+      this.changeOrgUnit(this.selectDept)
       // this.getorgtreelist()
       // this.getorgtreelistbydeptid()
     },
@@ -958,12 +958,10 @@
         })
       },
       getFirAuditerByDept () {
-        console.log(this.authUser.Profile)
         let deptid = this.authUser.Profile.DepartmentId
         this.userOptions = []
         let auditstepcode = 'FIRST_TRIAL' // 初审人
         api.getFirAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
-          console.log(res)
           this.firOptions = res.data.item
         }).catch(err => {
           console.error(err)

+ 9 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplieraudit/_opera/techedit.vue

@@ -654,12 +654,19 @@
         }
       },
       changeOrgUnit (val) {
-        let auditstepcode = 'PROF_RECE'
+        let auditStepCode = 'PROF_RECE'
         if (!val) {
           return
         }
-        api.getAuditerByDept(val, auditstepcode, this.$axios).then(res => {
+        api.getAuditerByDept(val, auditStepCode, this.$axios).then(res => {
           this.userOptions = res.data.item
+          if (this.userOptions == null || this.userOptions.length === 0) {
+            this.$message({
+              type: 'warning',
+              message: '该专业科室未配置接收人!'
+            })
+            return false
+          }
         }).catch(err => {
           console.error(err)
         })