From 3b93fa8aec1d963f1e652de32a69b9d6c27bf865 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Tue, 14 Mar 2023 18:42:26 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E9=80=81=E8=B4=A7=E5=8D=95=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8D=95=E6=8D=AE=E7=BB=91=E5=AE=9A=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E9=97=AE=E9=A2=98=E4=B8=8E=E7=95=8C=E9=9D=A2=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/invSubWarehouse.js | 8 - src/views/inout/DialogCreateOrder.vue | 4 +- src/views/inout/DialogSelectRl.vue | 4 +- src/views/inout/IOFinishCode.vue | 1 - src/views/inout/PanelCreateOrderCodes.vue | 5 +- src/views/purchase/purArrival/purArrival.vue | 9 +- .../purArrival/purArrivalEditDialog.vue | 34 +- .../purDelivery/DialogSelectDeliveryList.vue | 294 +++++++++++- .../purchase/purDelivery/purDelivery.vue | 6 +- .../purDelivery/purDeliveryEditDialog.vue | 187 ++++---- .../purDelivery/purDeliveryInvoice.vue | 418 ------------------ .../purDelivery/purDeliverySelectProduct.vue | 4 + src/views/supplier/company/basicCompany.vue | 1 - src/views/system/dept/invRelBusType.vue | 1 - 14 files changed, 436 insertions(+), 540 deletions(-) delete mode 100644 src/views/purchase/purDelivery/purDeliveryInvoice.vue diff --git a/src/api/system/invSubWarehouse.js b/src/api/system/invSubWarehouse.js index 9b28217..3540137 100644 --- a/src/api/system/invSubWarehouse.js +++ b/src/api/system/invSubWarehouse.js @@ -29,14 +29,6 @@ export function findByFrom(query) { } -export function filterSubByInv(query) { - return axios({ - url: "/spms/sub/inv/warehouse/findByInv", - method: "get", - params: query - }); -} - export function findByDeptUser(query) { return axios({ diff --git a/src/views/inout/DialogCreateOrder.vue b/src/views/inout/DialogCreateOrder.vue index 06a10de..a396511 100644 --- a/src/views/inout/DialogCreateOrder.vue +++ b/src/views/inout/DialogCreateOrder.vue @@ -556,17 +556,15 @@ export default { this.curRow = response.data; this.orderFormData.billNo = this.curRow.orderId; this.refreshCodesPanel(); + this.$message.error(response.message); this.selectRlTitle = response.message; - this.bindRl(response.data); } else if (response.code == 503) { this.curRow = response.data; this.orderFormData.billNo = this.curRow.orderId; this.refreshCodesPanel(); this.selectUnitTitle = response.message; this.$message.error(response.message); - this.handleUnitClick(response.data); } else if (response.code == 504) { - this.$confirm(response.message, "提示", { confirmButtonText: "确定", cancelButtonText: "忽略", diff --git a/src/views/inout/DialogSelectRl.vue b/src/views/inout/DialogSelectRl.vue index a967488..91569cb 100644 --- a/src/views/inout/DialogSelectRl.vue +++ b/src/views/inout/DialogSelectRl.vue @@ -710,10 +710,10 @@ export default { } , bindId(val) { - + debugger if (this.curRow.code != null || this.type == 1) { this.$emit("selectBindRl", val); - this.$emit("closeBindDialog", true); + // this.$emit("closeBindDialog", true); } else { let query = { id: this.curRow.id, diff --git a/src/views/inout/IOFinishCode.vue b/src/views/inout/IOFinishCode.vue index 11f59a8..511d039 100644 --- a/src/views/inout/IOFinishCode.vue +++ b/src/views/inout/IOFinishCode.vue @@ -138,7 +138,6 @@ export default { }, getCodeList() { - debugger this.loading = true; this.query.orderId = this.idQuery.billNo; findByOrderId(this.query) //查找该单号下的所有条码 diff --git a/src/views/inout/PanelCreateOrderCodes.vue b/src/views/inout/PanelCreateOrderCodes.vue index 1305669..8a3fd24 100644 --- a/src/views/inout/PanelCreateOrderCodes.vue +++ b/src/views/inout/PanelCreateOrderCodes.vue @@ -272,7 +272,7 @@ export default { rowStyle({row, rowIndex}) { let rowBackground = {}; - if (!this.$isNotBlank(row.supId) || !this.$isNotBlank(row.relId) ) { + if (!this.$isNotBlank(row.supId) || !this.$isNotBlank(row.relId)) { rowBackground.color = '#f60303'; } return rowBackground; @@ -288,6 +288,7 @@ export default { if (response.code == 20000) { this.$message.success("绑定成功"); this.orderFormData.id = this.curRow.orderId; + this.closeBindDialog(); this.getCodeList(); } else { if (response.code == 503) { @@ -326,7 +327,7 @@ export default { closeBindDialog() { this.selectRlVisible = false; this.dialogTableVisible = false; - // this.refreshPanel(); + this.refreshPanel(); }, closeCodeDialog() { diff --git a/src/views/purchase/purArrival/purArrival.vue b/src/views/purchase/purArrival/purArrival.vue index 4acec13..428bd6d 100644 --- a/src/views/purchase/purArrival/purArrival.vue +++ b/src/views/purchase/purArrival/purArrival.vue @@ -32,7 +32,7 @@ 显示/隐藏搜索栏 重置 查询 - 新增送货单据 + 新增到货单据 @@ -86,6 +86,9 @@ + + + @@ -135,8 +138,8 @@ export default { }, formName: null, formMap: { - add: "新增送货单", - update: "编辑送货单", + add: "新增到货单", + update: "编辑到货单", }, statusMap: { 1: "草稿", diff --git a/src/views/purchase/purArrival/purArrivalEditDialog.vue b/src/views/purchase/purArrival/purArrivalEditDialog.vue index 44f10d1..cea86ce 100644 --- a/src/views/purchase/purArrival/purArrivalEditDialog.vue +++ b/src/views/purchase/purArrival/purArrivalEditDialog.vue @@ -32,7 +32,7 @@ - + + + + + + + + + + + - - - + + + - + @@ -85,7 +85,7 @@ - + @@ -251,6 +251,7 @@ export default { this.filterQuery.endDate = null; } this.loading = true; + this.filterQuery.status = 11; listOrder(this.filterQuery) .then((response) => { if (response.code == 20000) { diff --git a/src/views/purchase/purArrival/purArrivalAudit.vue b/src/views/purchase/purArrival/purArrivalAudit.vue index 7f3e474..e9dff42 100644 --- a/src/views/purchase/purArrival/purArrivalAudit.vue +++ b/src/views/purchase/purArrival/purArrivalAudit.vue @@ -45,7 +45,7 @@ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} - + @@ -60,7 +60,7 @@ @@ -106,12 +106,13 @@ :closeDialog="closeDialog" v-on:cancelDialog="getId" :idQuery="idQuery" + :edit-type="1" > + + diff --git a/src/views/purchase/purDelivery/DialogSelectDeliveryList.vue b/src/views/purchase/purDelivery/DialogSelectDeliveryList.vue index b46ab42..488b340 100644 --- a/src/views/purchase/purDelivery/DialogSelectDeliveryList.vue +++ b/src/views/purchase/purDelivery/DialogSelectDeliveryList.vue @@ -45,7 +45,7 @@ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} - + @@ -100,6 +100,10 @@ export default { type: Object, required: true, }, + customerId: { + type: Object, + required: true, + } }, data() { @@ -207,6 +211,8 @@ export default { } this.loading = true; this.filterQuery.status = 3; + debugger + this.filterQuery.supId = this.customerId; listOrder(this.filterQuery) .then((response) => { if (response.code == 20000) { @@ -247,9 +253,9 @@ export default { if (this.$isBlank(this.currentRow.id)) { this.$message.error("未选择申购单!"); } - var data = { + let data = { id: this.pId, - applyId: this.currentRow.id + purDeliveryId: this.currentRow.id } addPlanDetailAndOrder(data).then((res) => { this.closeDialog(res.data); diff --git a/src/views/purchase/purDelivery/purDeliveryDetailDialog.vue b/src/views/purchase/purDelivery/purDeliveryDetailDialog.vue index 3852496..11f04ed 100644 --- a/src/views/purchase/purDelivery/purDeliveryDetailDialog.vue +++ b/src/views/purchase/purDelivery/purDeliveryDetailDialog.vue @@ -60,9 +60,9 @@ - - 是否生成采购入库单 - + + + diff --git a/src/views/purchase/purDelivery/purDeliveryEditDialog.vue b/src/views/purchase/purDelivery/purDeliveryEditDialog.vue index 78cc9a3..5104a4f 100644 --- a/src/views/purchase/purDelivery/purDeliveryEditDialog.vue +++ b/src/views/purchase/purDelivery/purDeliveryEditDialog.vue @@ -4,7 +4,7 @@ 草稿保存 - 提交单据 + 提交单据 diff --git a/src/views/purchase/purDelivery/purDeliverySearch.vue b/src/views/purchase/purDelivery/purDeliverySearch.vue index 27d746f..1b8d606 100644 --- a/src/views/purchase/purDelivery/purDeliverySearch.vue +++ b/src/views/purchase/purDelivery/purDeliverySearch.vue @@ -60,8 +60,6 @@ diff --git a/src/views/purchase/purDelivery/purDeliverySelectProduct.vue b/src/views/purchase/purDelivery/purDeliverySelectProduct.vue index 9204f0d..0cd8d28 100644 --- a/src/views/purchase/purDelivery/purDeliverySelectProduct.vue +++ b/src/views/purchase/purDelivery/purDeliverySelectProduct.vue @@ -50,7 +50,8 @@ - + - + @@ -91,7 +91,6 @@ - { if (response.code == 20000) { diff --git a/src/views/purchase/purReturned/purReturnedAudit.vue b/src/views/purchase/purReturned/purReturnedAudit.vue index 741d487..462d78c 100644 --- a/src/views/purchase/purReturned/purReturnedAudit.vue +++ b/src/views/purchase/purReturned/purReturnedAudit.vue @@ -60,7 +60,7 @@ @@ -105,12 +105,13 @@ :closeDialog="closeDialog" v-on:cancelDialog="getId" :idQuery="idQuery" + :edit-type="1" > + + + + diff --git a/src/views/inout/InvoiceRegister.vue b/src/views/inout/InvoiceRegister.vue new file mode 100644 index 0000000..beee98c --- /dev/null +++ b/src/views/inout/InvoiceRegister.vue @@ -0,0 +1,165 @@ + + + + + diff --git a/src/views/inout/InvoiceRegistration.vue b/src/views/inout/InvoiceRegistration.vue new file mode 100644 index 0000000..ee0d9ac --- /dev/null +++ b/src/views/inout/InvoiceRegistration.vue @@ -0,0 +1,742 @@ + + + + + +