diff --git a/src/api/ecss/ecss.js b/src/api/ecss/ecss.js index b61dca4..8297d68 100644 --- a/src/api/ecss/ecss.js +++ b/src/api/ecss/ecss.js @@ -85,4 +85,20 @@ export const saveOneClickPacking = data => createAPI(`/ecss/coDel/saveOneClickPa export const getCustomerInfo = data => createAPI(`/ecss/coDel/getCustomerInfo`,'post',data) +export const searchEcssTemplateData = data => createAPI(`/ecss/coDel/searchEcssTemplateData`,'post',data) + +export const saveEcssTemplateData = data => createAPI(`/ecss/coDel/saveEcssTemplateData`,'post',data) + +export const deleteEcssTemplate= data => createAPI(`/ecss/coDel/deleteEcssTemplate`,'post',data) + +export const searchTemplateList = data => createAPI(`/select/ecssMapper/searchTemplateList/list`,'post',data) + +export const searchWalMartOrderData = data => createAPI(`/ecss/coDel/searchWalMartOrderData`,'post',data) + +export const saveWalMartOrderData = data => createAPI(`/ecss/coDel/saveWalMartOrderData`,'post',data) + +export const deleteWalMartOrder= data => createAPI(`/ecss/coDel/deleteWalMartOrder`,'post',data) + +export const saveWalMartOrderByExcel = data => createAPI(`/ecss/coDel/saveWalMartOrderByExcel`,'post',data) + diff --git a/src/views/modules/ecss/codelnotify.vue b/src/views/modules/ecss/codelnotify.vue index fd14d84..ec3be68 100644 --- a/src/views/modules/ecss/codelnotify.vue +++ b/src/views/modules/ecss/codelnotify.vue @@ -86,7 +86,7 @@ label="操作"> @@ -189,8 +189,8 @@ - - + + @@ -379,7 +379,22 @@ 关闭 - + + + + + + + + + + + + + 确定 + 关闭 + + @@ -414,6 +429,8 @@ pageSize: 100, totalPage: 0, height: 200, + walMartOrderFlag: 'N', + walMartOrderDialog:false, buList:[], dataList:[], dataList2:[], @@ -1570,11 +1587,20 @@ }) }) }, - xiadaEcssDel(row){ + xiadaChoose(){ + if (this.currentRow.buNo=='03-RFID') { + this.walMartOrderDialog=true; + this.walMartOrderFlag='N'; + } else { + this.xiadaEcssDel() + } + }, + xiadaEcssDel(){ let inData={ - site:row.site, - delNo:row.delNo, - notifyStatus:'已下达' + site:this.currentRow.site, + delNo:this.currentRow.delNo, + notifyStatus:'已下达', + walMartOrderFlag:this.walMartOrderFlag } this.$confirm('确认下达吗?', '提示').then(() => { changeEcssDelStatus(inData).then(({data}) => { @@ -1593,6 +1619,7 @@ } }) }) + this.walMartOrderDialog=false; }, jihuaEcssDel(row){ let inData={ diff --git a/src/views/modules/ecss/codelnotifyConfirm.vue b/src/views/modules/ecss/codelnotifyConfirm.vue index ab5c84c..0e89779 100644 --- a/src/views/modules/ecss/codelnotifyConfirm.vue +++ b/src/views/modules/ecss/codelnotifyConfirm.vue @@ -183,6 +183,16 @@ border v-loading="dataListLoading" style="width: 100%; "> + + + @@ -322,7 +332,7 @@ - + @@ -308,7 +497,8 @@ deleteDeclaration, downloadDeclarationElements, getNotifyPartDetail, - getCustomerInfo + getCustomerInfo, + searchTemplateList }from "@/api/ecss/ecss.js" import {EventBus} from "../../../main"; import ExportUtil from "@/utils/export"; @@ -319,6 +509,9 @@ }, data() { return { + templateFlag:false, + templateData:{}, + templateList:[], customerInfoList:[], notifyPartDetailList:[], currentRow:{}, @@ -331,18 +524,48 @@ deliveryGoodsDate:'', voyage :'', shippingDate:'', + hsCodeDescType:'Y', shipper:'Checkpoint Commercial (Shanghai) Co., Ltd. 保点贸易(上海)有限公司\t\t\t\t\t\t\n' + 'Room 1411, No. 31, Lane 2419, Hunan Road, Pudong New Area, Shanghai\t\t\t\t\t\t\n' + '电话/Tel: (86-21)38112888 传真/Fax: (86-21)38112990\t\t\t\t\t\t\n' + '上海市浦东新区沪南路2419弄31号1411室\t\t\t\t\t\t\n' }, brandTypeFlag:false, + declarationFlag:false, + exportInvoiceFlag:false, + exportInvoice:{ + origin:"made in china", + templateName:'', + hsCodeDesc:'', + contractFlag:'', + packaging:'', + kgs:'', + hsCode:'', + material:'', + hsCodeDescType:'', + goodsLabel:'', + }, exportPakingFlag:false, exportPaking:{ origin:"made in china", - itemNo:'' + itemNo:'', + upc:'', + so:'', + shippingMark:'', + palletWeight:'', + templateName:'', + hsCodeDesc:'', + contractFlag:'', + packaging:'', + kgs:'', + hsCode:'', + material:'', + hsCodeDescType:'', + goodsLabel:'', + boxChange:'' }, brandType:'', + hsCodeDescType:'Y', exportParam: {}, pageIndex: 1, pageSize: 100, @@ -1348,25 +1571,91 @@ this.currentRow = val; }, chooseBrandType() { - if (!this.currentRow) { + if (!this.currentRow || !this.currentRow.buNo) { this.$message.warning('请选择报关单!') return } this.brandType='境外品牌(其他)' + //this.hsCodeDescType='' this.brandTypeFlag = true }, + chooseHsCodeDescType() { + if (!this.currentRow || !this.currentRow.buNo) { + this.$message.warning('请选择报关单!') + return + } + //this.hsCodeDescType='' + this.declarationFlag = true + }, + exportInvoiceList() { + if (!this.currentRow || !this.currentRow.buNo) { + this.$message.warning('请选择报关单!') + return + } + this.exportInvoice.templateName='' + this.exportInvoice.hsCodeDesc=this.currentRow.hsCodeDesc + this.exportInvoice.contractFlag=this.currentRow.contractFlag + this.exportInvoice.packaging=this.currentRow.packaging + this.exportInvoice.kgs=this.currentRow.kgs + this.exportInvoice.hsCode=this.currentRow.hsCode + this.exportInvoice.material=this.currentRow.material + this.exportInvoice.hsCodeDescType=this.currentRow.hsCodeDescType + this.exportInvoice.goodsLabel=this.currentRow.goodsLabel + this.exportInvoice.origin="made in china" + //this.exportInvoice = this.currentRow + if (!this.exportInvoice.origin) { + this.exportInvoice.origin = 'made in china' + } + if (!this.exportInvoice.itemNo) { + this.exportInvoice.itemNo = 'Y' + } + this.notifyPartDetailList = []; + this.exportInvoiceFlag = true + if (this.currentRow.buNo==='03-RFID') { + getNotifyPartDetail(this.currentRow).then(({data}) => { + //区分请求成功和失败的状况 + if (data && data.code == 0) { + this.notifyPartDetailList = data.rows + this.notifyPartDetailList.forEach(o => { + if (!o.lossratio) { + o.lossratio = '1.2'; + } + }); + } else { + this.notifyPartDetailList = []; + } + }); + } + }, exportPakingList() { - if (!this.currentRow) { + if (!this.currentRow || !this.currentRow.buNo) { this.$message.warning('请选择报关单!') return } - this.exportPaking = this.currentRow + this.exportPaking.origin='made in china' + this.exportPaking.itemNo=this.currentRow.itemNo + this.exportPaking.upc=this.currentRow.upc + this.exportPaking.so=this.currentRow.so + this.exportPaking.shippingMark=this.currentRow.shippingMark + this.exportPaking.palletWeight=this.currentRow.palletWeight + this.exportPaking.hsCodeDesc=this.currentRow.hsCodeDesc + this.exportPaking.contractFlag=this.currentRow.contractFlag + this.exportPaking.packaging=this.currentRow.packaging + this.exportPaking.kgs=this.currentRow.kgs + this.exportPaking.hsCode=this.currentRow.hsCode + this.exportPaking.material=this.currentRow.material + this.exportPaking.hsCodeDescType=this.currentRow.hsCodeDescType + this.exportPaking.goodsLabel=this.currentRow.goodsLabel + this.exportPaking.boxChange=this.currentRow.boxChange + //this.exportPaking = this.currentRow if (!this.exportPaking.origin) { this.exportPaking.origin = 'made in china' } if (!this.exportPaking.itemNo) { this.exportPaking.itemNo = 'Y' } + this.notifyPartDetailList = []; + this.exportPaking.templateName='' this.exportPakingFlag = true if (this.currentRow.buNo==='03-RFID') { getNotifyPartDetail(this.currentRow).then(({data}) => { @@ -1385,7 +1674,7 @@ } }, exportGoodsList() { - if (!this.currentRow) { + if (!this.currentRow || !this.currentRow.buNo) { this.$message.warning('请选择报关单!') return } @@ -1400,7 +1689,7 @@ }, // 导出 downloadDeclarationElements() { - if (!this.currentRow) { + if (!this.currentRow || !this.currentRow.buNo) { this.$message.warning('请选择报关单!') return } @@ -1409,6 +1698,7 @@ exportParam.site = this.currentRow.site exportParam.delNo = this.currentRow.delNo exportParam.brandType = this.brandType + exportParam.hsCodeDescType=this.hsCodeDescType let error; ExportUtil.export( "/ecss/coDel/downloadDeclarationElements", @@ -1417,7 +1707,7 @@ this.brandTypeFlag = false }, downloadDeclaration() { - if (!this.currentRow) { + if (!this.currentRow || !this.currentRow.buNo) { this.$message.warning('请选择报关单!') return } @@ -1425,27 +1715,32 @@ exportParam.declarationNo = this.currentRow.declarationNo exportParam.site = this.currentRow.site exportParam.delNo = this.currentRow.delNo + exportParam.hsCodeDescType=this.hsCodeDescType ExportUtil.export( "/ecss/coDel/downloadDeclaration", exportParam, this.currentRow.declarationNo+"报关单.xlsx" ); + this.declarationFlag = false }, downloadInvoice() { - if (!this.currentRow) { + if (!this.currentRow || !this.currentRow.buNo) { this.$message.warning('请选择报关单!') return } - let exportParam={} + let exportParam=this.exportInvoice exportParam.declarationNo = this.currentRow.declarationNo exportParam.site = this.currentRow.site exportParam.delNo = this.currentRow.delNo + exportParam.notifyPartDetailList = this.notifyPartDetailList ExportUtil.export( "/ecss/coDel/downloadInvoice", exportParam, this.currentRow.declarationNo+"发票.xlsx" ); + this.exportInvoiceFlag=false + this.searchTable() }, downloadPackingList() { - if (!this.currentRow) { + if (!this.currentRow || !this.currentRow.buNo) { this.$message.warning('请选择报关单!') return } @@ -1477,9 +1772,10 @@ exportParam, this.currentRow.declarationNo+"箱单.xlsx" ); this.exportPakingFlag = false; + this.searchTable() }, downloadExportGoods() { - if (!this.currentRow) { + if (!this.currentRow || !this.currentRow.buNo) { this.$message.warning('请选择报关单!') return } @@ -1492,6 +1788,7 @@ exportParam, this.currentRow.declarationNo+"出口货物委托书.xlsx" ); this.exportGoodsFlag = false; + this.searchTable() }, getCustomerInfo() { getCustomerInfo(this.currentRow).then(({data}) => { @@ -1503,6 +1800,60 @@ } }); }, + + openTemplate (type) { + this.templateData.type=type; + this.templateFlag = true; + }, + + openTemplateDialog () { + //请求 + this.searchTemplateList(); + }, + closeTemplateDialog () { + this.templateList = [] + this.templateFlag = false + }, + searchTemplateList () { + this.templateData.buNo = this.currentRow.buNo + searchTemplateList(this.templateData).then(({data}) => { + if (data && data.code === 0){ + this.templateList = data.rows; + } + }) + }, + templateRowDblclick (row) { + if (this.templateData.type=='发票') { + this.exportInvoice.templateName=row.name + this.exportInvoice.hsCodeDesc=row.hsCodeDesc + this.exportInvoice.contractFlag=row.contractFlag + + this.exportInvoice.origin=this.currentRow.origin?this.currentRow.origin:row.origin + this.exportInvoice.packaging=this.currentRow.packaging?this.currentRow.packaging:row.packaging + this.exportInvoice.kgs=this.currentRow.kgs?this.currentRow.kgs:row.kgs + this.exportInvoice.hsCode=this.currentRow.hsCode?this.currentRow.hsCode:row.hsCode + this.exportInvoice.material=this.currentRow.material?this.currentRow.material:row.material + this.exportInvoice.hsCodeDescType=this.currentRow.hsCodeDescType?this.currentRow.hsCodeDescType:row.hsCodeDescType + this.exportInvoice.goodsLabel=this.currentRow.goodsLabel?this.currentRow.goodsLabel:row.goodsLabel + } else { + this.exportPaking.templateName=row.name + this.exportPaking.upc=row.upc + this.exportPaking.so=row.so + this.exportPaking.shippingMark=row.shippingMark + this.exportPaking.palletWeight=row.palletWeight + this.exportPaking.boxChange=row.boxChange + this.exportPaking.itemNo=row.itemNo + + this.exportPaking.origin=this.currentRow.origin?this.currentRow.origin:row.origin + this.exportPaking.packaging=this.currentRow.packaging?this.currentRow.packaging:row.packaging + this.exportPaking.kgs=this.currentRow.kgs?this.currentRow.kgs:row.kgs + this.exportPaking.hsCode=this.currentRow.hsCode?this.currentRow.hsCode:row.hsCode + this.exportPaking.material=this.currentRow.material?this.currentRow.material:row.material + this.exportPaking.hsCodeDescType=this.currentRow.hsCodeDescType?this.currentRow.hsCodeDescType:row.hsCodeDescType + this.exportPaking.goodsLabel=this.currentRow.goodsLabel?this.currentRow.goodsLabel:row.goodsLabel + } + this.templateFlag = false + }, }, created() { diff --git a/src/views/modules/ecss/ecssTemplate.vue b/src/views/modules/ecss/ecssTemplate.vue new file mode 100644 index 0000000..3065e9d --- /dev/null +++ b/src/views/modules/ecss/ecssTemplate.vue @@ -0,0 +1,608 @@ + + + + + diff --git a/src/views/modules/ecss/ecssWalMartOrder.vue b/src/views/modules/ecss/ecssWalMartOrder.vue new file mode 100644 index 0000000..c758d85 --- /dev/null +++ b/src/views/modules/ecss/ecssWalMartOrder.vue @@ -0,0 +1,500 @@ + + + + + diff --git a/src/views/modules/ecss/hsCode.vue b/src/views/modules/ecss/hsCode.vue index a5e8391..3aae29e 100644 --- a/src/views/modules/ecss/hsCode.vue +++ b/src/views/modules/ecss/hsCode.vue @@ -80,7 +80,7 @@ - + - + - + + + + + + - + 属性模板 - + @@ -171,6 +176,7 @@ buNo:'', hsCode:'', hsCodeDesc:'', + hsCodeDescEn:'', codeNo:'', remark:'', }, @@ -231,6 +237,24 @@ fixed: '', columnWidth: 100 }, + { + userId: this.$store.state.user.name, + functionId: 801003, + serialNumber: '801003Table1HsCode', + tableId: "801003Table1", + tableName: "HsCode基础信息", + columnProp: "hsCodeDescEn", + headerAlign: "center", + align: "left", + columnLabel: "英文品名", + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 100 + }, { userId: this.$store.state.user.name, functionId: 801003, @@ -456,6 +480,7 @@ buNo:row.buNo, hsCode:row.hsCode, hsCodeDesc : row.hsCodeDesc, + hsCodeDescEn : row.hsCodeDescEn, codeNo:row.codeNo, remark:row.remark, } diff --git a/src/views/modules/ecss/walmart_upload_excel.vue b/src/views/modules/ecss/walmart_upload_excel.vue new file mode 100644 index 0000000..92579c0 --- /dev/null +++ b/src/views/modules/ecss/walmart_upload_excel.vue @@ -0,0 +1,163 @@ + + +