From e961bf6cfa43663b3f40e20ef2005c2a0257d2a7 Mon Sep 17 00:00:00 2001 From: helloDy <1615073571@qq.com> Date: Fri, 27 Oct 2023 16:16:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 5 +- src/api/base/material.js | 121 +++++ src/api/base/materialDate.js | 68 +++ src/api/base/materialProductBom.js | 112 +++++ src/api/base/materialUseLog.js | 69 +++ src/assets/icons/svg/table_delete.svg | 15 + src/views/base/material/SmallTitle.vue | 65 +++ src/views/base/material/add-or-updata.vue | 421 ++++++++++++++++ src/views/base/material/attr-add.vue | 141 ++++++ src/views/base/material/index.vue | 233 +++++++++ src/views/base/materialDate/add-or-updata.vue | 107 ++++ src/views/base/materialDate/index.vue | 169 +++++++ .../base/materialProductBom/add-or-updata.vue | 469 ++++++++++++++++++ src/views/base/materialProductBom/index.vue | 187 +++++++ .../base/materialUseLog/add-or-updata.vue | 258 ++++++++++ src/views/base/materialUseLog/index.vue | 212 ++++++++ 16 files changed, 2650 insertions(+), 2 deletions(-) create mode 100644 src/api/base/material.js create mode 100644 src/api/base/materialDate.js create mode 100644 src/api/base/materialProductBom.js create mode 100644 src/api/base/materialUseLog.js create mode 100644 src/assets/icons/svg/table_delete.svg create mode 100644 src/views/base/material/SmallTitle.vue create mode 100644 src/views/base/material/add-or-updata.vue create mode 100644 src/views/base/material/attr-add.vue create mode 100644 src/views/base/material/index.vue create mode 100644 src/views/base/materialDate/add-or-updata.vue create mode 100644 src/views/base/materialDate/index.vue create mode 100644 src/views/base/materialProductBom/add-or-updata.vue create mode 100644 src/views/base/materialProductBom/index.vue create mode 100644 src/views/base/materialUseLog/add-or-updata.vue create mode 100644 src/views/base/materialUseLog/index.vue diff --git a/.env.dev b/.env.dev index 2f15db72..a89429ee 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-16 09:22:52 + # @LastEditTime: 2023-10-23 10:50:02 # @LastEditors: DY # @Description: ### @@ -14,7 +14,8 @@ VUE_APP_TITLE = 产线监控系统 # 芋道管理系统/开发环境 # 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.0.33:48080' +# VUE_APP_BASE_API = 'http://192.168.0.33:48082' +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/material.js b/src/api/base/material.js new file mode 100644 index 00000000..26e495a0 --- /dev/null +++ b/src/api/base/material.js @@ -0,0 +1,121 @@ +/* + * @Author: Do not edit + * @Date: 2023-10-21 11:50:46 + * @LastEditTime: 2023-10-24 11:22:28 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 创建物料 +export function createMaterial(data) { + return request({ + url: '/base/material/create', + method: 'post', + data: data + }) +} + +// 更新物料 +export function updateMaterial(data) { + return request({ + url: '/base/material/update', + method: 'put', + data: data + }) +} + +// 删除物料 +export function deleteMaterial(id) { + return request({ + url: '/base/material/delete?id=' + id, + method: 'delete' + }) +} + +// 获得物料 +export function getMaterial(id) { + return request({ + url: '/base/material/get?id=' + id, + method: 'get' + }) +} + +// 获得物料code +export function getCode() { + return request({ + url: '/base/material/getMaterialCode', + method: 'get' + }) +} + +// 获得物料分页 +export function getMaterialPage(query) { + return request({ + url: '/base/material/page', + method: 'get', + params: query + }) +} + +// 获得物料列表 +export function getMaterialList(query) { + return request({ + url: '/base/material/listbyfilter', + method: 'get', + params: query + }) +} + +// 获得供应商所有列表 +export function getSupplierList(query) { + return request({ + url: '/base/core-supplier/listAll', + method: 'get', + params: query + }) +} + +// 获得物料属性列表 +export function getMaterialAttrList(query) { + return request({ + url: '/base/material-attr/page', + method: 'get', + params: query + }) +} + +// 创建物料属性 +export function createMaterialAttr(data) { + return request({ + url: '/base/material-attr/create', + method: 'post', + data: data + }) +} + +// 更新物料属性 +export function updateMaterialAttr(data) { + return request({ + url: '/base/material-attr/update', + method: 'put', + data: data + }) +} + +// 删除物料属性 +export function deleteMaterialAttr(id) { + return request({ + url: '/base/material-attr/delete?id=' + id, + method: 'delete' + }) +} + +// 获得物料属性 +export function getMaterialAttr(query) { + return request({ + url: '/base/material-attr/get', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/base/materialDate.js b/src/api/base/materialDate.js new file mode 100644 index 00000000..9c2782cb --- /dev/null +++ b/src/api/base/materialDate.js @@ -0,0 +1,68 @@ +/* + * @Author: Do not edit + * @Date: 2023-10-21 11:50:46 + * @LastEditTime: 2023-10-24 17:09:59 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 创建物料批次 +export function createMaterialDate(data) { + return request({ + url: '/base/material-date/create', + method: 'post', + data: data + }) +} + +// 更新物料批次 +export function updateMaterialDate(data) { + return request({ + url: '/base/material-date/update', + method: 'put', + data: data + }) +} + +// 删除物料批次 +export function deleteMaterialDate(id) { + return request({ + url: '/base/material-date/delete?id=' + id, + method: 'delete' + }) +} + +// 获得物料批次 +export function getMaterialDate(id) { + return request({ + url: '/base/material-date/getDetail?id=' + id, + method: 'get' + }) +} + +// 获得物料批次code +export function getCode() { + return request({ + url: '/base/material-date/getMaterialDateCode', + method: 'get' + }) +} + +// 获得物料批次分页 +export function getMaterDatePage(query) { + return request({ + url: '/base/material-date/page', + method: 'get', + params: query + }) +} + +// 获得物料批次列表 +export function getMaterDateList(query) { + return request({ + url: '/base/material-date/listbyfilter', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/base/materialProductBom.js b/src/api/base/materialProductBom.js new file mode 100644 index 00000000..2b0474aa --- /dev/null +++ b/src/api/base/materialProductBom.js @@ -0,0 +1,112 @@ +/* + * @Author: Do not edit + * @Date: 2023-10-21 11:50:46 + * @LastEditTime: 2023-10-26 20:06:29 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 创建产品Bom +export function createMaterialPB(data) { + return request({ + url: '/base/material-product-bom/create', + method: 'post', + data: data + }) +} + +// 更新产品Bom +export function updateMaterialPB(data) { + return request({ + url: '/base/material-product-bom/update', + method: 'put', + data: data + }) +} + +// 删除产品Bom +export function deleteMaterialPB(id) { + return request({ + url: '/base/material-product-bom/delete?id=' + id, + method: 'delete' + }) +} + +// 获得产品Bom +export function getMaterialPB(id) { + return request({ + url: '/base/material-product-bom/get?id=' + id, + method: 'get' + }) +} + +// 获得产品Bomcode +export function getCode() { + return request({ + url: '/base/material-product-bom/getMaterialProductBomCode', + method: 'get' + }) +} + +// 获得产品Bom分页 +export function getMaterialPBPage(query) { + return request({ + url: '/base/material-product-bom/page', + method: 'get', + params: query + }) +} + +// 获得产品Bom列表 +export function getMaterialPBList(query) { + return request({ + url: '/base/material-product-bom/listbyfilter', + method: 'get', + params: query + }) +} + +// 获得产品列表 +export function getProList(query) { + return request({ + url: '/base/core-product/listAll', + method: 'get', + params: query + }) +} + +// 获得产品Bom详细分页 +export function getProBomList(query) { + return request({ + url: '/base/material-product-bom-det/page', + method: 'get', + params: query + }) +} + +// 创建产品Bom详细 +export function createMaterialPBDet(data) { + return request({ + url: '/base/material-product-bom-det/create', + method: 'post', + data: data + }) +} + +// 更新产品Bom详细 +export function updateMaterialPBDet(data) { + return request({ + url: '/base/material-product-bom-det/update', + method: 'put', + data: data + }) +} + +// 删除产品Bom详细 +export function deleteMaterialPBDet(id) { + return request({ + url: '/base/material-product-bom-det/delete?id=' + id, + method: 'delete' + }) +} diff --git a/src/api/base/materialUseLog.js b/src/api/base/materialUseLog.js new file mode 100644 index 00000000..3497c071 --- /dev/null +++ b/src/api/base/materialUseLog.js @@ -0,0 +1,69 @@ +/* + * @Author: Do not edit + * @Date: 2023-10-21 11:50:46 + * @LastEditTime: 2023-10-26 09:32:21 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 创建物料使用记录 +export function createMaterialLog(data) { + return request({ + url: '/base/material-use-log/create', + method: 'post', + data: data + }) +} + +// 更新物料使用记录 +export function updateMaterialLog(data) { + return request({ + url: '/base/material-use-log/update', + method: 'put', + data: data + }) +} + +// 获得物料使用记录 +export function getMaterialLog(id) { + return request({ + url: '/base/material-use-log/getDetail?id=' + id, + method: 'get' + }) +} + +// 获得物料使用记录分页 +export function getMaterialLogPage(query) { + return request({ + url: '/base/material-use-log/page', + method: 'get', + params: query + }) +} + +// 获得所有设备列表 +export function getEqListAll(query) { + return request({ + url: '/base/core-equipment/listAll', + method: 'get', + params: query + }) +} + +// 获得所有员工列表 +export function getworkerAll(query) { + return request({ + url: '/base/core-worker/listAll', + method: 'get', + params: query + }) +} + +// 删除物料使用记录 +export function deleteMaterialLog(id) { + return request({ + url: '/base/material-use-log/delete?id=' + id, + method: 'delete' + }) +} diff --git a/src/assets/icons/svg/table_delete.svg b/src/assets/icons/svg/table_delete.svg new file mode 100644 index 00000000..518fd2c8 --- /dev/null +++ b/src/assets/icons/svg/table_delete.svg @@ -0,0 +1,15 @@ + + + + Created with Sketch. + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/base/material/SmallTitle.vue b/src/views/base/material/SmallTitle.vue new file mode 100644 index 00000000..93b4a18f --- /dev/null +++ b/src/views/base/material/SmallTitle.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/base/material/add-or-updata.vue b/src/views/base/material/add-or-updata.vue new file mode 100644 index 00000000..43874659 --- /dev/null +++ b/src/views/base/material/add-or-updata.vue @@ -0,0 +1,421 @@ + + + + + diff --git a/src/views/base/material/attr-add.vue b/src/views/base/material/attr-add.vue new file mode 100644 index 00000000..2106320e --- /dev/null +++ b/src/views/base/material/attr-add.vue @@ -0,0 +1,141 @@ + + + + + diff --git a/src/views/base/material/index.vue b/src/views/base/material/index.vue new file mode 100644 index 00000000..08ecf314 --- /dev/null +++ b/src/views/base/material/index.vue @@ -0,0 +1,233 @@ + + + diff --git a/src/views/base/materialDate/add-or-updata.vue b/src/views/base/materialDate/add-or-updata.vue new file mode 100644 index 00000000..110a01f1 --- /dev/null +++ b/src/views/base/materialDate/add-or-updata.vue @@ -0,0 +1,107 @@ + + + + diff --git a/src/views/base/materialDate/index.vue b/src/views/base/materialDate/index.vue new file mode 100644 index 00000000..7ea838ea --- /dev/null +++ b/src/views/base/materialDate/index.vue @@ -0,0 +1,169 @@ + + + diff --git a/src/views/base/materialProductBom/add-or-updata.vue b/src/views/base/materialProductBom/add-or-updata.vue new file mode 100644 index 00000000..a30323a8 --- /dev/null +++ b/src/views/base/materialProductBom/add-or-updata.vue @@ -0,0 +1,469 @@ + + + + + diff --git a/src/views/base/materialProductBom/index.vue b/src/views/base/materialProductBom/index.vue new file mode 100644 index 00000000..5e4b5331 --- /dev/null +++ b/src/views/base/materialProductBom/index.vue @@ -0,0 +1,187 @@ + + + diff --git a/src/views/base/materialUseLog/add-or-updata.vue b/src/views/base/materialUseLog/add-or-updata.vue new file mode 100644 index 00000000..7d7ff568 --- /dev/null +++ b/src/views/base/materialUseLog/add-or-updata.vue @@ -0,0 +1,258 @@ + + + + diff --git a/src/views/base/materialUseLog/index.vue b/src/views/base/materialUseLog/index.vue new file mode 100644 index 00000000..4a1f4b79 --- /dev/null +++ b/src/views/base/materialUseLog/index.vue @@ -0,0 +1,212 @@ + + + -- 2.45.2