zhanbo.xu

feat: 修改运抵单申报页面

...@@ -253,3 +253,13 @@ export function checkBillNo(data) { ...@@ -253,3 +253,13 @@ export function checkBillNo(data) {
253 data: data.declareIds, 253 data: data.declareIds,
254 }); 254 });
255 } 255 }
256 +
257 +// /declareData/getArrivalIneList
258 +// 运抵单申报列表
259 +export function getArrivalIneList(data) {
260 + return request({
261 + url: "/bus-customer/declareData/getArrivalIneList",
262 + method: "post",
263 + data: data,
264 + });
265 +}
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
8 size="small" 8 size="small"
9 > 9 >
10 <el-row class="row-border"> 10 <el-row class="row-border">
11 + <!-- 提运单号、监管场经营人代码、监管场所经营人名称、创建时间、回执状态 -->
11 <!-- 提运单号 --> 12 <!-- 提运单号 -->
12 <el-col :span="5"> 13 <el-col :span="5">
13 <Formitem label="提运单号" prop="billNo"> 14 <Formitem label="提运单号" prop="billNo">
...@@ -22,25 +23,29 @@ ...@@ -22,25 +23,29 @@
22 ></el-input> 23 ></el-input>
23 </Formitem> 24 </Formitem>
24 </el-col> 25 </el-col>
25 - <!-- 物流运单编号 --> 26 + <!-- 监管场所经营人代码 -->
26 <el-col :span="5"> 27 <el-col :span="5">
27 - <Formitem label="物流运单编号" prop="logisticsNo"> 28 + <Formitem label="监管场所经营人代码" prop="operatorCode">
28 - <FormTextareaInput 29 + <el-input
29 - :formData="sreachFormData" 30 + type="text"
30 - dataKey="logisticsNo" 31 + class="inputShadow"
31 - @formChange="formChange" 32 + id="inputInner--operatorCode"
32 - /> 33 + resize="none"
34 + v-model="sreachFormData.operatorCode"
35 + clearable
36 + placeholder=""
37 + ></el-input>
33 </Formitem> 38 </Formitem>
34 </el-col> 39 </el-col>
35 - <!-- 订单编号 --> 40 + <!-- 监管场所经营人名称 -->
36 <el-col :span="5"> 41 <el-col :span="5">
37 - <Formitem label="订单编号" prop="orderNo"> 42 + <Formitem label="监管场所经营人名称" prop="operatorName">
38 <el-input 43 <el-input
39 type="text" 44 type="text"
40 class="inputShadow" 45 class="inputShadow"
41 - id="inputInner--orderNo" 46 + id="inputInner--operatorName"
42 resize="none" 47 resize="none"
43 - v-model="sreachFormData.orderNo" 48 + v-model="sreachFormData.operatorName"
44 clearable 49 clearable
45 placeholder="" 50 placeholder=""
46 ></el-input> 51 ></el-input>
...@@ -145,6 +150,11 @@ ...@@ -145,6 +150,11 @@
145 @tableSelectAll="tableSelectAll" 150 @tableSelectAll="tableSelectAll"
146 :selected="selected" 151 :selected="selected"
147 > 152 >
153 + <template v-slot:billNo="scope">
154 + <el-button type="text" @click.stop="linkChange(scope)">
155 + {{ scope.row.billNo }}
156 + </el-button>
157 + </template>
148 <template v-slot:listReceiptStatus="scope"> 158 <template v-slot:listReceiptStatus="scope">
149 <TablePopover 159 <TablePopover
150 ref="listReceiptStatusPopover" 160 ref="listReceiptStatusPopover"
...@@ -198,7 +208,7 @@ ...@@ -198,7 +208,7 @@
198 208
199 <script> 209 <script>
200 import { 210 import {
201 - searchDeclareData, 211 + getArrivalIneList,
202 getListReceipt, 212 getListReceipt,
203 arrivalInReceipt, 213 arrivalInReceipt,
204 } from "@/api/declareData-api.js"; 214 } from "@/api/declareData-api.js";
...@@ -217,8 +227,8 @@ export default { ...@@ -217,8 +227,8 @@ export default {
217 selected: [], 227 selected: [],
218 sreachFormData: { 228 sreachFormData: {
219 billNo: "", 229 billNo: "",
220 - logisticsNo: "", 230 + operatorCode: "",
221 - orderNo: "", 231 + operatorName: "",
222 receiptStatus: null, 232 receiptStatus: null,
223 receiptType: null, 233 receiptType: null,
224 createTime: [], 234 createTime: [],
...@@ -235,25 +245,26 @@ export default { ...@@ -235,25 +245,26 @@ export default {
235 value: "billNo", 245 value: "billNo",
236 width: "", 246 width: "",
237 align: "left", 247 align: "left",
248 + slot: true,
238 }, 249 },
239 { 250 {
240 - name: "物流运单编号", 251 + name: "监管场所经营人代码",
241 - value: "logisticsWaybillNumber", 252 + value: "operatorCode",
242 - width: "",
243 - align: "left",
244 - },
245 - {
246 - name: "订单编号",
247 - value: "orderno",
248 width: "", 253 width: "",
249 align: "left", 254 align: "left",
250 }, 255 },
251 { 256 {
252 - name: "电商企业名称", 257 + name: "监管场所经营人名称",
253 - value: "ecomEntName", 258 + value: "operatorName",
254 width: "", 259 width: "",
255 align: "left", 260 align: "left",
256 }, 261 },
262 + // {
263 + // name: "电商企业名称",
264 + // value: "ecomEntName",
265 + // width: "",
266 + // align: "left",
267 + // },
257 { 268 {
258 name: "创建时间", 269 name: "创建时间",
259 value: "createTime", 270 value: "createTime",
...@@ -320,15 +331,22 @@ export default { ...@@ -320,15 +331,22 @@ export default {
320 window.removeEventListener("resize", this.calculateTableHeight); 331 window.removeEventListener("resize", this.calculateTableHeight);
321 }, 332 },
322 methods: { 333 methods: {
334 + // 运单号跳转
335 + linkChange(record) {
336 + const { billNo } = record.row;
337 + console.log(record);
338 + this.$router.push({
339 + path: "/reportingData",
340 + query: { billNo, search: true },
341 + });
342 + },
323 tableSelect(val) { 343 tableSelect(val) {
324 this.selected = val.selection; 344 this.selected = val.selection;
325 }, 345 },
326 tableSelectAll(val) { 346 tableSelectAll(val) {
327 this.selected = val; 347 this.selected = val;
328 }, 348 },
329 - formChange(val) { 349 +
330 - this.sreachFormData = val;
331 - },
332 dateChange(val) { 350 dateChange(val) {
333 if (val == "" || val == null) { 351 if (val == "" || val == null) {
334 this.$nextTick(() => { 352 this.$nextTick(() => {
...@@ -410,8 +428,8 @@ export default { ...@@ -410,8 +428,8 @@ export default {
410 //重置数据 428 //重置数据
411 this.sreachFormData = { 429 this.sreachFormData = {
412 billNo: "", 430 billNo: "",
413 - logisticsNo: "", 431 + operatorCode: "",
414 - orderNo: "", 432 + operatorName: "",
415 receiptStatus: null, 433 receiptStatus: null,
416 receiptType: null, 434 receiptType: null,
417 createTime: [], 435 createTime: [],
...@@ -433,8 +451,8 @@ export default { ...@@ -433,8 +451,8 @@ export default {
433 obj.startCreateTime = obj.createTime[0]; 451 obj.startCreateTime = obj.createTime[0];
434 obj.endCreateTime = obj.createTime[1]; 452 obj.endCreateTime = obj.createTime[1];
435 } 453 }
436 - searchDeclareData({ 454 + getArrivalIneList({
437 - isOnlySearchArrivalIn: true, 455 + // isOnlySearchArrivalIn: true,
438 ...obj, 456 ...obj,
439 }) 457 })
440 .then((res) => { 458 .then((res) => {
......
...@@ -675,8 +675,17 @@ export default { ...@@ -675,8 +675,17 @@ export default {
675 }; 675 };
676 }, 676 },
677 created() { 677 created() {
678 - this.search(0);
679 this.calculateTableHeight(); 678 this.calculateTableHeight();
679 +
680 + try {
681 + if (this.$route.query.billNo && this.$route.query.search == "true") {
682 + this.sreachFormData.billNo = this.$route.query.billNo;
683 + }
684 + } catch (error) {
685 + console.log(error);
686 + } finally {
687 + this.search(0);
688 + }
680 }, 689 },
681 mounted() { 690 mounted() {
682 window.addEventListener("resize", this.calculateTableHeight); 691 window.addEventListener("resize", this.calculateTableHeight);
......