jinhui.wang

接口增加,样式修改

...@@ -25,7 +25,7 @@ export function login(loginName, password, rememberMe, equipmentType, userAgent, ...@@ -25,7 +25,7 @@ export function login(loginName, password, rememberMe, equipmentType, userAgent,
25 // 退出方法 25 // 退出方法
26 export function logout() { 26 export function logout() {
27 return request({ 27 return request({
28 - url: '/manager-server/login/fcl/logout', 28 + url: '/bus-customer/logout',
29 method: 'get' 29 method: 'get'
30 }) 30 })
31 } 31 }
......
...@@ -190,6 +190,7 @@ export default { ...@@ -190,6 +190,7 @@ export default {
190 } 190 }
191 ).then(() => { 191 ).then(() => {
192 this.$store.dispatch("FedLogOut").then(() => { 192 this.$store.dispatch("FedLogOut").then(() => {
193 + // window.close()
193 location.href = process.env.VUE_APP_BASE_LOGINOUT; 194 location.href = process.env.VUE_APP_BASE_LOGINOUT;
194 }); 195 });
195 }); 196 });
......
...@@ -180,14 +180,14 @@ export const constantRoutes = [ ...@@ -180,14 +180,14 @@ export const constantRoutes = [
180 children: [ 180 children: [
181 { 181 {
182 path: '/summary', 182 path: '/summary',
183 - component: (resolve) => require(['@/views/reportingData/index'], resolve), 183 + component: (resolve) => require(['@/views/summaryEdit/index'], resolve),
184 hidden: false, 184 hidden: false,
185 name: 'Summary', 185 name: 'Summary',
186 meta: { title: '汇总申报', icon: '' } 186 meta: { title: '汇总申报', icon: '' }
187 }, 187 },
188 { 188 {
189 path: '/summaryDataSearch', 189 path: '/summaryDataSearch',
190 - component: (resolve) => require(['@/views/reportingData/index'], resolve), 190 + component: (resolve) => require(['@/views/summaryDataSearch/index'], resolve),
191 hidden: false, 191 hidden: false,
192 name: 'SummaryDataSearch', 192 name: 'SummaryDataSearch',
193 meta: { title: '汇总申请单查询', icon: '' } 193 meta: { title: '汇总申请单查询', icon: '' }
......
...@@ -119,16 +119,7 @@ ...@@ -119,16 +119,7 @@
119 新 增 119 新 增
120 </el-button> 120 </el-button>
121 </div> 121 </div>
122 - <div> 122 + <div></div>
123 - <el-button
124 - class="entrySaveButton"
125 - size="small"
126 - icon="el-icon-download"
127 - @click="downloadData"
128 - >
129 - 导出
130 - </el-button>
131 - </div>
132 </div> 123 </div>
133 <Table 124 <Table
134 class="fedexDetialTable fedexSreachTable" 125 class="fedexDetialTable fedexSreachTable"
...@@ -151,8 +142,11 @@ ...@@ -151,8 +142,11 @@
151 :rowSelectDataType="false" 142 :rowSelectDataType="false"
152 > 143 >
153 <template slot="optionColumn"> 144 <template slot="optionColumn">
154 - <el-table-column align="left" label="操作" width="100"> 145 + <el-table-column align="left" label="操作" width="150">
155 <template slot-scope="scope"> 146 <template slot-scope="scope">
147 + <el-button type="text" @click="downloadFile(scope.row)">
148 + 下载证书
149 + </el-button>
156 <el-button type="text" @click="update(scope.row)"> 修改 </el-button> 150 <el-button type="text" @click="update(scope.row)"> 修改 </el-button>
157 </template> 151 </template>
158 </el-table-column> 152 </el-table-column>
...@@ -320,17 +314,17 @@ export default { ...@@ -320,17 +314,17 @@ export default {
320 dxpid: "", 314 dxpid: "",
321 }; 315 };
322 }, 316 },
323 - //导出 317 + //下载证书
324 - downloadData() {}, 318 + downloadFile(val) {},
325 addCustomer() { 319 addCustomer() {
326 - this.dialogTitle = "新增口岸"; 320 + this.dialogTitle = "新增客户";
327 this.editType = "add"; 321 this.editType = "add";
328 - this.outerVisible = true; 322 + // this.outerVisible = true;
329 }, 323 },
330 update(val) { 324 update(val) {
331 - this.dialogTitle = "修改口岸"; 325 + this.dialogTitle = "修改客户";
332 this.editType = "update"; 326 this.editType = "update";
333 - this.outerVisible = true; 327 + // this.outerVisible = true;
334 this.activeData = val; 328 this.activeData = val;
335 }, 329 },
336 dialogClose() { 330 dialogClose() {
......
1 +<template>
2 + <div class="entrySreach">
3 + <el-form
4 + class="fedexFormStyle fedexformSreach fedexformSreachBottomBorder"
5 + ref="sreachForm"
6 + :model="sreachFormData"
7 + label-position="top"
8 + size="small"
9 + >
10 + <el-row class="row-border">
11 + <!-- 订单编号 -->
12 + <el-col :span="5">
13 + <Formitem label="订单编号" prop="orderNo">
14 + <FormTextareaInput
15 + :formData="sreachFormData"
16 + dataKey="orderNo"
17 + @formChange="formChange"
18 + />
19 + </Formitem>
20 + </el-col>
21 + <!-- 电商企业代码 -->
22 + <el-col :span="5">
23 + <Formitem label="电商企业代码" prop="ebccode">
24 + <el-input
25 + type="text"
26 + class="inputShadow"
27 + id="inputInner--ebccode"
28 + resize="none"
29 + v-model="sreachFormData.ebccode"
30 + clearable
31 + placeholder=""
32 + ></el-input>
33 + </Formitem>
34 + </el-col>
35 + <!-- 回执状态 -->
36 + <el-col :span="5">
37 + <Formitem label="回执状态" prop="returnStatus">
38 + <el-select
39 + type="text"
40 + id="inputInner--returnStatus"
41 + v-model="sreachFormData.returnStatus"
42 + clearable
43 + placeholder=""
44 + >
45 + <el-option
46 + v-for="(item, index) in dictData.returnStatus"
47 + :key="index"
48 + :label="item.name"
49 + :value="item.code"
50 + ></el-option>
51 + </el-select>
52 + </Formitem>
53 + </el-col>
54 + <!-- 创建时间 -->
55 + <el-col :span="5">
56 + <Formitem label="创建时间" prop="createTime" :activeType="true">
57 + <el-date-picker
58 + class="inputInner--createTime"
59 + id="inputInner--createTime"
60 + v-model="sreachFormData.createTime"
61 + type="daterange"
62 + format="yyyy-MM-dd"
63 + prefix-icon="none"
64 + value-format="yyyy-MM-dd"
65 + range-separator="至"
66 + @change="dateChange"
67 + />
68 + </Formitem>
69 + </el-col>
70 + <el-col :span="2">
71 + <el-form-item class="textCenter">
72 + <el-button
73 + class="entrySreachButton"
74 + type="text"
75 + icon="el-icon-search"
76 + :loading="loadings.searchLoading"
77 + @click="search(0)"
78 + ></el-button>
79 + </el-form-item>
80 + </el-col>
81 + <el-col :span="2">
82 + <el-form-item class="textCenter">
83 + <el-button
84 + type="text"
85 + size="small"
86 + icon="el-icon-refresh"
87 + @click="clear"
88 + >
89 + 重置
90 + </el-button>
91 + </el-form-item>
92 + </el-col>
93 + </el-row>
94 + </el-form>
95 + <div class="optionButton">
96 + <el-button
97 + class="entrySaveButton"
98 + size="small"
99 + icon="el-icon-download"
100 + @click="downloadData"
101 + >
102 + 导出
103 + </el-button>
104 + </div>
105 + <Table
106 + class="fedexDetialTable fedexSreachTable"
107 + ref="entryTable"
108 + :data="tableData"
109 + :headerData="headerData"
110 + :maxHeight="tableMaxheight"
111 + :border="true"
112 + :pagination="true"
113 + :order="false"
114 + :loading="loadings.searchLoading"
115 + :page="page.pageIndex"
116 + :pageSizes="[20, 30, 50, 100]"
117 + :totalCount="page.total"
118 + @sizeChange="sizeChange"
119 + @currentChange="currentChange"
120 + @cellClick="cellClick"
121 + :selection="false"
122 + :selectFixed="false"
123 + :rowSelectDataType="false"
124 + >
125 + <template v-slot:returnStatus="scope">
126 + <TablePopover
127 + ref="returnStatusPopover"
128 + dataKey="returnStatus"
129 + :parentDom="$refs.entryTable"
130 + :receiptDataHead="receiptDataHead"
131 + :rowData="scope.row"
132 + :tableData="tableData"
133 + @popoverChange="popoverChange"
134 + @popoverClose="popoverClose"
135 + >
136 + <div slot="title">
137 + <span style="font-weight: 700; color: #515a6e">订单编号:</span
138 + >{{ scope.row.orderno }}
139 + </div>
140 + <div slot="buttonLabel">
141 + {{ scope.row.returnStatus }}
142 + </div>
143 + </TablePopover>
144 + </template>
145 + <template v-slot:orderNo="scope">
146 + <el-button type="text" @click="view(scope.row)">{{
147 + scope.row.orderNo
148 + }}</el-button>
149 + </template>
150 + </Table>
151 + </div>
152 +</template>
153 +
154 +<script>
155 +import {
156 + getAllExportingBills,
157 + getOrderReceiptData,
158 +} from "@/api/exportQuery.js";
159 +
160 +export default {
161 + name: "ExportBillQuery",
162 + data() {
163 + return {
164 + sreachFormData: {
165 + orderNo: "",
166 + ebccode: "",
167 + returnStatus: "",
168 + createTime: [],
169 + },
170 + page: {
171 + pageIndex: 1,
172 + pageSize: 20,
173 + total: 0,
174 + },
175 + tableData: [],
176 + headerData: [
177 + {
178 + name: "回执状态",
179 + value: "returnStatus",
180 + width: "",
181 + align: "left",
182 + slot: true,
183 + },
184 + {
185 + name: "订单编号",
186 + value: "orderNo",
187 + width: "",
188 + align: "left",
189 + slot: true,
190 + },
191 + {
192 + name: "订单类型",
193 + value: "orderType",
194 + width: "",
195 + align: "left",
196 + },
197 + {
198 + name: "电商企业代码",
199 + value: "ebccode",
200 + width: "",
201 + align: "left",
202 + },
203 + {
204 + name: "电商企业",
205 + value: "ebcname",
206 + width: "",
207 + align: "left",
208 + },
209 + {
210 + name: "电商平台名称",
211 + value: "ebpname",
212 + width: "",
213 + align: "left",
214 + },
215 + {
216 + name: "创建时间",
217 + value: "createTime",
218 + width: "",
219 + align: "left",
220 + },
221 + {
222 + name: "申报企业",
223 + value: "declaringEnterprise",
224 + width: "",
225 + align: "left",
226 + },
227 + {
228 + name: "申报类型",
229 + value: "declaringType",
230 + width: "",
231 + align: "left",
232 + },
233 + ],
234 + receiptDataHead: [
235 + {
236 + name: "回执状态",
237 + value: "receiptStatus",
238 + width: "",
239 + align: "left",
240 + },
241 + {
242 + name: "状态时间",
243 + value: "statusTime",
244 + width: "",
245 + align: "left",
246 + },
247 + {
248 + name: "回执描述",
249 + value: "receiptDescription",
250 + width: "",
251 + align: "left",
252 + },
253 + ],
254 + dictData: {
255 + ebccode: [],
256 + returnStatus: [],
257 + },
258 + loadings: {
259 + searchLoading: false,
260 + },
261 + textareaVisible: {
262 + formItemconsignmentCode: false,
263 + formItemconsignmentHeadCode: false,
264 + },
265 + tableMaxheight: null,
266 + };
267 + },
268 + created() {
269 + this.search(0);
270 + },
271 + mounted() {
272 + this.tableMaxheight = window.innerHeight - 300;
273 + },
274 + watch: {
275 + $route() {
276 + this.popoverClose();
277 + },
278 + },
279 + methods: {
280 + //查询
281 + search(val) {
282 + this.loadings.searchLoading = true;
283 + if (val == 0) {
284 + this.page.pageIndex = 1;
285 + }
286 + let obj = this.sreachFormData;
287 + obj.pageIndex = this.page.pageIndex;
288 + obj.pageSize = this.page.pageSize;
289 + obj.createTimeStart = "";
290 + obj.createTimeEnd = "";
291 + if (obj.createTime.length > 0) {
292 + obj.createTimeStart = obj.createTime[0];
293 + obj.createTimeEnd = obj.createTime[1];
294 + }
295 + getAllExportingBills(obj)
296 + .then((res) => {
297 + if (res.code === "200") {
298 + this.tableData = res.data.value;
299 + this.page.total = res.data.totalItems;
300 + this.tableData.forEach((item, idx) => {
301 + item.index = idx;
302 + item.returnStatusPopoverType = false;
303 + item.popoverData = [];
304 + });
305 + } else {
306 + this.alertWarningMsg(res.message);
307 + }
308 + this.loadings.searchLoading = false;
309 + })
310 + .catch((err) => {
311 + console.log(err);
312 + this.loadings.searchLoading = false;
313 + });
314 + },
315 + //重置
316 + clear() {
317 + this.sreachFormData = {
318 + orderNo: "",
319 + ebccode: "",
320 + returnStatus: "",
321 + createTime: [],
322 + };
323 + },
324 + //导出
325 + downloadData() {},
326 + //查询详情
327 + view(val) {
328 + this.$router.push({
329 + name: "ExportBillDetail",
330 + params: { data: val },
331 + });
332 + },
333 + popoverChange(val) {
334 + console.log(val);
335 + this.tableData = val.tableData;
336 + this.receiptApi(val.data.declareId, val.status)
337 + .then((res) => {
338 + val.tableData.forEach((item) => {
339 + if (item.declareId == val.data.declareId) {
340 + item.popoverData = res;
341 + }
342 + });
343 + this.tableData = val.tableData;
344 + })
345 + .finally(() => {
346 + this.$nextTick(() => {
347 + this.$refs.returnStatusPopover.tableLoading = false;
348 + });
349 + });
350 + },
351 + //查询回执
352 + receiptApi(id) {
353 + return new Promise((resolve, reject) => {
354 + let obj = { orderId: id };
355 + getOrderReceiptData(obj)
356 + .then((res) => {
357 + if (res.code === "200") {
358 + resolve(res.data);
359 + } else {
360 + reject();
361 + }
362 + })
363 + .catch((err) => {
364 + console.log(err);
365 + reject();
366 + });
367 + });
368 + },
369 + popoverClose(val) {
370 + this.tableData.forEach((item) => {
371 + item.returnStatusPopoverType = false;
372 + item.popoverData = [];
373 + });
374 + this.$refs.entryTable.$refs.tables.$refs.bodyWrapper.style.overflowY =
375 + "auto";
376 + },
377 + formChange(val) {
378 + this.sreachFormData = val;
379 + },
380 + //分页
381 + currentChange(val) {
382 + this.page.pageIndex = val.page;
383 + this.search(1);
384 + },
385 + sizeChange(val) {
386 + this.page.pageSize = val;
387 + this.search(1);
388 + },
389 + cellClick() {
390 + this.popoverClose();
391 + },
392 + dateChange(val) {
393 + if (val == "" || val == null) {
394 + this.$nextTick(() => {
395 + this.sreachFormData.createTime = [];
396 + });
397 + }
398 + },
399 + input() {
400 + this.$forceUpdate();
401 + },
402 + },
403 +};
404 +</script>
405 +
406 +<style scoped lang="scss">
407 +@import "@/assets/styles/variables.scss";
408 +.entrySreach {
409 + height: 100%;
410 + background-color: $menuLightBg;
411 +
412 + .entrySreachButton {
413 + display: inline-block;
414 + font-size: 20px;
415 + color: $fedexButton !important;
416 + }
417 +
418 + .optionButton {
419 + padding: 10px;
420 + text-align: right;
421 +
422 + .el-button {
423 + color: $fedexButton;
424 + border-color: $fedexButton !important;
425 +
426 + svg {
427 + display: inline-block;
428 + margin-right: 5px;
429 + fill: $fedexButton;
430 + }
431 + }
432 +
433 + .entrySaveButton:hover,
434 + .entrySaveButton:focus {
435 + color: $menuLightBg !important;
436 + background-color: $fedexButton !important;
437 + }
438 + }
439 +}
440 +
441 +.texttareaTip {
442 + position: absolute;
443 + top: 52%;
444 + right: 20px;
445 + transform: translate(0, -50%);
446 + z-index: 10;
447 +}
448 +</style>