Explorar el Código

轮胎商城采购导出

caojunjie hace 2 años
padre
commit
670e4e9088

+ 8 - 0
src/views/businessManagement/receipt/configuration/mainList.json

@@ -268,6 +268,14 @@
       "index": 22,
       "width": 100,
       "overHidden": true
+    },{
+      "label": "凭证号",
+      "prop": "voucherId",
+      "search": true,
+      "index": 20,
+      "width": 100,
+      "overHidden": true
     }
+
   ]
 }

+ 3 - 1
src/views/tirePartsMall/basicData/shareListing/index.vue

@@ -177,6 +177,7 @@ export default {
         },{
           label: '花纹',
           prop: 'brandItem',
+            search: true,  // 是否搜索
           disabled: true,
           overHidden: true,
         }, {
@@ -248,7 +249,8 @@ export default {
         }, {
           label: "来源公司",
           prop: "sourceCompanyId",
-          hide: true,
+            width:100,
+          // hide: true,
           search: true,
           showColumn: true,
           overHidden: true,

+ 1 - 1
src/views/tirePartsMall/purchasingManagement/warehouseEntryOrder/index.vue

@@ -222,7 +222,7 @@ export default {
             label: 'cname',
             value: 'id'
           },
-          dicUrl: '/api/blade-sales-part/corpsDesc/listAll?corpType=GYS&enableOrNot=1',
+          dicUrl: '/api/blade-sales-part/corpsDesc/listAll?corpType=GYS',
         }, {
           label: "仓库",
           prop: "storageName",

+ 1 - 1
src/views/tirePartsMall/salesManagement/inboundTask/index.vue

@@ -141,7 +141,7 @@ export default {
             label: 'cname',
             value: 'id'
           },
-          dicUrl: '/api/blade-sales-part/corpsDesc/listAll?corpType=GYS&enableOrNot=1',
+          dicUrl: '/api/blade-sales-part/corpsDesc/listAll?corpType=GYS',
         }
           // , {
           //     label: "商品种类",

+ 1 - 1
src/views/tirePartsMall/salesManagement/outboundTask/index.vue

@@ -127,7 +127,7 @@ export default {
             label: 'cname',
             value: 'id'
           },
-          dicUrl: '/api/blade-sales-part/corpsDesc/listAll?corpType=KH&enableOrNot=0',
+          dicUrl: '/api/blade-sales-part/corpsDesc/listAll?corpType=KH',
         }
           // , {
           //     label: "商品种类",

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

@@ -78,7 +78,7 @@
                             <template slot-scope="{scope,row}" slot="menuLeft">
                                 <el-button type="primary" icon="el-icon-plus" size="small" :disabled="isAddBtn"
                                     @click="rowAdd(row)">添加轮胎</el-button>
-                                    <el-button type="success" size="small" :disabled="isrowAdd" icon="el-icon-bottom" @click="excelBox = true">导入
+                                    <el-button type="success" size="small" :disabled="isAddBtn" icon="el-icon-bottom" @click="excelBox = true">导入
                                 </el-button>
                                 <el-button type="primary" icon="el-icon-printer" size="small"
                                            @click="handlePrint">打印</el-button>

+ 33 - 4
src/views/tirePartsMall/salesManagement/purchaseOrder/index.vue

@@ -42,6 +42,7 @@
 import { getList, remove, getGoodsInfo } from "@/api/tirePartsMall/salesManagement/saleOrder";
 import detailsPage from "./detailsPage"
 import { getDetails } from "@/api/tirePartsMall/salesManagement/saleOrder";
