Procházet zdrojové kódy

增项分办专业处室下拉框

Liuqi před 6 roky
rodič
revize
cb1928dbd1

+ 0 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/addtionaudit/_opera/basisdataopera.vue

@@ -652,7 +652,6 @@ import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
       },
       // 审核通过
       makeSure () {
-        console.log(this.auditer)
         if (this.shenheForm.SuccessStatus === 1) {
           if ((!this.auditer || this.auditer === 0) && (this.formData.Status == '0' || this.formData.Status == '10' || this.formData.Status == '3')) {
             this.$message({

+ 13 - 0
src/dashoo.cn/frontend_web/src/pages/oilsupplier/addtionaudit/_opera/goodsdataopera.vue

@@ -294,6 +294,9 @@
         secorgtreelist: [],
         majorDept: [100000000, 100000001, 100000071], // 专业可是
         auditbusList: [], // 待审核业务
+        allorgunitOptions: [],
+        userOptions: [],
+        selectDept: 100000071,
         dialogMakeSure: false,
         dialogAllocation: false,
         dialogMakeSure2: false,
@@ -404,6 +407,7 @@
       this.getorgtreelist()
       this.getorgtreelistbydeptid()
       this.getSupplierList() // 获取供应方公司列表
+      this.changeOrgUnit(this.selectDept)
     },
     methods: {
       // 获取需要修改的增项信息
@@ -558,6 +562,7 @@
         suppapi.getDictListByStatus(params, this.$axios).then(res => {
           this.dictData = res.data.items
           this.orgtreelist = window.toolfun_gettreejson(res.data.items['ProOrgList'], 'id', 'pId', 'id,name')
+          this.allorgunitOptions = res.data.items['Allunitorglist']
           // this.auditerOptions = res.data.items['Auditer']
           // this.organizeOption = res.data.items['Organizes']
         }).catch(err => {
@@ -638,6 +643,14 @@
           console.error(err)
         })
       },
+      changeOrgUnit (val) {
+        let auditstepcode = 'PROF_RECE'
+        suppapi.getAuditerByDept(val, auditstepcode, this.$axios).then(res => {
+          this.userOptions = res.data.item
+        }).catch(err => {
+          console.error(err)
+        })
+      },
       // 审核通过
       makeSure () {
         if (this.shenheForm.SuccessStatus === 1) {

+ 13 - 0
src/dashoo.cn/frontend_web/src/pages/oilsupplier/addtionaudit/_opera/techdataopera.vue

@@ -291,6 +291,9 @@
         secorgtreelist: [],
         majorDept: [],
         auditbusList: [], // 待审核业务
+        allorgunitOptions: [],
+        userOptions: [],
+        selectDept: 100000071,
         dialogMakeSure: false,
         dialogAllocation: false,
         dialogMakeSure2: false,
@@ -420,6 +423,7 @@
       this.getorgtreelist()
       this.getorgtreelistbydeptid()
       this.getSupplierList() // 获取供应方公司列表
+      this.changeOrgUnit(this.selectDept)
     },
     methods: {
       // 获取需要修改的增项信息
@@ -576,6 +580,7 @@
         suppapi.getDictListByStatus(params, this.$axios).then(res => {
           this.dictData = res.data.items
           this.orgtreelist = window.toolfun_gettreejson(res.data.items['ProOrgList'], 'id', 'pId', 'id,name')
+          this.allorgunitOptions = res.data.items['Allunitorglist']
           // this.auditerOptions = res.data.items['Auditer']
           // this.organizeOption = res.data.items['Organizes']
         }).catch(err => {
@@ -656,6 +661,14 @@
           console.error(err)
         })
       },
+      changeOrgUnit (val) {
+        let auditstepcode = 'PROF_RECE'
+        suppapi.getAuditerByDept(val, auditstepcode, this.$axios).then(res => {
+          this.userOptions = res.data.item
+        }).catch(err => {
+          console.error(err)
+        })
+      },
       // 审核通过
       makeSure () {
         if (this.shenheForm.SuccessStatus === 1) {