From a9c1ccb9b753fb1a63b52accc209dd8fde38634d Mon Sep 17 00:00:00 2001 From: ruanqi Date: Thu, 13 Feb 2025 14:55:58 +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 | 10 + src/views/modules/ecss/codelnotify.vue | 445 +++- .../soIssueNotify/newSoIssueNotify0211.vue | 2272 +++++++++++++++++ 3 files changed, 2683 insertions(+), 44 deletions(-) create mode 100644 src/views/modules/orderIssure/soIssueNotify/newSoIssueNotify0211.vue diff --git a/src/api/ecss/ecss.js b/src/api/ecss/ecss.js index 183e64c..7267c12 100644 --- a/src/api/ecss/ecss.js +++ b/src/api/ecss/ecss.js @@ -5,3 +5,13 @@ import { createAPI } from "@/utils/httpRequest.js"; export const saveEcssCoDelNotifyByExcel = data => createAPI(`/ecss/coDel/saveEcssCoDelNotifyByExcel`,'post',data) export const searchEcssCoDelNotifyHeader = data => createAPI(`/ecss/coDel/searchEcssCoDelNotifyHeader`,'post',data) export const searchEcssCoDelNotifyDetail = data => createAPI(`/ecss/coDel/searchEcssCoDelNotifyDetail`,'post',data) + +export const updateEcssDelHeader = data => createAPI(`/ecss/coDel/updateEcssDelHeader`,'post',data) + +export const deleteEcssDelHeader = data => createAPI(`/ecss/coDel/deleteEcssDelHeader`,'post',data) + + +export const changeEcssDelStatus = data => createAPI(`/ecss/coDel/changeEcssDelStatus`,'post',data) + + +export const updateEcssDelDetail= data => createAPI(`/ecss/coDel/updateEcssDelDetail`,'post',data) diff --git a/src/views/modules/ecss/codelnotify.vue b/src/views/modules/ecss/codelnotify.vue index 9334ca3..0d546b2 100644 --- a/src/views/modules/ecss/codelnotify.vue +++ b/src/views/modules/ecss/codelnotify.vue @@ -21,10 +21,10 @@ fixed="left" label="操作"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 保存 + 关闭 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 保存 + 关闭 + + @@ -101,7 +301,10 @@ import { searchEcssCoDelNotifyHeader, searchEcssCoDelNotifyDetail, - + updateEcssDelHeader, + deleteEcssDelHeader, + changeEcssDelStatus, + updateEcssDelDetail, }from "@/api/ecss/ecss.js" export default { name: "null", @@ -126,6 +329,46 @@ buttons:{ search:'查询', }, + updateHeaderModelFlag:false, + updateHeaderModel:{ + site:'', + buDesc:'', + cmcInvoice:'', + delNo:'', + readyDate:'', + shippingMode:'', + destination:'', + notifyDate:'', + remark:'', + }, + updateDetailModelFlag:false, + updateDetailModel:{ + site:'', + delNo:'', + itemNo:'', + partNo:'', + partDescription:'', + qty:'', + salesOrder:'', + line:'', + customerPO:'', + version:'', + status:'', + family:'', + lt:'', + cmcComment:'', + saleType:'', + awbBl:'', + shippingNumber:'', + forwarderInfo:'', + currency:'', + tp:'', + ttlAmount:'', + sumPrice:'', + so:'', + upc:'', + remark:'', + }, activeName:'detail', columnList1: [ { @@ -490,24 +733,6 @@ fixed: '', columnWidth: 100 }, - { - userId: this.$store.state.user.name, - functionId: 801001, - serialNumber: '801001Table2Line', - tableId: "801001Table2", - tableName: "关务系统发货通知单明细", - columnProp: "line", - headerAlign: "center", - align: "right", - columnLabel: "销售单行号", - columnHidden: false, - columnImage: false, - columnSortable: false, - sortLv: 0, - status: true, - fixed: '', - columnWidth: 80 - }, { userId: this.$store.state.user.name, functionId: 801001, @@ -796,24 +1021,24 @@ fixed: '', columnWidth: 100 }, - { - userId: this.$store.state.user.name, - functionId: 801001, - serialNumber: '801001Table2ErpDelItemNo', - tableId: "801001Table2", - tableName: "关务系统发货通知单明细", - columnProp: "erpDelItemNo", - headerAlign: "center", - align: "right", - columnLabel: "ERP发货单行号", - columnHidden: false, - columnImage: false, - columnSortable: false, - sortLv: 0, - status: true, - fixed: '', - columnWidth: 60 - }, + // { + // userId: this.$store.state.user.name, + // functionId: 801001, + // serialNumber: '801001Table2ErpDelItemNo', + // tableId: "801001Table2", + // tableName: "关务系统发货通知单明细", + // columnProp: "erpDelItemNo", + // headerAlign: "center", + // align: "right", + // columnLabel: "ERP发货单行号", + // columnHidden: false, + // columnImage: false, + // columnSortable: false, + // sortLv: 0, + // status: true, + // fixed: '', + // columnWidth: 60 + // }, { userId: this.$store.state.user.name, functionId: 801001, @@ -904,9 +1129,141 @@ // 刷新列表数据 this.refreshCurrentTabTable() }, - updateModel(){ - + updateHeaderModelDo(row){ + this.updateHeaderModel=row + this.updateHeaderModelFlag=true + }, + doUpdateHeader(){ + if(this.updateHeaderModel.readyDate==null||this.updateHeaderModel.readyDate==''){ + this.$alert('请选择ReadyDate!', '错误', { + confirmButtonText: '确定' + }) + return false + } + updateEcssDelHeader(this.updateHeaderModel).then(({data}) => { + if (data && data.code === 0) { + this.searchTable() + this.updateHeaderModelFlag = false + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => {} + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }, + deleteDelHeader(row){ + this.$confirm('确认删除吗?', '提示').then(() => { + deleteEcssDelHeader(row).then(({data}) => { + if (data && data.code === 0) { + this.searchTable() + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => {} + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }) + }, + xiadaEcssDel(row){ + let inData={ + site:row.site, + delNo:row.delNo, + notifyStatus:'已下达' + } + this.$confirm('确认下达吗?', '提示').then(() => { + changeEcssDelStatus(inData).then(({data}) => { + if (data && data.code === 0) { + this.searchTable() + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => {} + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }) + }, + jihuaEcssDel(row){ + let inData={ + site:row.site, + delNo:row.delNo, + notifyStatus:'已计划' + } + this.$confirm('确认取消下达吗?', '提示').then(() => { + changeEcssDelStatus(inData).then(({data}) => { + if (data && data.code === 0) { + this.searchTable() + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => {} + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }) }, + doUpdateDetail(){ + if(this.updateDetailModel.partNo==null||this.updateDetailModel.partNo==''){ + this.$alert('请输入PN!', '错误', { + confirmButtonText: '确定' + }) + return false + } + if(this.updateDetailModel.qty==null||this.updateDetailModel.qty==''){ + this.$alert('请输入QTY!', '错误', { + confirmButtonText: '确定' + }) + return false + } + if(this.updateDetailModel.qty<=0){ + this.$alert('QTY必须大于0!', '错误', { + confirmButtonText: '确定' + }) + return false + } + updateEcssDelDetail(this.updateDetailModel).then(({data}) => { + if (data && data.code === 0) { + this.searchTable() + this.updateDetailModelFlag=false + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => {} + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }, + openUpdateDetailModel(row){ + this.updateDetailModel=row + this.updateDetailModelFlag=true + } }, created() { diff --git a/src/views/modules/orderIssure/soIssueNotify/newSoIssueNotify0211.vue b/src/views/modules/orderIssure/soIssueNotify/newSoIssueNotify0211.vue new file mode 100644 index 0000000..90b8d16 --- /dev/null +++ b/src/views/modules/orderIssure/soIssueNotify/newSoIssueNotify0211.vue @@ -0,0 +1,2272 @@ + + + + +