Browse Source

轮胎商城统计分析(L)导出

wangzhuo 1 year ago
parent
commit
068763b608

+ 11 - 5
src/views/tirePartsMall/statisticAnalysis/generalLedgerPayable/detail.vue

@@ -16,9 +16,9 @@
         :cell-style="cellStyle"
         :key="crudIndex"
       >
-<!--        <template slot="menuLeft">-->
-<!--          <el-button type="info" size="small" @click="outExport" icon="el-icon-download">导出</el-button>-->
-<!--        </template>-->
+        <template slot="menuLeft">
+          <el-button type="info" size="small" @click="outExport" icon="el-icon-download">导出</el-button>
+        </template>
         <template slot="accSysNo" slot-scope="scope">
           <span style="color: #409EFF;cursor: pointer" @click.stop="jumpPage(scope.row,scope.index)">{{ scope.row.accSysNo }}</span>
         </template>
@@ -48,6 +48,9 @@ export default {
       dataList: [],
       loading: false,
       option: {
+        startDate: '',
+        endDate: '',
+        customerId: '',
         searchShow: true,
         align: "center",
         searchSpan: 8,
@@ -137,6 +140,9 @@ export default {
         'businesDateList[0]' : this.dateFormatting(startDate) + " 00:00:00",
         'businesDateList[1]' : this.dateFormatting(endDate) + " 23:59:59"
       };
+      this.customerId = detailData.customerId
+      this.startDate = this.dateFormatting(startDate) + " 00:00:00"
+      this.endDate = this.dateFormatting(endDate) + " 23:59:59"
       getList(requestData).then(res => {
         this.dataList = res.data.data.records;
       }).finally(() => {
@@ -163,9 +169,9 @@ export default {
         type: 'warning'
       }).then(() => {
         window.open(
-          `/api/trade-finance/dealWith/exportItem?${
+          `/api/blade-sales-part/order/statistics-exportDetails?${
             this.website.tokenHeader
-          }=${getToken()}&dc=d&tradeType=${this.tradeType}&corpId=${this.detailData.id}`
+          }=${getToken()}&exportType=3&customerId=${this.customerId}&bsType=CG&businesDateList[0]=${this.startDate}&businesDateList[1]=${this.endDate}`
         );
       }).catch(() => {
         this.$message({

+ 11 - 5
src/views/tirePartsMall/statisticAnalysis/generalLedgerReceivable/detail.vue

@@ -16,9 +16,9 @@
         :cell-style="cellStyle"
         :key="crudIndex"
       >
-<!--        <template slot="menuLeft">-->
-<!--          <el-button type="info" size="small" @click="outExport" icon="el-icon-download">导出</el-button>-->
-<!--        </template>-->
+        <template slot="menuLeft">
+          <el-button type="info" size="small" @click="outExport" icon="el-icon-download">导出</el-button>
+        </template>
         <template slot="accSysNo" slot-scope="scope">
           <span style="color: #409EFF;cursor: pointer" @click.stop="jumpPage(scope.row,scope.index)">{{ scope.row.accSysNo }}</span>
         </template>
@@ -44,6 +44,9 @@ export default {
   },
   data() {
     return {
+      startDate: '',
+      endDate: '',
+      customerId: '',
       crudIndex: 0,
       dataList: [],
       loading: false,
@@ -137,6 +140,9 @@ export default {
         'businesDateList[0]' : this.dateFormatting(startDate) + " 00:00:00",
         'businesDateList[1]' : this.dateFormatting(endDate) + " 23:59:59"
       };
+      this.customerId = detailData.customerId
+      this.startDate = this.dateFormatting(startDate) + " 00:00:00"
+      this.endDate = this.dateFormatting(endDate) + " 23:59:59"
       getList(requestData).then(res => {
         this.dataList = res.data.data.records;
       }).finally(() => {
@@ -164,9 +170,9 @@ export default {
         type: 'warning'
       }).then(() => {
         window.open(
-          `/api/trade-finance/receivable/exportItem?${
+          `/api/blade-sales-part/order/statistics-exportDetails?${
             this.website.tokenHeader
-          }=${getToken()}&dc=d&tradeType=${this.tradeType}&corpId=${this.detailData.id}`
+          }=${getToken()}&exportType=2&customerId=${this.customerId}&bsType=CG&businesDateList[0]=${this.startDate}&businesDateList[1]=${this.endDate}`
         );
       }).catch(() => {
         this.$message({

+ 11 - 5
src/views/tirePartsMall/statisticAnalysis/profitLedger/detail.vue

@@ -16,9 +16,9 @@
         :cell-style="cellStyle"
         :key="crudIndex"
       >
-<!--        <template slot="menuLeft">-->
-<!--          <el-button type="info" size="small" @click="outExport" icon="el-icon-download">导出</el-button>-->
-<!--        </template>-->
+        <template slot="menuLeft">
+          <el-button type="info" size="small" @click="outExport" icon="el-icon-download">导出</el-button>
+        </template>
         <template slot="accSysNo" slot-scope="scope">
           <span style="color: #409EFF;cursor: pointer" @click.stop="jumpPage(scope.row,scope.index)">{{ scope.row.accSysNo }}</span>
         </template>
@@ -44,6 +44,9 @@ export default {
   },
   data() {
     return {
+      startDate: '',
+      endDate: '',
+      customerId: '',
       crudIndex: 0,
       dataList: [],
       loading: false,
@@ -173,6 +176,9 @@ export default {
         'businesDateList[0]' : this.dateFormatting(startDate) + " 00:00:00",
         'businesDateList[1]' : this.dateFormatting(endDate) + " 23:59:59"
       };
+      this.customerId = detailData.customerId
+      this.startDate = this.dateFormatting(startDate) + " 00:00:00"
+      this.endDate = this.dateFormatting(endDate) + " 23:59:59"
       getList(requestData).then(res => {
         this.dataList = res.data.data.records;
       }).finally(() => {
@@ -200,9 +206,9 @@ export default {
         type: 'warning'
       }).then(() => {
         window.open(
-          `/api/trade-finance/profit/exportItem?${
+          `/api/blade-sales-part/order/statistics-exportDetails?${
             this.website.tokenHeader
-          }=${getToken()}&dc=d&tradeType=${this.tradeType}&corpId=${this.detailData.id}`
+          }=${getToken()}&exportType=4&customerId=${this.customerId}&bsType=CG&businesDateList[0]=${this.startDate}&businesDateList[1]=${this.endDate}`
         );
       }).catch(() => {
         this.$message({

+ 3 - 3
src/views/tirePartsMall/statisticAnalysis/profitLedger/index.vue

@@ -133,19 +133,19 @@ export default {
             hide: true
           },
           {
-            label: "应收金额",
+            label: "收入",
             prop: "totalMoney",
             search: false,
             overHidden: true,
           },
           {
-            label: "成本金额",
+            label: "成本",
             prop: "cost",
             search: false,
             overHidden: true,
           },
           {
-            label: "利润金额",
+            label: "利润",
             prop: "profit",
             search: false,
             overHidden: true,

+ 10 - 9
src/views/tirePartsMall/statisticAnalysis/salesReconciliation/index.vue

@@ -149,12 +149,6 @@ export default {
             overHidden: true
           },
           {
-            label: "实收",
-            prop: "paymentAmountTl",
-            search: false,
-            overHidden: true
-          },
-          {
             label: "成本",
             prop: "cost",
             search: false,
@@ -165,6 +159,12 @@ export default {
             prop: "grossProfit",
             search: false,
             overHidden: true
+          },
+          {
+            label: "实收",
+            prop: "paymentAmountTl",
+            search: false,
+            overHidden: true
           }
         ]
       },
@@ -308,9 +308,10 @@ export default {
       })
         .then(() => {
           window.open(
-            `/api/blade-purchase-sales/exportOrder/reconciliationExport?${this.website.tokenHeader
-            }=${getToken()}&corpId=${this.search.corpId}&chargeMember=${this.search.chargeMember}&sysNo=${this.search.sysNo
-            }&beginCreateTime=${this.search.beginCreateTime}&endCreateTime =${this.search.endCreateTime
+            `/api/blade-sales-part/order/statistics-exportDetails?${this.website.tokenHeader
+            }=${getToken()}&bsType=XS&exportType=1&ordNo=${this.search.ordNo}&customerId=${this.search.customerId}&salerId=${this.search.salerId
+            }&businesDateList[0]=${this.search.businesDateList[0] == null || this.search.businesDateList[0] === undefined ? '' : this.search.businesDateList[0]
+            }&businesDateList[1]=${this.search.businesDateList[1] == null || this.search.businesDateList[1] === undefined  ? '' : this.search.businesDateList[1]
             }`
           );
         })