瀏覽代碼

对账单分类增加显示各类订单数量

lxf 1 年之前
父節點
當前提交
bb37fbc5b2

+ 24 - 0
src/views/group/finance/check-bill/index.vue

@@ -642,6 +642,30 @@ const clickPrint = (row) => {
   activeName.value = "sku";
   rowData.value = row;
   openPrint.value = true;
+  proxy.post("/statementOfAccount/getOrderClassifyTotalCount", [row.id]).then((res) => {
+    cardList.value = [
+      {
+        dictKey: 1,
+        dictValue: "万里牛订单(" + res.wlnOrderCount + ")",
+      },
+      {
+        dictKey: 2,
+        dictValue: "采购订单(" + res.purchaseOrderCount + ")",
+      },
+      {
+        dictKey: 3,
+        dictValue: "委外订单(" + res.outsourceOrderCount + ")",
+      },
+      {
+        dictKey: 4,
+        dictValue: "售后订单(" + res.afterSaleOrderCount + ")",
+      },
+      {
+        dictKey: 5,
+        dictValue: "无理由订单(" + res.noReasonOrderCount + ")",
+      },
+    ];
+  });
 };
 const clickCopyWLNCode = (row) => {
   ElMessage("复制数据中,请稍后");

+ 27 - 1
src/views/group/finance/summary/index.vue

@@ -38,7 +38,7 @@
         </el-tabs>
       </div>
     </el-dialog>
-    
+
     <el-dialog title="Excel文件" v-if="openFileList" v-model="openFileList" width="60%">
       <ExcelFile></ExcelFile>
       <template #footer>
@@ -259,6 +259,32 @@ const clickPrint = (row) => {
   activeName.value = "sku";
   rowData.value = row;
   openPrint.value = true;
+  if (row.idGroupConcat) {
+    proxy.post("/statementOfAccount/getOrderClassifyTotalCount", row.idGroupConcat.split(",")).then((res) => {
+      cardList.value = [
+        {
+          dictKey: 1,
+          dictValue: "万里牛订单(" + res.wlnOrderCount + ")",
+        },
+        {
+          dictKey: 2,
+          dictValue: "采购订单(" + res.purchaseOrderCount + ")",
+        },
+        {
+          dictKey: 3,
+          dictValue: "委外订单(" + res.outsourceOrderCount + ")",
+        },
+        {
+          dictKey: 4,
+          dictValue: "售后订单(" + res.afterSaleOrderCount + ")",
+        },
+        {
+          dictKey: 5,
+          dictValue: "无理由订单(" + res.noReasonOrderCount + ")",
+        },
+      ];
+    });
+  }
 };
 const clickCopyWLNCode = (row) => {
   if (row.idGroupConcat) {

+ 25 - 1
src/views/subsidiary/finance/check-bill/index.vue

@@ -67,7 +67,7 @@
         </el-tabs>
       </div>
     </el-dialog>
-    
+
     <el-dialog title="Excel文件" v-if="openFileList" v-model="openFileList" width="60%">
       <ExcelFile></ExcelFile>
       <template #footer>
@@ -266,6 +266,30 @@ const clickPrint = (row) => {
   activeName.value = "sku";
   rowData.value = row;
   openPrint.value = true;
+  proxy.post("/statementOfAccount/getOrderClassifyTotalCount", [row.id]).then((res) => {
+    cardList.value = [
+      {
+        dictKey: 1,
+        dictValue: "万里牛订单(" + res.wlnOrderCount + ")",
+      },
+      {
+        dictKey: 2,
+        dictValue: "采购订单(" + res.purchaseOrderCount + ")",
+      },
+      {
+        dictKey: 3,
+        dictValue: "委外订单(" + res.outsourceOrderCount + ")",
+      },
+      {
+        dictKey: 4,
+        dictValue: "售后订单(" + res.afterSaleOrderCount + ")",
+      },
+      {
+        dictKey: 5,
+        dictValue: "无理由订单(" + res.noReasonOrderCount + ")",
+      },
+    ];
+  });
 };
 const openFileList = ref(false);
 const clickCancel = (status) => {

+ 27 - 1
src/views/subsidiary/finance/summary/index.vue

@@ -38,7 +38,7 @@
         </el-tabs>
       </div>
     </el-dialog>
-    
+
     <el-dialog title="Excel文件" v-if="openFileList" v-model="openFileList" width="60%">
       <ExcelFile></ExcelFile>
       <template #footer>
@@ -226,6 +226,32 @@ const clickPrint = (row) => {
   activeName.value = "sku";
   rowData.value = row;
   openPrint.value = true;
+  if (row.idGroupConcat) {
+    proxy.post("/statementOfAccount/getOrderClassifyTotalCount", row.idGroupConcat.split(",")).then((res) => {
+      cardList.value = [
+        {
+          dictKey: 1,
+          dictValue: "万里牛订单(" + res.wlnOrderCount + ")",
+        },
+        {
+          dictKey: 2,
+          dictValue: "采购订单(" + res.purchaseOrderCount + ")",
+        },
+        {
+          dictKey: 3,
+          dictValue: "委外订单(" + res.outsourceOrderCount + ")",
+        },
+        {
+          dictKey: 4,
+          dictValue: "售后订单(" + res.afterSaleOrderCount + ")",
+        },
+        {
+          dictKey: 5,
+          dictValue: "无理由订单(" + res.noReasonOrderCount + ")",
+        },
+      ];
+    });
+  }
 };
 const openFileList = ref(false);
 const clickCancel = (status) => {