Qukatie 1 년 전
부모
커밋
cbd702c41a

+ 9 - 4
src/views/tirePartsMall/purchaseService/Task/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: "商品种类",
@@ -267,11 +270,9 @@ export default {
       this.option.searchMenuPosition = "right";
     }
     this.option = await this.getColumnData(this.getColumnName(355), this.optionList);
-
     this.option.selectable = (row, index) => {
       return Number(row.sendTotalNum) !== Number(row.goodsTotalNum);
     }
-
   },
   methods: {
       // 撤销派工的数据判断
@@ -408,6 +409,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
       })

+ 6 - 2
src/views/tirePartsMall/purchaseService/outStorage/index.vue

@@ -246,11 +246,14 @@ export default {
           search: true,
           overHidden: true,
           type: 'select',
+          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: '仓库',
           prop: "storageName",
@@ -469,6 +472,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 - 6
src/views/tirePartsMall/purchaseService/returns/index.vue

@@ -8,7 +8,7 @@
         @saveColumn="saveColumnTwo('crud', 'option', 'optionList', 351)" :page.sync="page">
         <template slot-scope="{type,size,row,index}" slot="menu">
           <!-- <el-button :size="size" :type="type" @click="check(row)">查看</el-button> -->
-          <el-button :size="size" :type="type" :disabled="row.status != '录入'||row.numberRows!=0"
+          <el-button :size="size" :type="type" :disabled="row.status != '录入' || row.numberRows != 0"
             @click="$refs.crud.rowDel(row, index)">删除</el-button>
         </template>
         <template slot="corpNameSearch">
@@ -110,14 +110,16 @@ export default {
             label: '往来单位',
             prop: "customerName",
             search: true,
-            remote: true,
             overHidden: true,
             type: 'select',
+            filterable: true,
+            remote: true,
             props: {
               label: 'cname',
-              value: 'cname'
+              value: 'cname',
+              res: 'data.records'
             },
-            dicUrl: '/api/blade-sales-part/corpsDesc/listAll?corpType=GYS&cname={{key}}',
+            dicUrl: '/api/blade-sales-part/corpsDesc/list?current=1&size=20&corpType=GYS&cname={{key}}',
           },
           {
             label: '显示已完成',
@@ -276,7 +278,7 @@ export default {
           //   hide: true,
           //   showColumn: false
           // },
-          ]
+        ]
       }
     }
   },
@@ -444,6 +446,7 @@ export default {
         this.page.total = res.data.data.total
         this.$nextTick(() => {
           this.$refs.crud.doLayout()
+          this.$refs.crud.dicInit()
         })
         this.loading = false
       }).finally(() => {
@@ -491,6 +494,6 @@ export default {
 }
 
 /deep/ .el-col-md-8 {
-    width: 24.33333%;
+  width: 24.33333%;
 }
 </style>

+ 9 - 2
src/views/tirePartsMall/salesService/Task/index.vue

@@ -138,11 +138,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: "商品种类",
@@ -394,6 +397,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
       })

+ 20 - 19
src/views/tirePartsMall/salesService/inStorage/index.vue

@@ -50,7 +50,7 @@ import { getList, remove, getWarehouseKeeper, getGoodsInfo } from "@/api/tirePar
 import detailsPage from "./detailsPage.vue"
 import { dateFormat } from '@/util/date'
 import { getDetails } from "@/api/tirePartsMall/purchasingManagement/warehouseEntryOrder";
-import {corpsDescListAll} from "@/api/tirePartsMall/salesManagement/saleOrder";
+import { corpsDescListAll } from "@/api/tirePartsMall/salesManagement/saleOrder";
 export default {
   name: "index",
   components: {
@@ -64,7 +64,7 @@ export default {
       stockClerkNameList: [],
       loading: false,
       search: {
-        statusName:'待入库'
+        statusName: '待入库'
       },
       form: {},
       dataList: [],
@@ -221,12 +221,14 @@ export default {
           search: true,
           overHidden: true,
           type: 'select',
+          filterable:true,
+          remote:true,
           props: {
             label: 'cname',
-            value: 'cname'
+            value: 'cname',
+            res: 'data.records'
           },
-            dicData: [],
-          // 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: "仓库",
           prop: "storageName",
@@ -250,7 +252,7 @@ export default {
           search: false,
           overHidden: true,
           // width: 120,
-        },{
+        }, {
           label: "状态",
           prop: "statusName",
           search: true,
@@ -378,9 +380,9 @@ export default {
       };
       this.detailsOpen = true;
     }
-    this.corpsDescListAllfun()
+    // this.corpsDescListAllfun()
   },
-  activated(){
+  activated() {
     // if (this.$route.query.id) {
     //   this.detailData = {
     //     id: this.$route.query.id
@@ -427,29 +429,27 @@ export default {
       });
     },
     searchChange(params, done) {
-        this.page.currentPage = 1
+      this.page.currentPage = 1
       done();
       this.onLoad(this.page, params)
     },
-      // 获取业务对象
-      corpsDescListAllfun(){
-          corpsDescListAll({corpType:'KH'}).then(res=>{
-              this.findObject(this.option.column, "customerName").dicData = res.data.data
-          })
-      },
+    // 获取业务对象
+    // corpsDescListAllfun(){
+    //     corpsDescListAll({corpType:'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 };
       delete searchWithoutStorageName.storageName;
       var obj2 = this.deepClone(this.search)
-      
       params = {
         ...params,
         current: page.currentPage,
         size: page.pageSize,
         bizTypeName: "THSHGD",
-        ...Object.assign(params,this.search),
+        ...Object.assign(params, this.search),
         storageId: storageId,
         // statusName: this.search.$statusName,
         stockClerkName: this.search.$stockClerkName
@@ -470,11 +470,12 @@ export default {
         this.page.total = res.data.data.total
         this.$nextTick(() => {
           this.$refs.crud.doLayout()
+          this.$refs.crud.dicInit()
         })
         this.loading = false
       }).finally(() => {
         // console.log(this.search)
-        this.search=obj2
+        this.search = obj2
         // if(this.search.statusName==''){
         //   this.search.statusName='待入库'
         // }

+ 6 - 2
src/views/tirePartsMall/salesService/returns/index.vue

@@ -112,11 +112,14 @@ export default {
             search: true,
             overHidden: true,
             type: 'select',
+            filterable: true,
+            remote: 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: '显示已完成',
@@ -423,6 +426,7 @@ export default {
         this.page.total = res.data.data.total
         this.$nextTick(() => {
           this.$refs.crud.doLayout()
+          this.$refs.crud.dicInit()
         })
         this.loading = false
       }).finally(() => {