jiaxing.zhou

feat(exportSummary): 新增汇总申请单查询功能

- 添加提运单号、预录入编号、电商企业代码等查询条件
- 新增汇总时间、业务状态等筛选项
- 更新表格展示字段,包括电子口岸预录入编号、提运单号等
-集成新的 API searchExportSummaryList 用于获取汇总申请单数据
......@@ -21,3 +21,14 @@ export function searchExportSummaryList(data){
data: data,
})
}
/**
* 查询汇总回执
* @param data.copNo 企业唯一编号
*/
export function getExportSummaryReceiptData(data){
return request({
url: '/bus-customer/exportSummary/receipt/' + data.copNo,
method: 'get',
})
}
......
......@@ -201,9 +201,12 @@
@sizeChange="sizeChange"
@currentChange="currentChange"
@cellClick="cellClick"
:selection="false"
:selection="true"
:selectFixed="false"
:rowSelectDataType="false"
@tableSelect="tableSelect"
@tableSelectAll="tableSelectAll"
:selected="selected"
>
<template v-slot:returnStatus="scope">
<TablePopover
......@@ -236,11 +239,8 @@
<script>
import {
getAllExportingBills,
getOrderReceiptData,
} from "@/api/exportQuery.js";
import {
searchExportSummaryList
searchExportSummaryList,
getExportSummaryReceiptData
} from "@/api/exportSummary-api";
export default {
name: "ExportBillQuery",
......@@ -264,69 +264,88 @@ export default {
total: 0,
},
tableData: [],
selected: [],
headerData: [
{
name: "回执状态",
value: "returnStatus",
width: "",
align: "left",
slot: true,
},
{
name: "电子口岸预录入编号",
value: "preNo",
width: "",
align: "left",
slot: true,
},
{
name: "提运单号",
value: "billNo",
width: "",
align: "left",
slot: true,
},
{
name: "汇总申请单编号",
value: "sumNo",
width: "",
align: "left",
slot: true,
},
{
name: "申报企业代码",
value: "agentCode",
width: "",
align: "left",
slot: true,
},
{
name: "申报企业名称",
value: "agentName",
width: "",
align: "left",
slot: true,
},
{
name: "收发货人代码",
value: "ebccode",
width: "",
align: "left",
slot: true,
},
{
name: "收发货人名称",
value: "ebcname",
width: "",
align: "left",
slot: true,
},
{
name: "汇总时间",
value: "startTime"+"~"+"endTime",
width: "",
align: "left",
slot: true,
},
{
name: "收发货人汇总标志",
value:"summaryFlag",
width: "",
align: "left",
slot: true,
},
],
receiptDataHead: [
{
name: "回执状态",
value: "receiptStatus",
width: "",
align: "left",
},
{
name: "状态时间",
value: "statusTime",
width: "",
align: "left",
},
{
name: "回执描述",
value: "receiptDescription",
width: "",
align: "left",
},
],
dictData: {
......@@ -404,17 +423,18 @@ export default {
//查询详情
view(val) {
this.$router.push({
name: "ExportBillDetail",
name: "summaryDetail",
params: { data: val },
});
},
popoverChange(val) {
console.log(val);
this.tableData = val.tableData;
this.receiptApi(val.data.declareId, val.status)
this.receiptApi(val.data.copNo, val.status)
.then((res) => {
val.tableData.forEach((item) => {
if (item.declareId == val.data.declareId) {
console.log("item",item)
if (item.id == val.data.id) {
item.popoverData = res;
}
});
......@@ -427,10 +447,10 @@ export default {
});
},
//查询回执
receiptApi(id) {
receiptApi(copNo) {
return new Promise((resolve, reject) => {
let obj = { orderId: id };
getOrderReceiptData(obj)
let obj = { copNo: copNo };
getExportSummaryReceiptData(obj)
.then((res) => {
if (res.code === "200") {
resolve(res.data);
......@@ -474,6 +494,12 @@ export default {
});
}
},
tableSelect(val) {
this.selected = val.selection;
},
tableSelectAll(val) {
this.selected = val;
},
input() {
this.$forceUpdate();
},
......
This diff is collapsed. Click to expand it.