From 80e58d5593e6fc33f2b5a631809b64e7bc804947 Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Mon, 22 Apr 2024 08:51:23 +0800 Subject: [PATCH 1/3] 11111 --- yxt-as-ui/src/api/storage/receivingGoods.js | 29 ++- .../storage/deliveryNotice/receiptAdd.vue | 2 +- .../receivingGoods/receivingGoodsAdd.vue | 190 ++++++++++-------- .../receivingGoods/upShelfAddRecord.vue | 114 ++++------- 4 files changed, 168 insertions(+), 167 deletions(-) diff --git a/yxt-as-ui/src/api/storage/receivingGoods.js b/yxt-as-ui/src/api/storage/receivingGoods.js index e71e8ee868..002d57aeb2 100644 --- a/yxt-as-ui/src/api/storage/receivingGoods.js +++ b/yxt-as-ui/src/api/storage/receivingGoods.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export default { -// 查询分页列表 + // 查询分页列表 listPage: function(params) { return request({ url: '/wms/apiadmin/inventory/WmsReceiptBill/listPage', @@ -16,7 +16,7 @@ export default { return request({ url: '/wms/apiadmin/inventory/WmsReceiptBill/getDetailsInit', method: 'get', - data:data + data: data }); }, @@ -24,18 +24,39 @@ export default { // 新增、保存 save: function(data) { return request({ - url: '/wms/apiadmin/inventory/WmsReceiptBill/saveOrUpdate', + url: '/wms/apiadmin/inventory/WmsReceiptBill/getDetailsInit', method: 'post', data: data }); }, + // 新增、保存 + submit: function(data) { + return request({ + url: '/wms/apiadmin/inventory/WmsReceiptBill/confirm', + method: 'post', + data: data + }); + }, + + // 查询所有商品 + getGoodsListPage: function(params) { + return request({ + url: '/yxtbase/apiadmin/base/basegoodssku/getGoodsListPage', + method: 'post', + data: params + }) + }, + + deleteBySids: function(data) { return request({ url: '/wms/apiadmin/inventory/WmsReceiptBill/delBySids', method: 'DELETE', data: data, - headers: { 'Content-Type': 'application/json' } + 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 fa15cb589d..bd907300ad 100644 --- a/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue +++ b/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue @@ -317,7 +317,7 @@ this.formobj.list.splice(index, 1) for (var i = this.formobj.pcList.length - 1; i >= 0; i--) { - if (this.formobj.pcList[i].number === (index + 1)) { + if (this.formobj.pcList[i].xh === (index + 1)) { this.formobj.pcList.splice(i, 1); } } diff --git a/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue b/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue index ce52306d7f..ccc2942b75 100644 --- a/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue +++ b/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue @@ -70,13 +70,13 @@
到货日期
- +
单据状态
- {{formobj.billState}} + {{formobj.billState}}
@@ -86,59 +86,54 @@
备注
+ type="textarea" :rows="4" clearable />
商品列表
-
批次收货
+ 批次收货
- -
- - - - -
-
- - - - - - - -
+ style="width: 100%;" ref="dataTable"> + + + + + + + + + + + @@ -161,7 +156,7 @@ - +