Explorar o código

货代用户下拉接口优化

liyuan hai 3 meses
pai
achega
2be120f754

+ 2 - 2
src/views/iosBasicData/OceanFreightImport/bills/billsDetails.vue

@@ -963,7 +963,7 @@ export default {
         },
         // 获取业务来源业务员数据
         salesUserGetListfun(account) {
-            selectListLos('业务员').then(res => {
+            selectListLos('业务员', account).then(res => {
                 this.columnforfun('srcCnName').dicData = res.data.data
             })
         },
@@ -1051,7 +1051,7 @@ export default {
                     arr = list
                 }
                 this.$refs.bcorps[0].selectionList = arr
-            } 
+            }
         },
         /* 远程模糊查询操作用户 */
         remoteMethod(value, name) {

+ 1 - 1
src/views/iosBasicData/SeafreightExportF/bills/billsDetails.vue

@@ -1325,7 +1325,7 @@ export default {
                     this.columnforfun('srcCnName').dicData = res.data.data.records
                 })
             } else {
-                selectListLos('业务员').then(res => {
+                selectListLos('业务员', account).then(res => {
                     this.columnforfun('srcCnName').dicData = res.data.data
                 })
             }

+ 5 - 4
src/views/iosBasicData/financeProfit/index.vue

@@ -567,7 +567,7 @@ export default {
             if (this.query.srcType == 'SALES') {
                 // 业务员
                 this.srcforParameter = { key: 'id', label: 'name', value: 'id' }
-                this.salesUserGetListfun(value)
+                this.salesUserGetListfun(value, '业务员')
             } else if (this.form.srcType == 'AGENT') {
                 // 代理
                 this.srcforParameter = { key: 'id', label: 'cnName', value: 'id' }
@@ -592,7 +592,7 @@ export default {
                 } else if (value == 'SALES') {
                     // 业务员
                     this.srcforParameter = { key: 'id', label: 'name', value: 'id' }
-                    this.salesUserGetListfun()
+                    this.salesUserGetListfun('', '业务员')
                 } else { }
                 this.$set(this.query, name, value)
             } else if (name == 'accDeptName') {
@@ -652,8 +652,9 @@ export default {
             })
         },
         // 获取业务来源业务员数据
-        salesUserGetListfun(account) {
-            userGetList(1, 10, { account }).then(res => {
+        salesUserGetListfun(account, role) {
+            console.info('account-----', account)
+            userGetList(1, 10, { account: account, roleId: role }).then(res => {
                 this.srcIdData = res.data.data.records
             })
         },

+ 4 - 4
src/views/iosBasicData/paymentDetail/index.vue

@@ -451,7 +451,7 @@ export default {
                     // 业务员
                     this.srcforParameter = { key: 'id', label: 'name', value: 'name' }
                     this.findObject(this.option.column, "srcId").label = '业务员'
-                    this.salesUserGetListfun()
+                    this.salesUserGetListfun('', '业务员')
                 } else { }
                 this.$set(this.query, name, value)
             } else if (name == 'srcName') {
@@ -479,7 +479,7 @@ export default {
             if (this.query.srcType == 'SALES') {
                 // 业务员
                 this.srcforParameter = { key: 'id', label: 'name', value: 'name' }
-                this.salesUserGetListfun(value)
+                this.salesUserGetListfun(value, '业务员')
             } else if (this.form.srcType == 'AGENT') {
                 // 代理
                 this.srcforParameter = { key: 'id', label: 'cnName', value: 'cnName' }
@@ -567,8 +567,8 @@ export default {
             })
         },
         // 获取业务来源业务员数据
-        salesUserGetListfun(account) {
-            userGetList(1, 10, { account }).then(res => {
+        salesUserGetListfun(account, role) {
+            userGetList(1, 10, { account: account, roleId: role }).then(res => {
                 this.srcIdData = res.data.data.records
             })
         },