diff --git a/yxt-as-ui/src/api/Common/dictcommons.js b/yxt-as-ui/src/api/Common/dictcommons.js index 59fdd096e5..505aa1fab1 100644 --- a/yxt-as-ui/src/api/Common/dictcommons.js +++ b/yxt-as-ui/src/api/Common/dictcommons.js @@ -17,6 +17,16 @@ export function getTypeValueList(data) { }) } +// 获取所有分公司 +export function selectOrgSidList(data) { + return request({ + url: '/portal/v1/sysorganization/selectOrgSidList', + method: 'get', + params: data + }) +} + + // 根据当前登录人orgSidPath(全路径sid)查询分公司 export function getOrgSidByPath(data) { return request({ diff --git a/yxt-as-ui/src/api/storage/allocation.js b/yxt-as-ui/src/api/storage/allocation.js index 35883a698a..d36b8585ef 100644 --- a/yxt-as-ui/src/api/storage/allocation.js +++ b/yxt-as-ui/src/api/storage/allocation.js @@ -25,11 +25,21 @@ export default { // 初始化 init: function(data) { return request({ - url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/' + data, + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/fetchDetailsBySid/' + data, method: 'get' }); }, + // 调拨 + allocation: function(data) { + return request({ + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/allocation', + method: 'post', + data: data, + headers: { 'Content-Type': 'application/json' } + }); + }, + // 查询所有商品 getGoods: function(params) { diff --git a/yxt-as-ui/src/api/storage/stocktaking.js b/yxt-as-ui/src/api/storage/stocktaking.js index 282f49f608..c78fcbe11d 100644 --- a/yxt-as-ui/src/api/storage/stocktaking.js +++ b/yxt-as-ui/src/api/storage/stocktaking.js @@ -14,7 +14,7 @@ export default { // 新增、保存 save: function(data) { return request({ - url: '/wms/apiadmin/inventory/wmsinventorycheckbill/save', + url: '/wms/v1/wmsinventorycheckbill/save', method: 'post', data: data, headers: { 'Content-Type': 'application/json' } @@ -24,7 +24,7 @@ export default { // 初始化 init: function(data) { return request({ - url: '/wms/apiadmin/inventory/wmsinventorycheckbill/' + data, + url: '/wms/v1/wmsinventorycheckbill/fetchDetailsBySid/' + data, method: 'get' }); }, @@ -42,7 +42,7 @@ export default { // 盘点 inven: function(params) { return request({ - url: '/wms/apiadmin/inventory/wmsinventory/invenGoodsListPage', + url: '/wms/v1/wmsinventorycheckbill/inven', method: 'post', data: params, headers: { 'Content-Type': 'application/json' } diff --git a/yxt-as-ui/src/views/storage/allocation/allocationAdd.vue b/yxt-as-ui/src/views/storage/allocation/allocationAdd.vue index c4b60d434f..cb394b045a 100644 --- a/yxt-as-ui/src/views/storage/allocation/allocationAdd.vue +++ b/yxt-as-ui/src/views/storage/allocation/allocationAdd.vue @@ -5,7 +5,7 @@