From 3812658557c199252b78c5d31706ef077d332c10 Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Fri, 24 May 2024 09:12:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=94=B6=E8=B4=A7=E5=8D=95?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E4=B8=8A=E6=9E=B6=E5=8D=95=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yxt-as-ui/src/api/storage/receivingGoods.js | 15 +++++++++++++++ .../storage/receivingGoods/upShelfAddRecord.vue | 7 ++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/yxt-as-ui/src/api/storage/receivingGoods.js b/yxt-as-ui/src/api/storage/receivingGoods.js index c8b972c78f..98844b3fb9 100644 --- a/yxt-as-ui/src/api/storage/receivingGoods.js +++ b/yxt-as-ui/src/api/storage/receivingGoods.js @@ -96,4 +96,19 @@ export default { }) }, + + + // 初始化新增上架单 + initUpshelf: function(params) { + return request({ + url: '/wms/apiadmin/WmsShelfBill/getInit?sid=' + params.sid + "&orgPath=" + params.orgPath + "&userSid=" + + params.userSid, + method: 'get', + headers: { + 'Content-Type': 'application/json' + } + }); + + }, + } diff --git a/yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue b/yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue index c532f81312..431465cc2d 100644 --- a/yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue +++ b/yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue @@ -148,7 +148,6 @@ "billNo": "", "createBySid": window.sessionStorage.getItem('userSid'), "createByName": window.sessionStorage.getItem('name'), - "createByName": window.sessionStorage.getItem('name'), "deptName": '', "deptSid": '', "sourceBillNo": "", @@ -269,10 +268,12 @@ this.getWarehouseList() this.getAllOrgper() var params = { - sid: row.sid + sid: row.sid, + orgPath: window.sessionStorage.getItem('defaultOrgPath'), + userSid: window.sessionStorage.getItem('userSid') } - req.init(row.sid) + req.initUpshelf(params) .then(resp => { if (resp.success) { this.formobj = resp.data