zhanbo.xu

feat:新增申报数据二次预览

...@@ -137,14 +137,14 @@ ...@@ -137,14 +137,14 @@
137 > 137 >
138 批量修改 138 批量修改
139 </el-button> 139 </el-button>
140 - <el-button 140 + <!-- <el-button
141 class="entrySaveButton" 141 class="entrySaveButton"
142 size="small" 142 size="small"
143 icon="el-icon-edit" 143 icon="el-icon-edit"
144 @click="batchModify" 144 @click="batchModify"
145 > 145 >
146 重量调整 146 重量调整
147 - </el-button> 147 + </el-button> -->
148 <el-button 148 <el-button
149 class="entrySaveButton" 149 class="entrySaveButton"
150 size="small" 150 size="small"
......
...@@ -4,13 +4,22 @@ ...@@ -4,13 +4,22 @@
4 title="离境单申报" 4 title="离境单申报"
5 :visible.sync="timeVisible" 5 :visible.sync="timeVisible"
6 :show-close="false" 6 :show-close="false"
7 - width="40%" 7 + width="700px"
8 :close-on-click-modal="false" 8 :close-on-click-modal="false"
9 :destroy-on-close="true" 9 :destroy-on-close="true"
10 v-loading="loadings.dialogLoading" 10 v-loading="loadings.dialogLoading"
11 @close="close(false)" 11 @close="close(false)"
12 > 12 >
13 - <div class="modelItem"> 13 + <div style="margin-bottom: 10px">
14 + <span>
15 + 提运单号 数量:<strong>{{ tableData.length }}</strong>
16 + </span>
17 + <span style="margin-left: 20px">
18 + 物流运单编号 数量:<strong>{{ selected.length }}</strong>
19 + </span>
20 + </div>
21 +
22 + <div class="modelItem" style="margin-bottom: 10px">
14 <el-form 23 <el-form
15 class="fedexFormStyle" 24 class="fedexFormStyle"
16 ref="formData" 25 ref="formData"
...@@ -19,7 +28,7 @@ ...@@ -19,7 +28,7 @@
19 size="small" 28 size="small"
20 > 29 >
21 <el-row :gutter="5"> 30 <el-row :gutter="5">
22 - <el-col :span="8"> 31 + <el-col :span="18">
23 <Formitem label="离境时间" prop="leaveTime" type="edit"> 32 <Formitem label="离境时间" prop="leaveTime" type="edit">
24 <el-date-picker 33 <el-date-picker
25 class="inputInner--leaveTime" 34 class="inputInner--leaveTime"
...@@ -35,6 +44,17 @@ ...@@ -35,6 +44,17 @@
35 </el-row> 44 </el-row>
36 </el-form> 45 </el-form>
37 </div> 46 </div>
47 + <Table
48 + class="fedexDetialTable fedexSreachTable"
49 + ref="entryTable"
50 + :data="tableData"
51 + :headerData="headerData"
52 + :border="true"
53 + :pagination="false"
54 + :order="false"
55 + >
56 + </Table>
57 +
38 <div class="dialogOption entrySave"> 58 <div class="dialogOption entrySave">
39 <el-button 59 <el-button
40 class="entrySaveButton" 60 class="entrySaveButton"
...@@ -62,13 +82,33 @@ export default { ...@@ -62,13 +82,33 @@ export default {
62 }, 82 },
63 }, 83 },
64 }, 84 },
65 - 85 + watch: {
86 + timeVisible(val) {
87 + if (val) {
88 + this.tableData = this.processWaybills(this.selected);
89 + }
90 + },
91 + },
66 data() { 92 data() {
67 return { 93 return {
68 formData: { 94 formData: {
69 leaveTime: "", 95 leaveTime: "",
70 }, 96 },
71 - 97 + headerData: [
98 + {
99 + name: "提运单号",
100 + value: "billNo",
101 + width: "180px",
102 + align: "left",
103 + },
104 + {
105 + name: "物流运单编号",
106 + value: "logisticsWaybillNumber",
107 + width: "",
108 + align: "left",
109 + },
110 + ],
111 + tableData: [],
72 loadings: { 112 loadings: {
73 dialogLoading: false, 113 dialogLoading: false,
74 submitLoading: false, 114 submitLoading: false,
...@@ -77,6 +117,33 @@ export default { ...@@ -77,6 +117,33 @@ export default {
77 }; 117 };
78 }, 118 },
79 methods: { 119 methods: {
120 + processWaybills(data) {
121 + if (!Array.isArray(data)) {
122 + throw new Error("输入参数必须是数组");
123 + }
124 +
125 + return Array.from(
126 + data.reduce((map, item) => {
127 + const key = item.billNo;
128 + if (!map.has(key)) {
129 + map.set(key, {
130 + billNo: key,
131 + logisticsWaybillNumber: [],
132 + });
133 + }
134 + if (item.logisticsWaybillNumber) {
135 + map
136 + .get(key)
137 + .logisticsWaybillNumber.push(item.logisticsWaybillNumber);
138 + }
139 + return map;
140 + }, new Map()),
141 + ([_, value]) => ({
142 + ...value,
143 + logisticsWaybillNumber: value.logisticsWaybillNumber.join(","),
144 + })
145 + );
146 + },
80 //数据保存 147 //数据保存
81 submit() { 148 submit() {
82 let obj = { 149 let obj = {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
4 title="重量调整" 4 title="重量调整"
5 :visible.sync="batchModifyVisible" 5 :visible.sync="batchModifyVisible"
6 :show-close="false" 6 :show-close="false"
7 - width="60%" 7 + width="450px"
8 :close-on-click-modal="false" 8 :close-on-click-modal="false"
9 > 9 >
10 <div> 10 <div>
...@@ -16,7 +16,37 @@ ...@@ -16,7 +16,37 @@
16 label-position="left" 16 label-position="left"
17 size="small" 17 size="small"
18 > 18 >
19 - <Formitem label="修改数据" prop="modifyData"> 19 + <Formitem label="提运单号" prop="modifyContent">
20 + <el-input
21 + type="text"
22 + class="inputShadow"
23 + resize="none"
24 + v-model="batchModifyFormData.modifyContent"
25 + clearable
26 + placeholder="请输入提运单号"
27 + ></el-input>
28 + </Formitem>
29 + <Formitem label="件数" prop="modifyContent">
30 + <el-input
31 + type="text"
32 + class="inputShadow"
33 + resize="none"
34 + v-model="batchModifyFormData.modifyContent"
35 + clearable
36 + placeholder="请输入修改内容"
37 + ></el-input>
38 + </Formitem>
39 + <Formitem label="原毛重" prop="modifyContent">
40 + <el-input
41 + type="text"
42 + class="inputShadow"
43 + resize="none"
44 + v-model="batchModifyFormData.modifyContent"
45 + clearable
46 + placeholder="请输入修改内容"
47 + ></el-input>
48 + </Formitem>
49 + <Formitem label="修改后毛重" prop="modifyData">
20 <el-select 50 <el-select
21 type="text" 51 type="text"
22 v-model="batchModifyFormData.modifyData" 52 v-model="batchModifyFormData.modifyData"
......
...@@ -169,10 +169,10 @@ export default { ...@@ -169,10 +169,10 @@ export default {
169 addMenuFn() { 169 addMenuFn() {
170 let params = { 170 let params = {
171 icon: "", 171 icon: "",
172 - menuName: "运抵单申报", 172 + menuName: "HSCODE 管理",
173 - order: 1, 173 + order: 6.2,
174 - parentMenuId: 96, 174 + parentMenuId: 90,
175 - physicalUrl: "/arrival-declare", //-management 175 + physicalUrl: "/hs-code", //-management
176 url: "", 176 url: "",
177 }; 177 };
178 addMenu(params).then((res) => { 178 addMenu(params).then((res) => {
......