diff --git a/src/api/wms/outorder.js b/src/api/wms/outorder.js index a2c39bc..b814e5a 100644 --- a/src/api/wms/outorder.js +++ b/src/api/wms/outorder.js @@ -25,6 +25,14 @@ export function addOutorder(data) { data: data }); } +// 用于出库任务页面--查询 +export function getOutorderOUT(data) { + return request({ + url: '/wms/order/PurchaseOrderOutboundPda', + method: 'post', + data: data + }); +} // 修改包材出库单 export function updateOutorder(data) { @@ -65,4 +73,12 @@ export function addPurchaseOrderOutbound(data) { method: 'post', data: data }); -} \ No newline at end of file +} +// 新增 +export function OutboundPostingSAP(data) { + return request({ + url: '/wms/order/OutboundPostingSAP', + method: 'post', + data: data + }); +} diff --git a/src/views/wms/order/index.vue b/src/views/wms/order/index.vue index f9fc299..e924c0e 100644 --- a/src/views/wms/order/index.vue +++ b/src/views/wms/order/index.vue @@ -104,7 +104,7 @@ - + @@ -356,7 +356,7 @@ export default { reset() { this.form = { siteCode: null, - ID: null, + id: null, procureCode: null, materialCode: null, materialDesc: null, @@ -401,7 +401,7 @@ export default { }, // 多选框选中数据 handleSelectionChange(selection) { - this.ids = selection.map(item => item.ID) + this.ids = selection.map(item => item.id) this.single = selection.length!==1 this.multiple = !selection.length }, @@ -414,7 +414,7 @@ export default { /** 修改按钮操作 */ handleUpdate(row) { this.reset(); - const ID = row.ID || this.ids + const ID = row.id || this.ids getOrder(ID).then(response => { this.form = response.data; this.open = true; @@ -425,7 +425,7 @@ export default { submitForm() { this.$refs["form"].validate(valid => { if (valid) { - if (this.form.ID != null) { + if (this.form.id != null) { updateOrder(this.form).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; @@ -443,7 +443,7 @@ export default { }, /** 删除按钮操作 */ handleDelete(row) { - const IDs = row.ID || this.ids; + const IDs = row.id || this.ids; this.$modal.confirm('是否确认删除包材采购单编号为"' + IDs + '"的数据项?').then(function() { return delOrder(IDs); }).then(() => { diff --git a/src/views/wms/outorder/index.vue b/src/views/wms/outorder/index.vue index bd37219..7b54fff 100644 --- a/src/views/wms/outorder/index.vue +++ b/src/views/wms/outorder/index.vue @@ -26,14 +26,14 @@ 新增 - + + 过账 + + 导出 @@ -135,7 +135,7 @@