From 91eb13af2692cd2d07369a742f4424b05b6ef202 Mon Sep 17 00:00:00 2001 From: helloDy <1615073571@qq.com> Date: Fri, 3 Nov 2023 11:15:12 +0800 Subject: [PATCH 01/11] =?UTF-8?q?=E5=AE=A2=E5=95=86=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E3=80=81=E4=BA=BA=E4=BA=8B=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 6 +- src/api/base/coreCustomer.js | 68 ++++ src/api/base/coreDepartment.js | 68 ++++ src/api/base/coreMajor.js | 68 ++++ src/api/base/coreSupplier.js | 68 ++++ src/api/base/coreWorker.js | 103 ++++++ src/views/base/coreCustomer/add-or-updata.vue | 103 ++++++ src/views/base/coreCustomer/index.vue | 176 +++++++++ .../base/coreDepartment/add-or-updata.vue | 107 ++++++ src/views/base/coreDepartment/index.vue | 168 +++++++++ src/views/base/coreMajor/add-or-updata.vue | 77 ++++ src/views/base/coreMajor/index.vue | 168 +++++++++ src/views/base/coreSupplier/add-or-updata.vue | 103 ++++++ src/views/base/coreSupplier/index.vue | 176 +++++++++ src/views/base/coreWorker/add-or-updata.vue | 339 ++++++++++++++++++ src/views/base/coreWorker/index.vue | 204 +++++++++++ 16 files changed, 1999 insertions(+), 3 deletions(-) create mode 100644 src/api/base/coreCustomer.js create mode 100644 src/api/base/coreDepartment.js create mode 100644 src/api/base/coreMajor.js create mode 100644 src/api/base/coreSupplier.js create mode 100644 src/api/base/coreWorker.js create mode 100644 src/views/base/coreCustomer/add-or-updata.vue create mode 100644 src/views/base/coreCustomer/index.vue create mode 100644 src/views/base/coreDepartment/add-or-updata.vue create mode 100644 src/views/base/coreDepartment/index.vue create mode 100644 src/views/base/coreMajor/add-or-updata.vue create mode 100644 src/views/base/coreMajor/index.vue create mode 100644 src/views/base/coreSupplier/add-or-updata.vue create mode 100644 src/views/base/coreSupplier/index.vue create mode 100644 src/views/base/coreWorker/add-or-updata.vue create mode 100644 src/views/base/coreWorker/index.vue diff --git a/.env.dev b/.env.dev index 4064712d..e53f9a51 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2023-10-27 16:17:13 + # @LastEditTime: 2023-11-03 09:43:49 # @LastEditors: DY # @Description: ### @@ -17,9 +17,9 @@ VUE_APP_TITLE = MES系统 # VUE_APP_BASE_API = 'http://192.168.2.173:48080' # VUE_APP_BASE_API = 'http://192.168.1.49:48080' # VUE_APP_BASE_API = 'http://192.168.1.8:48080' -VUE_APP_BASE_API = 'http://192.168.1.56:48080' +# VUE_APP_BASE_API = 'http://192.168.1.56:48080' # VUE_APP_BASE_API = 'http://192.168.1.188:48080' - +VUE_APP_BASE_API = 'http://192.168.2.159:48080' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/api/base/coreCustomer.js b/src/api/base/coreCustomer.js new file mode 100644 index 00000000..b27ffdf0 --- /dev/null +++ b/src/api/base/coreCustomer.js @@ -0,0 +1,68 @@ +/* + * @Author: Do not edit + * @Date: 2023-10-21 11:50:46 + * @LastEditTime: 2023-11-02 20:25:36 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 创建客户 +export function createCustomer(data) { + return request({ + url: '/base/core-customer/create', + method: 'post', + data: data + }) +} + +// 更新客户 +export function updateCustomer(data) { + return request({ + url: '/base/core-customer/update', + method: 'put', + data: data + }) +} + +// 删除客户 +export function deleteCustomer(id) { + return request({ + url: '/base/core-customer/delete?id=' + id, + method: 'delete' + }) +} + +// 获得客户 +export function getCustomer(id) { + return request({ + url: '/base/core-customer/get?id=' + id, + method: 'get' + }) +} + +// 获得客户code +export function getCode() { + return request({ + url: '/base/core-customer/getCode', + method: 'get' + }) +} + +// 获得客户分页 +export function getCustomerPage(query) { + return request({ + url: '/base/core-customer/page', + method: 'get', + params: query + }) +} + +// 获得所有列表 +export function getCustomerList(query) { + return request({ + url: '/base/core-customer/listAll', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/base/coreDepartment.js b/src/api/base/coreDepartment.js new file mode 100644 index 00000000..5e452bc2 --- /dev/null +++ b/src/api/base/coreDepartment.js @@ -0,0 +1,68 @@ +/* + * @Author: Do not edit + * @Date: 2023-10-21 11:50:46 + * @LastEditTime: 2023-10-30 14:37:28 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 创建部门 +export function createCoreDepartment(data) { + return request({ + url: '/base/core-department/create', + method: 'post', + data: data + }) +} + +// 更新部门 +export function updateCoreDepartment(data) { + return request({ + url: '/base/core-department/update', + method: 'put', + data: data + }) +} + +// 删除部门 +export function deleteCoreDepartment(id) { + return request({ + url: '/base/core-department/delete?id=' + id, + method: 'delete' + }) +} + +// 获得部门 +export function getCoreDepartment(id) { + return request({ + url: '/base/core-department/get?id=' + id, + method: 'get' + }) +} + +// 获得部门code +export function getCode() { + return request({ + url: '/base/core-department/getCode', + method: 'get' + }) +} + +// 获得部门分页 +export function getCoreDepartmentPage(query) { + return request({ + url: '/base/core-department/page', + method: 'get', + params: query + }) +} + +// 获得所有列表 +export function getCoreDepartmentList(query) { + return request({ + url: '/base/core-department/listAll', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/base/coreMajor.js b/src/api/base/coreMajor.js new file mode 100644 index 00000000..3ffad226 --- /dev/null +++ b/src/api/base/coreMajor.js @@ -0,0 +1,68 @@ +/* + * @Author: Do not edit + * @Date: 2023-10-21 11:50:46 + * @LastEditTime: 2023-10-31 15:11:25 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 创建专业 +export function createCoreMajor(data) { + return request({ + url: '/base/core-major/create', + method: 'post', + data: data + }) +} + +// 更新专业 +export function updateCoreMajor(data) { + return request({ + url: '/base/core-major/update', + method: 'put', + data: data + }) +} + +// 删除专业 +export function deleteCoreMajor(id) { + return request({ + url: '/base/core-major/delete?id=' + id, + method: 'delete' + }) +} + +// 获得专业 +export function getCoreMajor(id) { + return request({ + url: '/base/core-major/get?id=' + id, + method: 'get' + }) +} + +// 获得专业code +export function getCode() { + return request({ + url: '/base/core-major/getCode', + method: 'get' + }) +} + +// 获得专业分页 +export function getCoreMajorPage(query) { + return request({ + url: '/base/core-major/page', + method: 'get', + params: query + }) +} + +// 获得所有列表 +export function getCoreMajorList(query) { + return request({ + url: '/base/core-major/listAll', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/base/coreSupplier.js b/src/api/base/coreSupplier.js new file mode 100644 index 00000000..390b2d59 --- /dev/null +++ b/src/api/base/coreSupplier.js @@ -0,0 +1,68 @@ +/* + * @Author: Do not edit + * @Date: 2023-10-21 11:50:46 + * @LastEditTime: 2023-11-03 10:39:44 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 创建供应商 +export function createCoreSupplier(data) { + return request({ + url: '/base/core-supplier/create', + method: 'post', + data: data + }) +} + +// 更新供应商 +export function updateCoreSupplier(data) { + return request({ + url: '/base/core-supplier/update', + method: 'put', + data: data + }) +} + +// 删除供应商 +export function deleteCoreSupplier(id) { + return request({ + url: '/base/core-supplier/delete?id=' + id, + method: 'delete' + }) +} + +// 获得供应商 +export function getCoreSupplier(id) { + return request({ + url: '/base/core-supplier/get?id=' + id, + method: 'get' + }) +} + +// 获得供应商code +export function getCode() { + return request({ + url: '/base/core-supplier/getCode', + method: 'get' + }) +} + +// 获得供应商分页 +export function getCoreSupplierPage(query) { + return request({ + url: '/base/core-supplier/page', + method: 'get', + params: query + }) +} + +// 获得所有列表 +export function getCoreSupplierList(query) { + return request({ + url: '/base/core-supplier/listAll', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/base/coreWorker.js b/src/api/base/coreWorker.js new file mode 100644 index 00000000..823302bc --- /dev/null +++ b/src/api/base/coreWorker.js @@ -0,0 +1,103 @@ +/* + * @Author: Do not edit + * @Date: 2023-10-21 11:50:46 + * @LastEditTime: 2023-11-02 19:49:52 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 创建员工 +export function createCoreWorker(data) { + return request({ + url: '/base/core-worker/create', + method: 'post', + data: data + }) +} + +// 更新员工 +export function updateCoreWorker(data) { + return request({ + url: '/base/core-worker/update', + method: 'put', + data: data + }) +} + +// 删除员工 +export function deleteCoreWorker(id) { + return request({ + url: '/base/core-worker/delete?id=' + id, + method: 'delete' + }) +} + +// 获得员工 +export function getCoreWorker(id) { + return request({ + url: '/base/core-worker/get?id=' + id, + method: 'get' + }) +} + +// 获得员工code +export function getCode() { + return request({ + url: '/base/core-worker/getCode', + method: 'get' + }) +} + +// 获得员工分页 +export function getCoreWorkerPage(query) { + return request({ + url: '/base/core-worker/page', + method: 'get', + params: query + }) +} + +// 获得所有列表 +export function getCoreWorkerList(query) { + return request({ + url: '/base/core-worker/listAll', + method: 'get', + params: query + }) +} + +// 创建员工--专业 +export function createWoBindMa(data) { + return request({ + url: '/base/core-worker-bind-major/create', + method: 'post', + data: data + }) +} + +// 更新员工--专业 +export function updateWoBindMa(data) { + return request({ + url: '/base/core-worker-bind-major/update', + method: 'put', + data: data + }) +} + +// 删除员工--专业 +export function deleteWoBindMa(id) { + return request({ + url: '/base/core-worker-bind-major/delete?id=' + id, + method: 'delete' + }) +} + +// 获得员工--专业分页 +export function getWoBindMaPage(query) { + return request({ + url: '/base/core-worker-bind-major/page', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/views/base/coreCustomer/add-or-updata.vue b/src/views/base/coreCustomer/add-or-updata.vue new file mode 100644 index 00000000..8dd236e5 --- /dev/null +++ b/src/views/base/coreCustomer/add-or-updata.vue @@ -0,0 +1,103 @@ + + + + diff --git a/src/views/base/coreCustomer/index.vue b/src/views/base/coreCustomer/index.vue new file mode 100644 index 00000000..20a89f74 --- /dev/null +++ b/src/views/base/coreCustomer/index.vue @@ -0,0 +1,176 @@ + + + diff --git a/src/views/base/coreDepartment/add-or-updata.vue b/src/views/base/coreDepartment/add-or-updata.vue new file mode 100644 index 00000000..cbf4c943 --- /dev/null +++ b/src/views/base/coreDepartment/add-or-updata.vue @@ -0,0 +1,107 @@ + + + + diff --git a/src/views/base/coreDepartment/index.vue b/src/views/base/coreDepartment/index.vue new file mode 100644 index 00000000..97b6e59e --- /dev/null +++ b/src/views/base/coreDepartment/index.vue @@ -0,0 +1,168 @@ + + + diff --git a/src/views/base/coreMajor/add-or-updata.vue b/src/views/base/coreMajor/add-or-updata.vue new file mode 100644 index 00000000..b02ea231 --- /dev/null +++ b/src/views/base/coreMajor/add-or-updata.vue @@ -0,0 +1,77 @@ + + + + diff --git a/src/views/base/coreMajor/index.vue b/src/views/base/coreMajor/index.vue new file mode 100644 index 00000000..052af981 --- /dev/null +++ b/src/views/base/coreMajor/index.vue @@ -0,0 +1,168 @@ + + + diff --git a/src/views/base/coreSupplier/add-or-updata.vue b/src/views/base/coreSupplier/add-or-updata.vue new file mode 100644 index 00000000..f718363c --- /dev/null +++ b/src/views/base/coreSupplier/add-or-updata.vue @@ -0,0 +1,103 @@ + + + + diff --git a/src/views/base/coreSupplier/index.vue b/src/views/base/coreSupplier/index.vue new file mode 100644 index 00000000..3da6699f --- /dev/null +++ b/src/views/base/coreSupplier/index.vue @@ -0,0 +1,176 @@ + + + diff --git a/src/views/base/coreWorker/add-or-updata.vue b/src/views/base/coreWorker/add-or-updata.vue new file mode 100644 index 00000000..78e959f4 --- /dev/null +++ b/src/views/base/coreWorker/add-or-updata.vue @@ -0,0 +1,339 @@ + + + + diff --git a/src/views/base/coreWorker/index.vue b/src/views/base/coreWorker/index.vue new file mode 100644 index 00000000..c5a6ccdf --- /dev/null +++ b/src/views/base/coreWorker/index.vue @@ -0,0 +1,204 @@ + + + From 046a5eea32cde33c9be2afe76654d807062a0226 Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Fri, 3 Nov 2023 16:59:07 +0800 Subject: [PATCH 02/11] =?UTF-8?q?=E6=88=90=E5=93=81=E5=8F=91=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 4 +- src/api/base/delivery.js | 73 ++++ src/api/base/orderManage.js | 44 ++ src/api/base/worker.js | 9 + src/api/monitoring/teamProduction.js | 9 + src/styles/index.scss | 1 + .../deliveryLog/components/addOrUpdate.vue | 162 ++++++++ .../components/deliveryLogDetail.vue | 170 ++++++++ .../deliveryLog/components/loadedPage.vue | 141 +++++++ src/views/delivery/deliveryLog/index.vue | 285 +++++++++++++ .../components/deliveryLogDetDetail.vue | 365 +++++++++++++++++ src/views/delivery/deliveryLogDet/index.vue | 130 ++++++ .../base/groupTeam/components/workerEdit.vue | 17 +- .../groupTeam/components/workerTeamAdd.vue | 16 +- .../group/monitoring/teamProduction/index.vue | 40 +- .../orderManage/components/addWorkOrder.vue | 116 ++++-- .../orderManage/components/bindWorkOrder.vue | 11 - src/views/order/base/orderManage/index.vue | 72 ++-- .../base/orderManage/orderDetailData.vue | 314 ++++++++++++++ .../orderCompletionMonitoring/index.vue | 383 ++++++++++++++++++ 20 files changed, 2253 insertions(+), 109 deletions(-) create mode 100644 src/api/base/delivery.js create mode 100644 src/views/delivery/deliveryLog/components/addOrUpdate.vue create mode 100644 src/views/delivery/deliveryLog/components/deliveryLogDetail.vue create mode 100644 src/views/delivery/deliveryLog/components/loadedPage.vue create mode 100644 src/views/delivery/deliveryLog/index.vue create mode 100644 src/views/delivery/deliveryLogDet/components/deliveryLogDetDetail.vue create mode 100644 src/views/delivery/deliveryLogDet/index.vue delete mode 100644 src/views/order/base/orderManage/components/bindWorkOrder.vue create mode 100644 src/views/order/base/orderManage/orderDetailData.vue create mode 100644 src/views/order/monitoring/orderCompletionMonitoring/index.vue diff --git a/.env.dev b/.env.dev index 4064712d..d865cb4d 100644 --- a/.env.dev +++ b/.env.dev @@ -13,11 +13,11 @@ VUE_APP_TITLE = MES系统 # 芋道管理系统/开发环境 -# VUE_APP_BASE_API = 'http://192.168.0.33:48082' +VUE_APP_BASE_API = 'http://192.168.0.33:48082' # VUE_APP_BASE_API = 'http://192.168.2.173:48080' # VUE_APP_BASE_API = 'http://192.168.1.49:48080' # VUE_APP_BASE_API = 'http://192.168.1.8:48080' -VUE_APP_BASE_API = 'http://192.168.1.56:48080' +# VUE_APP_BASE_API = 'http://192.168.1.56:48080' # VUE_APP_BASE_API = 'http://192.168.1.188:48080' diff --git a/src/api/base/delivery.js b/src/api/base/delivery.js new file mode 100644 index 00000000..4c095c6a --- /dev/null +++ b/src/api/base/delivery.js @@ -0,0 +1,73 @@ +// 成品发货 +import request from '@/utils/request' +// 获得成品发货清单分页 +export function deliveryLogPage(data) { + return request({ + url: '/extend/delivery-log/page', + method: 'post', + data: data + }) +} + +// 获取发货进度分页 +export function deliveryProgressPage(data) { + return request({ + url: '/extend/delivery-progress/page', + method: 'post', + data: data + }) +} + +// 获取发货进度分页 +export function deliveryLogDetPage(data) { + return request({ + url: '/extend/delivery-log-det/page', + method: 'post', + data: data + }) +} + +// 创建成品发货清单 +export function deliveryLogCreate(data) { + return request({ + url: '/extend/delivery-log/create', + method: 'post', + data: data + }) +} + +// 更新成品发货清单 +export function deliveryLogUpdate(data) { + return request({ + url: '/extend/delivery-log/update', + method: 'put', + data: data + }) +} + +// 获得成品发货清单 +export function getDeliveryLog(query) { + return request({ + url: '/extend/delivery-log/get', + method: 'get', + params: query + }) +} + +// 删除成品发货清单 +export function deliveryLogDelete(query) { + return request({ + url: '/extend/delivery-log/delete', + method: 'delete', + params: query + }) +} + +// 装车 +export function deliveryLogDetCreate(data) { + return request({ + url: '/extend/delivery-log-det/create', + method: 'post', + data: data + }) +} diff --git a/src/api/base/orderManage.js b/src/api/base/orderManage.js index 9114d63c..37cace76 100644 --- a/src/api/base/orderManage.js +++ b/src/api/base/orderManage.js @@ -94,3 +94,47 @@ export function orderIssue(data) { data: data }) } + +// 获得工单 +export function getWorkOrderById(query) { + return request({ + url: '/base/core-work-order/get', + method: 'get', + params: query + }) +} + +// 订单监控 +export function orderMonitor(query) { + return request({ + url: '/base/order/orderMonitor', + method: 'get', + params: query + }) +} + +// 获得所有客户列表 +export function customerList() { + return request({ + url: '/base/core-customer/listAll', + method: 'get' + }) +} + +// 获得订单详情 +export function orderDetail(query) { + return request({ + url: '/base/order/getDetail', + method: 'get', + params: query + }) +} + +// 产品bom消耗信息 +export function bomUseNum(query) { + return request({ + url: '/base/material-product-bom/bomUseNum', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/base/worker.js b/src/api/base/worker.js index 2fcee54c..67ad7268 100644 --- a/src/api/base/worker.js +++ b/src/api/base/worker.js @@ -14,4 +14,13 @@ export function getWorker(query) { method: 'get', params: query }) +} + +// 获得该班组其他可选组员列表(除去现有组员) +export function otherWorkerList(query) { + return request({ + url: '/base/group-team-det/otherWorkerList', + method: 'get', + params: query + }) } \ No newline at end of file diff --git a/src/api/monitoring/teamProduction.js b/src/api/monitoring/teamProduction.js index 5c257193..792d694b 100644 --- a/src/api/monitoring/teamProduction.js +++ b/src/api/monitoring/teamProduction.js @@ -16,4 +16,13 @@ export function getSchedulingMonitoringRecord(query) { method: 'get', params: query }) +} + +// 获得所有列表 +export function groupClassesListAll(query) { + return request({ + url: '/base/group-classes/listAll', + method: 'get', + params: query + }) } \ No newline at end of file diff --git a/src/styles/index.scss b/src/styles/index.scss index f77398f4..93916ac0 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -180,6 +180,7 @@ input, textarea{ // 抽屉head区域---start .el-drawer__header { padding-bottom: 20px; + padding-left: 30px; margin-bottom: 23px; font-size: 20px; font-weight: 500; diff --git a/src/views/delivery/deliveryLog/components/addOrUpdate.vue b/src/views/delivery/deliveryLog/components/addOrUpdate.vue new file mode 100644 index 00000000..c3bdc34c --- /dev/null +++ b/src/views/delivery/deliveryLog/components/addOrUpdate.vue @@ -0,0 +1,162 @@ + + diff --git a/src/views/delivery/deliveryLog/components/deliveryLogDetail.vue b/src/views/delivery/deliveryLog/components/deliveryLogDetail.vue new file mode 100644 index 00000000..e5fb7be5 --- /dev/null +++ b/src/views/delivery/deliveryLog/components/deliveryLogDetail.vue @@ -0,0 +1,170 @@ + + + \ No newline at end of file diff --git a/src/views/delivery/deliveryLog/components/loadedPage.vue b/src/views/delivery/deliveryLog/components/loadedPage.vue new file mode 100644 index 00000000..40d48f61 --- /dev/null +++ b/src/views/delivery/deliveryLog/components/loadedPage.vue @@ -0,0 +1,141 @@ + + diff --git a/src/views/delivery/deliveryLog/index.vue b/src/views/delivery/deliveryLog/index.vue new file mode 100644 index 00000000..0f324fcf --- /dev/null +++ b/src/views/delivery/deliveryLog/index.vue @@ -0,0 +1,285 @@ + + \ No newline at end of file diff --git a/src/views/delivery/deliveryLogDet/components/deliveryLogDetDetail.vue b/src/views/delivery/deliveryLogDet/components/deliveryLogDetDetail.vue new file mode 100644 index 00000000..830a5ffe --- /dev/null +++ b/src/views/delivery/deliveryLogDet/components/deliveryLogDetDetail.vue @@ -0,0 +1,365 @@ + + + + \ No newline at end of file diff --git a/src/views/delivery/deliveryLogDet/index.vue b/src/views/delivery/deliveryLogDet/index.vue new file mode 100644 index 00000000..7502d885 --- /dev/null +++ b/src/views/delivery/deliveryLogDet/index.vue @@ -0,0 +1,130 @@ + + \ No newline at end of file diff --git a/src/views/group/base/groupTeam/components/workerEdit.vue b/src/views/group/base/groupTeam/components/workerEdit.vue index c1dbd635..0944ded7 100644 --- a/src/views/group/base/groupTeam/components/workerEdit.vue +++ b/src/views/group/base/groupTeam/components/workerEdit.vue @@ -142,7 +142,7 @@ export default { { type: 'input', label: '关键字', - placeholder: '关键字', + placeholder: '姓名', param: 'workerName' }, { @@ -168,7 +168,7 @@ export default { { type: 'input', label: '关键字', - placeholder: '关键字', + placeholder: '姓名', param: 'workerName' }, { @@ -242,12 +242,13 @@ export default { this.getList() }, handleClick(val) { + console.log(val) switch (val.type) { case 'edit': this.addOrEditTitle = '编辑' this.centervisible = true this.$nextTick(() => { - this.$refs.workerTeamAdd.init({'teamId': this.queryParams.teamId, id: val.data.id}) + this.$refs.workerTeamAdd.init({'teamId': this.queryParams.teamId, 'id': val.data.id, 'workName':val.data.workerName, 'majorName':val.data.workerMajorName}) }) break default: @@ -266,6 +267,16 @@ export default { }).catch(() => {}); }, closeD() { + this.teamData.teamName = '' + this.teamData.leaderName = '' + this.teamData.teamNum = '' + this.teamData.leaderTelephone = '' + this.teamData.teamId = '' + this.queryParams.pageNo = 1 + this.queryParams.pageSize = 20 + this.queryParams.teamId = '' + this.queryParams.workerName = '' + this.total = 0 this.$emit('closeDrawer') } } diff --git a/src/views/group/base/groupTeam/components/workerTeamAdd.vue b/src/views/group/base/groupTeam/components/workerTeamAdd.vue index 6f233917..608dbb19 100644 --- a/src/views/group/base/groupTeam/components/workerTeamAdd.vue +++ b/src/views/group/base/groupTeam/components/workerTeamAdd.vue @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/src/views/order/base/orderManage/index.vue b/src/views/order/base/orderManage/index.vue index 825be503..9a4d2afd 100644 --- a/src/views/order/base/orderManage/index.vue +++ b/src/views/order/base/orderManage/index.vue @@ -50,28 +50,16 @@ :before-close="addWorkOrderCancel" width='70%' > - + - - + \ No newline at end of file diff --git a/src/views/order/monitoring/orderCompletionMonitoring/index.vue b/src/views/order/monitoring/orderCompletionMonitoring/index.vue new file mode 100644 index 00000000..4cb31be5 --- /dev/null +++ b/src/views/order/monitoring/orderCompletionMonitoring/index.vue @@ -0,0 +1,383 @@ + + + \ No newline at end of file From 0deb38647ef949004643b21df6410912a3d66d04 Mon Sep 17 00:00:00 2001 From: zwq Date: Sat, 4 Nov 2023 16:40:16 +0800 Subject: [PATCH 03/11] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/warehouse/warehouse-info.js | 75 ++++ src/api/warehouse/warehouseGoods.js | 76 ++++ src/api/warehouse/warehouseLocation.js | 97 +++++ src/api/warehouse/warehouseRealtime.js | 83 ++++ .../warehouse/warehouseRealtimeLocation.js | 85 ++++ src/views/warehouse/chart/BarChart.vue | 196 +++++++++ src/views/warehouse/chart/PieChart.vue | 173 ++++++++ .../end-material/InventoryOverview/index.vue | 96 +++++ .../warehouseGoods/add-or-updata.vue | 156 +++++++ .../end-material/warehouseGoods/index.vue | 183 ++++++++ .../end-material/warehouseHis/index.vue | 192 +++++++++ .../warehouseLocationHis/add-or-updata.vue | 82 ++++ .../warehouseLocationHis/index.vue | 223 ++++++++++ .../warehouseLocationMonitoring/index.vue | 221 ++++++++++ .../warehouseRealtime/add-or-updata.vue | 202 +++++++++ .../end-material/warehouseRealtime/index.vue | 193 +++++++++ .../warehouseRealtime/product-mini.vue | 71 +++ .../warehouseRealtimeLocation/SmallTitle.vue | 65 +++ .../add-or-updata.vue | 93 ++++ .../warehouseRealtimeLocation/attr-add.vue | 122 ++++++ .../warehouseRealtimeLocation/drawer.vue | 317 ++++++++++++++ .../warehouseRealtimeLocation/index.vue | 279 ++++++++++++ src/views/warehouse/mixins/basic-add.js | 121 ++++++ src/views/warehouse/mixins/basic-page.js | 170 ++++++++ src/views/warehouse/mixins/code-filter.js | 73 ++++ src/views/warehouse/mixins/inputArea.vue | 46 ++ src/views/warehouse/mixins/selectQuality.vue | 59 +++ .../out-material/InventoryOverview/index.vue | 96 +++++ .../warehouseGoods/add-or-updata.vue | 156 +++++++ .../out-material/warehouseGoods/index.vue | 183 ++++++++ .../out-material/warehouseHis/index.vue | 192 +++++++++ .../warehouseLocationHis/add-or-updata.vue | 82 ++++ .../warehouseLocationHis/index.vue | 223 ++++++++++ .../warehouseLocationMonitoring/index.vue | 221 ++++++++++ .../warehouseRealtime/add-or-updata.vue | 202 +++++++++ .../out-material/warehouseRealtime/index.vue | 193 +++++++++ .../warehouseRealtime/product-mini.vue | 71 +++ .../warehouseRealtimeLocation/SmallTitle.vue | 65 +++ .../add-or-updata.vue | 93 ++++ .../warehouseRealtimeLocation/attr-add.vue | 122 ++++++ .../warehouseRealtimeLocation/drawer.vue | 317 ++++++++++++++ .../warehouseRealtimeLocation/index.vue | 279 ++++++++++++ .../InventoryOverview/index.vue | 96 +++++ .../warehouseGoods/add-or-updata.vue | 156 +++++++ .../package-material/warehouseGoods/index.vue | 183 ++++++++ .../package-material/warehouseHis/index.vue | 192 +++++++++ .../warehouseLocationHis/add-or-updata.vue | 82 ++++ .../warehouseLocationHis/index.vue | 223 ++++++++++ .../warehouseLocationMonitoring/index.vue | 221 ++++++++++ .../warehouseRealtime/add-or-updata.vue | 202 +++++++++ .../warehouseRealtime/index.vue | 193 +++++++++ .../warehouseRealtime/product-mini.vue | 71 +++ .../warehouseRealtimeLocation/SmallTitle.vue | 65 +++ .../add-or-updata.vue | 93 ++++ .../warehouseRealtimeLocation/attr-add.vue | 122 ++++++ .../warehouseRealtimeLocation/drawer.vue | 317 ++++++++++++++ .../warehouseRealtimeLocation/index.vue | 279 ++++++++++++ .../part-material/InventoryOverview/index.vue | 96 +++++ .../warehouseGoods/add-or-updata.vue | 156 +++++++ .../part-material/warehouseGoods/index.vue | 183 ++++++++ .../part-material/warehouseHis/index.vue | 192 +++++++++ .../warehouseLocationHis/add-or-updata.vue | 82 ++++ .../warehouseLocationHis/index.vue | 223 ++++++++++ .../warehouseLocationMonitoring/index.vue | 221 ++++++++++ .../warehouseRealtime/add-or-updata.vue | 202 +++++++++ .../part-material/warehouseRealtime/index.vue | 193 +++++++++ .../warehouseRealtime/product-mini.vue | 71 +++ .../warehouseRealtimeLocation/SmallTitle.vue | 65 +++ .../add-or-updata.vue | 93 ++++ .../warehouseRealtimeLocation/attr-add.vue | 122 ++++++ .../warehouseRealtimeLocation/drawer.vue | 317 ++++++++++++++ .../warehouseRealtimeLocation/index.vue | 279 ++++++++++++ .../raw-material/InventoryOverview/index.vue | 96 +++++ .../warehouseGoods/add-or-updata.vue | 156 +++++++ .../raw-material/warehouseGoods/index.vue | 183 ++++++++ .../raw-material/warehouseHis/index.vue | 192 +++++++++ .../warehouseLocationHis/add-or-updata.vue | 82 ++++ .../warehouseLocationHis/index.vue | 223 ++++++++++ .../warehouseLocationMonitoring/index.vue | 221 ++++++++++ .../warehouseRealtime/add-or-updata.vue | 202 +++++++++ .../raw-material/warehouseRealtime/index.vue | 193 +++++++++ .../warehouseRealtime/product-mini.vue | 71 +++ .../warehouseRealtimeLocation/SmallTitle.vue | 65 +++ .../add-or-updata.vue | 93 ++++ .../warehouseRealtimeLocation/attr-add.vue | 122 ++++++ .../warehouseRealtimeLocation/drawer.vue | 317 ++++++++++++++ .../warehouseRealtimeLocation/index.vue | 279 ++++++++++++ .../warehouse/shengchen/warehouse/index.vue | 272 ++++++++++++ .../shengchen/warehouse/warehouse.js | 54 +++ .../shengchen/warehouseGoods/index.vue | 297 +++++++++++++ .../warehouseGoods/warehouseGoods.js | 54 +++ .../shengchen/warehouseHis/index.vue | 310 +++++++++++++ .../shengchen/warehouseHis/warehouseHis.js | 54 +++ .../shengchen/warehouseLocation/index.vue | 309 +++++++++++++ .../warehouseLocation/warehouseLocation.js | 54 +++ .../shengchen/warehouseLocationHis/index.vue | 260 +++++++++++ .../warehouseLocationHis.js | 54 +++ .../warehouseLocationHisDet/index.vue | 255 +++++++++++ .../warehouseLocationHisDet.js | 54 +++ .../shengchen/warehouseRealtime/index.vue | 297 +++++++++++++ .../warehouseRealtime/warehouseRealtime.js | 54 +++ .../shengchen/warehouseRealtimeDet/index.vue | 256 +++++++++++ .../warehouseRealtimeDet.js | 54 +++ .../warehouseRealtimeLocation/index.vue | 274 ++++++++++++ .../warehouseRealtimeLocation.js | 54 +++ .../warehouseRealtimeLocationDet/index.vue | 274 ++++++++++++ .../warehouseRealtimeLocationDet.js | 54 +++ .../warehouse-info/add-or-updata.vue | 199 +++++++++ .../warehouse-info/add-or-updata1.vue | 127 ++++++ src/views/warehouse/warehouse-info/index.vue | 407 ++++++++++++++++++ 110 files changed, 17806 insertions(+) create mode 100644 src/api/warehouse/warehouse-info.js create mode 100644 src/api/warehouse/warehouseGoods.js create mode 100644 src/api/warehouse/warehouseLocation.js create mode 100644 src/api/warehouse/warehouseRealtime.js create mode 100644 src/api/warehouse/warehouseRealtimeLocation.js create mode 100644 src/views/warehouse/chart/BarChart.vue create mode 100644 src/views/warehouse/chart/PieChart.vue create mode 100644 src/views/warehouse/end-material/InventoryOverview/index.vue create mode 100644 src/views/warehouse/end-material/warehouseGoods/add-or-updata.vue create mode 100644 src/views/warehouse/end-material/warehouseGoods/index.vue create mode 100644 src/views/warehouse/end-material/warehouseHis/index.vue create mode 100644 src/views/warehouse/end-material/warehouseLocationHis/add-or-updata.vue create mode 100644 src/views/warehouse/end-material/warehouseLocationHis/index.vue create mode 100644 src/views/warehouse/end-material/warehouseLocationMonitoring/index.vue create mode 100644 src/views/warehouse/end-material/warehouseRealtime/add-or-updata.vue create mode 100644 src/views/warehouse/end-material/warehouseRealtime/index.vue create mode 100644 src/views/warehouse/end-material/warehouseRealtime/product-mini.vue create mode 100644 src/views/warehouse/end-material/warehouseRealtimeLocation/SmallTitle.vue create mode 100644 src/views/warehouse/end-material/warehouseRealtimeLocation/add-or-updata.vue create mode 100644 src/views/warehouse/end-material/warehouseRealtimeLocation/attr-add.vue create mode 100644 src/views/warehouse/end-material/warehouseRealtimeLocation/drawer.vue create mode 100644 src/views/warehouse/end-material/warehouseRealtimeLocation/index.vue create mode 100644 src/views/warehouse/mixins/basic-add.js create mode 100644 src/views/warehouse/mixins/basic-page.js create mode 100644 src/views/warehouse/mixins/code-filter.js create mode 100644 src/views/warehouse/mixins/inputArea.vue create mode 100644 src/views/warehouse/mixins/selectQuality.vue create mode 100644 src/views/warehouse/out-material/InventoryOverview/index.vue create mode 100644 src/views/warehouse/out-material/warehouseGoods/add-or-updata.vue create mode 100644 src/views/warehouse/out-material/warehouseGoods/index.vue create mode 100644 src/views/warehouse/out-material/warehouseHis/index.vue create mode 100644 src/views/warehouse/out-material/warehouseLocationHis/add-or-updata.vue create mode 100644 src/views/warehouse/out-material/warehouseLocationHis/index.vue create mode 100644 src/views/warehouse/out-material/warehouseLocationMonitoring/index.vue create mode 100644 src/views/warehouse/out-material/warehouseRealtime/add-or-updata.vue create mode 100644 src/views/warehouse/out-material/warehouseRealtime/index.vue create mode 100644 src/views/warehouse/out-material/warehouseRealtime/product-mini.vue create mode 100644 src/views/warehouse/out-material/warehouseRealtimeLocation/SmallTitle.vue create mode 100644 src/views/warehouse/out-material/warehouseRealtimeLocation/add-or-updata.vue create mode 100644 src/views/warehouse/out-material/warehouseRealtimeLocation/attr-add.vue create mode 100644 src/views/warehouse/out-material/warehouseRealtimeLocation/drawer.vue create mode 100644 src/views/warehouse/out-material/warehouseRealtimeLocation/index.vue create mode 100644 src/views/warehouse/package-material/InventoryOverview/index.vue create mode 100644 src/views/warehouse/package-material/warehouseGoods/add-or-updata.vue create mode 100644 src/views/warehouse/package-material/warehouseGoods/index.vue create mode 100644 src/views/warehouse/package-material/warehouseHis/index.vue create mode 100644 src/views/warehouse/package-material/warehouseLocationHis/add-or-updata.vue create mode 100644 src/views/warehouse/package-material/warehouseLocationHis/index.vue create mode 100644 src/views/warehouse/package-material/warehouseLocationMonitoring/index.vue create mode 100644 src/views/warehouse/package-material/warehouseRealtime/add-or-updata.vue create mode 100644 src/views/warehouse/package-material/warehouseRealtime/index.vue create mode 100644 src/views/warehouse/package-material/warehouseRealtime/product-mini.vue create mode 100644 src/views/warehouse/package-material/warehouseRealtimeLocation/SmallTitle.vue create mode 100644 src/views/warehouse/package-material/warehouseRealtimeLocation/add-or-updata.vue create mode 100644 src/views/warehouse/package-material/warehouseRealtimeLocation/attr-add.vue create mode 100644 src/views/warehouse/package-material/warehouseRealtimeLocation/drawer.vue create mode 100644 src/views/warehouse/package-material/warehouseRealtimeLocation/index.vue create mode 100644 src/views/warehouse/part-material/InventoryOverview/index.vue create mode 100644 src/views/warehouse/part-material/warehouseGoods/add-or-updata.vue create mode 100644 src/views/warehouse/part-material/warehouseGoods/index.vue create mode 100644 src/views/warehouse/part-material/warehouseHis/index.vue create mode 100644 src/views/warehouse/part-material/warehouseLocationHis/add-or-updata.vue create mode 100644 src/views/warehouse/part-material/warehouseLocationHis/index.vue create mode 100644 src/views/warehouse/part-material/warehouseLocationMonitoring/index.vue create mode 100644 src/views/warehouse/part-material/warehouseRealtime/add-or-updata.vue create mode 100644 src/views/warehouse/part-material/warehouseRealtime/index.vue create mode 100644 src/views/warehouse/part-material/warehouseRealtime/product-mini.vue create mode 100644 src/views/warehouse/part-material/warehouseRealtimeLocation/SmallTitle.vue create mode 100644 src/views/warehouse/part-material/warehouseRealtimeLocation/add-or-updata.vue create mode 100644 src/views/warehouse/part-material/warehouseRealtimeLocation/attr-add.vue create mode 100644 src/views/warehouse/part-material/warehouseRealtimeLocation/drawer.vue create mode 100644 src/views/warehouse/part-material/warehouseRealtimeLocation/index.vue create mode 100644 src/views/warehouse/raw-material/InventoryOverview/index.vue create mode 100644 src/views/warehouse/raw-material/warehouseGoods/add-or-updata.vue create mode 100644 src/views/warehouse/raw-material/warehouseGoods/index.vue create mode 100644 src/views/warehouse/raw-material/warehouseHis/index.vue create mode 100644 src/views/warehouse/raw-material/warehouseLocationHis/add-or-updata.vue create mode 100644 src/views/warehouse/raw-material/warehouseLocationHis/index.vue create mode 100644 src/views/warehouse/raw-material/warehouseLocationMonitoring/index.vue create mode 100644 src/views/warehouse/raw-material/warehouseRealtime/add-or-updata.vue create mode 100644 src/views/warehouse/raw-material/warehouseRealtime/index.vue create mode 100644 src/views/warehouse/raw-material/warehouseRealtime/product-mini.vue create mode 100644 src/views/warehouse/raw-material/warehouseRealtimeLocation/SmallTitle.vue create mode 100644 src/views/warehouse/raw-material/warehouseRealtimeLocation/add-or-updata.vue create mode 100644 src/views/warehouse/raw-material/warehouseRealtimeLocation/attr-add.vue create mode 100644 src/views/warehouse/raw-material/warehouseRealtimeLocation/drawer.vue create mode 100644 src/views/warehouse/raw-material/warehouseRealtimeLocation/index.vue create mode 100644 src/views/warehouse/shengchen/warehouse/index.vue create mode 100644 src/views/warehouse/shengchen/warehouse/warehouse.js create mode 100644 src/views/warehouse/shengchen/warehouseGoods/index.vue create mode 100644 src/views/warehouse/shengchen/warehouseGoods/warehouseGoods.js create mode 100644 src/views/warehouse/shengchen/warehouseHis/index.vue create mode 100644 src/views/warehouse/shengchen/warehouseHis/warehouseHis.js create mode 100644 src/views/warehouse/shengchen/warehouseLocation/index.vue create mode 100644 src/views/warehouse/shengchen/warehouseLocation/warehouseLocation.js create mode 100644 src/views/warehouse/shengchen/warehouseLocationHis/index.vue create mode 100644 src/views/warehouse/shengchen/warehouseLocationHis/warehouseLocationHis.js create mode 100644 src/views/warehouse/shengchen/warehouseLocationHisDet/index.vue create mode 100644 src/views/warehouse/shengchen/warehouseLocationHisDet/warehouseLocationHisDet.js create mode 100644 src/views/warehouse/shengchen/warehouseRealtime/index.vue create mode 100644 src/views/warehouse/shengchen/warehouseRealtime/warehouseRealtime.js create mode 100644 src/views/warehouse/shengchen/warehouseRealtimeDet/index.vue create mode 100644 src/views/warehouse/shengchen/warehouseRealtimeDet/warehouseRealtimeDet.js create mode 100644 src/views/warehouse/shengchen/warehouseRealtimeLocation/index.vue create mode 100644 src/views/warehouse/shengchen/warehouseRealtimeLocation/warehouseRealtimeLocation.js create mode 100644 src/views/warehouse/shengchen/warehouseRealtimeLocationDet/index.vue create mode 100644 src/views/warehouse/shengchen/warehouseRealtimeLocationDet/warehouseRealtimeLocationDet.js create mode 100644 src/views/warehouse/warehouse-info/add-or-updata.vue create mode 100644 src/views/warehouse/warehouse-info/add-or-updata1.vue create mode 100644 src/views/warehouse/warehouse-info/index.vue diff --git a/src/api/warehouse/warehouse-info.js b/src/api/warehouse/warehouse-info.js new file mode 100644 index 00000000..8ac37edf --- /dev/null +++ b/src/api/warehouse/warehouse-info.js @@ -0,0 +1,75 @@ +/* + * @Author: zwq + * @Date: 2023-11-02 14:21:18 + * @LastEditors: zwq + * @LastEditTime: 2023-11-02 14:34:29 + * @Description: + */ +import request from '@/utils/request' + +// 创建仓库 +export function createWarehouse(data) { + return request({ + url: '/extend/warehouse/create', + method: 'post', + data: data + }) +} + +// 更新仓库 +export function updateWarehouse(data) { + return request({ + url: '/extend/warehouse/update', + method: 'put', + data: data + }) +} + +// 删除仓库 +export function deleteWarehouse(id) { + return request({ + url: '/extend/warehouse/delete?id=' + id, + method: 'delete' + }) +} + +// 获得仓库 +export function getWarehouse(id) { + return request({ + url: '/extend/warehouse/get?id=' + id, + method: 'get' + }) +} + +// 获得仓库列表 +export function getWarehouseList() { + return request({ + url: '/extend/warehouse/listAll', + method: 'get' + }) +} +// 获得仓库code +export function getCode() { + return request({ + url: '/extend/warehouse/getCode', + method: 'get' + }) +} +// 获得仓库分页 +export function getWarehousePage(query) { + return request({ + url: '/extend/warehouse/page', + method: 'get', + params: query + }) +} + +// 导出仓库 Excel +export function exportWarehouseExcel(query) { + return request({ + url: '/extend/warehouse/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/api/warehouse/warehouseGoods.js b/src/api/warehouse/warehouseGoods.js new file mode 100644 index 00000000..1eaae6a7 --- /dev/null +++ b/src/api/warehouse/warehouseGoods.js @@ -0,0 +1,76 @@ +/* + * @Author: zwq + * @Date: 2023-11-02 16:20:15 + * @LastEditors: zwq + * @LastEditTime: 2023-11-03 15:26:05 + * @Description: + */ +import request from '@/utils/request' + +// 创建物品 +export function createWarehouseGoods(data) { + return request({ + url: '/extend/warehouse-goods/create', + method: 'post', + data: data + }) +} + +// 更新物品 +export function updateWarehouseGoods(data) { + return request({ + url: '/extend/warehouse-goods/update', + method: 'put', + data: data + }) +} + +// 删除物品 +export function deleteWarehouseGoods(id) { + return request({ + url: '/extend/warehouse-goods/delete?id=' + id, + method: 'delete' + }) +} + +// 获得物品 +export function getWarehouseGoods(id) { + return request({ + url: '/extend/warehouse-goods/get?id=' + id, + method: 'get' + }) +} + +// 获得物品列表 +export function getListByType(id) { + return request({ + url: '/extend/warehouse-goods/getListByType?type=' + id, + method: 'get' + }) +} + +// 获得物品分页 +export function getWarehouseGoodsPage(data) { + return request({ + url: '/extend/warehouse-goods/page', + method: 'POST', + data: data + }) +} + +// 获得code +export function getCode() { + return request({ + url: '/extend/warehouse-goods/getCode', + method: 'get' + }) +} +// 导出物品 Excel +export function exportWarehouseGoodsExcel(query) { + return request({ + url: '/extend/warehouse-goods/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/api/warehouse/warehouseLocation.js b/src/api/warehouse/warehouseLocation.js new file mode 100644 index 00000000..f1b41f6c --- /dev/null +++ b/src/api/warehouse/warehouseLocation.js @@ -0,0 +1,97 @@ +/* + * @Author: zwq + * @Date: 2023-11-02 14:31:42 + * @LastEditors: zwq + * @LastEditTime: 2023-11-04 14:56:10 + * @Description: + */ +import request from '@/utils/request' + +// 创建库位 +export function createWarehouseLocation(data) { + return request({ + url: '/extend/warehouse-location/create', + method: 'post', + data: data + }) +} + +// 更新库位 +export function updateWarehouseLocation(data) { + return request({ + url: '/extend/warehouse-location/update', + method: 'put', + data: data + }) +} + +// 删除库位 +export function deleteWarehouseLocation(id) { + return request({ + url: '/extend/warehouse-location/delete?id=' + id, + method: 'delete' + }) +} + +// 获得库位 +export function getWarehouseLocation(id) { + return request({ + url: '/extend/warehouse-location/get?id=' + id, + method: 'get' + }) +} +// 获得库位列表(通过仓库id) +export function listByWarehouse(id) { + return request({ + url: '/extend/warehouse-location/listByWarehouse?warehouseId=' + id, + method: 'get' + }) +} +// 获得库位列表(All) +export function listAll() { + return request({ + url: '/extend/warehouse-location/listAll', + method: 'get' + }) +} +// 获得库位code +export function getCode() { + return request({ + url: '/extend/warehouse-location/getCode', + method: 'get' + }) +} +// 获得库位分页 +export function getWarehouseLocationPage(data) { + return request({ + url: '/extend/warehouse-location/page', + method: 'POST', + data: data + }) +} +// 获得库存总览数据 +export function getOverview(data) { + return request({ + url: '/extend/warehouse-monitoring/getOverview', + method: 'POST', + data: data + }) +} +// 获得库位占用率数据 +export function getRate(data) { + return request({ + url: '/extend/warehouse-monitoring/getRate', + method: 'POST', + data: data + }) +} + +// 导出库位 Excel +export function exportWarehouseLocationExcel(query) { + return request({ + url: '/extend/warehouse-location/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/api/warehouse/warehouseRealtime.js b/src/api/warehouse/warehouseRealtime.js new file mode 100644 index 00000000..4ce73e64 --- /dev/null +++ b/src/api/warehouse/warehouseRealtime.js @@ -0,0 +1,83 @@ +import request from '@/utils/request' + +// 创建出入库-无库位-入库 +export function createWarehouseRealtime(data) { + return request({ + url: '/extend/warehouse-realtime/create', + method: 'post', + data: data + }) +} +// 创建出入库-无库位-出库 +export function outWarehouseRealtime(data) { + return request({ + url: '/extend/warehouse-realtime/out', + method: 'post', + data: data + }) +} +// 更新出入库-无库位 +export function updateWarehouseRealtime(data) { + return request({ + url: '/extend/warehouse-realtime/update', + method: 'put', + data: data + }) +} + +// 删除出入库-无库位 +export function deleteWarehouseRealtime(id) { + return request({ + url: '/extend/warehouse-realtime/delete?id=' + id, + method: 'delete' + }) +} + +// 获得出入库-无库位 +export function getWarehouseRealtime(id) { + return request({ + url: '/extend/warehouse-realtime/get?id=' + id, + method: 'get' + }) +} +// 获得出入库-无库位-展开详情 +export function getWarehouseRealtimeDet(id) { + return request({ + url: '/extend/warehouse-realtime/getDet?id=' + id, + method: 'get' + }) +} +// 获得出入库-无库位-批次列表 +export function getBatchList(id) { + return request({ + url: '/extend/warehouse-realtime/getBatchList?id=' + id, + method: 'get' + }) +} +// 获得出入库-无库位分页 +export function getWarehouseRealtimePage(data) { + return request({ + url: '/extend/warehouse-realtime/page', + method: 'post', + data: data + }) +} + +// 获得出入库-无库位-历史分页 +export function getWarehouseRealtimeHisPage(data) { + return request({ + url: '/extend/warehouse-his/page', + method: 'post', + data: data + }) +} + +// 导出出入库-无库位 Excel +export function exportWarehouseRealtimeExcel(query) { + return request({ + url: '/extend/warehouse-realtime/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/api/warehouse/warehouseRealtimeLocation.js b/src/api/warehouse/warehouseRealtimeLocation.js new file mode 100644 index 00000000..af525c30 --- /dev/null +++ b/src/api/warehouse/warehouseRealtimeLocation.js @@ -0,0 +1,85 @@ +import request from '@/utils/request' + +// 创建出入库-有库位 +export function createWarehouseRealtimeLocation(data) { + return request({ + url: '/extend/warehouse-realtime-location/create', + method: 'post', + data: data + }) +} + +// 更新出入库-有库位 +export function updateWarehouseRealtimeLocation(data) { + return request({ + url: '/extend/warehouse-realtime-location/update', + method: 'put', + data: data + }) +} +// 出入库-有库位 > 出库操作 +export function outWarehouseRealtimeLocation(data) { + return request({ + url: '/extend/warehouse-realtime-location/out', + method: 'post', + data: data + }) +} + +// 出入库-有库位 > 入库操作 +export function inWarehouseRealtimeLocation(data) { + return request({ + url: '/extend/warehouse-realtime-location/in', + method: 'post', + data: data + }) +} + +// 删除出入库-有库位 +export function deleteWarehouseRealtimeLocation(id) { + return request({ + url: '/extend/warehouse-realtime-location/delete?id=' + id, + method: 'delete' + }) +} + +// 获得出入库-有库位 +export function getWarehouseRealtimeLocation(id) { + return request({ + url: '/extend/warehouse-realtime-location/get?id=' + id, + method: 'get' + }) +} +// 获得出入库历史-有库位详情列表 +export function getWarehouseLocationHisDet(id) { + return request({ + url: '/extend/warehouse-location-his-det/list?hisId=' + id, + method: 'get' + }) +} +// 获得出入库-有库位分页 +export function getWarehouseRealtimeLocationPage(data) { + return request({ + url: '/extend/warehouse-realtime-location/page', + method: 'post', + data: data + }) +} +// 获得出入库历史-有库位分页 +export function getWarehouseLocationHisPage(data) { + return request({ + url: '/extend/warehouse-location-his/page', + method: 'post', + data: data + }) +} + +// 导出出入库-有库位 Excel +export function exportWarehouseRealtimeLocationExcel(query) { + return request({ + url: '/extend/warehouse-realtime-location/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/warehouse/chart/BarChart.vue b/src/views/warehouse/chart/BarChart.vue new file mode 100644 index 00000000..f3e66592 --- /dev/null +++ b/src/views/warehouse/chart/BarChart.vue @@ -0,0 +1,196 @@ + + + diff --git a/src/views/warehouse/chart/PieChart.vue b/src/views/warehouse/chart/PieChart.vue new file mode 100644 index 00000000..28526e0c --- /dev/null +++ b/src/views/warehouse/chart/PieChart.vue @@ -0,0 +1,173 @@ + + + diff --git a/src/views/warehouse/end-material/InventoryOverview/index.vue b/src/views/warehouse/end-material/InventoryOverview/index.vue new file mode 100644 index 00000000..5d34cee9 --- /dev/null +++ b/src/views/warehouse/end-material/InventoryOverview/index.vue @@ -0,0 +1,96 @@ + + + + + + diff --git a/src/views/warehouse/end-material/warehouseGoods/add-or-updata.vue b/src/views/warehouse/end-material/warehouseGoods/add-or-updata.vue new file mode 100644 index 00000000..1087257d --- /dev/null +++ b/src/views/warehouse/end-material/warehouseGoods/add-or-updata.vue @@ -0,0 +1,156 @@ + + + + diff --git a/src/views/warehouse/end-material/warehouseGoods/index.vue b/src/views/warehouse/end-material/warehouseGoods/index.vue new file mode 100644 index 00000000..26c67256 --- /dev/null +++ b/src/views/warehouse/end-material/warehouseGoods/index.vue @@ -0,0 +1,183 @@ + + + diff --git a/src/views/warehouse/end-material/warehouseHis/index.vue b/src/views/warehouse/end-material/warehouseHis/index.vue new file mode 100644 index 00000000..09469314 --- /dev/null +++ b/src/views/warehouse/end-material/warehouseHis/index.vue @@ -0,0 +1,192 @@ + + + + diff --git a/src/views/warehouse/end-material/warehouseLocationHis/add-or-updata.vue b/src/views/warehouse/end-material/warehouseLocationHis/add-or-updata.vue new file mode 100644 index 00000000..33b3db33 --- /dev/null +++ b/src/views/warehouse/end-material/warehouseLocationHis/add-or-updata.vue @@ -0,0 +1,82 @@ + + + + diff --git a/src/views/warehouse/end-material/warehouseLocationHis/index.vue b/src/views/warehouse/end-material/warehouseLocationHis/index.vue new file mode 100644 index 00000000..cae9ad5f --- /dev/null +++ b/src/views/warehouse/end-material/warehouseLocationHis/index.vue @@ -0,0 +1,223 @@ + + + + diff --git a/src/views/warehouse/end-material/warehouseLocationMonitoring/index.vue b/src/views/warehouse/end-material/warehouseLocationMonitoring/index.vue new file mode 100644 index 00000000..0de9b949 --- /dev/null +++ b/src/views/warehouse/end-material/warehouseLocationMonitoring/index.vue @@ -0,0 +1,221 @@ + + + + + + diff --git a/src/views/warehouse/end-material/warehouseRealtime/add-or-updata.vue b/src/views/warehouse/end-material/warehouseRealtime/add-or-updata.vue new file mode 100644 index 00000000..e7112471 --- /dev/null +++ b/src/views/warehouse/end-material/warehouseRealtime/add-or-updata.vue @@ -0,0 +1,202 @@ + + + + diff --git a/src/views/warehouse/end-material/warehouseRealtime/index.vue b/src/views/warehouse/end-material/warehouseRealtime/index.vue new file mode 100644 index 00000000..9549f2b7 --- /dev/null +++ b/src/views/warehouse/end-material/warehouseRealtime/index.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/src/views/warehouse/end-material/warehouseRealtime/product-mini.vue b/src/views/warehouse/end-material/warehouseRealtime/product-mini.vue new file mode 100644 index 00000000..17f086c0 --- /dev/null +++ b/src/views/warehouse/end-material/warehouseRealtime/product-mini.vue @@ -0,0 +1,71 @@ + + + + diff --git a/src/views/warehouse/end-material/warehouseRealtimeLocation/SmallTitle.vue b/src/views/warehouse/end-material/warehouseRealtimeLocation/SmallTitle.vue new file mode 100644 index 00000000..93b4a18f --- /dev/null +++ b/src/views/warehouse/end-material/warehouseRealtimeLocation/SmallTitle.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/warehouse/end-material/warehouseRealtimeLocation/add-or-updata.vue b/src/views/warehouse/end-material/warehouseRealtimeLocation/add-or-updata.vue new file mode 100644 index 00000000..8f86afdb --- /dev/null +++ b/src/views/warehouse/end-material/warehouseRealtimeLocation/add-or-updata.vue @@ -0,0 +1,93 @@ + + + + diff --git a/src/views/warehouse/end-material/warehouseRealtimeLocation/attr-add.vue b/src/views/warehouse/end-material/warehouseRealtimeLocation/attr-add.vue new file mode 100644 index 00000000..272a3538 --- /dev/null +++ b/src/views/warehouse/end-material/warehouseRealtimeLocation/attr-add.vue @@ -0,0 +1,122 @@ + + + + + diff --git a/src/views/warehouse/end-material/warehouseRealtimeLocation/drawer.vue b/src/views/warehouse/end-material/warehouseRealtimeLocation/drawer.vue new file mode 100644 index 00000000..1c97c5ce --- /dev/null +++ b/src/views/warehouse/end-material/warehouseRealtimeLocation/drawer.vue @@ -0,0 +1,317 @@ + + + + + diff --git a/src/views/warehouse/end-material/warehouseRealtimeLocation/index.vue b/src/views/warehouse/end-material/warehouseRealtimeLocation/index.vue new file mode 100644 index 00000000..b8c25086 --- /dev/null +++ b/src/views/warehouse/end-material/warehouseRealtimeLocation/index.vue @@ -0,0 +1,279 @@ + + + + diff --git a/src/views/warehouse/mixins/basic-add.js b/src/views/warehouse/mixins/basic-add.js new file mode 100644 index 00000000..7538902f --- /dev/null +++ b/src/views/warehouse/mixins/basic-add.js @@ -0,0 +1,121 @@ +/* + * @Author: zwq + * @Date: 2022-08-24 11:19:43 + * @LastEditors: zwq + * @LastEditTime: 2023-11-02 15:33:39 + * @Description: + */ +import { listData } from "@/api/system/dict/data"; +export default { + data() { + /* eslint-disable */ + return { + urlOptions: { + createURL: '', + updateURL: '', + infoURL: '', + codeURL: '', + getOption: false, //是否加载获取下拉框方法 + isGetCode: false, //是否加载获取code方法 + getDictList: false, //是否加载获取数据字典方法 + optionArrUrl: [], //需要获取下拉框的方法数组 + optionArr: {}, //需要获取下拉框的方法数组的返回结果 + dictList: {}, //需要获取数据字典的方法数组的返回结果 + }, + visible: false, + setData: false + } + }, + created() { + }, + activated() { + }, + methods: { + init(id) { + this.dataForm.id = id || ""; + this.visible = true; + if (this.urlOptions.getOption) { + this.getArr() + } + if (this.urlOptions.getDictList) { + this.getDict() + } + this.$nextTick(() => { + this.$refs["dataForm"].resetFields(); + if (this.dataForm.id) { + this.urlOptions.infoURL(id).then(response => { + this.dataForm = response.data; + if (this.setData) { + this.setDataForm() + } + }); + } else { + if (this.urlOptions.isGetCode) { + this.getCode() + } + } + }); + }, + getCode() { + this.urlOptions.codeURL() + .then(({ data: res }) => { + this.dataForm.code = res; + }) + .catch(() => {}); + }, + getArr() { + const params = { + pageSize: 100, + pageNo: 1, + } + this.urlOptions.optionArrUrl.forEach((item, index) => { + item(params).then(({ data: res }) => { + this.$set(this.urlOptions.optionArr, `arr${index}`, res.list) + }) + .catch(() => { + }); + }); + }, + /** 查询字典数据列表 */ + getDict() { + this.nameList.forEach((item,index)=>{ + const queryParams = { + pageNo: 1, + pageSize: 99, + dictType: item, + } + listData(queryParams).then(response => { + this.$set(this.urlOptions.dictList, `dict${index}`, response.data.list) + }); + }) + }, + // 表单提交 + dataFormSubmit() { + this.$refs["dataForm"].validate((valid) => { + if (!valid) { + return false; + } + // 修改的提交 + if (this.dataForm.id) { + this.urlOptions.updateURL(this.dataForm).then(response => { + this.$modal.msgSuccess("修改成功"); + this.visible = false; + this.$emit("refreshDataList"); + }); + return; + } + // 添加的提交 + this.urlOptions.createURL(this.dataForm).then(response => { + this.$modal.msgSuccess("新增成功"); + this.visible = false; + this.$emit("refreshDataList"); + }); + }); + }, + formClear() { + if (this.$refs.dataForm!==undefined) { + this.$refs.dataForm.resetFields(); + } + } + } +} diff --git a/src/views/warehouse/mixins/basic-page.js b/src/views/warehouse/mixins/basic-page.js new file mode 100644 index 00000000..86d05471 --- /dev/null +++ b/src/views/warehouse/mixins/basic-page.js @@ -0,0 +1,170 @@ +/* + * @Author: zwq + * @Date: 2022-08-24 11:19:43 + * @LastEditors: zwq + * @LastEditTime: 2023-11-03 16:06:21 + * @Description: + */ +export default { + data() { + /* eslint-disable */ + return { + urlOptions: { + getDataListURL: '', + deleteURL: '', + statusUrl: '', + exportURL: '' + }, + tableData: [], + listQuery: { + pageSize: 10, + pageNo: 1, + total: 1, + }, + exportLoading: false, + dataListLoading: false, + addOrEditTitle: '', + addOrUpdateVisible: false, + addOrUpdate:'addOrUpdate' + } + }, + created() { + }, + mounted() { + this.getDataList() + }, + methods: { + // 获取数据列表 + getDataList() { + this.dataListLoading = true; + this.urlOptions.getDataListURL(this.listQuery).then(response => { + this.tableData = response.data.list; + this.listQuery.total = response.data.total; + this.dataListLoading = false; + }); + }, + // 每页数 + sizeChangeHandle(val) { + this.listQuery.pageSize = val; + this.listQuery.pageNo = 1; + this.getDataList(); + }, + // 当前页 + currentChangeHandle(val) { + this.listQuery.pageNo = val; + this.getDataList(); + }, + // 新增 / 修改 + addOrUpdateHandle(id) { + this.addOrUpdateVisible = true; + this.$nextTick(() => { + this.$refs.addOrUpdate.init(id); + }); + }, + cancel(id) { + this.$refs["popover-" + id].showPopper = false; + }, + //改变状态 + changeStatus(id) { + this.$http + .post(this.urlOptions.statusUrl, { id }) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg); + } + this.$refs["popover-" + id].showPopper = false; + this.$message({ + message: this.$t("prompt.success"), + type: "success", + duration: 500, + onClose: () => { + this.getDataList(); + }, + }); + }) + .catch(() => { }); + }, + //tableBtn点击 + handleClick(val) { + if (val.type === "edit") { + this.addOrUpdateVisible = true; + this.addOrEditTitle = "编辑"; + this.$nextTick(() => { + this.$refs.addOrUpdate.init(val.data.id); + }); + } else if (val.type === "delete") { + this.deleteHandle(val.data.id, val.data.name, val.data._pageIndex) + } else if (val.type === "change") { + this.changeStatus(val.data.id) + } else { + this.otherMethods(val) + } + }, + // 删除 + deleteHandle(id, name, index) { + this.$confirm(`确定对${name ? '[名称=' + name + ']' : '[序号=' + index + ']'}进行删除操作?`, "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) + .then(() => { + this.urlOptions.deleteURL(id).then(({ data }) => { + this.$message({ + message: "操作成功", + type: "success", + duration: 1500, + onClose: () => { + this.getDataList(); + }, + }); + }); + }) + .catch(() => { }); + }, + //search-bar点击 + buttonClick(val) { + switch (val.btnName) { + case "search": + this.listQuery.xm1 = val.xm1; + this.listQuery.xm2 = val.xm2; + this.listQuery.pageNo = 1; + this.getDataList(); + break; + case "add": + this.addOrEditTitle = '新增' + this.addOrUpdateVisible = true; + this.addOrUpdateHandle() + break; + default: + console.log(val) + } + }, + handleCancel() { + this.$refs[this.addOrUpdate].formClear() + this.addOrUpdateVisible = false + this.addOrEditTitle = '' + this.addOrUpdate = 'addOrUpdate' + }, + handleConfirm() { + this.$refs[this.addOrUpdate].dataFormSubmit() + }, + successSubmit() { + this.handleCancel() + this.getDataList() + }, + /** 导出按钮操作 */ + handleExport() { + // 处理查询参数 + let params = { ...this.queryParams }; + params.pageNo = undefined; + params.pageSize = undefined; + this.$modal.confirm('是否确认导出所有数据项?').then(() => { + this.exportLoading = true; + return this.urlOptions.exportURL(params); + }).then(response => { + this.$download.excel(response, '报表.xls'); + this.exportLoading = false; + }).catch(() => { }); + } + } +} diff --git a/src/views/warehouse/mixins/code-filter.js b/src/views/warehouse/mixins/code-filter.js new file mode 100644 index 00000000..cce619ee --- /dev/null +++ b/src/views/warehouse/mixins/code-filter.js @@ -0,0 +1,73 @@ + +/* + * @Date: 2020-12-29 16:49:28 + * @LastEditors: zwq + * @LastEditTime: 2023-10-24 16:30:25 + * @FilePath: \basic-admin\src\filters\basicData\index.js + * @Description: + */ + +const table = { + lineStatus: { + 1: '生产中', + 2: '停止', + 3: '未知', + }, + deactivate: { + 1: '启用', + 0: '停用', + }, + wareType: { + 1: '缓存', + 2: '活动', + 3: '其它', + }, +} + +// 日期格式化 +export function parseTime(time, pattern) { + if (arguments.length === 0 || !time) { + return null + } + const format = pattern || '{y}-{m}-{d} {h}:{i}:{s}' + let date + if (typeof time === 'object') { + date = time + } else { + if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) { + time = parseInt(time) + } else if (typeof time === 'string') { + time = time.replace(new RegExp(/-/gm), '/').replace('T', ' ').replace(new RegExp(/\.\d{3}/gm),''); + } + if ((typeof time === 'number') && (time.toString().length === 10)) { + time = time * 1000 + } + date = new Date(time) + } + const formatObj = { + y: date.getFullYear(), + m: date.getMonth() + 1, + d: date.getDate(), + h: date.getHours(), + i: date.getMinutes(), + s: date.getSeconds(), + a: date.getDay() + } + const time_str = format.replace(/{([ymdhisa])+}/g, (result, key) => { + let value = formatObj[key] + // Note: getDay() returns 0 on Sunday + if (key === 'a') { + return ['日', '一', '二', '三', '四', '五', '六'][value] + } + if (result.length > 0 && value < 10) { + value = '0' + value + } + return value || 0 + }) + return time_str +} +export default function (dictTable) { + return function (val) { + return table?.[dictTable]?.[val] + } +} diff --git a/src/views/warehouse/mixins/inputArea.vue b/src/views/warehouse/mixins/inputArea.vue new file mode 100644 index 00000000..9ede1bea --- /dev/null +++ b/src/views/warehouse/mixins/inputArea.vue @@ -0,0 +1,46 @@ + + + + diff --git a/src/views/warehouse/mixins/selectQuality.vue b/src/views/warehouse/mixins/selectQuality.vue new file mode 100644 index 00000000..ec415d19 --- /dev/null +++ b/src/views/warehouse/mixins/selectQuality.vue @@ -0,0 +1,59 @@ + + + diff --git a/src/views/warehouse/out-material/InventoryOverview/index.vue b/src/views/warehouse/out-material/InventoryOverview/index.vue new file mode 100644 index 00000000..e79fcec2 --- /dev/null +++ b/src/views/warehouse/out-material/InventoryOverview/index.vue @@ -0,0 +1,96 @@ + + + + + + diff --git a/src/views/warehouse/out-material/warehouseGoods/add-or-updata.vue b/src/views/warehouse/out-material/warehouseGoods/add-or-updata.vue new file mode 100644 index 00000000..1087257d --- /dev/null +++ b/src/views/warehouse/out-material/warehouseGoods/add-or-updata.vue @@ -0,0 +1,156 @@ + + + + diff --git a/src/views/warehouse/out-material/warehouseGoods/index.vue b/src/views/warehouse/out-material/warehouseGoods/index.vue new file mode 100644 index 00000000..eff5eb31 --- /dev/null +++ b/src/views/warehouse/out-material/warehouseGoods/index.vue @@ -0,0 +1,183 @@ + + + diff --git a/src/views/warehouse/out-material/warehouseHis/index.vue b/src/views/warehouse/out-material/warehouseHis/index.vue new file mode 100644 index 00000000..514989cd --- /dev/null +++ b/src/views/warehouse/out-material/warehouseHis/index.vue @@ -0,0 +1,192 @@ + + + + diff --git a/src/views/warehouse/out-material/warehouseLocationHis/add-or-updata.vue b/src/views/warehouse/out-material/warehouseLocationHis/add-or-updata.vue new file mode 100644 index 00000000..33b3db33 --- /dev/null +++ b/src/views/warehouse/out-material/warehouseLocationHis/add-or-updata.vue @@ -0,0 +1,82 @@ + + + + diff --git a/src/views/warehouse/out-material/warehouseLocationHis/index.vue b/src/views/warehouse/out-material/warehouseLocationHis/index.vue new file mode 100644 index 00000000..26393d0f --- /dev/null +++ b/src/views/warehouse/out-material/warehouseLocationHis/index.vue @@ -0,0 +1,223 @@ + + + + diff --git a/src/views/warehouse/out-material/warehouseLocationMonitoring/index.vue b/src/views/warehouse/out-material/warehouseLocationMonitoring/index.vue new file mode 100644 index 00000000..0de9b949 --- /dev/null +++ b/src/views/warehouse/out-material/warehouseLocationMonitoring/index.vue @@ -0,0 +1,221 @@ + + + + + + diff --git a/src/views/warehouse/out-material/warehouseRealtime/add-or-updata.vue b/src/views/warehouse/out-material/warehouseRealtime/add-or-updata.vue new file mode 100644 index 00000000..1d5ac276 --- /dev/null +++ b/src/views/warehouse/out-material/warehouseRealtime/add-or-updata.vue @@ -0,0 +1,202 @@ + + + + diff --git a/src/views/warehouse/out-material/warehouseRealtime/index.vue b/src/views/warehouse/out-material/warehouseRealtime/index.vue new file mode 100644 index 00000000..e5ddc46f --- /dev/null +++ b/src/views/warehouse/out-material/warehouseRealtime/index.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/src/views/warehouse/out-material/warehouseRealtime/product-mini.vue b/src/views/warehouse/out-material/warehouseRealtime/product-mini.vue new file mode 100644 index 00000000..17f086c0 --- /dev/null +++ b/src/views/warehouse/out-material/warehouseRealtime/product-mini.vue @@ -0,0 +1,71 @@ + + + + diff --git a/src/views/warehouse/out-material/warehouseRealtimeLocation/SmallTitle.vue b/src/views/warehouse/out-material/warehouseRealtimeLocation/SmallTitle.vue new file mode 100644 index 00000000..93b4a18f --- /dev/null +++ b/src/views/warehouse/out-material/warehouseRealtimeLocation/SmallTitle.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/warehouse/out-material/warehouseRealtimeLocation/add-or-updata.vue b/src/views/warehouse/out-material/warehouseRealtimeLocation/add-or-updata.vue new file mode 100644 index 00000000..8f86afdb --- /dev/null +++ b/src/views/warehouse/out-material/warehouseRealtimeLocation/add-or-updata.vue @@ -0,0 +1,93 @@ + + + + diff --git a/src/views/warehouse/out-material/warehouseRealtimeLocation/attr-add.vue b/src/views/warehouse/out-material/warehouseRealtimeLocation/attr-add.vue new file mode 100644 index 00000000..632164df --- /dev/null +++ b/src/views/warehouse/out-material/warehouseRealtimeLocation/attr-add.vue @@ -0,0 +1,122 @@ + + + + + diff --git a/src/views/warehouse/out-material/warehouseRealtimeLocation/drawer.vue b/src/views/warehouse/out-material/warehouseRealtimeLocation/drawer.vue new file mode 100644 index 00000000..1c97c5ce --- /dev/null +++ b/src/views/warehouse/out-material/warehouseRealtimeLocation/drawer.vue @@ -0,0 +1,317 @@ + + + + + diff --git a/src/views/warehouse/out-material/warehouseRealtimeLocation/index.vue b/src/views/warehouse/out-material/warehouseRealtimeLocation/index.vue new file mode 100644 index 00000000..3767feaa --- /dev/null +++ b/src/views/warehouse/out-material/warehouseRealtimeLocation/index.vue @@ -0,0 +1,279 @@ + + + + diff --git a/src/views/warehouse/package-material/InventoryOverview/index.vue b/src/views/warehouse/package-material/InventoryOverview/index.vue new file mode 100644 index 00000000..b9ab67ff --- /dev/null +++ b/src/views/warehouse/package-material/InventoryOverview/index.vue @@ -0,0 +1,96 @@ + + + + + + diff --git a/src/views/warehouse/package-material/warehouseGoods/add-or-updata.vue b/src/views/warehouse/package-material/warehouseGoods/add-or-updata.vue new file mode 100644 index 00000000..1087257d --- /dev/null +++ b/src/views/warehouse/package-material/warehouseGoods/add-or-updata.vue @@ -0,0 +1,156 @@ + + + + diff --git a/src/views/warehouse/package-material/warehouseGoods/index.vue b/src/views/warehouse/package-material/warehouseGoods/index.vue new file mode 100644 index 00000000..a9e29277 --- /dev/null +++ b/src/views/warehouse/package-material/warehouseGoods/index.vue @@ -0,0 +1,183 @@ + + + diff --git a/src/views/warehouse/package-material/warehouseHis/index.vue b/src/views/warehouse/package-material/warehouseHis/index.vue new file mode 100644 index 00000000..bec27691 --- /dev/null +++ b/src/views/warehouse/package-material/warehouseHis/index.vue @@ -0,0 +1,192 @@ + + + + diff --git a/src/views/warehouse/package-material/warehouseLocationHis/add-or-updata.vue b/src/views/warehouse/package-material/warehouseLocationHis/add-or-updata.vue new file mode 100644 index 00000000..33b3db33 --- /dev/null +++ b/src/views/warehouse/package-material/warehouseLocationHis/add-or-updata.vue @@ -0,0 +1,82 @@ + + + + diff --git a/src/views/warehouse/package-material/warehouseLocationHis/index.vue b/src/views/warehouse/package-material/warehouseLocationHis/index.vue new file mode 100644 index 00000000..0ee669da --- /dev/null +++ b/src/views/warehouse/package-material/warehouseLocationHis/index.vue @@ -0,0 +1,223 @@ + + + + diff --git a/src/views/warehouse/package-material/warehouseLocationMonitoring/index.vue b/src/views/warehouse/package-material/warehouseLocationMonitoring/index.vue new file mode 100644 index 00000000..0de9b949 --- /dev/null +++ b/src/views/warehouse/package-material/warehouseLocationMonitoring/index.vue @@ -0,0 +1,221 @@ + + + + + + diff --git a/src/views/warehouse/package-material/warehouseRealtime/add-or-updata.vue b/src/views/warehouse/package-material/warehouseRealtime/add-or-updata.vue new file mode 100644 index 00000000..c9e942c5 --- /dev/null +++ b/src/views/warehouse/package-material/warehouseRealtime/add-or-updata.vue @@ -0,0 +1,202 @@ + + + + diff --git a/src/views/warehouse/package-material/warehouseRealtime/index.vue b/src/views/warehouse/package-material/warehouseRealtime/index.vue new file mode 100644 index 00000000..835b5920 --- /dev/null +++ b/src/views/warehouse/package-material/warehouseRealtime/index.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/src/views/warehouse/package-material/warehouseRealtime/product-mini.vue b/src/views/warehouse/package-material/warehouseRealtime/product-mini.vue new file mode 100644 index 00000000..17f086c0 --- /dev/null +++ b/src/views/warehouse/package-material/warehouseRealtime/product-mini.vue @@ -0,0 +1,71 @@ + + + + diff --git a/src/views/warehouse/package-material/warehouseRealtimeLocation/SmallTitle.vue b/src/views/warehouse/package-material/warehouseRealtimeLocation/SmallTitle.vue new file mode 100644 index 00000000..93b4a18f --- /dev/null +++ b/src/views/warehouse/package-material/warehouseRealtimeLocation/SmallTitle.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/warehouse/package-material/warehouseRealtimeLocation/add-or-updata.vue b/src/views/warehouse/package-material/warehouseRealtimeLocation/add-or-updata.vue new file mode 100644 index 00000000..8f86afdb --- /dev/null +++ b/src/views/warehouse/package-material/warehouseRealtimeLocation/add-or-updata.vue @@ -0,0 +1,93 @@ + + + + diff --git a/src/views/warehouse/package-material/warehouseRealtimeLocation/attr-add.vue b/src/views/warehouse/package-material/warehouseRealtimeLocation/attr-add.vue new file mode 100644 index 00000000..3527641c --- /dev/null +++ b/src/views/warehouse/package-material/warehouseRealtimeLocation/attr-add.vue @@ -0,0 +1,122 @@ + + + + + diff --git a/src/views/warehouse/package-material/warehouseRealtimeLocation/drawer.vue b/src/views/warehouse/package-material/warehouseRealtimeLocation/drawer.vue new file mode 100644 index 00000000..1c97c5ce --- /dev/null +++ b/src/views/warehouse/package-material/warehouseRealtimeLocation/drawer.vue @@ -0,0 +1,317 @@ + + + + + diff --git a/src/views/warehouse/package-material/warehouseRealtimeLocation/index.vue b/src/views/warehouse/package-material/warehouseRealtimeLocation/index.vue new file mode 100644 index 00000000..f7889025 --- /dev/null +++ b/src/views/warehouse/package-material/warehouseRealtimeLocation/index.vue @@ -0,0 +1,279 @@ + + + + diff --git a/src/views/warehouse/part-material/InventoryOverview/index.vue b/src/views/warehouse/part-material/InventoryOverview/index.vue new file mode 100644 index 00000000..ec1c54ab --- /dev/null +++ b/src/views/warehouse/part-material/InventoryOverview/index.vue @@ -0,0 +1,96 @@ + + + + + + diff --git a/src/views/warehouse/part-material/warehouseGoods/add-or-updata.vue b/src/views/warehouse/part-material/warehouseGoods/add-or-updata.vue new file mode 100644 index 00000000..1087257d --- /dev/null +++ b/src/views/warehouse/part-material/warehouseGoods/add-or-updata.vue @@ -0,0 +1,156 @@ + + + + diff --git a/src/views/warehouse/part-material/warehouseGoods/index.vue b/src/views/warehouse/part-material/warehouseGoods/index.vue new file mode 100644 index 00000000..742f9577 --- /dev/null +++ b/src/views/warehouse/part-material/warehouseGoods/index.vue @@ -0,0 +1,183 @@ + + + diff --git a/src/views/warehouse/part-material/warehouseHis/index.vue b/src/views/warehouse/part-material/warehouseHis/index.vue new file mode 100644 index 00000000..515b5549 --- /dev/null +++ b/src/views/warehouse/part-material/warehouseHis/index.vue @@ -0,0 +1,192 @@ + + + + diff --git a/src/views/warehouse/part-material/warehouseLocationHis/add-or-updata.vue b/src/views/warehouse/part-material/warehouseLocationHis/add-or-updata.vue new file mode 100644 index 00000000..33b3db33 --- /dev/null +++ b/src/views/warehouse/part-material/warehouseLocationHis/add-or-updata.vue @@ -0,0 +1,82 @@ + + + + diff --git a/src/views/warehouse/part-material/warehouseLocationHis/index.vue b/src/views/warehouse/part-material/warehouseLocationHis/index.vue new file mode 100644 index 00000000..a6109207 --- /dev/null +++ b/src/views/warehouse/part-material/warehouseLocationHis/index.vue @@ -0,0 +1,223 @@ + + + + diff --git a/src/views/warehouse/part-material/warehouseLocationMonitoring/index.vue b/src/views/warehouse/part-material/warehouseLocationMonitoring/index.vue new file mode 100644 index 00000000..0de9b949 --- /dev/null +++ b/src/views/warehouse/part-material/warehouseLocationMonitoring/index.vue @@ -0,0 +1,221 @@ + + + + + + diff --git a/src/views/warehouse/part-material/warehouseRealtime/add-or-updata.vue b/src/views/warehouse/part-material/warehouseRealtime/add-or-updata.vue new file mode 100644 index 00000000..e09d89fa --- /dev/null +++ b/src/views/warehouse/part-material/warehouseRealtime/add-or-updata.vue @@ -0,0 +1,202 @@ + + + + diff --git a/src/views/warehouse/part-material/warehouseRealtime/index.vue b/src/views/warehouse/part-material/warehouseRealtime/index.vue new file mode 100644 index 00000000..a68f7ff1 --- /dev/null +++ b/src/views/warehouse/part-material/warehouseRealtime/index.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/src/views/warehouse/part-material/warehouseRealtime/product-mini.vue b/src/views/warehouse/part-material/warehouseRealtime/product-mini.vue new file mode 100644 index 00000000..17f086c0 --- /dev/null +++ b/src/views/warehouse/part-material/warehouseRealtime/product-mini.vue @@ -0,0 +1,71 @@ + + + + diff --git a/src/views/warehouse/part-material/warehouseRealtimeLocation/SmallTitle.vue b/src/views/warehouse/part-material/warehouseRealtimeLocation/SmallTitle.vue new file mode 100644 index 00000000..93b4a18f --- /dev/null +++ b/src/views/warehouse/part-material/warehouseRealtimeLocation/SmallTitle.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/warehouse/part-material/warehouseRealtimeLocation/add-or-updata.vue b/src/views/warehouse/part-material/warehouseRealtimeLocation/add-or-updata.vue new file mode 100644 index 00000000..8f86afdb --- /dev/null +++ b/src/views/warehouse/part-material/warehouseRealtimeLocation/add-or-updata.vue @@ -0,0 +1,93 @@ + + + + diff --git a/src/views/warehouse/part-material/warehouseRealtimeLocation/attr-add.vue b/src/views/warehouse/part-material/warehouseRealtimeLocation/attr-add.vue new file mode 100644 index 00000000..52be28bc --- /dev/null +++ b/src/views/warehouse/part-material/warehouseRealtimeLocation/attr-add.vue @@ -0,0 +1,122 @@ + + + + + diff --git a/src/views/warehouse/part-material/warehouseRealtimeLocation/drawer.vue b/src/views/warehouse/part-material/warehouseRealtimeLocation/drawer.vue new file mode 100644 index 00000000..1c97c5ce --- /dev/null +++ b/src/views/warehouse/part-material/warehouseRealtimeLocation/drawer.vue @@ -0,0 +1,317 @@ + + + + + diff --git a/src/views/warehouse/part-material/warehouseRealtimeLocation/index.vue b/src/views/warehouse/part-material/warehouseRealtimeLocation/index.vue new file mode 100644 index 00000000..03e7c121 --- /dev/null +++ b/src/views/warehouse/part-material/warehouseRealtimeLocation/index.vue @@ -0,0 +1,279 @@ + + + + diff --git a/src/views/warehouse/raw-material/InventoryOverview/index.vue b/src/views/warehouse/raw-material/InventoryOverview/index.vue new file mode 100644 index 00000000..abe24074 --- /dev/null +++ b/src/views/warehouse/raw-material/InventoryOverview/index.vue @@ -0,0 +1,96 @@ + + + + + + diff --git a/src/views/warehouse/raw-material/warehouseGoods/add-or-updata.vue b/src/views/warehouse/raw-material/warehouseGoods/add-or-updata.vue new file mode 100644 index 00000000..1087257d --- /dev/null +++ b/src/views/warehouse/raw-material/warehouseGoods/add-or-updata.vue @@ -0,0 +1,156 @@ + + + + diff --git a/src/views/warehouse/raw-material/warehouseGoods/index.vue b/src/views/warehouse/raw-material/warehouseGoods/index.vue new file mode 100644 index 00000000..e2fddd20 --- /dev/null +++ b/src/views/warehouse/raw-material/warehouseGoods/index.vue @@ -0,0 +1,183 @@ + + + diff --git a/src/views/warehouse/raw-material/warehouseHis/index.vue b/src/views/warehouse/raw-material/warehouseHis/index.vue new file mode 100644 index 00000000..3246c664 --- /dev/null +++ b/src/views/warehouse/raw-material/warehouseHis/index.vue @@ -0,0 +1,192 @@ + + + + diff --git a/src/views/warehouse/raw-material/warehouseLocationHis/add-or-updata.vue b/src/views/warehouse/raw-material/warehouseLocationHis/add-or-updata.vue new file mode 100644 index 00000000..33b3db33 --- /dev/null +++ b/src/views/warehouse/raw-material/warehouseLocationHis/add-or-updata.vue @@ -0,0 +1,82 @@ + + + + diff --git a/src/views/warehouse/raw-material/warehouseLocationHis/index.vue b/src/views/warehouse/raw-material/warehouseLocationHis/index.vue new file mode 100644 index 00000000..f3e792ad --- /dev/null +++ b/src/views/warehouse/raw-material/warehouseLocationHis/index.vue @@ -0,0 +1,223 @@ + + + + diff --git a/src/views/warehouse/raw-material/warehouseLocationMonitoring/index.vue b/src/views/warehouse/raw-material/warehouseLocationMonitoring/index.vue new file mode 100644 index 00000000..0de9b949 --- /dev/null +++ b/src/views/warehouse/raw-material/warehouseLocationMonitoring/index.vue @@ -0,0 +1,221 @@ + + + + + + diff --git a/src/views/warehouse/raw-material/warehouseRealtime/add-or-updata.vue b/src/views/warehouse/raw-material/warehouseRealtime/add-or-updata.vue new file mode 100644 index 00000000..4d51b982 --- /dev/null +++ b/src/views/warehouse/raw-material/warehouseRealtime/add-or-updata.vue @@ -0,0 +1,202 @@ + + + + diff --git a/src/views/warehouse/raw-material/warehouseRealtime/index.vue b/src/views/warehouse/raw-material/warehouseRealtime/index.vue new file mode 100644 index 00000000..a82458bd --- /dev/null +++ b/src/views/warehouse/raw-material/warehouseRealtime/index.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/src/views/warehouse/raw-material/warehouseRealtime/product-mini.vue b/src/views/warehouse/raw-material/warehouseRealtime/product-mini.vue new file mode 100644 index 00000000..17f086c0 --- /dev/null +++ b/src/views/warehouse/raw-material/warehouseRealtime/product-mini.vue @@ -0,0 +1,71 @@ + + + + diff --git a/src/views/warehouse/raw-material/warehouseRealtimeLocation/SmallTitle.vue b/src/views/warehouse/raw-material/warehouseRealtimeLocation/SmallTitle.vue new file mode 100644 index 00000000..93b4a18f --- /dev/null +++ b/src/views/warehouse/raw-material/warehouseRealtimeLocation/SmallTitle.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/warehouse/raw-material/warehouseRealtimeLocation/add-or-updata.vue b/src/views/warehouse/raw-material/warehouseRealtimeLocation/add-or-updata.vue new file mode 100644 index 00000000..8f86afdb --- /dev/null +++ b/src/views/warehouse/raw-material/warehouseRealtimeLocation/add-or-updata.vue @@ -0,0 +1,93 @@ + + + + diff --git a/src/views/warehouse/raw-material/warehouseRealtimeLocation/attr-add.vue b/src/views/warehouse/raw-material/warehouseRealtimeLocation/attr-add.vue new file mode 100644 index 00000000..aed740e3 --- /dev/null +++ b/src/views/warehouse/raw-material/warehouseRealtimeLocation/attr-add.vue @@ -0,0 +1,122 @@ + + + + + diff --git a/src/views/warehouse/raw-material/warehouseRealtimeLocation/drawer.vue b/src/views/warehouse/raw-material/warehouseRealtimeLocation/drawer.vue new file mode 100644 index 00000000..1c97c5ce --- /dev/null +++ b/src/views/warehouse/raw-material/warehouseRealtimeLocation/drawer.vue @@ -0,0 +1,317 @@ + + + + + diff --git a/src/views/warehouse/raw-material/warehouseRealtimeLocation/index.vue b/src/views/warehouse/raw-material/warehouseRealtimeLocation/index.vue new file mode 100644 index 00000000..2403fcd0 --- /dev/null +++ b/src/views/warehouse/raw-material/warehouseRealtimeLocation/index.vue @@ -0,0 +1,279 @@ + + + + diff --git a/src/views/warehouse/shengchen/warehouse/index.vue b/src/views/warehouse/shengchen/warehouse/index.vue new file mode 100644 index 00000000..a2d4c604 --- /dev/null +++ b/src/views/warehouse/shengchen/warehouse/index.vue @@ -0,0 +1,272 @@ + + + + + diff --git a/src/views/warehouse/shengchen/warehouse/warehouse.js b/src/views/warehouse/shengchen/warehouse/warehouse.js new file mode 100644 index 00000000..df972c79 --- /dev/null +++ b/src/views/warehouse/shengchen/warehouse/warehouse.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建仓库 +export function createWarehouse(data) { + return request({ + url: '/extend/warehouse/create', + method: 'post', + data: data + }) +} + +// 更新仓库 +export function updateWarehouse(data) { + return request({ + url: '/extend/warehouse/update', + method: 'put', + data: data + }) +} + +// 删除仓库 +export function deleteWarehouse(id) { + return request({ + url: '/extend/warehouse/delete?id=' + id, + method: 'delete' + }) +} + +// 获得仓库 +export function getWarehouse(id) { + return request({ + url: '/extend/warehouse/get?id=' + id, + method: 'get' + }) +} + +// 获得仓库分页 +export function getWarehousePage(query) { + return request({ + url: '/extend/warehouse/page', + method: 'get', + params: query + }) +} + +// 导出仓库 Excel +export function exportWarehouseExcel(query) { + return request({ + url: '/extend/warehouse/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/warehouse/shengchen/warehouseGoods/index.vue b/src/views/warehouse/shengchen/warehouseGoods/index.vue new file mode 100644 index 00000000..988e228b --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseGoods/index.vue @@ -0,0 +1,297 @@ + + + + + diff --git a/src/views/warehouse/shengchen/warehouseGoods/warehouseGoods.js b/src/views/warehouse/shengchen/warehouseGoods/warehouseGoods.js new file mode 100644 index 00000000..ae818ba9 --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseGoods/warehouseGoods.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建物品 +export function createWarehouseGoods(data) { + return request({ + url: '/extend/warehouse-goods/create', + method: 'post', + data: data + }) +} + +// 更新物品 +export function updateWarehouseGoods(data) { + return request({ + url: '/extend/warehouse-goods/update', + method: 'put', + data: data + }) +} + +// 删除物品 +export function deleteWarehouseGoods(id) { + return request({ + url: '/extend/warehouse-goods/delete?id=' + id, + method: 'delete' + }) +} + +// 获得物品 +export function getWarehouseGoods(id) { + return request({ + url: '/extend/warehouse-goods/get?id=' + id, + method: 'get' + }) +} + +// 获得物品分页 +export function getWarehouseGoodsPage(query) { + return request({ + url: '/extend/warehouse-goods/page', + method: 'get', + params: query + }) +} + +// 导出物品 Excel +export function exportWarehouseGoodsExcel(query) { + return request({ + url: '/extend/warehouse-goods/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/warehouse/shengchen/warehouseHis/index.vue b/src/views/warehouse/shengchen/warehouseHis/index.vue new file mode 100644 index 00000000..9dcbcd50 --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseHis/index.vue @@ -0,0 +1,310 @@ + + + + + diff --git a/src/views/warehouse/shengchen/warehouseHis/warehouseHis.js b/src/views/warehouse/shengchen/warehouseHis/warehouseHis.js new file mode 100644 index 00000000..0673267a --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseHis/warehouseHis.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建出入库历史(无库位) +export function createWarehouseHis(data) { + return request({ + url: '/extend/warehouse-his/create', + method: 'post', + data: data + }) +} + +// 更新出入库历史(无库位) +export function updateWarehouseHis(data) { + return request({ + url: '/extend/warehouse-his/update', + method: 'put', + data: data + }) +} + +// 删除出入库历史(无库位) +export function deleteWarehouseHis(id) { + return request({ + url: '/extend/warehouse-his/delete?id=' + id, + method: 'delete' + }) +} + +// 获得出入库历史(无库位) +export function getWarehouseHis(id) { + return request({ + url: '/extend/warehouse-his/get?id=' + id, + method: 'get' + }) +} + +// 获得出入库历史(无库位)分页 +export function getWarehouseHisPage(query) { + return request({ + url: '/extend/warehouse-his/page', + method: 'get', + params: query + }) +} + +// 导出出入库历史(无库位) Excel +export function exportWarehouseHisExcel(query) { + return request({ + url: '/extend/warehouse-his/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/warehouse/shengchen/warehouseLocation/index.vue b/src/views/warehouse/shengchen/warehouseLocation/index.vue new file mode 100644 index 00000000..ab532720 --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseLocation/index.vue @@ -0,0 +1,309 @@ + + + + + diff --git a/src/views/warehouse/shengchen/warehouseLocation/warehouseLocation.js b/src/views/warehouse/shengchen/warehouseLocation/warehouseLocation.js new file mode 100644 index 00000000..828842f8 --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseLocation/warehouseLocation.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建库位 +export function createWarehouseLocation(data) { + return request({ + url: '/extend/warehouse-location/create', + method: 'post', + data: data + }) +} + +// 更新库位 +export function updateWarehouseLocation(data) { + return request({ + url: '/extend/warehouse-location/update', + method: 'put', + data: data + }) +} + +// 删除库位 +export function deleteWarehouseLocation(id) { + return request({ + url: '/extend/warehouse-location/delete?id=' + id, + method: 'delete' + }) +} + +// 获得库位 +export function getWarehouseLocation(id) { + return request({ + url: '/extend/warehouse-location/get?id=' + id, + method: 'get' + }) +} + +// 获得库位分页 +export function getWarehouseLocationPage(query) { + return request({ + url: '/extend/warehouse-location/page', + method: 'get', + params: query + }) +} + +// 导出库位 Excel +export function exportWarehouseLocationExcel(query) { + return request({ + url: '/extend/warehouse-location/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/warehouse/shengchen/warehouseLocationHis/index.vue b/src/views/warehouse/shengchen/warehouseLocationHis/index.vue new file mode 100644 index 00000000..b2c5cdf7 --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseLocationHis/index.vue @@ -0,0 +1,260 @@ + + + + + diff --git a/src/views/warehouse/shengchen/warehouseLocationHis/warehouseLocationHis.js b/src/views/warehouse/shengchen/warehouseLocationHis/warehouseLocationHis.js new file mode 100644 index 00000000..76818dc1 --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseLocationHis/warehouseLocationHis.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建出入库历史(有库位) +export function createWarehouseLocationHis(data) { + return request({ + url: '/extend/warehouse-location-his/create', + method: 'post', + data: data + }) +} + +// 更新出入库历史(有库位) +export function updateWarehouseLocationHis(data) { + return request({ + url: '/extend/warehouse-location-his/update', + method: 'put', + data: data + }) +} + +// 删除出入库历史(有库位) +export function deleteWarehouseLocationHis(id) { + return request({ + url: '/extend/warehouse-location-his/delete?id=' + id, + method: 'delete' + }) +} + +// 获得出入库历史(有库位) +export function getWarehouseLocationHis(id) { + return request({ + url: '/extend/warehouse-location-his/get?id=' + id, + method: 'get' + }) +} + +// 获得出入库历史(有库位)分页 +export function getWarehouseLocationHisPage(query) { + return request({ + url: '/extend/warehouse-location-his/page', + method: 'get', + params: query + }) +} + +// 导出出入库历史(有库位) Excel +export function exportWarehouseLocationHisExcel(query) { + return request({ + url: '/extend/warehouse-location-his/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/warehouse/shengchen/warehouseLocationHisDet/index.vue b/src/views/warehouse/shengchen/warehouseLocationHisDet/index.vue new file mode 100644 index 00000000..9ac5c413 --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseLocationHisDet/index.vue @@ -0,0 +1,255 @@ + + + + + diff --git a/src/views/warehouse/shengchen/warehouseLocationHisDet/warehouseLocationHisDet.js b/src/views/warehouse/shengchen/warehouseLocationHisDet/warehouseLocationHisDet.js new file mode 100644 index 00000000..9879e152 --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseLocationHisDet/warehouseLocationHisDet.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建出入库历史(有库位)详情 +export function createWarehouseLocationHisDet(data) { + return request({ + url: '/extend/warehouse-location-his-det/create', + method: 'post', + data: data + }) +} + +// 更新出入库历史(有库位)详情 +export function updateWarehouseLocationHisDet(data) { + return request({ + url: '/extend/warehouse-location-his-det/update', + method: 'put', + data: data + }) +} + +// 删除出入库历史(有库位)详情 +export function deleteWarehouseLocationHisDet(id) { + return request({ + url: '/extend/warehouse-location-his-det/delete?id=' + id, + method: 'delete' + }) +} + +// 获得出入库历史(有库位)详情 +export function getWarehouseLocationHisDet(id) { + return request({ + url: '/extend/warehouse-location-his-det/get?id=' + id, + method: 'get' + }) +} + +// 获得出入库历史(有库位)详情分页 +export function getWarehouseLocationHisDetPage(query) { + return request({ + url: '/extend/warehouse-location-his-det/page', + method: 'get', + params: query + }) +} + +// 导出出入库历史(有库位)详情 Excel +export function exportWarehouseLocationHisDetExcel(query) { + return request({ + url: '/extend/warehouse-location-his-det/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/warehouse/shengchen/warehouseRealtime/index.vue b/src/views/warehouse/shengchen/warehouseRealtime/index.vue new file mode 100644 index 00000000..4fc2f1ea --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseRealtime/index.vue @@ -0,0 +1,297 @@ + + + + + diff --git a/src/views/warehouse/shengchen/warehouseRealtime/warehouseRealtime.js b/src/views/warehouse/shengchen/warehouseRealtime/warehouseRealtime.js new file mode 100644 index 00000000..656b9da6 --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseRealtime/warehouseRealtime.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建出入库-无库位 +export function createWarehouseRealtime(data) { + return request({ + url: '/extend/warehouse-realtime/create', + method: 'post', + data: data + }) +} + +// 更新出入库-无库位 +export function updateWarehouseRealtime(data) { + return request({ + url: '/extend/warehouse-realtime/update', + method: 'put', + data: data + }) +} + +// 删除出入库-无库位 +export function deleteWarehouseRealtime(id) { + return request({ + url: '/extend/warehouse-realtime/delete?id=' + id, + method: 'delete' + }) +} + +// 获得出入库-无库位 +export function getWarehouseRealtime(id) { + return request({ + url: '/extend/warehouse-realtime/get?id=' + id, + method: 'get' + }) +} + +// 获得出入库-无库位分页 +export function getWarehouseRealtimePage(query) { + return request({ + url: '/extend/warehouse-realtime/page', + method: 'get', + params: query + }) +} + +// 导出出入库-无库位 Excel +export function exportWarehouseRealtimeExcel(query) { + return request({ + url: '/extend/warehouse-realtime/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/warehouse/shengchen/warehouseRealtimeDet/index.vue b/src/views/warehouse/shengchen/warehouseRealtimeDet/index.vue new file mode 100644 index 00000000..a0e976fa --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseRealtimeDet/index.vue @@ -0,0 +1,256 @@ + + + + + diff --git a/src/views/warehouse/shengchen/warehouseRealtimeDet/warehouseRealtimeDet.js b/src/views/warehouse/shengchen/warehouseRealtimeDet/warehouseRealtimeDet.js new file mode 100644 index 00000000..10e9aedc --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseRealtimeDet/warehouseRealtimeDet.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建出入库(无库位)详情 +export function createWarehouseRealtimeDet(data) { + return request({ + url: '/extend/warehouse-realtime-det/create', + method: 'post', + data: data + }) +} + +// 更新出入库(无库位)详情 +export function updateWarehouseRealtimeDet(data) { + return request({ + url: '/extend/warehouse-realtime-det/update', + method: 'put', + data: data + }) +} + +// 删除出入库(无库位)详情 +export function deleteWarehouseRealtimeDet(id) { + return request({ + url: '/extend/warehouse-realtime-det/delete?id=' + id, + method: 'delete' + }) +} + +// 获得出入库(无库位)详情 +export function getWarehouseRealtimeDet(id) { + return request({ + url: '/extend/warehouse-realtime-det/get?id=' + id, + method: 'get' + }) +} + +// 获得出入库(无库位)详情分页 +export function getWarehouseRealtimeDetPage(query) { + return request({ + url: '/extend/warehouse-realtime-det/page', + method: 'get', + params: query + }) +} + +// 导出出入库(无库位)详情 Excel +export function exportWarehouseRealtimeDetExcel(query) { + return request({ + url: '/extend/warehouse-realtime-det/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/warehouse/shengchen/warehouseRealtimeLocation/index.vue b/src/views/warehouse/shengchen/warehouseRealtimeLocation/index.vue new file mode 100644 index 00000000..e6504aa1 --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseRealtimeLocation/index.vue @@ -0,0 +1,274 @@ + + + + + diff --git a/src/views/warehouse/shengchen/warehouseRealtimeLocation/warehouseRealtimeLocation.js b/src/views/warehouse/shengchen/warehouseRealtimeLocation/warehouseRealtimeLocation.js new file mode 100644 index 00000000..922b704c --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseRealtimeLocation/warehouseRealtimeLocation.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建出入库-有库位 +export function createWarehouseRealtimeLocation(data) { + return request({ + url: '/extend/warehouse-realtime-location/create', + method: 'post', + data: data + }) +} + +// 更新出入库-有库位 +export function updateWarehouseRealtimeLocation(data) { + return request({ + url: '/extend/warehouse-realtime-location/update', + method: 'put', + data: data + }) +} + +// 删除出入库-有库位 +export function deleteWarehouseRealtimeLocation(id) { + return request({ + url: '/extend/warehouse-realtime-location/delete?id=' + id, + method: 'delete' + }) +} + +// 获得出入库-有库位 +export function getWarehouseRealtimeLocation(id) { + return request({ + url: '/extend/warehouse-realtime-location/get?id=' + id, + method: 'get' + }) +} + +// 获得出入库-有库位分页 +export function getWarehouseRealtimeLocationPage(query) { + return request({ + url: '/extend/warehouse-realtime-location/page', + method: 'get', + params: query + }) +} + +// 导出出入库-有库位 Excel +export function exportWarehouseRealtimeLocationExcel(query) { + return request({ + url: '/extend/warehouse-realtime-location/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/warehouse/shengchen/warehouseRealtimeLocationDet/index.vue b/src/views/warehouse/shengchen/warehouseRealtimeLocationDet/index.vue new file mode 100644 index 00000000..e747ca55 --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseRealtimeLocationDet/index.vue @@ -0,0 +1,274 @@ + + + + + diff --git a/src/views/warehouse/shengchen/warehouseRealtimeLocationDet/warehouseRealtimeLocationDet.js b/src/views/warehouse/shengchen/warehouseRealtimeLocationDet/warehouseRealtimeLocationDet.js new file mode 100644 index 00000000..823c0685 --- /dev/null +++ b/src/views/warehouse/shengchen/warehouseRealtimeLocationDet/warehouseRealtimeLocationDet.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建出入库(有库位)详情 +export function createWarehouseRealtimeLocationDet(data) { + return request({ + url: '/extend/warehouse-realtime-location-det/create', + method: 'post', + data: data + }) +} + +// 更新出入库(有库位)详情 +export function updateWarehouseRealtimeLocationDet(data) { + return request({ + url: '/extend/warehouse-realtime-location-det/update', + method: 'put', + data: data + }) +} + +// 删除出入库(有库位)详情 +export function deleteWarehouseRealtimeLocationDet(id) { + return request({ + url: '/extend/warehouse-realtime-location-det/delete?id=' + id, + method: 'delete' + }) +} + +// 获得出入库(有库位)详情 +export function getWarehouseRealtimeLocationDet(id) { + return request({ + url: '/extend/warehouse-realtime-location-det/get?id=' + id, + method: 'get' + }) +} + +// 获得出入库(有库位)详情分页 +export function getWarehouseRealtimeLocationDetPage(query) { + return request({ + url: '/extend/warehouse-realtime-location-det/page', + method: 'get', + params: query + }) +} + +// 导出出入库(有库位)详情 Excel +export function exportWarehouseRealtimeLocationDetExcel(query) { + return request({ + url: '/extend/warehouse-realtime-location-det/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/warehouse/warehouse-info/add-or-updata.vue b/src/views/warehouse/warehouse-info/add-or-updata.vue new file mode 100644 index 00000000..b4625772 --- /dev/null +++ b/src/views/warehouse/warehouse-info/add-or-updata.vue @@ -0,0 +1,199 @@ + + + + diff --git a/src/views/warehouse/warehouse-info/add-or-updata1.vue b/src/views/warehouse/warehouse-info/add-or-updata1.vue new file mode 100644 index 00000000..6e55353d --- /dev/null +++ b/src/views/warehouse/warehouse-info/add-or-updata1.vue @@ -0,0 +1,127 @@ + + + + diff --git a/src/views/warehouse/warehouse-info/index.vue b/src/views/warehouse/warehouse-info/index.vue new file mode 100644 index 00000000..b6746774 --- /dev/null +++ b/src/views/warehouse/warehouse-info/index.vue @@ -0,0 +1,407 @@ + + + + + From 0ae3c66dc39c664c80923e04e25544f5285bdf02 Mon Sep 17 00:00:00 2001 From: helloDy <1615073571@qq.com> Date: Mon, 6 Nov 2023 12:54:28 +0800 Subject: [PATCH 04/11] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E6=A0=B8=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 6 +- src/api/base/coreAlarmLog.js | 60 +++ src/api/base/coreProduct.js | 111 +++++ src/api/base/coreProductionLine.js | 68 +++ src/api/base/coreWorkOrder.js | 111 +++++ src/api/base/coreWorkshopSection.js | 68 +++ src/api/core/base/factory.js | 30 +- src/assets/icons/svg/table_add.svg | 19 + src/views/base/coreAlarmLog/index.vue | 182 ++++++++ src/views/base/coreProduct/SmallTitle.vue | 65 +++ src/views/base/coreProduct/add-or-updata.vue | 417 ++++++++++++++++++ src/views/base/coreProduct/attr-add.vue | 141 ++++++ src/views/base/coreProduct/index.vue | 186 ++++++++ .../base/coreProductionLine/add-or-updata.vue | 114 +++++ src/views/base/coreProductionLine/index.vue | 177 ++++++++ src/views/base/coreWorkOrder/SmallTitle.vue | 65 +++ .../base/coreWorkOrder/add-or-updata copy.vue | 416 +++++++++++++++++ .../base/coreWorkOrder/add-or-updata.vue | 304 +++++++++++++ src/views/base/coreWorkOrder/addWorkOrder.vue | 300 +++++++++++++ src/views/base/coreWorkOrder/attr-add.vue | 211 +++++++++ src/views/base/coreWorkOrder/index.vue | 265 +++++++++++ .../coreWorkshopSection/add-or-updata.vue | 103 +++++ src/views/base/coreWorkshopSection/index.vue | 172 ++++++++ src/views/core/base/factory/add-or-updata.vue | 18 +- src/views/core/base/factory/index.vue | 41 +- 25 files changed, 3610 insertions(+), 40 deletions(-) create mode 100644 src/api/base/coreAlarmLog.js create mode 100644 src/api/base/coreProduct.js create mode 100644 src/api/base/coreProductionLine.js create mode 100644 src/api/base/coreWorkOrder.js create mode 100644 src/api/base/coreWorkshopSection.js create mode 100644 src/assets/icons/svg/table_add.svg create mode 100644 src/views/base/coreAlarmLog/index.vue create mode 100644 src/views/base/coreProduct/SmallTitle.vue create mode 100644 src/views/base/coreProduct/add-or-updata.vue create mode 100644 src/views/base/coreProduct/attr-add.vue create mode 100644 src/views/base/coreProduct/index.vue create mode 100644 src/views/base/coreProductionLine/add-or-updata.vue create mode 100644 src/views/base/coreProductionLine/index.vue create mode 100644 src/views/base/coreWorkOrder/SmallTitle.vue create mode 100644 src/views/base/coreWorkOrder/add-or-updata copy.vue create mode 100644 src/views/base/coreWorkOrder/add-or-updata.vue create mode 100644 src/views/base/coreWorkOrder/addWorkOrder.vue create mode 100644 src/views/base/coreWorkOrder/attr-add.vue create mode 100644 src/views/base/coreWorkOrder/index.vue create mode 100644 src/views/base/coreWorkshopSection/add-or-updata.vue create mode 100644 src/views/base/coreWorkshopSection/index.vue diff --git a/.env.dev b/.env.dev index d3895be3..6b39c881 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2023-11-03 11:16:12 + # @LastEditTime: 2023-11-06 09:08:54 # @LastEditors: DY # @Description: ### @@ -13,11 +13,11 @@ VUE_APP_TITLE = MES系统 # 芋道管理系统/开发环境 # VUE_APP_BASE_API = 'http://100.64.0.26:48082' -VUE_APP_BASE_API = 'http://192.168.0.33:48082' +# VUE_APP_BASE_API = 'http://192.168.0.33:48082' # VUE_APP_BASE_API = 'http://192.168.2.173:48080' # VUE_APP_BASE_API = 'http://192.168.1.49:48080' # VUE_APP_BASE_API = 'http://192.168.1.8:48080' -# VUE_APP_BASE_API = 'http://192.168.1.56:48080' +VUE_APP_BASE_API = 'http://192.168.1.56:48080' # VUE_APP_BASE_API = 'http://192.168.1.188:48080' # VUE_APP_BASE_API = 'http://192.168.2.159:48080' diff --git a/src/api/base/coreAlarmLog.js b/src/api/base/coreAlarmLog.js new file mode 100644 index 00000000..c92b30c5 --- /dev/null +++ b/src/api/base/coreAlarmLog.js @@ -0,0 +1,60 @@ +/* + * @Author: Do not edit + * @Date: 2023-10-21 11:50:46 + * @LastEditTime: 2023-11-03 15:25:55 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 创建异常警告 +export function createcoreAlarmLog(data) { + return request({ + url: '/base/core-alarm-log/create', + method: 'post', + data: data + }) +} + +// 更新异常警告 +export function updatecoreAlarmLog(data) { + return request({ + url: '/base/core-alarm-log/update', + method: 'put', + data: data + }) +} + +// 删除异常警告 +export function deletecoreAlarmLog(id) { + return request({ + url: '/base/core-alarm-log/delete?id=' + id, + method: 'delete' + }) +} + +// 获得异常警告 +export function getcoreAlarmLog(id) { + return request({ + url: '/base/core-alarm-log/get?id=' + id, + method: 'get' + }) +} + +// 获得警告分页 +export function getcoreAlarmLogPage(query) { + return request({ + url: '/base/core-alarm-log/page', + method: 'get', + params: query + }) +} + +// 获得所有列表 +export function getcoreAlarmLogList(query) { + return request({ + url: '/base/core-alarm-log/list', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/base/coreProduct.js b/src/api/base/coreProduct.js new file mode 100644 index 00000000..476a60b5 --- /dev/null +++ b/src/api/base/coreProduct.js @@ -0,0 +1,111 @@ +/* + * @Author: Do not edit + * @Date: 2023-10-21 11:50:46 + * @LastEditTime: 2023-11-04 10:42:50 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 创建产品 +export function createCoreProduct(data) { + return request({ + url: '/base/core-product/create', + method: 'post', + data: data + }) +} + +// 更新产品 +export function updateCoreProduct(data) { + return request({ + url: '/base/core-product/update', + method: 'put', + data: data + }) +} + +// 删除产品 +export function deleteCoreProduct(id) { + return request({ + url: '/base/core-product/delete?id=' + id, + method: 'delete' + }) +} + +// 获得产品 +export function getCoreProduct(id) { + return request({ + url: '/base/core-product/get?id=' + id, + method: 'get' + }) +} + +// 获得产品code +export function getCode() { + return request({ + url: '/base/core-product/getCode', + method: 'get' + }) +} + +// 获得产品分页 +export function getCoreProductPage(query) { + return request({ + url: '/base/core-product/page', + method: 'get', + params: query + }) +} + +// 获得所有列表 +export function getCoreProductList(query) { + return request({ + url: '/base/core-product/listAll', + method: 'get', + params: query + }) +} + +// 创建产品属性 +export function createCoreProductAttr(data) { + return request({ + url: '/base/core-product-attr/create', + method: 'post', + data: data + }) +} + +// 更新产品属性 +export function updateCoreProductAttr(data) { + return request({ + url: '/base/core-product-attr/update', + method: 'put', + data: data + }) +} + +// 删除产品属性 +export function deleteCoreProductAttr(id) { + return request({ + url: '/base/core-product-attr/delete?id=' + id, + method: 'delete' + }) +} + +// 获得产品属性 +export function getCoreProductAttr(id) { + return request({ + url: '/base/core-product-attr/get?id=' + id, + method: 'get' + }) +} + +// 获得产品属性分页 +export function getCoreProductAttrPage(query) { + return request({ + url: '/base/core-product-attr/page', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/base/coreProductionLine.js b/src/api/base/coreProductionLine.js new file mode 100644 index 00000000..f3e76b7d --- /dev/null +++ b/src/api/base/coreProductionLine.js @@ -0,0 +1,68 @@ +/* + * @Author: Do not edit + * @Date: 2023-10-21 11:50:46 + * @LastEditTime: 2023-11-03 19:06:15 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 创建产线 +export function createCorePL(data) { + return request({ + url: '/base/core-production-line/create', + method: 'post', + data: data + }) +} + +// 更新产线 +export function updateCorePL(data) { + return request({ + url: '/base/core-production-line/update', + method: 'put', + data: data + }) +} + +// 删除产线 +export function deleteCorePL(id) { + return request({ + url: '/base/core-production-line/delete?id=' + id, + method: 'delete' + }) +} + +// 获得产线 +export function getCorePL(id) { + return request({ + url: '/base/core-production-line/get?id=' + id, + method: 'get' + }) +} + +// 获得产线code +export function getCode() { + return request({ + url: '/base/core-production-line/getCode', + method: 'get' + }) +} + +// 获得产线分页 +export function getCorePLPage(query) { + return request({ + url: '/base/core-production-line/page', + method: 'get', + params: query + }) +} + +// 获得所有列表 +export function getCorePLList(query) { + return request({ + url: '/base/core-production-line/listAll', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/base/coreWorkOrder.js b/src/api/base/coreWorkOrder.js new file mode 100644 index 00000000..814a7bff --- /dev/null +++ b/src/api/base/coreWorkOrder.js @@ -0,0 +1,111 @@ +/* + * @Author: Do not edit + * @Date: 2023-10-21 11:50:46 + * @LastEditTime: 2023-11-06 10:50:57 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 创建工单 +export function createCoreWO(data) { + return request({ + url: '/base/core-work-order/create', + method: 'post', + data: data + }) +} + +// 更新工单 +export function updateCoreWO(data) { + return request({ + url: '/base/core-work-order/update', + method: 'put', + data: data + }) +} + +// 删除工单 +export function deleteCoreWO(id) { + return request({ + url: '/base/core-work-order/delete?id=' + id, + method: 'delete' + }) +} + +// 获得工单 +export function getCoreWO(id) { + return request({ + url: '/base/core-work-order/get?id=' + id, + method: 'get' + }) +} + +// 获得工单code +export function getCode() { + return request({ + url: '/base/core-work-order/getCode', + method: 'get' + }) +} + +// 获得工单分页 +export function getCoreWOPage(query) { + return request({ + url: '/base/core-work-order/page', + method: 'get', + params: query + }) +} + +// 获得所有列表 +export function getCoreWOList(query) { + return request({ + url: '/base/core-work-order/listbyfilter', + method: 'get', + params: query + }) +} + +// 创建工单预使用原料 +export function createCoreWOMa(data) { + return request({ + url: '/base/core-work-order-material/create', + method: 'post', + data: data + }) +} + +// 更新工单预使用原料 +export function updateCoreWOMa(data) { + return request({ + url: '/base/core-work-order-material/update', + method: 'put', + data: data + }) +} + +// 删除工单预使用原料 +export function deleteCoreWOMa(id) { + return request({ + url: '/base/core-work-order-material/delete?id=' + id, + method: 'delete' + }) +} + +// 获得工单预使用原料 +export function getCoreWOMa(id) { + return request({ + url: '/base/core-work-order-material/get?id=' + id, + method: 'get' + }) +} + +// 获得工单预使用原料分页 +export function getCoreWOMaPage(query) { + return request({ + url: '/base/core-work-order-material/page', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/base/coreWorkshopSection.js b/src/api/base/coreWorkshopSection.js new file mode 100644 index 00000000..9ae8e3ea --- /dev/null +++ b/src/api/base/coreWorkshopSection.js @@ -0,0 +1,68 @@ +/* + * @Author: Do not edit + * @Date: 2023-10-21 11:50:46 + * @LastEditTime: 2023-11-03 19:18:00 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 创建工段 +export function createCWSection(data) { + return request({ + url: '/base/core-workshop-section/create', + method: 'post', + data: data + }) +} + +// 更新工段 +export function updateCWSection(data) { + return request({ + url: '/base/core-workshop-section/update', + method: 'put', + data: data + }) +} + +// 删除工段 +export function deleteCWSection(id) { + return request({ + url: '/base/core-workshop-section/delete?id=' + id, + method: 'delete' + }) +} + +// 获得工段 +export function getCWSection(id) { + return request({ + url: '/base/core-workshop-section/get?id=' + id, + method: 'get' + }) +} + +// 获得工段code +export function getCode() { + return request({ + url: '/base/core-workshop-section/getCode', + method: 'get' + }) +} + +// 获得工段分页 +export function getCWSectionPage(query) { + return request({ + url: '/base/core-workshop-section/page', + method: 'get', + params: query + }) +} + +// 获得所有列表 +export function getCWSectionList(query) { + return request({ + url: '/base/core-workshop-section/listAll', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/core/base/factory.js b/src/api/core/base/factory.js index 8731bb57..42189799 100644 --- a/src/api/core/base/factory.js +++ b/src/api/core/base/factory.js @@ -1,9 +1,16 @@ +/* + * @Author: Do not edit + * @Date: 2023-10-21 10:11:01 + * @LastEditTime: 2023-11-03 19:03:44 + * @LastEditors: DY + * @Description: + */ import request from '@/utils/request' // 创建工厂 export function createFactory(data) { return request({ - url: '/base/factory/create', + url: '/base/core-factory/create', method: 'post', data: data }) @@ -12,7 +19,7 @@ export function createFactory(data) { // 更新工厂 export function updateFactory(data) { return request({ - url: '/base/factory/update', + url: '/base/core-factory/update', method: 'put', data: data }) @@ -21,7 +28,7 @@ export function updateFactory(data) { // 删除工厂 export function deleteFactory(id) { return request({ - url: '/base/factory/delete?id=' + id, + url: '/base/core-factory/delete?id=' + id, method: 'delete' }) } @@ -29,21 +36,30 @@ export function deleteFactory(id) { // 获得工厂 export function getFactory(id) { return request({ - url: '/base/factory/get?id=' + id, + url: '/base/core-factory/get?id=' + id, method: 'get' }) } // 获得工厂code export function getCode() { return request({ - url: '/base/factory/getCode', + url: '/base/core-factory/getCode', method: 'get' }) } // 获得工厂分页 export function getFactoryPage(query) { return request({ - url: '/base/factory/page', + url: '/base/core-factory/page', + method: 'get', + params: query + }) +} + +// 获得所有列表 +export function getFactoryList(query) { + return request({ + url: '/base/core-factory/listAll', method: 'get', params: query }) @@ -52,7 +68,7 @@ export function getFactoryPage(query) { // 导出工厂 Excel export function exportFactoryExcel(query) { return request({ - url: '/base/factory/export-excel', + url: '/base/core-factory/export-excel', method: 'get', params: query, responseType: 'blob' diff --git a/src/assets/icons/svg/table_add.svg b/src/assets/icons/svg/table_add.svg new file mode 100644 index 00000000..812dde4b --- /dev/null +++ b/src/assets/icons/svg/table_add.svg @@ -0,0 +1,19 @@ + + + + Created with Sketch. + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/base/coreAlarmLog/index.vue b/src/views/base/coreAlarmLog/index.vue new file mode 100644 index 00000000..731bb4ab --- /dev/null +++ b/src/views/base/coreAlarmLog/index.vue @@ -0,0 +1,182 @@ + + + diff --git a/src/views/base/coreProduct/SmallTitle.vue b/src/views/base/coreProduct/SmallTitle.vue new file mode 100644 index 00000000..93b4a18f --- /dev/null +++ b/src/views/base/coreProduct/SmallTitle.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/base/coreProduct/add-or-updata.vue b/src/views/base/coreProduct/add-or-updata.vue new file mode 100644 index 00000000..d95df6d0 --- /dev/null +++ b/src/views/base/coreProduct/add-or-updata.vue @@ -0,0 +1,417 @@ + + + + + diff --git a/src/views/base/coreProduct/attr-add.vue b/src/views/base/coreProduct/attr-add.vue new file mode 100644 index 00000000..87285750 --- /dev/null +++ b/src/views/base/coreProduct/attr-add.vue @@ -0,0 +1,141 @@ + + + + + diff --git a/src/views/base/coreProduct/index.vue b/src/views/base/coreProduct/index.vue new file mode 100644 index 00000000..97f1a642 --- /dev/null +++ b/src/views/base/coreProduct/index.vue @@ -0,0 +1,186 @@ + + + diff --git a/src/views/base/coreProductionLine/add-or-updata.vue b/src/views/base/coreProductionLine/add-or-updata.vue new file mode 100644 index 00000000..6b59fdc2 --- /dev/null +++ b/src/views/base/coreProductionLine/add-or-updata.vue @@ -0,0 +1,114 @@ + + + + diff --git a/src/views/base/coreProductionLine/index.vue b/src/views/base/coreProductionLine/index.vue new file mode 100644 index 00000000..21b441cf --- /dev/null +++ b/src/views/base/coreProductionLine/index.vue @@ -0,0 +1,177 @@ + + + diff --git a/src/views/base/coreWorkOrder/SmallTitle.vue b/src/views/base/coreWorkOrder/SmallTitle.vue new file mode 100644 index 00000000..93b4a18f --- /dev/null +++ b/src/views/base/coreWorkOrder/SmallTitle.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/base/coreWorkOrder/add-or-updata copy.vue b/src/views/base/coreWorkOrder/add-or-updata copy.vue new file mode 100644 index 00000000..f091bd6a --- /dev/null +++ b/src/views/base/coreWorkOrder/add-or-updata copy.vue @@ -0,0 +1,416 @@ + + + + + diff --git a/src/views/base/coreWorkOrder/add-or-updata.vue b/src/views/base/coreWorkOrder/add-or-updata.vue new file mode 100644 index 00000000..a0c37abf --- /dev/null +++ b/src/views/base/coreWorkOrder/add-or-updata.vue @@ -0,0 +1,304 @@ + + + + + diff --git a/src/views/base/coreWorkOrder/addWorkOrder.vue b/src/views/base/coreWorkOrder/addWorkOrder.vue new file mode 100644 index 00000000..5c6bc38c --- /dev/null +++ b/src/views/base/coreWorkOrder/addWorkOrder.vue @@ -0,0 +1,300 @@ + + \ No newline at end of file diff --git a/src/views/base/coreWorkOrder/attr-add.vue b/src/views/base/coreWorkOrder/attr-add.vue new file mode 100644 index 00000000..df5f0c9c --- /dev/null +++ b/src/views/base/coreWorkOrder/attr-add.vue @@ -0,0 +1,211 @@ + + + + + diff --git a/src/views/base/coreWorkOrder/index.vue b/src/views/base/coreWorkOrder/index.vue new file mode 100644 index 00000000..c0a93c59 --- /dev/null +++ b/src/views/base/coreWorkOrder/index.vue @@ -0,0 +1,265 @@ + + + diff --git a/src/views/base/coreWorkshopSection/add-or-updata.vue b/src/views/base/coreWorkshopSection/add-or-updata.vue new file mode 100644 index 00000000..271400e8 --- /dev/null +++ b/src/views/base/coreWorkshopSection/add-or-updata.vue @@ -0,0 +1,103 @@ + + + + diff --git a/src/views/base/coreWorkshopSection/index.vue b/src/views/base/coreWorkshopSection/index.vue new file mode 100644 index 00000000..493cf42e --- /dev/null +++ b/src/views/base/coreWorkshopSection/index.vue @@ -0,0 +1,172 @@ + + + diff --git a/src/views/core/base/factory/add-or-updata.vue b/src/views/core/base/factory/add-or-updata.vue index ef05b5f0..0afeb881 100644 --- a/src/views/core/base/factory/add-or-updata.vue +++ b/src/views/core/base/factory/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2023-10-16 11:16:48 + * @LastEditTime: 2023-11-03 16:32:52 * @Description: --> diff --git a/src/views/base/materialDate/add-or-updata.vue b/src/views/base/materialDate/add-or-updata.vue index 110a01f1..06fca85e 100644 --- a/src/views/base/materialDate/add-or-updata.vue +++ b/src/views/base/materialDate/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2023-10-24 18:34:07 + * @LastEditTime: 2023-11-06 19:55:59 * @Description: --> diff --git a/src/views/equipment/timing-diagram/output/index.vue b/src/views/equipment/timing-diagram/output/index.vue index ccf74e5f..0fb10646 100644 --- a/src/views/equipment/timing-diagram/output/index.vue +++ b/src/views/equipment/timing-diagram/output/index.vue @@ -432,7 +432,7 @@ export default { /** 准备产线数据 */ async initProductline() { const { code, data } = await this.$axios({ - url: '/base/production-line/listAll', + url: '/base/core-production-line/listAll', method: 'get', }); if (code == 0) { @@ -448,7 +448,7 @@ export default { /** 准备工段数据 */ async initWorksection() { const { code, data } = await this.$axios({ - url: '/base/workshop-section/listAll', + url: '/base/core-workshop-section/listAll', method: 'get', }); if (code == 0) { @@ -464,7 +464,7 @@ export default { /** 根据产线获取工段 */ async getWorksectionById(lineId) { const { code, data } = await this.$axios({ - url: '/base/workshop-section/listByParentId', + url: '/base/core-workshop-section/listByParentId', method: 'get', params: { id: lineId, diff --git a/src/views/equipment/timing-diagram/status/index.vue b/src/views/equipment/timing-diagram/status/index.vue index 283e07f4..7a12766d 100644 --- a/src/views/equipment/timing-diagram/status/index.vue +++ b/src/views/equipment/timing-diagram/status/index.vue @@ -239,7 +239,7 @@ export default { /** 准备产线数据 */ async initProductline() { const { code, data } = await this.$axios({ - url: '/base/production-line/listAll', + url: '/base/core-production-line/listAll', method: 'get', }); if (code == 0) { @@ -255,7 +255,7 @@ export default { /** 准备工段数据 */ async initWorksection() { const { code, data } = await this.$axios({ - url: '/base/workshop-section/listAll', + url: '/base/core-workshop-section/listAll', method: 'get', }); if (code == 0) { @@ -276,7 +276,7 @@ export default { switch (param) { case 'lineId': this.$axios({ - url: '/base/workshop-section/listByParentId', + url: '/base/core-workshop-section/listByParentId', method: 'get', params: { id: value, diff --git a/src/views/monitoring/equipmentProcessAmount/index.vue b/src/views/monitoring/equipmentProcessAmount/index.vue index 2294bff4..aceac638 100644 --- a/src/views/monitoring/equipmentProcessAmount/index.vue +++ b/src/views/monitoring/equipmentProcessAmount/index.vue @@ -323,7 +323,7 @@ export default { }, async getTree() { - const { data } = await this.$axios('/base/factory/getTree'); + const { data } = await this.$axios('/base/core-factory/getTree'); this.sidebarContent = data; this.buildTree(data); console.log('tree', this.sidebarContent);