From c0c6cd4bb53d9480e72d455d44fb65592eb666f3 Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Tue, 14 May 2024 17:08:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yxt-as-ui/src/api/storage/deliveryNotice.js | 8 +++-- yxt-as-ui/src/api/storage/receivingGoods.js | 33 ++++++++++++------- .../storage/deliveryNotice/receiptAdd.vue | 2 +- .../receivingGoods/receivingGoodsAdd.vue | 8 ++--- .../receivingGoods/receivingGoodsInfo.vue | 2 +- .../receivingGoods/upShelfAddRecord.vue | 2 +- 6 files changed, 34 insertions(+), 21 deletions(-) diff --git a/yxt-as-ui/src/api/storage/deliveryNotice.js b/yxt-as-ui/src/api/storage/deliveryNotice.js index f48fe62196..01e832a9a9 100644 --- a/yxt-as-ui/src/api/storage/deliveryNotice.js +++ b/yxt-as-ui/src/api/storage/deliveryNotice.js @@ -25,7 +25,7 @@ export default { // 收货初始化 getInitDetails: function(data) { return request({ - url: '/wms/apiadmin/inventory/WmsReceiptBill/getInitDetails?sourcesid=' + data, + url: '/wms/apiadmin/inventory/WmsReceiptBill/getInitDetails?sourceSid=' + data, method: 'get' }); }, @@ -58,9 +58,11 @@ export default { // 选择供应商 choiceSupplier: function(params) { return request({ - url: '/pms/v1/pmssupplierinfo/choiceSupplierInfo', + url: '/pms/v1/pmssupplierinfo/choiceSupplierInfo?orgsid=' + params, method: 'post', - data: params, + headers: { + 'Content-Type': 'application/json' + } }) }, diff --git a/yxt-as-ui/src/api/storage/receivingGoods.js b/yxt-as-ui/src/api/storage/receivingGoods.js index 40e9ac02a1..87a9b33b41 100644 --- a/yxt-as-ui/src/api/storage/receivingGoods.js +++ b/yxt-as-ui/src/api/storage/receivingGoods.js @@ -8,16 +8,17 @@ export default { url: '/wms/apiadmin/inventory/WmsReceiptBill/listPage', method: 'post', data: params, - headers: { 'Content-Type': 'application/json' } + headers: { + 'Content-Type': 'application/json' + } }) }, // 初始化 init: function(data) { return request({ - url: '/wms/apiadmin/inventory/WmsReceiptBill/getDetailsInit', - method: 'get', - data: data + url: '/wms/apiadmin/inventory/WmsReceiptBill/getDetailsInit?sourceSid=' + data, + method: 'get' }); }, @@ -28,7 +29,9 @@ export default { url: '/wms/apiadmin/inventory/WmsReceiptBill/saveOrUpdate', method: 'post', data: data, - headers: { 'Content-Type': 'application/json' } + headers: { + 'Content-Type': 'application/json' + } }); }, @@ -38,7 +41,9 @@ export default { url: '/wms/apiadmin/inventory/WmsReceiptBill/confirm', method: 'post', data: data, - headers: { 'Content-Type': 'application/json' } + headers: { + 'Content-Type': 'application/json' + } }); }, @@ -49,7 +54,9 @@ export default { url: '/wms/apiadmin/WmsShelfBill/saveOrUpdate', method: 'post', data: data, - headers: { 'Content-Type': 'application/json' } + headers: { + 'Content-Type': 'application/json' + } }); }, @@ -60,16 +67,20 @@ export default { url: '/yxtbase/apiadmin/base/basegoodssku/getGoodsListPage', method: 'post', data: params, - headers: { 'Content-Type': 'application/json' } + headers: { + 'Content-Type': 'application/json' + } }) }, // 选择供应商 - choiceSupplier: function(params) { + choiceSupplier: function(params) { return request({ - url: '/pms/v1/pmssupplierinfo/choiceSupplierInfo', + url: '/pms/v1/pmssupplierinfo/choiceSupplierInfo?orgsid=' + params, method: 'post', - data: params, + headers: { + 'Content-Type': 'application/json' + } }) }, diff --git a/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue b/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue index 7c8408956b..9b138cf897 100644 --- a/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue +++ b/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue @@ -249,7 +249,7 @@ var params = { orgSid: window.sessionStorage.getItem('orgSid'), } - req.choiceSupplier(params).then((res) => { + req.choiceSupplier(window.sessionStorage.getItem('orgSid')).then((res) => { if (res.success) { this.supplierNameList = res.data diff --git a/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue b/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue index df05a2a5e5..8b71fce89d 100644 --- a/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue +++ b/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue @@ -779,10 +779,10 @@ this.getWarehouseList() console.log("showEdit", this.isUpdata); var params = { - sid: row.sid + sourcesid: row.sid } - req.init(params) + req.init( row.sid) .then(resp => { if (resp.success) { this.formobj = resp.data @@ -810,9 +810,9 @@ }, getsupplierLust() { var params = { - createOrgSid: window.sessionStorage.getItem('orgSid'), + orgSid: window.sessionStorage.getItem('orgSid'), } - req.choiceSupplier(params).then((res) => { + req.choiceSupplier(window.sessionStorage.getItem('orgSid')).then((res) => { if (res.success) { this.supplierList = res.data diff --git a/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsInfo.vue b/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsInfo.vue index 940d3c87da..dce2d43053 100644 --- a/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsInfo.vue +++ b/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsInfo.vue @@ -173,7 +173,7 @@ var params = { sid: row.sid } - req.init(params) + req.init(row.sid) .then(resp => { if (resp.success) { this.formobj = resp.data diff --git a/yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue b/yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue index aeaab2cc95..a2de4c32df 100644 --- a/yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue +++ b/yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue @@ -227,7 +227,7 @@ sid: row.sid } - req.init(params) + req.init(row.sid) .then(resp => { if (resp.success) { this.formobj = resp.data