From 8d6480a55c405cebcbe431b988faa9064a08777e Mon Sep 17 00:00:00 2001 From: ruanqi Date: Mon, 3 Mar 2025 17:54:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E5=93=81=E5=A4=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ecss/ecss.js | 1 + src/views/modules/ecss/codelnotify.vue | 1 + src/views/modules/ecss/codelnotifyConfirm.vue | 3 +- src/views/modules/ecss/createDeclaration.vue | 138 ++++++++++++++++++ 4 files changed, 142 insertions(+), 1 deletion(-) diff --git a/src/api/ecss/ecss.js b/src/api/ecss/ecss.js index 37ca265..a755eb6 100644 --- a/src/api/ecss/ecss.js +++ b/src/api/ecss/ecss.js @@ -54,3 +54,4 @@ export const getDeclarationDefaultData= data => createAPI(`/ecss/coDel/getDeclar export const partInformationHsCode= data => createAPI(`/ecss/coDel/partInformationHsCode`,'post',data) export const savePartHSCode= data => createAPI(`/ecss/coDel/savePartHSCode`,'post',data) +export const saveDeclaration= data => createAPI(`/ecss/coDel/saveDeclaration`,'post',data) diff --git a/src/views/modules/ecss/codelnotify.vue b/src/views/modules/ecss/codelnotify.vue index 44309b5..f0bb966 100644 --- a/src/views/modules/ecss/codelnotify.vue +++ b/src/views/modules/ecss/codelnotify.vue @@ -24,6 +24,7 @@ + diff --git a/src/views/modules/ecss/codelnotifyConfirm.vue b/src/views/modules/ecss/codelnotifyConfirm.vue index 72dc157..a5c1173 100644 --- a/src/views/modules/ecss/codelnotifyConfirm.vue +++ b/src/views/modules/ecss/codelnotifyConfirm.vue @@ -23,6 +23,7 @@ + @@ -185,7 +186,7 @@ label="操作"> diff --git a/src/views/modules/ecss/createDeclaration.vue b/src/views/modules/ecss/createDeclaration.vue index b9de3b7..dc394f5 100644 --- a/src/views/modules/ecss/createDeclaration.vue +++ b/src/views/modules/ecss/createDeclaration.vue @@ -354,6 +354,110 @@ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
保存 关闭 @@ -373,6 +477,7 @@ searchEcssCoDelNotifyDetail, searchCoDelPalletData, getDeclarationDefaultData, + saveDeclaration, }from "@/api/ecss/ecss.js" import {getAllBuList}from '@/api/factory/site.js' export default { @@ -390,6 +495,7 @@ dataList:[], dataList2:[], dataList3:[], + detailList:[], dataListLoading: false, searchData: { page: 1, @@ -1480,11 +1586,15 @@ } }) }, + changeToalPrice(row){ + row.totalPrice=row.unitPrice*row.qty + }, declarationModel(row){ getDeclarationDefaultData(row).then(({data}) => { //区分请求成功和失败的状况 if (data && data.code === 0) { this.declarationData=data.row + this.detailList=data.rows this.declarationFlag=true } else { this.$alert(data.msg, '错误', { @@ -1493,6 +1603,34 @@ } }); }, + saveDeclaration(){ + if(this.detailList==null|| this.detailList.length<1){ + this.$alert('不存在明细记录!', '错误', { + confirmButtonText: '确定' + }) + return false + } + for (let i = 0; i { + //区分请求成功和失败的状况 + if (data && data.code === 0) { + this.declarationFlag=false + this.searchTable() + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }); + }, //导出excel async createExportData() { this.searchData.limit = -1