diff --git a/klp-ui/src/api/wms/actualWarehouse.js b/klp-ui/src/api/wms/actualWarehouse.js index ef9c4228..582ea0b1 100644 --- a/klp-ui/src/api/wms/actualWarehouse.js +++ b/klp-ui/src/api/wms/actualWarehouse.js @@ -87,3 +87,43 @@ export function generateLocations(data) { data }) } + +/** + * 分割库区 + */ +export function splitActualWarehouse(warehouseId) { + let locationIds = warehouseId + // 如果warehouseId不是数组,则转换为数组 + if (!Array.isArray(warehouseId)) { + locationIds = [warehouseId]; + } + return request({ + url: '/wms/actualWarehouse/split', + method: 'post', + data: { + locationIds: locationIds, + action: 1, + splitType: 0, + } + }) +} + +/** + * 合并库区 + */ +export function mergeActualWarehouse(warehouseId) { + let locationIds = warehouseId + // 如果warehouseId不是数组,则转换为数组 + if (!Array.isArray(warehouseId)) { + locationIds = [warehouseId]; + } + return request({ + url: '/wms/actualWarehouse/merge', + method: 'post', + data: { + locationIds: locationIds, + action: 0, + splitType: 0, + } + }) +} diff --git a/klp-ui/src/views/crm/components/OrderEdit.vue b/klp-ui/src/views/crm/components/OrderEdit.vue index e69de29b..b64713c8 100644 --- a/klp-ui/src/views/crm/components/OrderEdit.vue +++ b/klp-ui/src/views/crm/components/OrderEdit.vue @@ -0,0 +1,156 @@ + + + + + \ No newline at end of file diff --git a/klp-ui/src/views/crm/order/index.vue b/klp-ui/src/views/crm/order/index.vue index 21121a2d..f1c6c707 100644 --- a/klp-ui/src/views/crm/order/index.vue +++ b/klp-ui/src/views/crm/order/index.vue @@ -57,6 +57,8 @@
+ +
@@ -122,16 +124,18 @@ \ No newline at end of file diff --git a/klp-ui/src/views/wms/warehouse/overview.vue b/klp-ui/src/views/wms/warehouse/overview.vue index 8f220360..1230ebbf 100644 --- a/klp-ui/src/views/wms/warehouse/overview.vue +++ b/klp-ui/src/views/wms/warehouse/overview.vue @@ -15,7 +15,7 @@ element-loading-spinner="el-icon-loading"> - + @@ -58,7 +58,7 @@