zhanbo.xu

feat: 还原1.0.9代码

...@@ -23,26 +23,34 @@ ...@@ -23,26 +23,34 @@
23 ></el-input> 23 ></el-input>
24 </Formitem> 24 </Formitem>
25 </el-col> 25 </el-col>
26 - <!-- 回执状态 --> 26 + <!-- 监管场所经营人代码 -->
27 <el-col :span="5"> 27 <el-col :span="5">
28 - <Formitem label="回执状态" prop="receiptStatus"> 28 + <Formitem label="监管场所经营人代码" prop="operatorCode">
29 - <el-select 29 + <el-input
30 type="text" 30 type="text"
31 - id="inputInner--receiptStatus" 31 + class="inputShadow"
32 - v-model="sreachFormData.receiptStatus" 32 + id="inputInner--operatorCode"
33 + resize="none"
34 + v-model="sreachFormData.operatorCode"
33 clearable 35 clearable
34 placeholder="" 36 placeholder=""
35 - > 37 + ></el-input>
36 - <el-option 38 + </Formitem>
37 - v-for="(item, index) in $store.getters.dict.RECEIPT_STATUS" 39 + </el-col>
38 - :key="index" 40 + <!-- 监管场所经营人名称 -->
39 - :label="item.itemChineseName" 41 + <el-col :span="5">
40 - :value="item.itemValue" 42 + <Formitem label="监管场所经营人名称" prop="operatorName">
41 - ></el-option> 43 + <el-input
42 - </el-select> 44 + type="text"
45 + class="inputShadow"
46 + id="inputInner--operatorName"
47 + resize="none"
48 + v-model="sreachFormData.operatorName"
49 + clearable
50 + placeholder=""
51 + ></el-input>
43 </Formitem> 52 </Formitem>
44 </el-col> 53 </el-col>
45 -
46 <!-- 创建时间 --> 54 <!-- 创建时间 -->
47 <el-col :span="5"> 55 <el-col :span="5">
48 <Formitem label="创建时间" prop="createTime" :activeType="true"> 56 <Formitem label="创建时间" prop="createTime" :activeType="true">
...@@ -83,25 +91,33 @@ ...@@ -83,25 +91,33 @@
83 </el-form-item> 91 </el-form-item>
84 </el-col> 92 </el-col>
85 </el-row> 93 </el-row>
94 + <el-row class="backgroundRow">
95 + <!-- 回执状态 -->
96 + <el-col :span="5">
97 + <Formitem label="回执状态" prop="receiptStatus">
98 + <el-select
99 + type="text"
100 + id="inputInner--receiptStatus"
101 + v-model="sreachFormData.receiptStatus"
102 + clearable
103 + placeholder=""
104 + >
105 + <el-option
106 + v-for="(item, index) in $store.getters.dict.RECEIPT_STATUS"
107 + :key="index"
108 + :label="item.itemChineseName"
109 + :value="item.itemValue"
110 + ></el-option>
111 + </el-select>
112 + </Formitem>
113 + </el-col>
114 + </el-row>
86 </el-form> 115 </el-form>
87 <div class="optionButton"> 116 <div class="optionButton">
88 <el-button 117 <el-button
89 size="small" 118 size="small"
90 type="primary" 119 type="primary"
91 class="dropdown-style-button" 120 class="dropdown-style-button"
92 - :loading="loadings.declaration"
93 - @click="listDeclaration"
94 - >
95 - <svg-icon
96 - class="el-icon-user-solid"
97 - icon-class="fedexDeclareIcon"
98 - ></svg-icon>
99 - 清单总分单申报
100 - </el-button>
101 - <el-button
102 - size="small"
103 - type="primary"
104 - class="dropdown-style-button"
105 @click="addDeclare" 121 @click="addDeclare"
106 > 122 >
107 <svg-icon 123 <svg-icon
...@@ -110,18 +126,6 @@ ...@@ -110,18 +126,6 @@
110 ></svg-icon> 126 ></svg-icon>
111 运抵单申报 127 运抵单申报
112 </el-button> 128 </el-button>
113 - <el-button
114 - size="small"
115 - type="primary"
116 - class="dropdown-style-button"
117 - @click="leaveDeclare"
118 - >
119 - <svg-icon
120 - class="el-icon-user-solid"
121 - icon-class="fedexDeclareIcon"
122 - ></svg-icon>
123 - 离境单申报
124 - </el-button>
125 </div> 129 </div>
126 <Table 130 <Table
127 class="fedexDetialTable fedexSreachTable" 131 class="fedexDetialTable fedexSreachTable"
...@@ -164,18 +168,6 @@ ...@@ -164,18 +168,6 @@
164 {{ scope.row.uncompletedCount }} 168 {{ scope.row.uncompletedCount }}
165 </el-button> 169 </el-button>
166 </template> 170 </template>
167 - <template v-slot:listDontReleaseCount="scope">
168 - 清单放行:{{ scope.row.listReleaseCount }}/{{
169 - scope.row.listDontReleaseCount
170 - }}
171 - <!-- <el-button type="text" style="margin-left: 0">
172 - {{ scope.row.listReleaseCount }}
173 - </el-button>
174 - /
175 - <el-button type="text">
176 - {{ scope.row.listDontReleaseCount }}
177 - </el-button> -->
178 - </template>
179 <template v-slot:arrivalInReceiptStatus="scope"> 171 <template v-slot:arrivalInReceiptStatus="scope">
180 <TablePopover 172 <TablePopover
181 ref="arrivalInReceiptStatusPopover" 173 ref="arrivalInReceiptStatusPopover"
...@@ -197,86 +189,22 @@ ...@@ -197,86 +189,22 @@
197 </div> 189 </div>
198 </TablePopover> 190 </TablePopover>
199 </template> 191 </template>
200 - <!-- -->
201 - <template v-slot:totalReceiptStatus="scope">
202 - <TablePopover
203 - ref="totalReceiptStatusPopover"
204 - dataKey="totalReceiptStatus"
205 - idKey="declareId"
206 - :parentDom="$refs.entryTable"
207 - :receiptDataHead="receiptDataHead"
208 - :rowData="scope.row"
209 - :tableData="tableData"
210 - @popoverChange="popoverChange"
211 - @popoverClose="popoverClose"
212 - >
213 - <div slot="title">
214 - <span style="font-weight: 700; color: #515a6e">提运单号:</span
215 - >{{ scope.row.billNo }}
216 - </div>
217 - <div slot="buttonLabel">
218 - {{ scope.row.totalReceiptStatus }}
219 - </div>
220 - </TablePopover>
221 - </template>
222 - <template v-slot:logisticsDepartureReceiptStatus="scope">
223 - <TablePopover
224 - ref="logisticsDepartureReceiptStatusPopover"
225 - dataKey="logisticsDepartureReceiptStatus"
226 - idKey="declareId"
227 - :parentDom="$refs.entryTable"
228 - :receiptDataHead="receiptDataHead"
229 - :rowData="scope.row"
230 - :tableData="tableData"
231 - @popoverChange="popoverChange"
232 - @popoverClose="popoverClose"
233 - >
234 - <div slot="title">
235 - <span style="font-weight: 700; color: #515a6e">提运单号:</span
236 - >{{ scope.row.billNo }}
237 - </div>
238 - <div slot="buttonLabel">
239 - {{ scope.row.logisticsDepartureReceiptStatus }}
240 - </div>
241 - </TablePopover>
242 - </template>
243 </Table> 192 </Table>
244 <DialogVue 193 <DialogVue
245 :outerVisible="outerVisible" 194 :outerVisible="outerVisible"
246 :selected="selected" 195 :selected="selected"
247 @close="dialogClose" 196 @close="dialogClose"
248 /> 197 />
249 - <DataPreview
250 - :showDialog="dataPreviewVisible"
251 - :dataPreviewTitle="dataPreviewTitle"
252 - :selectedDatas="selected"
253 - @cancelDataPreview="cancelDataPreview"
254 - />
255 - <TimeDialog
256 - :timeVisible="timeVisible"
257 - :selected="selected"
258 - @close="timeClose"
259 - />
260 </div> 198 </div>
261 </template> 199 </template>
262 200
263 <script> 201 <script>
264 -import { 202 +import { getArrivalIneList, arrivalInReceipt } from "@/api/declareData-api.js";
265 - getArrivalIneList,
266 - arrivalInReceipt,
267 - declareDataUpload,
268 - getLogisticsReceipt,
269 - getTotalReceipt,
270 -} from "@/api/declareData-api.js";
271 import DialogVue from "./dialog.vue"; 203 import DialogVue from "./dialog.vue";
272 -import DataPreview from "../reportingData/data-preview.vue";
273 -import TimeDialog from "../reportingData/time-dialog.vue";
274 export default { 204 export default {
275 name: "SupervisePlaceManage", 205 name: "SupervisePlaceManage",
276 components: { 206 components: {
277 DialogVue, 207 DialogVue,
278 - DataPreview,
279 - TimeDialog,
280 }, 208 },
281 data() { 209 data() {
282 return { 210 return {
...@@ -287,6 +215,8 @@ export default { ...@@ -287,6 +215,8 @@ export default {
287 selected: [], 215 selected: [],
288 sreachFormData: { 216 sreachFormData: {
289 billNo: "", 217 billNo: "",
218 + operatorCode: "",
219 + operatorName: "",
290 receiptStatus: null, 220 receiptStatus: null,
291 receiptType: null, 221 receiptType: null,
292 createTime: [], 222 createTime: [],
...@@ -306,47 +236,43 @@ export default { ...@@ -306,47 +236,43 @@ export default {
306 slot: true, 236 slot: true,
307 }, 237 },
308 { 238 {
309 - name: "清单审结进度", 239 + name: "监管场所经营人代码",
310 - value: "listReceiptStatus", 240 + value: "operatorCode",
311 width: "", 241 width: "",
312 align: "left", 242 align: "left",
313 - slot: true,
314 }, 243 },
315 { 244 {
316 - name: "清单放行进度", 245 + name: "监管场所经营人名称",
317 - value: "listDontReleaseCount", 246 + value: "operatorName",
318 width: "", 247 width: "",
319 align: "left", 248 align: "left",
320 - slot: true,
321 }, 249 },
250 + // {
251 + // name: "电商企业名称",
252 + // value: "ecomEntName",
253 + // width: "",
254 + // align: "left",
255 + // },
322 { 256 {
323 - name: "清单总分单回执", 257 + name: "创建时间",
324 - value: "totalReceiptStatus", 258 + value: "createTime",
325 width: "", 259 width: "",
326 align: "left", 260 align: "left",
327 - slot: true,
328 }, 261 },
329 { 262 {
330 - name: "运抵单回执", 263 + name: "清单审结进度",
331 - value: "arrivalInReceiptStatus", 264 + value: "listReceiptStatus",
332 width: "", 265 width: "",
333 align: "left", 266 align: "left",
334 slot: true, 267 slot: true,
335 }, 268 },
336 -
337 { 269 {
338 - name: "离境单回执", 270 + name: "运抵单回执",
339 - value: "logisticsDepartureReceiptStatus", 271 + value: "arrivalInReceiptStatus",
340 width: "", 272 width: "",
341 align: "left", 273 align: "left",
342 slot: true, 274 slot: true,
343 }, 275 },
344 - {
345 - name: "创建时间",
346 - value: "createTime",
347 - width: "",
348 - align: "left",
349 - },
350 ], 276 ],
351 receiptDataHead: [ 277 receiptDataHead: [
352 { 278 {
...@@ -370,15 +296,9 @@ export default { ...@@ -370,15 +296,9 @@ export default {
370 ], 296 ],
371 loadings: { 297 loadings: {
372 sreachLoading: false, 298 sreachLoading: false,
373 - declaration: false,
374 }, 299 },
375 tableMaxheight: null, 300 tableMaxheight: null,
376 outerVisible: false, 301 outerVisible: false,
377 - // 清分单总单申报
378 - dataPreviewVisible: false,
379 - dataPreviewTitle: "",
380 - // 离境单申报
381 - timeVisible: false,
382 }; 302 };
383 }, 303 },
384 created() { 304 created() {
...@@ -392,61 +312,6 @@ export default { ...@@ -392,61 +312,6 @@ export default {
392 }, 312 },
393 313
394 methods: { 314 methods: {
395 - // 申报
396 - postDeclareData(val) {
397 - const obj = {
398 - declareIds: this.selected.map((item) => item.declareId),
399 - type: "totalScore",
400 - };
401 - declareDataUpload(obj)
402 - .then((res) => {
403 - if (res.code === "200") {
404 - this.alertSuccessMsg("数据已成功提交申报,请等待海关回执。");
405 - } else {
406 - this.alertWarningMsg(res.message);
407 - }
408 - })
409 - .catch((err) => {
410 - console.error(err);
411 - this.alertWarningMsg("申报失败,请稍后重试。");
412 - })
413 - .finally(() => {
414 - if (+val === 1) {
415 - this.search(0);
416 - }
417 - });
418 - },
419 - // 清单总分单申报
420 - listDeclaration() {
421 - if (this.selected.length === 0) {
422 - this.alertWarningMsg("请选择数据!");
423 - return;
424 - }
425 - this.loadings.declaration = true;
426 -
427 - this.dataPreviewVisible = true;
428 - this.dataPreviewTitle = `预览-清单总分单申报`;
429 - },
430 - timeClose(flag = false) {
431 - this.timeVisible = false;
432 - if (flag) {
433 - this.search(0);
434 - }
435 - },
436 - // 离镜单申报
437 - leaveDeclare() {
438 - if (this.selected.length === 0) {
439 - this.alertWarningMsg("请选择数据!");
440 - return;
441 - }
442 - this.timeVisible = true;
443 - },
444 - cancelDataPreview(val) {
445 - this.dataPreviewVisible = false;
446 - this.dataPreviewTitle = "";
447 - this.loadings.declaration = false;
448 - this.postDeclareData(val);
449 - },
450 // 运单号跳转 315 // 运单号跳转
451 linkChange(record, type) { 316 linkChange(record, type) {
452 const { billNo, completedLogisticsNo, uncompletedLogisticsNo } = 317 const { billNo, completedLogisticsNo, uncompletedLogisticsNo } =
...@@ -481,10 +346,8 @@ export default { ...@@ -481,10 +346,8 @@ export default {
481 }, 346 },
482 popoverClose(val) { 347 popoverClose(val) {
483 this.tableData.forEach((item) => { 348 this.tableData.forEach((item) => {
484 - // item.listReceiptStatusPopoverType = false; 349 + item.listReceiptStatusPopoverType = false;
485 item.arrivalInReceiptStatusPopoverType = false; 350 item.arrivalInReceiptStatusPopoverType = false;
486 - item.logisticsDepartureReceiptStatusPopoverType = false;
487 - item.totalReceiptStatusPopoverType = false;
488 item.popoverData = []; 351 item.popoverData = [];
489 }); 352 });
490 this.selectedLogRow.allLogDataReceiptStatusPopoverType = false; 353 this.selectedLogRow.allLogDataReceiptStatusPopoverType = false;
...@@ -493,7 +356,7 @@ export default { ...@@ -493,7 +356,7 @@ export default {
493 }, 356 },
494 357
495 //查询回执 358 //查询回执
496 - receiptApi(billNo, type, declareId) { 359 + receiptApi(billNo, type) {
497 return new Promise((resolve, reject) => { 360 return new Promise((resolve, reject) => {
498 let obj = { billNo }; 361 let obj = { billNo };
499 // if (type == "listReceiptStatus") { 362 // if (type == "listReceiptStatus") {
...@@ -523,34 +386,6 @@ export default { ...@@ -523,34 +386,6 @@ export default {
523 console.log(err); 386 console.log(err);
524 reject(); 387 reject();
525 }); 388 });
526 - } else if (type == "logisticsDepartureReceiptStatus") {
527 - let objVal = { declareId: declareId };
528 - getLogisticsReceipt(objVal)
529 - .then((res) => {
530 - if (res.code === "200") {
531 - resolve(res.data);
532 - } else {
533 - reject();
534 - }
535 - })
536 - .catch((err) => {
537 - console.log(err);
538 - reject();
539 - });
540 - } else if (type == "totalReceiptStatus") {
541 - let objVal = { declareId: declareId };
542 - getTotalReceipt(objVal)
543 - .then((res) => {
544 - if (res.code === "200") {
545 - resolve(res.data);
546 - } else {
547 - reject();
548 - }
549 - })
550 - .catch((err) => {
551 - console.log(err);
552 - reject();
553 - });
554 } 389 }
555 }); 390 });
556 }, 391 },
...@@ -559,7 +394,7 @@ export default { ...@@ -559,7 +394,7 @@ export default {
559 394
560 console.log(val); 395 console.log(val);
561 396
562 - this.receiptApi(val.data.billNo, val.status, val.data.declareId) 397 + this.receiptApi(val.data.billNo, val.status)
563 .then((res) => { 398 .then((res) => {
564 val.tableData.forEach((item) => { 399 val.tableData.forEach((item) => {
565 if (item.declareId == val.data.declareId) { 400 if (item.declareId == val.data.declareId) {
...@@ -571,10 +406,8 @@ export default { ...@@ -571,10 +406,8 @@ export default {
571 .finally(() => { 406 .finally(() => {
572 this.$nextTick(() => { 407 this.$nextTick(() => {
573 this.$store.dispatch("setLoadingState", false); 408 this.$store.dispatch("setLoadingState", false);
574 - // this.$refs.listReceiptStatusPopover.tableLoading = false; // 清单回执 409 + this.$refs.listReceiptStatusPopover.tableLoading = false; // 清单回执
575 this.$refs.arrivalInReceiptStatusPopover.tableLoading = false; //运抵单回执 410 this.$refs.arrivalInReceiptStatusPopover.tableLoading = false; //运抵单回执
576 - this.$refs.logisticsDepartureReceiptStatusPopover.tableLoading = false; // 离境单回执
577 - this.$refs.totalReceiptStatusPopover.tableLoading = false;
578 }); 411 });
579 }); 412 });
580 }, 413 },
...@@ -584,6 +417,8 @@ export default { ...@@ -584,6 +417,8 @@ export default {
584 //重置数据 417 //重置数据
585 this.sreachFormData = { 418 this.sreachFormData = {
586 billNo: "", 419 billNo: "",
420 + operatorCode: "",
421 + operatorName: "",
587 receiptStatus: null, 422 receiptStatus: null,
588 receiptType: null, 423 receiptType: null,
589 createTime: [], 424 createTime: [],
...@@ -615,10 +450,8 @@ export default { ...@@ -615,10 +450,8 @@ export default {
615 this.page.total = res.data.totalItems; 450 this.page.total = res.data.totalItems;
616 this.tableData.forEach((item, idx) => { 451 this.tableData.forEach((item, idx) => {
617 item.index = idx; 452 item.index = idx;
618 - // item.listReceiptStatusPopoverType = false; // 清单回执 453 + item.listReceiptStatusPopoverType = false; // 清单回执
619 item.arrivalInReceiptStatusPopoverType = false; // 运抵单回执 454 item.arrivalInReceiptStatusPopoverType = false; // 运抵单回执
620 - item.logisticsDepartureReceiptStatusPopoverType = false; // 离境单回执
621 - item.totalReceiptStatusPopoverType = false;
622 // item.logLoading = false; 455 // item.logLoading = false;
623 item.popoverData = []; 456 item.popoverData = [];
624 }); 457 });
......
...@@ -145,14 +145,14 @@ ...@@ -145,14 +145,14 @@
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"
151 icon="el-icon-edit" 151 icon="el-icon-edit"
152 @click="weightAdjustFn" 152 @click="weightAdjustFn"
153 > 153 >
154 重量调整 154 重量调整
155 - </el-button> 155 + </el-button> -->
156 <el-button 156 <el-button
157 class="entrySaveButton" 157 class="entrySaveButton"
158 size="small" 158 size="small"
......