Browse Source

导出参数修改

caojunjie 2 years ago
parent
commit
e9c068770a

+ 14 - 1
src/views/basicData/customerInformation/index.vue

@@ -407,7 +407,7 @@ export default {
         corpType: customerParameter.code
       });
       customerList(queryParams).then(res => {
-        
+
         this.dataList = res.data.data.records;
         this.page.total = res.data.data.total;
         if (this.page.total || this.page.total === 0) {
@@ -480,6 +480,19 @@ export default {
         corpsTypeId: this.treeDeptId,
         corpType: customerParameter.code
       });
+        console.log(this.website.tokenHeader)
+
+        queryParams.code = queryParams.code?queryParams.code:''
+        queryParams.cname = queryParams.cname?queryParams.cname:''
+        queryParams.belongtoarea = queryParams.belongtoarea?queryParams.belongtoarea:''
+        queryParams.belongtocompany = queryParams.belongtocompany?queryParams.belongtocompany:''
+        queryParams.attn = queryParams.attn?queryParams.attn:''
+        queryParams.goodtypes = queryParams.goodtypes?queryParams.goodtypes:''
+        queryParams.creditLevel = queryParams.creditLevel?queryParams.creditLevel:''
+        queryParams.adminProfiles = queryParams.adminProfiles?queryParams.adminProfiles:''
+        queryParams.corpsTypeId = queryParams.corpsTypeId?queryParams.corpsTypeId:''
+        console.log(queryParams)
+
       this.$confirm('是否导出客户资料?', '提示', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',

+ 1 - 1
src/views/system/user.vue

@@ -1054,7 +1054,7 @@
     overflow: scroll;
   }
 
-  .el-dialog .el-dialog__body{
+  ::v-deep .el-dialog .el-dialog__body{
     display: flex;
     justify-content: center;
     align-items: center;

+ 2 - 2
src/views/tirePartsMall/basicData/listingManagement/index.vue

@@ -20,7 +20,7 @@
                 :enumerationValue="160" />
 
             </template>
-            
+
             <template slot="detailsTextForm">
               <avue-ueditor v-model="form.detailsText" :options="optionsUeditor"></avue-ueditor>
             </template>
@@ -326,7 +326,7 @@ export default {
           hide: true,
           showColumn: false,
           overHidden: true,
-        }, 
+        },
         {
           label: "共享公司",
           prop: "sharedCompany",

+ 26 - 1
src/views/tirePartsMall/salesManagement/purchaseOrder/detailsPage.vue

@@ -1172,7 +1172,32 @@ export default {
         refreshChange() {
             this.treeDeptId = ''
             this.page.currentPage = 1;
-            this.onLoad(this.page);
+            this.onaloadfun(this.page);
+        },
+        // 这个方法是解决 this.onLoad is not a function 的问题
+        onaloadfun(page, params = { artsVision: this.form.belongToCorpId }) {
+            this.loading = true;
+            getList({
+                ...params,
+                current: page.currentPage,
+                size: page.pageSize
+            }).then(res=>{
+                console.log(res,1213)
+                const data = res.data.data;
+                this.page.total = data.total;
+                this.pageList.total = data.total
+                this.data = data.records;
+                this.goodsListShow = data.records;
+                this.loading = false;
+            })
+            // getList(page.currentPage, page.pageSize, Object.assign(params, this.query), this.treeDeptId, null).then(res => {
+            //     const data = res.data.data;
+            //     this.page.total = data.total;
+            //     this.pageList.total = data.total
+            //     this.data = data.records;
+            //     this.goodsListShow = data.records;
+            //     this.loading = false;
+            // });
         },
         //选中触发
         selectionChange(list) {

+ 28 - 1
src/views/tirePartsMall/salesManagement/saleOrder/detailsPage.vue

@@ -1109,7 +1109,34 @@ export default {
         refreshChange() {
             this.treeDeptId = ''
             this.page.currentPage = 1;
-            this.onLoad(this.page);
+            this.onaloadfun(this.page);
+        },
+        // 这个方法是解决 this.onLoad is not a function 的问题
+        onaloadfun(page, params = { artsVision: this.form.belongToCorpId }) {
+            this.loading = true;
+            getList({
+                ...params,
+                current: page.currentPage,
+                size: page.pageSize,
+                billType:page.billType,
+                upAndDownShelves:1,
+            }).then(res=>{
+                console.log(res,1213)
+                const data = res.data.data;
+                this.page.total = data.total;
+                this.pageList.total = data.total
+                this.data = data.records;
+                this.goodsListShow = data.records;
+                this.loading = false;
+            })
+            // getList(page.currentPage, page.pageSize, Object.assign(params, this.query), this.treeDeptId, null).then(res => {
+            //     const data = res.data.data;
+            //     this.page.total = data.total;
+            //     this.pageList.total = data.total
+            //     this.data = data.records;
+            //     this.goodsListShow = data.records;
+            //     this.loading = false;
+            // });
         },
         //选中触发
         selectionChange(list) {