ソースを参照

销售业务对象

Qukatie 1 年間 前
コミット
20e135ebde

+ 11 - 8
src/views/tirePartsMall/purchasingManagement/warehouseEntryOrder/index.vue

@@ -219,11 +219,13 @@ export default {
           overHidden: true,
           filterable: true,
           type: 'select',
+          remote:true,
           props: {
             label: 'cname',
-            value: 'cname'
+            value: 'cname',
+            res: 'data.records'
           },
-          dicUrl: "/api/blade-sales-part/corpsDesc/listAll?corpType=GYS,KH",
+          dicUrl: '/api/blade-sales-part/corpsDesc/page?current=1&size=20&corpType=GYS,KH&cname={{key}}',
           // props: {
           //   label: "account",
           //   value: "id",
@@ -372,7 +374,7 @@ export default {
       };
       this.detailsOpen = true;
     }
-    this.corpsDescListAllfun()
+    // this.corpsDescListAllfun()
   },
   activated() {
     // if (this.$route.query.id) {
@@ -426,11 +428,11 @@ export default {
       this.onLoad(this.page, params)
     },
     // 获取业务对象
-    corpsDescListAllfun() {
-      corpsDescListAll({ corpType: 'GYS,KH' }).then(res => {
-        this.findObject(this.option.column, "customerName").dicData = res.data.data
-      })
-    },
+    // corpsDescListAllfun() {
+    //   corpsDescListAll({ corpType: 'GYS,KH' }).then(res => {
+    //     this.findObject(this.option.column, "customerName").dicData = res.data.data
+    //   })
+    // },
     onLoad(page, params = {}) {
       let storageId = this.search.storageName;
       let searchWithoutStorageName = { ...this.search };
@@ -468,6 +470,7 @@ export default {
         this.page.total = res.data.data.total
         this.$nextTick(() => {
           this.$refs.crud.doLayout()
+          this.$refs.crud.dicInit()
         })
         this.loading = false
       }).finally(() => {

+ 9 - 2
src/views/tirePartsMall/salesManagement/inboundTask/index.vue

@@ -151,11 +151,14 @@ export default {
           width: 140,
           type: 'select',
           overHidden: true,
+          filterable:true,
+          remote:true,
           props: {
             label: 'cname',
-            value: 'cname'
+            value: 'cname',
+            res: 'data.records'
           },
-          dicUrl: '/api/blade-sales-part/corpsDesc/listAll?corpType=GYS',
+          dicUrl: '/api/blade-sales-part/corpsDesc/list?current=1&size=20&corpType=GYS&cname={{key}}',
         }
           // , {
           //     label: "商品种类",
@@ -414,6 +417,10 @@ export default {
         this.dataList = res.data.data.records
         this.page.total = res.data.data.total
         this.loading = false
+        this.$nextTick(() => {
+          this.$refs.crud.doLayout()
+          this.$refs.crud.dicInit()
+        })
       }).finally(() => {
         this.loading = false
       })

+ 9 - 2
src/views/tirePartsMall/salesManagement/outboundTask/index.vue

@@ -139,11 +139,14 @@ export default {
           width: 140,
           type: 'select',
           overHidden: true,
+          filterable:true,
+          remote:true,
           props: {
             label: 'cname',
-            value: 'cname'
+            value: 'cname',
+            res: 'data.records'
           },
-          dicUrl: '/api/blade-sales-part/corpsDesc/listAll?corpType=KH',
+          dicUrl: '/api/blade-sales-part/corpsDesc/list?current=1&size=20&corpType=KH&cname={{key}}',
         }
           // , {
           //     label: "商品种类",
@@ -400,6 +403,10 @@ export default {
       getList(params).then(res => {
         this.dataList = res.data.data.records
         this.page.total = res.data.data.total
+        this.$nextTick(() => {
+          this.$refs.crud.doLayout()
+          this.$refs.crud.dicInit()
+        })
         this.loading = false
       }).finally(() => {
         this.loading = false

+ 5 - 2
src/views/tirePartsMall/salesManagement/outboundWorkOrder/index.vue

@@ -247,11 +247,13 @@ export default {
           overHidden: true,
           filterable:true,
           type: 'select',
+          remote:true,
           props: {
             label: 'cname',
-            value: 'cname'
+            value: 'cname',
+            res: 'data.records'
           },
-          dicUrl: '/api/blade-sales-part/corpsDesc/listAll?corpType=KH',
+          dicUrl: '/api/blade-sales-part/corpsDesc/list?current=1&size=20&corpType=KH&cname={{key}}',
         }, {
           label: '仓库',
           prop: "storageName",
@@ -469,6 +471,7 @@ export default {
         this.page.total = res.data.data.total
         this.$nextTick(() => {
           this.$refs.crud.doLayout()
+          this.$refs.crud.dicInit()
         })
         this.loading = false
       }).finally(() => {

+ 6 - 3
src/views/tirePartsMall/salesManagement/purchaseOrder/index.vue

@@ -301,14 +301,16 @@ export default {
           label: '业务对象',
           prop: "customerName",
           type: 'select',
-          remote:true,
           search: true,
           overHidden: true,
+          filterable:true,
+          remote:true,
           props: {
             label: 'cname',
-            value: 'cname'
+            value: 'cname',
+            res: 'data.records'
           },
-          dicUrl: '/api/blade-sales-part/corpsDesc/listAll?cname={{key}}&corpType=GYS',
+          dicUrl: '/api/blade-sales-part/corpsDesc/list?current=1&size=20&corpType=GYS&cname={{key}}',
         },
         {
           label: '显示已完成',
@@ -625,6 +627,7 @@ export default {
         this.page.total = res.data.data.total
         this.$nextTick(() => {
           this.$refs.crud.doLayout()
+          this.$refs.crud.dicInit()
         })
         this.loading = false
       }).finally(() => {

+ 5 - 2
src/views/tirePartsMall/salesManagement/saleOrder/index.vue

@@ -257,11 +257,13 @@ export default {
           remote: true,
           overHidden: true,
           type: 'select',
+          filterable:true,
           props: {
             label: 'cname',
-            value: 'cname'
+            value: 'cname',
+            res: 'data.records'
           },
-          dicUrl: '/api/blade-sales-part/corpsDesc/listAll?corpType=KH&cname={{key}}',
+          dicUrl: '/api/blade-sales-part/corpsDesc/list?current=1&size=20&corpType=KH&cname={{key}}',
         },
         {
           label: '业务员',
@@ -627,6 +629,7 @@ export default {
 
         this.$nextTick(() => {
           this.$refs.crud.doLayout()
+          this.$refs.crud.dicInit()
         })
         this.loading = false
       }).finally(() => {