Redeem 1 年之前
父节点
当前提交
c82e0faf82
共有 2 个文件被更改,包括 31 次插入15 次删除
  1. 23 14
      src/views/OYE/components/oYeInbound.vue
  2. 8 1
      src/views/OYE/components/oYeOutbound.vue

+ 23 - 14
src/views/OYE/components/oYeInbound.vue

@@ -187,22 +187,31 @@ export default {
         queryMap['saler'] = getCookie('loginName')
         queryMap['saler'] = getCookie('loginName')
       }
       }
       queryMap.isExcel = 1
       queryMap.isExcel = 1
-      this.axios.post('/api/v1/wms/getOyeInboundResult', queryMap).then(res => {
-        this.tableData = res.data.data
-        this.tableData.forEach((item, index) => {
-          let temp = {}
-          this.tableTop.forEach(col => {
-            temp[col.label] = item[col.prop]
+      this.axios
+        .post(
+          '/api/v1/wms/getOyeInboundResult' +
+            '?startTime=' +
+            this.startTime +
+            '&endTime=' +
+            this.endTime,
+          queryMap
+        )
+        .then(res => {
+          this.tableData = res.data.data
+          this.tableData.forEach((item, index) => {
+            let temp = {}
+            this.tableTop.forEach(col => {
+              temp[col.label] = item[col.prop]
+            })
+            data.push(temp)
           })
           })
-          data.push(temp)
+          //将json数组转换成sheet
+          let table_sheet = XLSX.utils.json_to_sheet(data)
+          //为工作簿添加sheet
+          XLSX.utils.book_append_sheet(wb, table_sheet, '欧冶入库实绩')
+          //导出
+          XLSX.writeFile(wb, '欧冶入库实绩' + '.xlsx')
         })
         })
-        //将json数组转换成sheet
-        let table_sheet = XLSX.utils.json_to_sheet(data)
-        //为工作簿添加sheet
-        XLSX.utils.book_append_sheet(wb, table_sheet, '欧冶入库实绩')
-        //导出
-        XLSX.writeFile(wb, '欧冶入库实绩' + '.xlsx')
-      })
     },
     },
     returnClassName({ row, column, rowIndex, columnIndex }) {
     returnClassName({ row, column, rowIndex, columnIndex }) {
       return {
       return {

+ 8 - 1
src/views/OYE/components/oYeOutbound.vue

@@ -176,7 +176,14 @@ export default {
       }
       }
       queryMap.isExcel = 1
       queryMap.isExcel = 1
       this.axios
       this.axios
-        .post('/api/v1/wms/getOyeOutboundResult', queryMap)
+        .post(
+          '/api/v1/wms/getOyeOutboundResult' +
+            '?startTime=' +
+            this.startTime +
+            '&endTime=' +
+            this.endTime,
+          queryMap
+        )
         .then(res => {
         .then(res => {
           this.tableData = res.data.data
           this.tableData = res.data.data
           this.tableData.forEach((item, index) => {
           this.tableData.forEach((item, index) => {