+import {getToken} from "@/util/auth";
 
 export default {
   name: "index",
@@ -252,7 +253,7 @@ export default {
         //     label: "dictValue",
         //     value: "dictKey"
         //   }
-        // }, 
+        // },
         {
           label: '所属公司',
           prop: "salesCompanyName",
@@ -268,7 +269,7 @@ export default {
             label: 'cname',
             value: 'id'
           },
-          dicUrl: '/api/blade-sales-part/corpsDesc/listAll?cname={{key}}&corpType=GYS&enableOrNot=1',
+          dicUrl: '/api/blade-sales-part/corpsDesc/listAll?cname={{key}}&corpType=GYS',
         }, {
           label: '仓库',
           prop: "storageId",
@@ -336,7 +337,7 @@ export default {
         //   label: '应结日期',
         //   prop: "dueDate",
         //   overHidden: true,
-        // }, 
+        // },
         {
           label: "制单人",
           prop: "createUserName",
@@ -413,7 +414,7 @@ export default {
       if (this.$route.query.check) {
         this.editOpen({ id: this.$route.query.check.srcBillId }, 1)
         this.$store.commit("IN_LTCG_STATUS");
-      } 
+      }
       if(this.$route.query.type == 'F'){
         this.editOpen({ id: this.$route.query.detail.srcParentId }, 1)
       }
@@ -438,6 +439,34 @@ export default {
     }
   },
   methods: {
+      // 导出
+      outExport() {
+          console.log(this.search,412)
+          let config = { params: { ...this.search } }
+          if (config.params) {
+              for (const propName of Object.keys(config.params)) {
+                  const value = config.params[propName];
+                  if (value !== null && typeof (value) !== "undefined") {
+                      if (value instanceof Array) {
+                          for (const key of Object.keys(value)) {
+                              let params = propName + '[' + key + ']';
+                              config.params[params] = value[key]
+                          }
+                          delete config.params[propName]
+                      }
+                  }
+              }
+          }
+          config.params.bsType = 'CG'
+          console.log(config,427)
+          const routeData = this.$router.resolve({
+              path: '/api/blade-sales-part/order/listExport',      //跳转目标下载地址
+              query: {
+                  ...config.params    //括号内是要传递给新窗口的参数
+              }
+          })
+          window.open(routeData.href.slice(1, routeData.href.length) + '&' + `${this.website.tokenHeader}=${getToken()}`);
+      },
     check(row) {
       this.form = row
       this.detailsOpen = true

+ 30 - 1
src/views/tirePartsMall/salesManagement/saleOrder/index.vue

@@ -45,6 +45,7 @@
 import { getList, remove, getGoodsInfo } from "@/api/tirePartsMall/salesManagement/saleOrder";
 import detailsPage from "./detailsPage"
 import { getDetails } from "@/api/tirePartsMall/salesManagement/saleOrder";
+import {getToken} from "@/util/auth";
 
 export default {
   name: "index",
@@ -234,7 +235,7 @@ export default {
           prop: "storageId",
           search: true,
           overHidden: true,
-          remote: true,
+          // remote: true,
           type: 'select',
           props: {
             label: 'cname',
@@ -406,6 +407,34 @@ export default {
         });
   },
   methods: {
+      // 导出
+      outExport() {
+          console.log(this.search,412)
+          let config = { params: { ...this.search } }
+          if (config.params) {
+              for (const propName of Object.keys(config.params)) {
+                  const value = config.params[propName];
+                  if (value !== null && typeof (value) !== "undefined") {
+                      if (value instanceof Array) {
+                          for (const key of Object.keys(value)) {
+                              let params = propName + '[' + key + ']';
+                              config.params[params] = value[key]
+                          }
+                          delete config.params[propName]
+                      }
+                  }
+              }
+          }
+          console.log(config,427)
+          config.params.bsType = 'XS'
+          const routeData = this.$router.resolve({
+              path: '/api/blade-sales-part/order/listExport',      //跳转目标下载地址
+              query: {
+                  ...config.params    //括号内是要传递给新窗口的参数
+              }
+          })
+          window.open(routeData.href.slice(1, routeData.href.length) + '&' + `${this.website.tokenHeader}=${getToken()}`);
+      },
     check(row) {
       this.form = row
       this.detailsOpen = true

+ 28 - 0
src/views/tirePartsMall/statisticAnalysis/accountsReceivableStatistics/index.vue

@@ -22,6 +22,7 @@
 <script>
 import { getList, remove } from "@/api/accountsReceivableStatistics";
 import detailsPage from "./detailsPage"
+import {getToken} from "@/util/auth";
 
 export default {
   name: "index",
@@ -175,8 +176,35 @@ export default {
       this.option.searchMenuSpan = num * 8;
       this.option.searchMenuPosition = "right";
     }
+    this.refreshChange()
   },
   methods: {
+      // 导出
+      outExport() {
+          console.log(this.search,412)
+          let config = { params: { ...this.search } }
+          if (config.params) {
+              for (const propName of Object.keys(config.params)) {
+                  const value = config.params[propName];
+                  if (value !== null && typeof (value) !== "undefined") {
+                      if (value instanceof Array) {
+                          for (const key of Object.keys(value)) {
+                              let params = propName + '[' + key + ']';
+                              config.params[params] = value[key]
+                          }
+                          delete config.params[propName]
+                      }
+                  }
+              }
+          }
+          const routeData = this.$router.resolve({
+              path: '/api/blade-sales-part/order/collectionExport',      //跳转目标下载地址
+              query: {
+                  ...config.params    //括号内是要传递给新窗口的参数
+              }
+          })
+          window.open(routeData.href.slice(1, routeData.href.length) + '&' + `${this.website.tokenHeader}=${getToken()}`);
+      },
     check(row) {
       this.form = row
       this.detailsOpen = true

+ 1 - 1
src/views/tirePartsMall/statisticAnalysis/customerTransactions/js/optionList.js

@@ -524,7 +524,7 @@ export const capitalOption = {
     }, {
       label: "所属公司",
       prop: "salesCompanyName",
-      search: true,
+      // search: true,
       filterable:true,
       type: 'select',
       dicData:[],

+ 3 - 3
src/views/tirePartsMall/statisticAnalysis/supplierTransactions/detailsInfo.vue

@@ -379,10 +379,10 @@ export default {
             // delete data.businesDate
             // data.corpId = this.detailData.id;
             this.loading = true;
-            console.log(data);
+            console.log(data,page);
             //id: id, status: '待确认,待发货,已发货,退款请核', bsType: 'XS'
-            data.status = '待确认,待发货,已发货,退款请核'
-            getList({ id: this.detailData.id, status: '待确认,待发货,已发货,退款请核', bsType: 'CG',...data,current:page.currentPage,
+            // data.status = '待确认,待发货,已发货,退款请核'
+            getList({ id: this.detailData.id, bsType: 'CG',...data,current:page.currentPage,
             size:page.pageSize })
                 .then(res => {
                     this.sellList = res.data.data.records ? res.data.data.records : [];

+ 3 - 4
src/views/tirePartsMall/statisticAnalysis/supplierTransactions/index.vue

@@ -151,7 +151,7 @@
     </el-dialog>
   </div>
 </template>
-  
+
 <script>
 import detailsInfo from "./detailsInfo";
 import detailsPage from "./detailsPage";
@@ -338,7 +338,7 @@ export default {
     this.option = await this.getColumnData(this.getColumnName(277.2), option);
     this.option.height = window.innerHeight - 330;
     this.getAllWorkDicts()
-    this.findObject(this.option.column,'customerId').click = ()=>{
+    this.findObject(this.option.column,'id').click = ()=>{
         this.$refs.crud.dicInit()
       }
   },
@@ -562,7 +562,7 @@ export default {
   }
 }
 </script>
-  
+
 <style  lang="scss"  scoped>
 .page-crad ::v-deep .basic-container__card {
   height: 94.2vh;
@@ -611,4 +611,3 @@ export default {
   }
 }
 </style>
-  

+ 4 - 3
src/views/tirePartsMall/statisticAnalysis/supplierTransactions/js/optionList.js

@@ -24,11 +24,12 @@ export const option = {
     },
     {
       label: "供应商名称",
-      prop: "customerId",
+      prop: "id",
       type: 'select',
       remote: true,
       hide: true,
       showColumn: false,
+      overHidden:true,
       search: true,
       props: {
         label: 'cname',
@@ -395,7 +396,7 @@ export const sellOption = {
     }, {
       label: '业务对象',
       prop: "customerName",
-      search: true,
+      // search: true,
       overHidden: true,
       type: 'select',
       props: {
@@ -499,7 +500,7 @@ export const capitalOption = {
     }, {
       label: "所属公司",
       prop: "salesCompanyName",
-      search: true,
+      // search: true,
       type: 'select',
       searchOrder:6,
       props: {