From d482eda58243d3d8916b26161a50c1021a89865c Mon Sep 17 00:00:00 2001 From: sunzehua Date: Fri, 3 Nov 2023 11:29:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http.js | 2 +- src/view/examine/index.vue | 56 +++++++++++++++++-------- src/view/home/index.vue | 85 ++++++++++++++++++++++++++++++-------- 3 files changed, 107 insertions(+), 36 deletions(-) diff --git a/src/utils/http.js b/src/utils/http.js index c38fa8c..fa3a089 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -1,7 +1,7 @@ import axios from 'axios' // axios.defaults.baseURL = process.env.NODE_ENV === 'development' ? "http://60.209.125.238:30802": "http://121.42.232.16:5066", -axios.defaults.baseURL = process.env.NODE_ENV === 'development' ? "http://60.209.125.238:30802": "/api", +axios.defaults.baseURL = process.env.NODE_ENV === 'development' ? "http://121.42.232.16:5066": "/api", axios.defaults.timeout = 50000; axios.interceptors.request.use( diff --git a/src/view/examine/index.vue b/src/view/examine/index.vue index 7c30420..917938c 100644 --- a/src/view/examine/index.vue +++ b/src/view/examine/index.vue @@ -57,14 +57,14 @@ 驳回 -
原始单据 @@ -77,9 +77,10 @@
-
+ {{ text }} -
+ +
@@ -93,11 +94,12 @@ - + - + - {{ addForm.blno }} + {{ addForm.blno }} {{ addForm.bsType }} @@ -105,7 +107,7 @@ {{ addForm.customerRemark }} - + {{ addForm.updateRemark }} @@ -191,7 +193,7 @@ export default { addForm: {}, fileList: [], logData: [], - editVisible:false, + editVisible: false, addVisible: false, selectedRowKeys: [], visible: false, @@ -211,7 +213,7 @@ export default { { required: true, message: '请输入驳回原因', trigger: 'blur' }, ] }, - baseLink:'http://60.209.125.238:30802/' + baseLink: 'http://121.42.232.16:5066/' } }, @@ -236,6 +238,15 @@ export default { console.log(err) }) }, + handleCopyText(text) { + this.$message.success('复制成功') + var cInput = document.createElement('input'); + cInput.value = text; + document.body.appendChild(cInput); + cInput.select(); // 选取文本框内容 + document.execCommand('copy'); + document.body.removeChild(cInput); + }, handleNoacc() { if (this.selectedRowKeys.length == 0) { this.$message.warning('请先选择') @@ -271,6 +282,16 @@ export default { baoguanDetail(record.id).then(res => { if (res.succeeded) { this.addForm = res.data + if (this.addForm.custFileList) { + const arr = [] + this.addForm.custFileList.forEach(item => { + arr.push({ + id: item.id, + name: item.fileName + }) + }) + this.fileList = arr + } this.addVisible = true } else { this.$message.error(res.errors) @@ -288,6 +309,7 @@ export default { this.form.createdTimeStart = this.form.creatDate[0] this.form.createdTimeEnd = this.form.creatDate[1] } + this.pagination.current = 1 this.getList() }, handleAccess() { @@ -336,12 +358,12 @@ export default { baoguanDetail(row.id).then(res => { if (res.succeeded) { this.addForm = res.data - if (Object.keys(this.addForm.fileListBaoGuan).length > 0) { + if (this.addForm.custFileList) { const arr = [] - Object.keys(this.addForm.fileListBaoGuan).forEach((item, index) => { + this.addForm.custFileList.forEach(item => { arr.push({ - id: item, - name: Object.values(this.addForm.fileListBaoGuan)[index] + id: item.id, + name: item.fileName }) }) this.fileList = arr @@ -380,7 +402,7 @@ export default { console.log(res) if (res.succeeded) { this.$message.success('上传成功') - const data = res.data.split('\\') + const data = res.data.split('/') this.fileList.push({ name: data[1], id: res.data diff --git a/src/view/home/index.vue b/src/view/home/index.vue index a2584d0..b1cfd64 100644 --- a/src/view/home/index.vue +++ b/src/view/home/index.vue @@ -33,17 +33,38 @@ - - 海关放行 + + 完成接单 + + + 完成打单 + + + 海关已申报 + + + 海关入库 海关审结 - - 提交单一 + + 海关查验 - - 报关行接单 + + 海关放行 + + + 海关结关 + + + 准予进港 + + + 完成审单 + + + 提交到单一窗口 @@ -67,8 +88,8 @@ 发送 -
海关单据 @@ -102,9 +124,10 @@
- + +
{ if (res.succeeded) { this.addForm = res.data + if (this.addForm.custFileList) { + const arr = [] + this.addForm.custFileList.forEach(item => { + arr.push({ + id: item.id, + name: item.fileName + }) + }) + this.fileList = arr + } this.addVisible = true } else { this.$message.error(res.errors) @@ -381,6 +428,7 @@ export default { this.form.createdTimeStart = this.form.creatDate[0] this.form.createdTimeEnd = this.form.creatDate[1] } + this.pagination.current = 1 this.getList() }, handleDelete() { @@ -443,12 +491,12 @@ export default { baoguanDetail(row.id).then(res => { if (res.succeeded) { this.addForm = res.data - if (Object.keys(this.addForm.fileListBaoGuan).length > 0) { + if (this.addForm.custFileList) { const arr = [] - Object.keys(this.addForm.fileListBaoGuan).forEach((item, index) => { + this.addForm.custFileList.forEach(item => { arr.push({ - id: item, - name: Object.values(this.addForm.fileListBaoGuan)[index] + id: item.id, + name: item.fileName }) }) this.fileList = arr @@ -553,6 +601,7 @@ export default { }, handleOpen1(row) { this.BGvisible = true + this.BGdata = [] baoguanDetail(row.id).then(res => { if (res.succeeded) { this.BGdata = res.data.logListCustoms