tao.mo

Merge remote-tracking branch 'origin/master'

1 -import request from "@/utils/request";
2 -
3 -// 分页查询全部提单
4 -export function getTableFindAll(data) {
5 - return request({
6 - url: "/icleartw/declare/findAll",
7 - method: "post",
8 - data: data,
9 - });
10 -}
11 -// 删除
12 -export function declareDeleteById(data) {
13 - return request({
14 - url: "/icleartw/declare/deleteById/" + data,
15 - method: "post",
16 - data: data,
17 - });
18 -}
19 -// 查看全部信息
20 -export function findDetailsById(data) {
21 - return request({
22 - url: "/icleartw/declare/findDetailsById/" + data,
23 - method: "get",
24 - });
25 -}
26 -// reedit/{id} 重新编辑运单
27 -export function reedit(data) {
28 - return request({
29 - url: "/icleartw/declare/reedit/" + data,
30 - method: "post",
31 - data: data,
32 - });
33 -}
1 -import request from "@/utils/request";
2 -
3 -// 新增申报信息
4 -export function saveStepOne(data) {
5 - return request({
6 - url: "/icleartw/declareInfo/save",
7 - method: "post",
8 - data: data,
9 - });
10 -}
11 -// 修改申报信息
12 -export function updateStepOne(data) {
13 - return request({
14 - url: "/icleartw/declareInfo/update",
15 - method: "post",
16 - data: data,
17 - });
18 -}
19 -// 根据id获取申报信息
20 -export function getFindById(data) {
21 - return request({
22 - url: "/icleartw/declareInfo/findById/" + data,
23 - method: "get",
24 - });
25 -}
26 -// 根据id获取模板
27 -export function getTemById(data) {
28 - return request({
29 - url: "/icleartw/declareTemplate/findById?id=" + data,
30 - method: "get",
31 - });
32 -}
33 -// 根据模板名称校验用户下是否已经存相同名称模板
34 -export function getTemByTemName(data) {
35 - return request({
36 - url: "/icleartw/declareTemplate/findTempByName?tempName=" + data,
37 - method: "get",
38 - });
39 -}
40 -// 根据id删除模板
41 -export function deleteTemById(data) {
42 - return request({
43 - url: "/icleartw/declareTemplate/deleteById?id=" + data,
44 - method: "post",
45 - });
46 -}
47 -// 查询当前用户模板
48 -export function findCurUserTem(data) {
49 - return request({
50 - url: "/icleartw/declareTemplate/findTempListByName?tempName=" + data,
51 - method: "get",
52 - });
53 -}
54 -// 修改申报信息模板
55 -export function updateTemplate(data) {
56 - return request({
57 - url: "/icleartw/declareTemplate/update",
58 - method: "post",
59 - data: data,
60 - });
61 -}
62 -// 新增申报信息模板
63 -export function addSaveTemplate(data) {
64 - return request({
65 - url: "/icleartw/declareTemplate/save",
66 - method: "post",
67 - data: data,
68 - });
69 -}
70 -// 查询币别
71 -export function findAllCurrencyCd() {
72 - return request({
73 - url: "/icleartw/dictionary/findAllCurrencyCd",
74 - method: "get",
75 - });
76 -}
77 -// 保存申报出口核检信息
78 -export function declareCheckInfoSave(data) {
79 - return request({
80 - url: "/icleartw/declareCheckInfo/save",
81 - method: "post",
82 - data: data,
83 - });
84 -}
85 -// 修改申报出口核检信息
86 -export function declareCheckInfoUpdate(data) {
87 - return request({
88 - url: "/icleartw/declareCheckInfo/update",
89 - method: "post",
90 - data: data,
91 - });
92 -}
93 -// 根据id获取检核表信息
94 -export function getDeclareCheckInfo(data) {
95 - return request({
96 - url: "/icleartw/declareCheckInfo/findById/" + data,
97 - method: "get",
98 - });
99 -}
100 -// 上传报关文件
101 -export function uploadCustomsFiles(data, id) {
102 - return request({
103 - url: "/icleartw/cusFile/uploadCustomsFiles?deliveryId=" + id,
104 - method: "post",
105 - data: data,
106 - });
107 -}
108 -// 删除单个报关文件
109 -export function deleteUploadFile(data, id) {
110 - return request({
111 - url: "/icleartw/cusFile/deleteFile/" + data + "?cusFileId=" + id,
112 - method: "post",
113 - });
114 -}
115 -// 获取报关文件列表(仅包含用户上传)
116 -export function getCusFileBySys(data) {
117 - return request({
118 - url: "/icleartw/cusFile/getCusFileBySys/" + data,
119 - method: "get",
120 - });
121 -}
122 -// 根据申报id获取文件信息(仅包含系统生成)
123 -export function getFindSysByDeclareId(data) {
124 - return request({
125 - url: "/icleartw/cusFile/findSysByDeclareId/" + data,
126 - method: "get",
127 - });
128 -}
129 -// 提单提交
130 -export function saveCommitAll(data) {
131 - return request({
132 - url: "/icleartw/declare/commit?declareId=" + data,
133 - method: "post",
134 - data: data,
135 - });
136 -}
137 -// 保存文件
138 -export function saveStep3Files(data) {
139 - let str = `?declareId=${data.id}&isClear=`
140 - if (data.isClear !== undefined) {
141 - str = `${str}${data.isClear}`
142 - }
143 - return request({
144 - url: "/icleartw/cusFile/saveFiles" + str,
145 - method: "post",
146 - });
147 -}
148 -// 保存文件
149 -export function saveByDetails(data) {
150 - return request({
151 - url: "/icleartw/declare/saveByDetails/" + data,
152 - method: "post",
153 - });
154 -}
155 -// 查看全部信息
156 -export function findDetailsById(data) {
157 - return request({
158 - url: "/icleartw/declare/findDetailsById/" + data,
159 - method: "get",
160 - });
161 -}
162 -
163 -// 分页查询当前用户使用者(根据使用者名称模糊查询)
164 -export function findTempListByName(data) {
165 - return request({
166 - url: "/icleartw/declareTemplate/findTempListByName",
167 - method: "post",
168 - data: data
169 - });
170 -}
171 -//生成 检核表pdf
172 -export function generatePdf(data) {
173 - return request({
174 - url: "/icleartw/declareCheckInfo/generatePdf?declareId=" + data,
175 - method: "post",
176 - data: data
177 - });
178 -}
179 -//生成 联络方式...pdf
180 -export function generateStepOnePdf(data) {
181 - return request({
182 - url: "/icleartw/declareInfo/generatePdf?declareId=" + data,
183 - method: "post",
184 - data: data
185 - });
186 -}
187 -
188 -//多条件模糊查询模板
189 -export function findTempListByAll(data) {
190 - return request({
191 - url: "/icleartw/declareTemplate/findTempList",
192 - method: "post",
193 - data: data
194 - });
195 -}
1 -import request from '@/utils/request'
2 -
3 -// 首页数据获取
4 -/**
5 - * @param fltDate * 航班日期
6 - * @param kindId 航班类型
7 - */
8 -export function getOneDayFlight(data) {
9 - return request({
10 - url: '/index/getOneDayFlight',
11 - method: 'post',
12 - data: data
13 - })
14 -}
1 import request from '@/utils/request' 1 import request from '@/utils/request'
2 -//数据字典名称
3 -/**
4 - * @param
5 - */
6 -export function getDictNameList() {
7 - return request({
8 - url: '/dictionary/queryMain',
9 - method: 'get',
10 - })
11 -}
12 -
13 -//字典表查询
14 -/**
15 - * @param dictCode 字典名 *
16 - * @param chineseName 数据名称
17 - * @param page 页数 null
18 - * @param size 每页长度 null
19 - */
20 -export function getDictionaryList(data) {
21 - return request({
22 - url: '/dictionary/query',
23 - method: 'post',
24 - data: data
25 - })
26 -}
27 -
28 -//serviceCode字典表查询
29 -/**
30 - * @param
31 - */
32 -export function getServiceCodeList() {
33 - return request({
34 - url: '/dictionary/queryServiceCode',
35 - method: 'get',
36 - })
37 -}
38 -
39 -//新增字典(单条)
40 -/**
41 - * @param chineseName 字典名称 *
42 - * @param description 描述
43 - * @param dictCode 字典表名称 *
44 - */
45 -export function addDict(data) {
46 - return request({
47 - url: '/dictionary/addDict',
48 - method: 'POST',
49 - data: data
50 - })
51 -}
52 -
53 -//新增字典(批量)
54 -/**
55 - * @param nameList 字典名称 * list
56 - * @param dictCode 字典表名称 *
57 - */
58 -export function addDictBatch(data) {
59 - return request({
60 - url: '/dictionary/addDictBatch',
61 - method: 'POST',
62 - data: data
63 - })
64 -}
65 -
66 -//serviceCode子字典添加
67 -/**
68 - * @param array [{}]
69 - * @param serviceCodeKey serviceCode父级key *
70 - * @param serviceCodeValue 字典名称 *
71 - */
72 -export function addServiceCodeBatch(data) {
73 - return request({
74 - url: '/dictionary/addServiceCodeBatch',
75 - method: 'POST',
76 - data: data
77 - })
78 -}
79 -
80 -//serviceCode子字典删除
81 -/**
82 - * @param array []
83 - * @param serviceCodeValue 字典名称 *
84 - */
85 -export function delServiceCodeCihild(data) {
86 - return request({
87 - url: '/dictionary/delServiceCodeCihild',
88 - method: 'POST',
89 - data: data
90 - })
91 -}
92 -
93 -//字典删除
94 -/**
95 - * @param array []
96 - * @param id 字典ID *
97 - */
98 -export function delDict(data) {
99 - return request({
100 - url: '/dictionary/delDict',
101 - method: 'POST',
102 - data: data
103 - })
104 -}
105 -
106 -//虚拟航班查询
107 -/**
108 - * @param flightNo 航班名称
109 - * @param page 页数 null *
110 - * @param size 每页长度 null *
111 - */
112 -export function flightType(data) {
113 - return request({
114 - url: '/dictionary/flightType',
115 - method: 'post',
116 - data: data
117 - })
118 -}
119 -
120 -//虚拟航班新增
121 -/**
122 - * @param flightNo 航班名称 list *
123 - */
124 -export function addFlight(data) {
125 - return request({
126 - url: '/dictionary/addFlight',
127 - method: 'post',
128 - data: data
129 - })
130 -}
131 -
132 -//虚拟航班删除
133 -/**
134 - * @param flightNo 航班名称 list *
135 - */
136 -export function delFlight(data) {
137 - return request({
138 - url: '/dictionary/delFlight',
139 - method: 'post',
140 - data: data
141 - })
142 -}
143 -
144 -//查询航线
145 -/**
146 - * @param fltNo 航班号
147 - * @param page 页数
148 - * @param size 页长
149 - */
150 -export function queryRoute(data) {
151 - return request({
152 - url: '/dictionary/queryRoute',
153 - method: 'post',
154 - data: data
155 - })
156 -}
157 -
158 -//新增航线
159 -/**
160 - * @param fltNo 航班号 *
161 - * @param route 航线 *
162 - */
163 -export function addRoute(data) {
164 - return request({
165 - url: '/dictionary/addRoute',
166 - method: 'post',
167 - data: data
168 - })
169 -}
170 -
171 -//删除航线
172 -/**
173 - * @param id *
174 - */
175 -export function delRoute(data) {
176 - return request({
177 - url: '/dictionary/delRoute',
178 - method: 'post',
179 - data: data
180 - })
181 -}
182 -
183 -//航线排序
184 -/**
185 - * @param id *
186 - */
187 -export function orderRoute(data) {
188 - return request({
189 - url: '/dictionary/orderRoute',
190 - method: 'post',
191 - data: data
192 - })
193 -}
194 -
195 -//航线删除确认
196 -/**
197 - * @param fltNo 航班号
198 - * @param route 航线
199 - */
200 -export function checkFlightRoute(data) {
201 - return request({
202 - url: '/FlightPreserveController/checkFlightRoute',
203 - method: 'post',
204 - data: data
205 - })
206 -}
207 -
208 -//更新航线
209 -export function updateRoute(data) {
210 - return request({
211 - url: `/dictionary/updateRoute`,
212 - method: "post",
213 - data: data,
214 - });
215 -}
......
1 -import request from '@/utils/request'
2 -
3 -// DM数据查询
4 -/**
5 - * @param createTime 创建时间 *
6 - * @param fltNo 航班号
7 - * @param fltDate 航班日期
8 - * @param status 状态
9 - * @param portName 口岸名称
10 - * @param page 页数 *
11 - * @param size 数据长度
12 - */
13 -export function getDmDataList(data) {
14 - return request({
15 - url: '/dmDataLog/getDmDataList',
16 - method: 'post',
17 - data: data
18 - })
19 -}
20 -
21 -// 流水查询
22 -/**
23 - * @param accsId accsid *
24 - */
25 -export function getDmFlowInformation(data) {
26 - return request({
27 - url: '/dmDataLog/getDmFlowInformation?' + data,
28 - method: 'post',
29 - })
30 -}
31 -
32 -//运单日志查询
33 -/**
34 - * @param accsId accsid *
35 - */
36 -export function findCargoDataChangeLog(data) {
37 - return request({
38 - url: '/cargo/findCargoDataChangeLog?accsId=' + data,
39 - method: 'post',
40 - })
41 -}
42 -
43 -// 功能模块查询
44 -/**
45 - *
46 - */
47 -export function findModuleCondition() {
48 - return request({
49 - url: '/systemOperationLog/findModuleCondition',
50 - method: 'post',
51 - })
52 -}
53 -
54 -//操作日志查询
55 -/**
56 - * @param module 功能模块
57 - * @param createTimeStart 操作时间开始
58 - * @param createTimeEnd 操作时间结束
59 - * @param page 页数
60 - * @param size 页长
61 - */
62 -export function getSystemOperationLogData(data) {
63 - return request({
64 - url: '/systemOperationLog/getSystemOperationLogData',
65 - method: 'post',
66 - data: data
67 - })
68 -}
69 -
70 -//归档数据查询
71 -/**
72 - * @param createTimeStart 操作时间开始
73 - * @param createTimeEnd 操作时间结束
74 - * @param page 页数
75 - * @param size 页长
76 - */
77 -export function findArchiveCargoLog(data) {
78 - return request({
79 - url: '/archiveCargoLog/findArchiveCargoLog',
80 - method: 'post',
81 - data: data
82 - })
83 -}
84 -
85 -//查询归档文件是否可下载
86 -/**
87 - * @param object 查询结果集行数据
88 - */
89 -export function isExistZip(data) {
90 - return request({
91 - url: '/archiveCargoLog/isExistZip',
92 - method: 'post',
93 - data: data
94 - })
95 -}
...\ No newline at end of file ...\ No newline at end of file
1 -import request from '@/utils/request'
2 -
3 -//预审航班查询
4 -/**
5 - * @param fltNo 航班号
6 - * @param suatus 状态
7 - * @param page 页数
8 - * @param size 每页条数
9 - */
10 -export function getpreAudit(data) {
11 - return request({
12 - url: '/preAudit/query',
13 - method: 'post',
14 - data: data
15 - })
16 -}
17 -
18 -//添加预审航班
19 -/**
20 - * @param 航班号 *
21 - */
22 -export function addPreFlight(data) {
23 - return request({
24 - url: '/preAudit/addFlight',
25 - method: 'post',
26 - data: data
27 - })
28 -}
29 -
30 -//添加预审航班
31 -/**
32 - * @param id 航班id *
33 - * @param status 状态 * 0关闭 1开启 2删除
34 - */
35 -export function updatePreStatus(data) {
36 - return request({
37 - url: '/preAudit/updateStatus',
38 - method: 'post',
39 - data: data
40 - })
41 -}
42 -
...@@ -81,10 +81,10 @@ export default { ...@@ -81,10 +81,10 @@ export default {
81 // 全局入口页 81 // 全局入口页
82 layout: { 82 layout: {
83 register: "Login", 83 register: "Login",
84 - fedexLogin: "fedex.com user log in", 84 + fedexLogin: "Fedex.com user account login",
85 fedexRegister: "Employee log in", 85 fedexRegister: "Employee log in",
86 onlineDeclare: "線上申報平臺帳號登錄", 86 onlineDeclare: "線上申報平臺帳號登錄",
87 - registerNumber: "註冊線上申報平臺帳號", 87 + registerNumber: "Register a Fedex.com account",
88 userInfo: "用戶信息維護", 88 userInfo: "用戶信息維護",
89 logOut: "log out", 89 logOut: "log out",
90 logOutDia: "Are you sure to log out and exit the system?", 90 logOutDia: "Are you sure to log out and exit the system?",
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
108 selectTem: "選擇使用者", 108 selectTem: "選擇使用者",
109 insterTem: "新增使用者", 109 insterTem: "新增使用者",
110 updateTem: "修改使用者", 110 updateTem: "修改使用者",
111 - number: "提單號碼", 111 + number: "Waybill inquiry",
112 contacts: "聯絡人", 112 contacts: "聯絡人",
113 exporterNum: "貨物輸出統一編號", 113 exporterNum: "貨物輸出統一編號",
114 email: "聯絡人 e-mail", 114 email: "聯絡人 e-mail",
......
...@@ -72,6 +72,11 @@ ...@@ -72,6 +72,11 @@
72 {{ $t("layout.fedexRegister") }} 72 {{ $t("layout.fedexRegister") }}
73 </span> 73 </span>
74 </el-dropdown-item> 74 </el-dropdown-item>
75 + <el-dropdown-item>
76 + <span>
77 + {{ $t("layout.registerNumber") }}
78 + </span>
79 + </el-dropdown-item>
75 </el-dropdown-menu> 80 </el-dropdown-menu>
76 </el-dropdown> 81 </el-dropdown>
77 <!-- <el-select 82 <!-- <el-select
...@@ -156,7 +161,7 @@ export default { ...@@ -156,7 +161,7 @@ export default {
156 type: "warning", 161 type: "warning",
157 }).then(() => { 162 }).then(() => {
158 this.$store.dispatch("LogOut").then(() => { 163 this.$store.dispatch("LogOut").then(() => {
159 - location.href = "/IcTw"; 164 + location.href = "/ImpPer";
160 }); 165 });
161 }); 166 });
162 }, 167 },
......
1 <template> 1 <template>
2 <div class="view-option"> 2 <div class="view-option">
3 <div class="menu-info"> 3 <div class="menu-info">
4 - <span class="info" v-if="activeRoute.name == 'declarationInput'"> 4 + <span
5 - {{ $t("fillIn.number") }}:&nbsp;{{ deliveryNo || "" }} 5 + class="info"
6 + v-if="
7 + activeRoute.name == 'WaybillInquiry' ||
8 + activeRoute.name == 'UploadDetail'
9 + "
10 + >
11 + {{ $t("fillIn.number") }}
12 + <!-- :&nbsp;{{ deliveryNo || "" }} -->
6 </span> 13 </span>
7 <span class="info" v-else> 14 <span class="info" v-else>
8 {{ activeRoute.meta.title }} 15 {{ activeRoute.meta.title }}
...@@ -54,10 +61,10 @@ export default { ...@@ -54,10 +61,10 @@ export default {
54 font-size: 0.88rem; 61 font-size: 0.88rem;
55 border-bottom: 1px solid $fedexBorder; 62 border-bottom: 1px solid $fedexBorder;
56 background-color: #fff; 63 background-color: #fff;
57 - margin-left: 231px; 64 + margin-left: 230px;
58 65
59 .info { 66 .info {
60 - font-weight: 500; 67 + font-weight: 600;
61 } 68 }
62 } 69 }
63 </style> 70 </style>
......
...@@ -60,20 +60,20 @@ service.interceptors.response.use( ...@@ -60,20 +60,20 @@ service.interceptors.response.use(
60 const msg = errorCode[code] || res.data.msg || errorCode["default"]; 60 const msg = errorCode[code] || res.data.msg || errorCode["default"];
61 if (code === 301) { 61 if (code === 301) {
62 MessageBox.confirm( 62 MessageBox.confirm(
63 - "登錄狀態已過期,您可以繼續留在該頁面,或者重新登錄", 63 + "The login status has expired. You can continue to stay on this page or log in again.",
64 - "系統提示", 64 + "System prompt",
65 { 65 {
66 - confirmButtonText: "重新登錄", 66 + confirmButtonText: "Login again",
67 - cancelButtonText: "取消", 67 + cancelButtonText: "Close",
68 type: "warning", 68 type: "warning",
69 } 69 }
70 ).then(() => { 70 ).then(() => {
71 store.dispatch("FedLogOut").then(() => { 71 store.dispatch("FedLogOut").then(() => {
72 - location.href = "/IcTw"; 72 + location.href = "/ImpPer";
73 }); 73 });
74 }); 74 });
75 } else if (code === 500) { 75 } else if (code === 500) {
76 - MessageBox.alert(msg, "註意", { 76 + MessageBox.alert(msg, "Attention", {
77 dangerouslyUseHTMLString: true, 77 dangerouslyUseHTMLString: true,
78 }); 78 });
79 return Promise.reject(new Error(msg)); 79 return Promise.reject(new Error(msg));
...@@ -87,11 +87,11 @@ service.interceptors.response.use( ...@@ -87,11 +87,11 @@ service.interceptors.response.use(
87 console.log("err" + error); 87 console.log("err" + error);
88 let { message } = error; 88 let { message } = error;
89 if (message == "Network Error") { 89 if (message == "Network Error") {
90 - message = "系統異常,請聯繫清關部門"; 90 + message = "System exception, please contact the customs clearance department";
91 } else if (message.includes("timeout")) { 91 } else if (message.includes("timeout")) {
92 - message = "請求超時,請聯繫清關部門"; 92 + message = "Request timeout, please contact the customs clearance department";
93 } else if (message.includes("Request failed with status code")) { 93 } else if (message.includes("Request failed with status code")) {
94 - message = "系統接口" + message.substr(message.length - 3) + "異常,請聯繫清關部門"; 94 + message = "System interface abnormality" + message.substr(message.length - 3) + ",please contact the customs clearance department";
95 } 95 }
96 Message({ 96 Message({
97 message: message, 97 message: message,
......
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
1 -<template>
2 - <div class="fill-step">
3 - <!-- <div
4 - v-for="(item, index) in steps"
5 - :key="index"
6 - :class="
7 - item.state1 == curStep
8 - ? 'edit-color'
9 - : stepStates.includes(item.state2)
10 - ? setSelectIndex==2 && item.state1==2 ? 'cur-color':'finish-color'
11 - : 'cur-color'
12 - "
13 - >
14 -
15 - <div>
16 - <i
17 - class="el-icon-success"
18 - v-if="stepStates.includes(item.state2) && item.state1 != curStep "
19 - ></i>
20 - <i class="el-icon-success" v-else></i>
21 - <span> {{ item.label }}</span>
22 - </div>
23 - <div v-if="setSelectIndex==2 && item.state1==2"></div>
24 - <el-button
25 - type="text"
26 - v-else-if="stepStates.includes(item.state2) && item.state1 != curStep"
27 - @click="editStepBtn(item)"
28 - :loading="editLoading && curClickStep == item.state1"
29 - >編輯</el-button
30 - >
31 - </div> -->
32 - <div
33 - v-for="(item, index) in steps"
34 - :key="index"
35 - :class="item.state1 == curStep
36 - ? 'edit-color'
37 - : stepStates.includes(item.state2)
38 - ? setSelectIndex == 2 && item.state1 == 2 ? 'cur-color' : 'finish-color'
39 - : 'cur-color'
40 - "
41 - >
42 -
43 - <div>
44 - <i
45 - class="el-icon-success"
46 - v-if="stepStates.includes(item.state2) && item.state1 != curStep"
47 - ></i>
48 - <i class="el-icon-success" v-else></i>
49 - <span> {{ item.label }}</span>
50 - </div>
51 - <div v-if="setSelectIndex == 2 && item.state1 == 2"></div>
52 - <el-button
53 - type="text"
54 - v-else-if="stepEdit.includes(item.state2) && item.state1 != curStep"
55 - @click="editStepBtn(item)"
56 - :loading="editLoading && curClickStep == item.state1"
57 - :disabled="editDisabled"
58 - >編輯</el-button
59 - >
60 - </div>
61 - </div>
62 -</template>
63 -<script>
64 -import { mapGetters } from "vuex";
65 -export default {
66 - props: {
67 - curStep: {
68 - type: Number,
69 - default() {
70 - return 1;
71 - },
72 - },
73 - //控制颜色
74 - stepStates: {
75 - type: Array,
76 - default() {
77 - return [];
78 - },
79 - },
80 - //控制编辑按钮显示
81 - stepEdit: {
82 - type: Array,
83 - default() {
84 - return [];
85 - },
86 - },
87 - editLoading: {
88 - type: Boolean,
89 - default() {
90 - return false;
91 - },
92 - },
93 - editDisabled: {
94 - type: Boolean,
95 - default() {
96 - return false;
97 - },
98 - },
99 - setSelectIndex: {
100 - type: Number,
101 -
102 - },
103 - },
104 - data() {
105 - return {
106 - curClickStep: null,
107 - };
108 - },
109 - created() {},
110 - computed: {
111 - steps() {
112 - return [
113 - {
114 - label: this.$t("fillIn.step1"),
115 - state1: 1,
116 - state2: "finish1",
117 - },
118 - {
119 - label: this.$t("fillIn.step2"),
120 - state1: 2,
121 - state2: "finish2",
122 - },
123 - {
124 - label: this.$t("fillIn.step3"),
125 - state1: 3,
126 - state2: "finish3",
127 - },
128 - ];
129 - },
130 - },
131 - methods: {
132 - editStepBtn(val) {
133 - this.curClickStep = val.state1;
134 - let filtStep = this.stepStates.filter((item) => item != val.state2);
135 - this.$emit("setStepStates", [...new Set(filtStep)]);
136 - this.$emit("editNextStep", {
137 - curStep: val.state1,
138 - leaveStep: this.curStep,
139 - });
140 - },
141 - },
142 -};
143 -</script>
144 -
145 -<style lang="scss" scoped>
146 -.fill-step {
147 - padding: 16px 16px;
148 - line-height: 40px;
149 - // display: flex;
150 - // flex-direction: column
151 - .cur-color {
152 - display: flex;
153 - justify-content: space-between;
154 - color: #919191;
155 - }
156 - .edit-color {
157 - display: flex;
158 - justify-content: space-between;
159 - color: #4d148c;
160 - }
161 - .finish-color {
162 - display: flex;
163 - justify-content: space-between;
164 - font-weight: 500;
165 - font-size: 14px;
166 - color: #008a00;
167 - }
168 -}
169 -</style>
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
1 -<template>
2 - <el-dialog
3 - title="下載附件"
4 - :visible.sync="dialogVisible"
5 - width="50%"
6 - :show-close="true"
7 - class="detail-dialog"
8 - >
9 - <Table
10 - class="fedexDetialTable mt20"
11 - :data="tableData"
12 - :headerData="headerData"
13 - :selection="false"
14 - height="400px"
15 - :order="false"
16 - :border="false"
17 - :pagination="false"
18 - :selectFixed="false"
19 - :pageSizes="[20, 30, 50, 100]"
20 - @selectionChange="handleSelectionChange"
21 - :loading="tableLodaing"
22 - >
23 - <template v-slot:name="scope">
24 - <p> {{ scope.row.name }}{{ scope.row.type }}</p>
25 - </template>
26 - <template v-slot:down="scope">
27 - <el-button
28 - class="plain"
29 - size="mini"
30 - @click.native.stop="downLoadOneFile(scope.row)"
31 - :loading="scope.row.downloadLoading"
32 - >下載</el-button
33 - >
34 - </template>
35 - </Table>
36 - <div class="width-btn-box">
37 - <el-button
38 - class="entrySaveButton entrySaveButton-background"
39 - @click="batchDownloadBtn"
40 - style="margin-right: 30px;width: 110px;"
41 - :loading="allDownload"
42 - :disabled="this.tableData<=0"
43 - >
44 - 下載全部
45 - </el-button>
46 - <el-button class="entrySaveButton" style="width: 110px;" @click="closeDialog">取消</el-button>
47 - </div>
48 - </el-dialog>
49 -</template>
50 -<script>
51 -import { getFindSysByDeclareId } from "@/api/fillForm.js";
52 -import { downLoadZip,downLoadFile } from "@/utils/zipdownload";
53 -export default {
54 - components: {},
55 - props: {},
56 - data() {
57 - return {
58 - tableLodaing:false,
59 - allDownload:false,
60 - dialogVisible: false,
61 - declareId: null,
62 - tableData: [],
63 - headerData: [
64 - {
65 - name: "附件名稱",
66 - value: "name",
67 - width: "",
68 - align: "left",
69 - slot: true,
70 - },
71 - {
72 - name: "操作",
73 - value: "down",
74 - width: "100",
75 - align: "center",
76 - slot: true,
77 - },
78 - ],
79 - selectCheckList: [],
80 - customsFileId: null,
81 - };
82 - },
83 - methods: {
84 - // 打开弹窗
85 - openDialog(row) {
86 - this.dialogVisible = true;
87 - this.declareId = row.id;
88 - this.customsFileId = row.customsFileId;
89 - this.getUploadFileList();
90 - },
91 - // 关闭弹窗
92 - closeDialog() {
93 - this.dialogVisible = false;
94 - },
95 - // 选择下载的附件
96 - handleSelectionChange(val) {
97 - this.selectCheckList = val;
98 - },
99 - // 下载
100 - downLoadOneFile(fileRow) {
101 - fileRow.downloadLoading=true;
102 - downLoadFile(
103 - "/icleartw/cusFile/downLoadFile",
104 - fileRow.id,
105 - fileRow.name+ fileRow.type
106 - ).then(() => {
107 -
108 - this.$message.success("下載成功");
109 - this.exportLoading = false;
110 - })
111 - .catch(() => {
112 - this.exportLoading = false;
113 - }).finally(()=>{
114 - fileRow.downloadLoading = false;
115 - })
116 -
117 - },
118 - // 批量下载
119 - batchDownloadBtn() {
120 - this.allDownload=true;
121 - downLoadZip(
122 - "/icleartw/cusFile/downLoadCusFileAll",
123 - this.customsFileId,
124 - "附件"
125 - )
126 - .then(() => {
127 - this.allDownload = false;
128 - this.exportLoading = false;
129 - })
130 - .catch(() => {
131 - this.exportLoading = false;
132 - });
133 - },
134 - // 获取文件列表
135 - getUploadFileList() {
136 - this.tableData=[];
137 - this.tableLodaing=true;
138 - getFindSysByDeclareId(this.declareId).then((res) => {
139 - if (res.code == 200) {
140 - this.tableData = res.data;
141 - if (this.tableData != null) {
142 - this.tableData = this.tableData.map(item => {
143 - return {
144 - ...item,
145 - downloadLoading: false
146 - };
147 - });
148 - }
149 - }else{
150 - this.$message.error(res.msg);
151 - }
152 - }).catch((res)=>{
153 - this.$message.error(res.msg);
154 - }).finally(()=>{
155 - this.tableLodaing = false;
156 - })
157 - },
158 - },
159 -};
160 -</script>
161 -
162 -<style lang="scss" scoped>
163 -.detail-dialog {
164 - .title-box {
165 - font-size: 16px;
166 - font-weight: 600;
167 - // line-height: 22px;
168 - color: #000000;
169 - display: flex;
170 - justify-content: space-between;
171 - .el-button {
172 - padding: 0;
173 - font-size: 12px;
174 - }
175 - }
176 - .content {
177 - color: #333;
178 - font-size: 12px;
179 - .small-title {
180 - margin: 12px 0 4px 0;
181 - font-size: 14px;
182 - }
183 - .info-box {
184 - width: 100%;
185 - height: 50px;
186 - line-height: 17px;
187 - background: #f2f2f2;
188 - padding: 8px;
189 - margin-bottom: 4px;
190 - }
191 - }
192 - .download {
193 - .el-button {
194 - padding: 0;
195 - font-size: 12px;
196 - }
197 - img {
198 - vertical-align: -4px;
199 - }
200 - }
201 - ::v-deep .el-dialog {
202 - padding: 20px 100px;
203 - }
204 - ::v-deep .el-dialog__header {
205 - text-align: center;
206 - }
207 - .width-btn-box {
208 - width: 100%;
209 - text-align: center;
210 - margin-top: 16px;
211 - .el-button {
212 - width: 100px;
213 - }
214 - }
215 - ::v-deep .el-table__body-wrapper .el-table__body tbody tr {
216 - height: 50px;
217 - }
218 -}
219 -</style>
This diff is collapsed. Click to expand it.
1 -export const tableHeaderKeys = [
2 - {
3 - label: "提單號碼",
4 - prop: "deliveryNo",
5 - width: 150,
6 - align: "left",
7 - sort: false,
8 - },
9 - {
10 - label: "報單類別",
11 - prop: "customsDeclarationType",
12 - width: 150,
13 - align: "left",
14 - sort: false,
15 - },
16 - {
17 - label: "操作狀態/時間",
18 - prop: "operStatusAndTime1",
19 - width: 150,
20 - align: "left",
21 - tem: "operStatusAndTime1",
22 - sort: "custom",
23 - },
24 - {
25 - label: "傳送狀態/時間",
26 - prop: "delStatus",
27 - width: 150,
28 - align: "left",
29 - tem: "delStatus",
30 - sort: "custom",
31 -
32 - },
33 - {
34 - label: "是否適用在目的地進口清關",
35 - prop: "isClear",
36 - width: 150,
37 - align: "left",
38 - tem: "isClear",
39 - sort: false,
40 - },
41 - {
42 - label: "操作",
43 - prop: "opt",
44 - width: 150,
45 - align: "center",
46 - tem: "opt",
47 - sort: false,
48 - },
49 -];