|
@@ -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);
|