Browse Source

Merge branch '0601Action'

lex-xin 3 years ago
parent
commit
c030fd110b

+ 14 - 0
src/views/businessManager/orderManager/financeManager-taoqi.vue

@@ -247,6 +247,20 @@
               scope.row.type | orderType
             }}</template>
           </el-table-column>
+                    <el-table-column align="center" prop="expectAmount" label="订单金额">
+            <template slot-scope="scope">
+              <div>
+                {{ (scope.row.couponRemitFee+scope.row.expectAmount) | moneyFormat }}
+              </div>
+            </template>
+          </el-table-column>
+          <el-table-column align="center" prop="expectAmount" label="优惠金额">
+            <template slot-scope="scope">
+              <div>
+                {{ scope.row.couponRemitFee | moneyFormat }}
+              </div>
+            </template>
+          </el-table-column>
           <el-table-column align="center" prop="expectAmount" label="应付金额">
             <template slot-scope="scope">
               <div>

+ 14 - 0
src/views/businessManager/orderManager/financeManager.vue

@@ -250,6 +250,20 @@
               scope.row.type | orderType
             }}</template>
           </el-table-column>
+                    <el-table-column align="center" prop="expectAmount" label="订单金额">
+            <template slot-scope="scope">
+              <div>
+                {{ (scope.row.couponRemitFee+scope.row.expectAmount) | moneyFormat }}
+              </div>
+            </template>
+          </el-table-column>
+          <el-table-column align="center" prop="expectAmount" label="优惠金额">
+            <template slot-scope="scope">
+              <div>
+                {{ scope.row.couponRemitFee | moneyFormat }}
+              </div>
+            </template>
+          </el-table-column>
           <el-table-column align="center" prop="expectAmount" label="应付金额">
             <template slot-scope="scope">
               <div>

+ 30 - 18
src/views/businessManager/orderManager/income.vue

@@ -186,11 +186,7 @@
           :data="tableList"
           :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
         >
-               <el-table-column
-            align="center"
-            prop="transNo"
-            label="所属分部"
-          >
+          <el-table-column align="center" prop="transNo" label="所属分部">
             <template slot-scope="scope">
               <div>
                 <copy-text>{{ scope.row.organName }}</copy-text>
@@ -236,6 +232,20 @@
               scope.row.type | orderType
             }}</template>
           </el-table-column>
+          <el-table-column align="center" prop="expectAmount" label="订单金额">
+            <template slot-scope="scope">
+              <div>
+                {{ (scope.row.couponRemitFee+scope.row.expectAmount) | moneyFormat }}
+              </div>
+            </template>
+          </el-table-column>
+          <el-table-column align="center" prop="expectAmount" label="优惠金额">
+            <template slot-scope="scope">
+              <div>
+                {{ scope.row.couponRemitFee | moneyFormat }}
+              </div>
+            </template>
+          </el-table-column>
           <el-table-column align="center" prop="expectAmount" label="应付金额">
             <template slot-scope="scope">
               <div>
@@ -243,6 +253,7 @@
               </div>
             </template>
           </el-table-column>
+
           <el-table-column
             align="center"
             prop="balancePaymentAmount"
@@ -263,7 +274,9 @@
           </el-table-column>
           <el-table-column align="center" label="学员姓名">
             <template slot-scope="scope">
-              <copy-text v-if="scope.row.user.username"> {{ scope.row.user.username }}</copy-text>
+              <copy-text v-if="scope.row.user.username">
+                {{ scope.row.user.username }}</copy-text
+              >
               <span v-if="scope.row.user.username && scope.row.user.phone"
                 >/</span
               >
@@ -292,8 +305,8 @@
           </el-table-column>
           <el-table-column align="center" label="备注" width="220px">
             <template slot-scope="scope">
-                       <overflow-text width="200px" :text="scope.row.memo"/>
-                     </template>
+              <overflow-text width="200px" :text="scope.row.memo" />
+            </template>
           </el-table-column>
           <el-table-column align="center" width="150px" label="操作">
             <template slot-scope="scope">
@@ -371,17 +384,17 @@ export default {
       totalRevenueAmount: 0,
     };
   },
