diff --git a/src/api/ecss/ecss.js b/src/api/ecss/ecss.js index 8297d68..7177bdb 100644 --- a/src/api/ecss/ecss.js +++ b/src/api/ecss/ecss.js @@ -101,4 +101,6 @@ export const deleteWalMartOrder= data => createAPI(`/ecss/coDel/deleteWalMartOrd export const saveWalMartOrderByExcel = data => createAPI(`/ecss/coDel/saveWalMartOrderByExcel`,'post',data) +export const getPropertiesListByDeclaration = data => createAPI(`/ecss/coDel/getPropertiesListByDeclaration`,'post',data) + diff --git a/src/views/modules/ecss/codelnotifyConfirm.vue b/src/views/modules/ecss/codelnotifyConfirm.vue index 0e89779..6a0a4e6 100644 --- a/src/views/modules/ecss/codelnotifyConfirm.vue +++ b/src/views/modules/ecss/codelnotifyConfirm.vue @@ -2130,6 +2130,7 @@ buNo:this.currentRow.buNo, delNo:this.currentRow.delNo, cmcInvoice:this.currentRow.cmcInvoice, + walMartOrderFlag:this.currentRow.walMartOrderFlag } this.$nextTick(() => { this.$refs.palletUploadExcel.init(inData) diff --git a/src/views/modules/ecss/declaration.vue b/src/views/modules/ecss/declaration.vue index 2cc18d1..7e9ad19 100644 --- a/src/views/modules/ecss/declaration.vue +++ b/src/views/modules/ecss/declaration.vue @@ -51,6 +51,9 @@ {{'导出出口货物委托书'}} + - + @@ -146,11 +149,42 @@ 中文 - 英文 + 英文 + + + + + + + + + 确定 关闭 @@ -298,11 +332,11 @@ 英文 - + 货物明细 @@ -323,6 +357,11 @@ + + + + + @@ -348,11 +387,6 @@ - - - - - { + if (data && data.code == 0) { + this.propertiesList = data.rows + } else { + this.propertiesList = []; + } + }); + } }, chooseHsCodeDescType() { if (!this.currentRow || !this.currentRow.buNo) { @@ -1699,6 +1744,10 @@ exportParam.delNo = this.currentRow.delNo exportParam.brandType = this.brandType exportParam.hsCodeDescType=this.hsCodeDescType + if (this.propertiesList.length>0) { + this.currentRow.brand='品牌' + exportParam.propertiesList = this.propertiesList + } let error; ExportUtil.export( "/ecss/coDel/downloadDeclarationElements", @@ -1790,6 +1839,21 @@ this.exportGoodsFlag = false; this.searchTable() }, + exportContract(){ + if (!this.currentRow || !this.currentRow.buNo) { + this.$message.warning('请选择报关单!') + return + } + let exportParam=this.exportGoods + exportParam.declarationNo = this.currentRow.declarationNo + exportParam.site = this.currentRow.site + exportParam.delNo = this.currentRow.delNo + ExportUtil.export( + "/ecss/coDel/downloadContract", + exportParam, this.currentRow.declarationNo+"合同.xlsx" + ); + this.searchTable() + }, getCustomerInfo() { getCustomerInfo(this.currentRow).then(({data}) => { //区分请求成功和失败的状况 diff --git a/src/views/modules/ecss/ecssTemplate.vue b/src/views/modules/ecss/ecssTemplate.vue index 3065e9d..8f98e61 100644 --- a/src/views/modules/ecss/ecssTemplate.vue +++ b/src/views/modules/ecss/ecssTemplate.vue @@ -129,11 +129,11 @@ SO - + 货物明细 diff --git a/src/views/modules/ecss/pallet_upload_excel.vue b/src/views/modules/ecss/pallet_upload_excel.vue index 4f2fd2d..4d0d032 100644 --- a/src/views/modules/ecss/pallet_upload_excel.vue +++ b/src/views/modules/ecss/pallet_upload_excel.vue @@ -17,7 +17,21 @@ - 下载文件模板 + + {{ '导出模版' }} + + @@ -40,7 +54,7 @@ diff --git a/src/views/modules/ecss/walmart_upload_excel.vue b/src/views/modules/ecss/walmart_upload_excel.vue index 92579c0..cb2c182 100644 --- a/src/views/modules/ecss/walmart_upload_excel.vue +++ b/src/views/modules/ecss/walmart_upload_excel.vue @@ -108,7 +108,11 @@ formData.append("file", this.fileList[0].raw) saveWalMartOrderByExcel(formData).then(({data}) => { if (data.code === 0) { - this.$message.success(data.msg) + if (data.errorMsg) { + this.$message.warning(data.errorMsg) + } else { + this.$message.success(data.msg) + } // 关闭窗口并刷新页面 this.closeDialog() } else {