From bd6bce174a33a365338fccf8e1580e9d68d7d0b2 Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Fri, 6 Sep 2024 18:04:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=B0=83=E6=8B=A8=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yxt-as-ui/src/api/Common/dictcommons.js | 45 +- yxt-as-ui/src/api/storage/allocation.js | 92 ++- .../src/api/storage/allocationByBranches.js | 117 +++ .../src/api/storage/allocationByGroup.js | 117 +++ yxt-as-ui/src/router/index.js | 20 +- .../storage/allocation/allocationAdd.vue | 150 ++-- .../storage/allocation/allocationInfo.vue | 6 +- .../src/views/storage/allocation/index.vue | 23 +- .../allocation/relation/chooseproducts.vue | 18 +- .../allocationByBranchesAdd.vue | 691 +++++++++++++++++ .../allocationByBranchesInfo.vue | 198 +++++ .../storage/allocationByBranches/index.vue | 562 ++++++++++++++ .../relation/chooseproducts.vue | 172 +++++ .../allocationByGroupAdd.vue | 693 ++++++++++++++++++ .../allocationByGroupInfo.vue | 198 +++++ .../views/storage/allocationByGroup/index.vue | 562 ++++++++++++++ .../relation/chooseproducts.vue | 172 +++++ 17 files changed, 3765 insertions(+), 71 deletions(-) create mode 100644 yxt-as-ui/src/api/storage/allocationByBranches.js create mode 100644 yxt-as-ui/src/api/storage/allocationByGroup.js create mode 100644 yxt-as-ui/src/views/storage/allocationByBranches/allocationByBranchesAdd.vue create mode 100644 yxt-as-ui/src/views/storage/allocationByBranches/allocationByBranchesInfo.vue create mode 100644 yxt-as-ui/src/views/storage/allocationByBranches/index.vue create mode 100644 yxt-as-ui/src/views/storage/allocationByBranches/relation/chooseproducts.vue create mode 100644 yxt-as-ui/src/views/storage/allocationByGroup/allocationByGroupAdd.vue create mode 100644 yxt-as-ui/src/views/storage/allocationByGroup/allocationByGroupInfo.vue create mode 100644 yxt-as-ui/src/views/storage/allocationByGroup/index.vue create mode 100644 yxt-as-ui/src/views/storage/allocationByGroup/relation/chooseproducts.vue diff --git a/yxt-as-ui/src/api/Common/dictcommons.js b/yxt-as-ui/src/api/Common/dictcommons.js index 8f5fefbc63..1d6d4c1ded 100644 --- a/yxt-as-ui/src/api/Common/dictcommons.js +++ b/yxt-as-ui/src/api/Common/dictcommons.js @@ -35,7 +35,7 @@ export function getOrgSidByPath(data) { }) } -// 根据分公司sid查询分公司名称 +// 根据分公司sid查询分公司 export function fetchBySid(sid) { return request({ url: '/portal/v1/sysorganization/fetchBySid/' + sid, @@ -60,12 +60,47 @@ export function getListDeptByOrgSid(data) { }) } +// 根据部门sid查询部门信息 +export function fetchByDepSid(data) { + return request({ + url: '/portal/v1/sysorganization/selectBySid', + method: 'get', + params: data + }) +} + +// 调出一级站-调入当前一级站内所有二级站 +export function tranOne(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/portal/v1/sysorganization/tranOne/' + data, + method: 'GET' + }) +} + +// 调出一级站-调入当前分公司内所有一级站,不包含自身 +export function tranTwo(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/portal/v1/sysorganization/tranTwo/' + data, + method: 'GET' + }) +} + +// 调出一级站-调入当前选择分公司内所有一级站,不包含自身 +export function tranThree(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/portal/v1/sysorganization/tranThree/' + data.sid + "/" + data.deptSid, + method: 'GET', + }) +} -// 根据分公司Sid获取分公司下所有的服务站 -export function getServiceStationByOrgSid(data) { +// 调出二级站-调入上级一级站内所有二级站,不包含自身 +export function tranfour(data) { return request({ - baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/portal/v1/sysorganization/getServiceStationByOrgSid/' + data, + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/portal/v1/sysorganization/tranfour/' + data, method: 'GET' }) } diff --git a/yxt-as-ui/src/api/storage/allocation.js b/yxt-as-ui/src/api/storage/allocation.js index 96f6f65735..27c4a4bf62 100644 --- a/yxt-as-ui/src/api/storage/allocation.js +++ b/yxt-as-ui/src/api/storage/allocation.js @@ -31,7 +31,7 @@ export default { saveLogisticsInfo: function(data) { return request({ // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/saveLogisticsInfo', + url: '/wms/v1/wmsinventoryallocatebilllogistics/saveLogisticsInfo', method: 'post', data: data, headers: { @@ -65,7 +65,7 @@ export default { allocation: function(data) { return request({ // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/allocation', + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/submitApply', method: 'post', data: data, headers: { @@ -78,7 +78,7 @@ export default { // 查询所有商品 getGoods: function(params) { return request({ - baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", url: '/wms/apiadmin/inventory/wmsinventory/alloGoodsListPage', method: 'post', data: params, @@ -113,4 +113,90 @@ export default { }); }, + + + + // 流程审批(同意) + complete: function(params) { + return request({ + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/complete', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 流程审批(加签) + delegate: function(params) { + return request({ + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/delegate', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 流程审批(转办) + assignTask: function(params) { + return request({ + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/assignTask', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 流程审批(驳回) + reject: function(params) { + return request({ + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/reject', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 流程审批(终止) + breakProcess: function(params) { + return request({ + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/breakProcess', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 流程审批(撤回) + revokeProcess: function(params) { + return request({ + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/revokeProcess', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 审批流程(同意)获取下一环节 + getNextNodesForSubmit: function(data) { + return request({ + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/getNextNodesForSubmit', + method: 'get', + params: data + }) + }, + // 审批流程(驳回)获取上一环节 + getPreviousNodesForReject: function(data) { + return request({ + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/getPreviousNodesForReject', + method: 'get', + params: data + }) + }, + } diff --git a/yxt-as-ui/src/api/storage/allocationByBranches.js b/yxt-as-ui/src/api/storage/allocationByBranches.js new file mode 100644 index 0000000000..c00c87bd08 --- /dev/null +++ b/yxt-as-ui/src/api/storage/allocationByBranches.js @@ -0,0 +1,117 @@ +import request from '@/utils/request' + +export default { + + // 查询分页列表 + listPage: function(params) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + deleteBySids: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/delBySids', + method: 'DELETE', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + + // 保存物流信息 + saveLogisticsInfo: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/v1/wmsinventoryallocatebilllogistics/saveLogisticsInfo', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }); + }, + // 新增、保存 + save: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/save', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }); + }, + + // 初始化 + init: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/fetchDetailsBySid/' + data, + method: 'get' + }); + }, + + // 调拨 + allocation: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/submitApply', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }); + }, + + + // 查询所有商品 + getGoods: function(params) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/inventory/wmsinventory/alloGoodsListPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + // 查询所有仓库 + getWarehouses: function(params) { + return request({ + url: '/wms/apiadmin/base/wmswarehouseinfo/listAll', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + + // 根据仓库查询库位 + getWarehouseareas: function(data) { + return request({ + url: '/wms/apiadmin/base/wmswarehousearea/selectAll', + method: 'get', + params: data, + headers: { + 'Content-Type': 'application/json' + } + }); + }, + +} diff --git a/yxt-as-ui/src/api/storage/allocationByGroup.js b/yxt-as-ui/src/api/storage/allocationByGroup.js new file mode 100644 index 0000000000..c00c87bd08 --- /dev/null +++ b/yxt-as-ui/src/api/storage/allocationByGroup.js @@ -0,0 +1,117 @@ +import request from '@/utils/request' + +export default { + + // 查询分页列表 + listPage: function(params) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + deleteBySids: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/delBySids', + method: 'DELETE', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + + // 保存物流信息 + saveLogisticsInfo: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/v1/wmsinventoryallocatebilllogistics/saveLogisticsInfo', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }); + }, + // 新增、保存 + save: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/save', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }); + }, + + // 初始化 + init: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/fetchDetailsBySid/' + data, + method: 'get' + }); + }, + + // 调拨 + allocation: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/submitApply', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }); + }, + + + // 查询所有商品 + getGoods: function(params) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/inventory/wmsinventory/alloGoodsListPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + // 查询所有仓库 + getWarehouses: function(params) { + return request({ + url: '/wms/apiadmin/base/wmswarehouseinfo/listAll', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + + // 根据仓库查询库位 + getWarehouseareas: function(data) { + return request({ + url: '/wms/apiadmin/base/wmswarehousearea/selectAll', + method: 'get', + params: 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 92b1efc266..4aeeda7361 100644 --- a/yxt-as-ui/src/router/index.js +++ b/yxt-as-ui/src/router/index.js @@ -473,7 +473,25 @@ export const constantRoutes = [{ component: () => import('@/views/storage/allocation/index'), name: 'Allocation', meta: { - title: '调拨管理', + title: '调拨(一级站内)', + noCache: true + } + }, + { + path: '/allocationByBranches/index', + component: () => import('@/views/storage/allocationByBranches/index'), + name: 'AllocationByBranches', + meta: { + title: '调拨(分公司内)', + noCache: true + } + }, + { + path: '/allocationByGroup/index', + component: () => import('@/views/storage/allocationByGroup/index'), + name: 'AllocationByGroup', + meta: { + title: '调拨(集团内)', noCache: true } }, diff --git a/yxt-as-ui/src/views/storage/allocation/allocationAdd.vue b/yxt-as-ui/src/views/storage/allocation/allocationAdd.vue index 12e8dd98a3..9d823ef5d4 100644 --- a/yxt-as-ui/src/views/storage/allocation/allocationAdd.vue +++ b/yxt-as-ui/src/views/storage/allocation/allocationAdd.vue @@ -50,11 +50,11 @@ - +
调出站
{{ formobj.outPlatName }}
- + + +
* 调入站点
@@ -140,13 +140,13 @@ - + - + @@ -169,7 +169,7 @@ --> - +