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 @@ + + + + + {{ isdetail ? '详情' : !dataForm.id ? '新增' : '编辑' }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 产品属性 + + + + + + + 添加 + + + + + + + + + + + + + + + + + + + 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 @@ + + + + + + {{ !dataForm.id ? '新增' : '编辑' }} + + + + + + + + + + + + + + + 取消 + 确定 + + + + + + + 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 @@ + + + + + {{ isdetail ? '详情' : !dataForm.id ? '新增' : '编辑' }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 产品属性 + + + + + + + 添加 + + + + + + + + + + + + + + + + + + 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 @@ + + + + + {{ '预使用主原料信息' }} + + + + 工单名:{{ workOrderName }} + + + + + 批次信息 + + + + + + + 添加 + + + + + + + + + + + + + + + + + + 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 @@ + + + + + + {{ !dataForm.id ? '新增' : '编辑' }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取消 + 确定 + + + + + + + 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: --> @@ -13,14 +13,6 @@ @keyup.enter.native="dataFormSubmit()" label-width="80px"> - - - - - + + + + + diff --git a/src/views/core/base/factory/index.vue b/src/views/core/base/factory/index.vue index 7f6b4152..2b08e996 100644 --- a/src/views/core/base/factory/index.vue +++ b/src/views/core/base/factory/index.vue @@ -43,19 +43,23 @@ import basicPage from '../../mixins/basic-page'; import { parseTime } from '../../mixins/code-filter'; import { deleteFactory, - getFactoryPage, - exportFactoryExcel, + getFactoryPage } from '@/api/core/base/factory'; const tableProps = [ { - prop: 'code', - label: '工厂编码' - }, + prop: 'createTime', + label: '添加时间', + filter: parseTime + }, { prop: 'name', label: '工厂名称' }, + { + prop: 'code', + label: '工厂编码' + }, { prop: 'address', label: '地址' @@ -63,12 +67,7 @@ const tableProps = [ { prop: 'remark', label: '备注' - }, - { - prop: 'createTime', - label: '创建时间', - filter: parseTime - }, + } ]; export default { @@ -78,17 +77,17 @@ export default { urlOptions: { getDataListURL: getFactoryPage, deleteURL: deleteFactory, - exportURL: exportFactoryExcel, + // exportURL: exportFactoryExcel, }, tableProps, tableBtn: [ - this.$auth.hasPermi(`base:factory:update`) + this.$auth.hasPermi(`base:core-factory:update`) ? { type: 'edit', btnName: '编辑', } : undefined, - this.$auth.hasPermi(`base:factory:delete`) + this.$auth.hasPermi(`base:core-factory:delete`) ? { type: 'delete', btnName: '删除', @@ -97,18 +96,18 @@ export default { ].filter((v)=>v), tableData: [], formConfig: [ - { - type: 'input', - label: '工厂编码', - placeholder: '工厂编码', - param: 'code', - }, { type: 'input', label: '工厂名称', placeholder: '工厂名称', param: 'name', }, + { + type: 'input', + label: '工厂编码', + placeholder: '工厂编码', + param: 'code', + }, { type: 'button', btnName: '搜索', @@ -127,7 +126,7 @@ export default { type: 'separate', }, { - type: this.$auth.hasPermi('base:factory:create') ? 'button' : '', + type: this.$auth.hasPermi('base:core-factory:create') ? 'button' : '', btnName: '新增', name: 'add', color: 'success',