diff --git a/yxt-as-ui/src/api/storage/allocation.js b/yxt-as-ui/src/api/storage/allocation.js index 3d7e2c316a..1bdada1657 100644 --- a/yxt-as-ui/src/api/storage/allocation.js +++ b/yxt-as-ui/src/api/storage/allocation.js @@ -8,6 +8,7 @@ export default { url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/listPage', method: 'post', data: params, + headers: { 'Content-Type': 'application/json' } }) }, @@ -16,7 +17,8 @@ export default { return request({ url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/save', method: 'post', - data: data + data: data, + headers: { 'Content-Type': 'application/json' } }); }, @@ -34,7 +36,8 @@ export default { return request({ url: '/wms/apiadmin/inventory/wmsinventory/alloGoodsListPage', method: 'post', - data: params + data: params, + headers: { 'Content-Type': 'application/json' } }) }, @@ -53,6 +56,7 @@ export default { url: '/wms/apiadmin/base/wmswarehousearea/selectAll', method: 'get', data: data, + headers: { 'Content-Type': 'application/json' } }); }, diff --git a/yxt-as-ui/src/api/storage/deliveryNotice.js b/yxt-as-ui/src/api/storage/deliveryNotice.js index b0ff73d138..9034309b71 100644 --- a/yxt-as-ui/src/api/storage/deliveryNotice.js +++ b/yxt-as-ui/src/api/storage/deliveryNotice.js @@ -8,6 +8,7 @@ export default { url: '/wms/apiadmin/WmsAnsBill/listPage', method: 'post', data: params, + headers: { 'Content-Type': 'application/json' } }) }, @@ -35,7 +36,8 @@ export default { return request({ url: '/wms/apiadmin/inventory/WmsReceiptBill/saveOrUpdate', method: 'post', - data: data + data: data, + headers: { 'Content-Type': 'application/json' } }); }, @@ -44,7 +46,8 @@ export default { return request({ url: '/wms/apiadmin/inventory/WmsReceiptBill/confirm', method: 'post', - data: data + data: data, + 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 002d57aeb2..433280c19d 100644 --- a/yxt-as-ui/src/api/storage/receivingGoods.js +++ b/yxt-as-ui/src/api/storage/receivingGoods.js @@ -8,6 +8,7 @@ export default { url: '/wms/apiadmin/inventory/WmsReceiptBill/listPage', method: 'post', data: params, + headers: { 'Content-Type': 'application/json' } }) }, @@ -24,9 +25,10 @@ export default { // 新增、保存 save: function(data) { return request({ - url: '/wms/apiadmin/inventory/WmsReceiptBill/getDetailsInit', + url: '/wms/apiadmin/inventory/WmsReceiptBill/saveOrUpdate', method: 'post', - data: data + data: data, + headers: { 'Content-Type': 'application/json' } }); }, @@ -35,7 +37,8 @@ export default { return request({ url: '/wms/apiadmin/inventory/WmsReceiptBill/confirm', method: 'post', - data: data + data: data, + headers: { 'Content-Type': 'application/json' } }); }, @@ -44,7 +47,17 @@ export default { return request({ url: '/yxtbase/apiadmin/base/basegoodssku/getGoodsListPage', method: 'post', - data: params + data: params, + headers: { 'Content-Type': 'application/json' } + }) + }, + + // 选择供应商 + choiceSupplier: function(params) { + return request({ + url: '/wms/apiadmin/base/basesupplierinfo/choiceSupplierInfo', + method: 'post', + data: params, }) }, diff --git a/yxt-as-ui/src/api/storage/stocktaking.js b/yxt-as-ui/src/api/storage/stocktaking.js index 12a3b7b6ff..ec8c65ba0a 100644 --- a/yxt-as-ui/src/api/storage/stocktaking.js +++ b/yxt-as-ui/src/api/storage/stocktaking.js @@ -16,7 +16,8 @@ export default { return request({ url: '/wms/apiadmin/inventory/wmsinventorycheckbill/save', method: 'post', - data: data + data: data, + headers: { 'Content-Type': 'application/json' } }); }, @@ -33,7 +34,8 @@ export default { return request({ url: '/wms/apiadmin/inventory/wmsinventory/invenGoodsListPage', method: 'post', - data: params + data: params, + headers: { 'Content-Type': 'application/json' } }) }, @@ -42,7 +44,8 @@ export default { return request({ url: '/wms/apiadmin/inventory/wmsinventory/invenGoodsListPage', method: 'post', - data: params + data: params, + headers: { 'Content-Type': 'application/json' } }) }, } diff --git a/yxt-as-ui/src/api/storage/upShelf.js b/yxt-as-ui/src/api/storage/upShelf.js new file mode 100644 index 0000000000..f80679aa99 --- /dev/null +++ b/yxt-as-ui/src/api/storage/upShelf.js @@ -0,0 +1,43 @@ +import request from '@/utils/request' + +export default { + +// 查询分页列表 + listPage: function(params) { + return request({ + url: '/wms/apiadmin/WmsShelfBill/listPage', + method: 'post', + data: params, + }) + }, + + // 初始化 + init: function(data) { + return request({ + url: '/wms/apiadmin/WmsShelfBill/details', + method: 'get', + data:data + }); + }, + + + // 新增、保存 + save: function(data) { + return request({ + url: '/wms/apiadmin/WmsShelfBill/saveOrUpdate', + method: 'post', + data: data + }); + }, + + + deleteBySids: function(data) { + return request({ + url: '/wms/apiadmin/WmsShelfBill/delBySids', + method: 'DELETE', + data: data, + headers: { 'Content-Type': 'application/json' } + }) + }, + +} diff --git a/yxt-as-ui/src/router/index.js b/yxt-as-ui/src/router/index.js index 1c397e65d0..c728dd7cbf 100644 --- a/yxt-as-ui/src/router/index.js +++ b/yxt-as-ui/src/router/index.js @@ -116,6 +116,15 @@ export const constantRoutes = [ noCache: true } }, + { + path: '/upShelf/index', + name: 'UpShelf', + component: () => import('@/views/storage/upShelf/index'), + meta: { + title: '上架单', + noCache: true + } + }, ] }, diff --git a/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue b/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue index bd907300ad..c576491e72 100644 --- a/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue +++ b/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue @@ -151,10 +151,10 @@ - - - - + + + + diff --git a/yxt-as-ui/src/views/storage/receivingGoods/index.vue b/yxt-as-ui/src/views/storage/receivingGoods/index.vue index 4aa470960d..648a82af09 100644 --- a/yxt-as-ui/src/views/storage/receivingGoods/index.vue +++ b/yxt-as-ui/src/views/storage/receivingGoods/index.vue @@ -67,7 +67,8 @@ @@ -180,15 +181,15 @@ sid: "2" } ], - billStateList: [{ - name: "单据状态1", - sid: "1" - }, - { - name: "单据状态2", - sid: "2" - } - ], + billStateList: [{ + name: "新建", + sid: "0" + }, + { + name: "完成", + sid: "1" + } + ], } }, mounted() { @@ -332,14 +333,23 @@ } }, toAdd() { - if (this.selectionList.length != 1) { - this.$message({ - type: 'warning', - message: "请选择一条数据。", - showClose: true - }) - return - } + if (this.selectionList.length != 1) { + this.$message({ + type: 'warning', + message: "请选择一条数据。", + showClose: true + }) + return + } + + if (this.selectionList[0].billState == '完成') { + this.$message({ + type: 'warning', + message: "此记录已完成,不可操作。", + showClose: true + }) + return + } this.viewState = 5 this.$refs['divAddupShelfRecord'].showEdit(this.selectionList[0]) diff --git a/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue b/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue index cd55d2cb72..91b7983327 100644 --- a/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue +++ b/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue @@ -95,9 +95,8 @@
商品列表
批次收货 - - + +