-  created(){
+  created() {
     if (this.searchForm.orderDate?.length < 1) {
-      this.getNow()
+      this.getNow();
     }
   },
   mounted() {
     this.$store.dispatch("setBranchs");
-    if(this.$route.params?.orderNo){
+    if (this.$route.params?.orderNo) {
       this.searchForm.orderDate = [];
       this.searchForm.orderNo = this.$route.params.orderNo;
-      this.searchForm.paymentStatus = null
+      this.searchForm.paymentStatus = null;
     }
     this.getList();
   },
@@ -456,7 +469,7 @@ export default {
           axios(options)
             .then((res) => {
               load.endLoading();
-              if(res.data.code == 200) {
+              if (res.data.code == 200) {
                 this.$message.info(res.data.data);
               } else {
                 this.$message.error(res.data.msg);
@@ -483,8 +496,7 @@ export default {
       this.getList();
     },
     getList() {
-
-          let { orderDate, ...rest } = this.searchForm;
+      let { orderDate, ...rest } = this.searchForm;
       let params = {
         ...rest,
         page: this.pageInfo.page,
@@ -547,7 +559,7 @@ export default {
         search: null,
         orderStartDate: null,
         orderEndDate: null,
-        paymentStatus: 'SUCCESS',
+        paymentStatus: "SUCCESS",
         paymentType: null,
         organId: null,
         actualAmount: null,
@@ -557,10 +569,10 @@ export default {
         merNos: null,
         lessBalancePaymentAmount: null,
         lessActualAmount: null,
-        orderDate:[]
+        orderDate: [],
       };
       // this.pageInfo.page = 1;
-      this.getNow()
+      this.getNow();
       this.getList();
     },
   },

+ 40 - 11
src/views/businessManager/orderManager/salesList.vue

@@ -38,13 +38,15 @@
           ></el-input>
         </el-form-item>
         <el-form-item>
-          <select-all  multiple
+          <select-all
+            multiple
             collapse-tags
             v-model="searchForm.organIdList"
             clearable
             filterable
-            placeholder="请选择所属分部">
-              <el-option
+            placeholder="请选择所属分部"
+          >
+            <el-option
               v-for="(item, index) in selects.branchs"
               :key="index"
               :label="item.name"
@@ -125,7 +127,12 @@
               </div>
             </template>
           </el-table-column>
-          <el-table-column align="center" prop="orderNo" label="订单号" width="180px">
+          <el-table-column
+            align="center"
+            prop="orderNo"
+            label="订单号"
+            width="180px"
+          >
             <template slot-scope="scope">
               <div>
                 <copy-text>{{ scope.row.orderNo }}</copy-text>
@@ -142,7 +149,12 @@
               scope.row.type | saleType
             }}</template>
           </el-table-column>
-          <el-table-column align="center" prop="goodsName" label="商品名称" width="200px">
+          <el-table-column
+            align="center"
+            prop="goodsName"
+            label="商品名称"
+            width="200px"
+          >
             <template slot-scope="scope">
               <div>
                 <copy-text>{{ scope.row.goodsName }}</copy-text>
@@ -154,6 +166,23 @@
             prop="num"
             label="数量"
           ></el-table-column>
+          <el-table-column align="center" prop="expectAmount" label="订单金额">
+            <template slot-scope="scope">
+              <div>
+                {{
+                  (scope.row.couponRemitAmount + scope.row.expectAmount)
+                    | moneyFormat
+                }}
+              </div>
+            </template>
+          </el-table-column>
+          <el-table-column align="center" prop="expectAmount" label="优惠金额">
+            <template slot-scope="scope">
+              <div>
+                {{ scope.row.couponRemitAmount | moneyFormat }}
+              </div>
+            </template>
+          </el-table-column>
           <el-table-column
             align="center"
             width="100"
@@ -396,7 +425,7 @@ import { paymentChannelStatus } from "@/utils/searchArray";
 import { Export } from "@/utils/downLoadFile";
 import dayjs from "dayjs";
 import { getTimes } from "@/utils";
-import cleanDeep from 'clean-deep'
+import cleanDeep from "clean-deep";
 export default {
   components: { pagination },
   name: "backMoney",
@@ -515,7 +544,7 @@ export default {
         search: "",
         goodsName: [],
         cooperationOrganId: "",
-        orderDate:[dayjs().format("YYYY-MM-DD"), dayjs().format("YYYY-MM-DD")]
+        orderDate: [dayjs().format("YYYY-MM-DD"), dayjs().format("YYYY-MM-DD")],
       };
       this.getList();
     },
@@ -558,7 +587,7 @@ export default {
               });
             });
           } else {
-            this.$message.error(res.msg)
+            this.$message.error(res.msg);
           }
         });
     },
@@ -579,7 +608,7 @@ export default {
       // applyRefundAudit()
     },
     onOrderExport() {
-        let { orderDate, ...rest } = this.searchForm;
+      let { orderDate, ...rest } = this.searchForm;
       let params = {
         ...rest,
         page: this.pageInfo.page,
@@ -590,8 +619,8 @@ export default {
         this,
         {
           url: "/api-web/export/exportSellOrders",
-          fileName:`销售列表导出.xls`,
-          params:cleanDeep( {
+          fileName: `销售列表导出.xls`,
+          params: cleanDeep({
             ...params,
             organIdList: [...this.searchForm.organIdList].join(),
           }),