From 56108932ff1012c34f0cc801d11fb7df2fc98dc5 Mon Sep 17 00:00:00 2001
From: mengjiao <3338049200@qq,com>
Date: Tue, 19 Dec 2023 11:30:18 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8C=85=E6=9D=90=E5=87=BA?=
=?UTF-8?q?=E5=BA=93=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/wms/outorder.js | 18 ++++++++++++-
src/views/wms/order/index.vue | 12 ++++-----
src/views/wms/outorder/index.vue | 46 +++++++++++++++++++++-----------
3 files changed, 53 insertions(+), 23 deletions(-)
diff --git a/src/api/wms/outorder.js b/src/api/wms/outorder.js
index a2c39bc8..b814e5a5 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 f9fc299c..e924c0ec 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 bd372197..7b54fff7 100644
--- a/src/views/wms/outorder/index.vue
+++ b/src/views/wms/outorder/index.vue
@@ -26,14 +26,14 @@
新增
-
+
+ 过账
+
+
导出
@@ -135,7 +135,7 @@