فهرست منبع

新增明细详情导入

lichao 3 سال پیش
والد
کامیت
f56206cd32

+ 7 - 0
src/api/warehouseBusiness/storageFeeCalculation.js

@@ -86,6 +86,13 @@ export function exportWarehousebillsitems(fId) {
     method: 'get'
   })
 }
+// 明细导出按钮
+export function exportDetail(fId) {
+  return request({
+    url: '/warehouseBusiness/storageFeeCalculation/exportDetail/'+fId,
+    method: 'get'
+  })
+}
  // 撤销请核
 export function backFee(fId) {
   return request({

+ 26 - 2
src/views/warehouseBusiness/storageFeeCalculation/index.vue

@@ -568,6 +568,12 @@
             @click="handleExportItems"
         >导出
         </el-button>
+        <el-button
+          type="warning"
+          icon="el-icon-download"
+          @click="exportDetail"
+          v-show="dataList.length > 0 && form.fMblno"
+        >明细导出</el-button>
       </div>
       <div class="dialogTableTitle flex a-center jlr"
            style="display:flex;justify-content:space-between;align-items:center;margin: 10px 0;">
@@ -1117,7 +1123,8 @@ import {
   exportStorageFeeCalculation,
   exportWarehousebillsitems,
   delstorageFeeCalculation_s,
-  exportWarehousebills
+  exportWarehousebills,
+  exportDetail,
 } from "@/api/warehouseBusiness/storageFeeCalculation";
 import {listUser, queryUserVal} from "@/api/system/user";
 import {listGoods} from "@/api/basicdata/goods";
@@ -2247,7 +2254,24 @@ export default {
       } else {
         this.$message("请先保存")
       }
-
+    },
+    exportDetail() {
+      const fIds = this.form.fId
+      if (fIds !== null) {
+        this.$confirm("是否确认导出所有计费物资明细数据?", "警告", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning",
+        })
+          .then(function () {
+            return exportDetail(fIds);
+          })
+          .then((response) => {
+            this.download(response.msg);
+          });
+      } else {
+        this.$message("请先保存")
+      }
     },
     deleteRow(index, rows) {
       rows.splice(index, 1);