From cb49faaefd245a0b8d015a56fa8ecf0e88896e30 Mon Sep 17 00:00:00 2001 From: "HUOJIN\\92525" <925258474@qq.com> Date: Tue, 16 Apr 2024 17:51:19 +0800 Subject: [PATCH] no message --- hefeihvac_web.iml | 9 +++ src/assets/styles/eladmin.scss | 8 +++ src/components/Crud/UD.operation.vue | 6 +- src/main.js | 15 +++-- src/views/base-data/box/bindOrderNumber.vue | 2 +- src/views/base-data/box/index.vue | 8 +-- src/views/base-data/box/smallLine.vue | 8 +-- src/views/base-data/point/fullStockIn.vue | 8 +-- src/views/base-data/point/fullStockOut.vue | 8 +-- src/views/base-data/point/multiAdjust.vue | 8 +-- src/views/base-data/stock/containerIn.vue | 8 +-- src/views/base-data/stock/returnContainer.vue | 6 +- src/views/business-data/asnDetail/index.vue | 6 +- .../business-data/businessTask/agvTask.vue | 19 ++---- .../business-data/businessTask/asnTask.vue | 22 +++++- src/views/business-data/inventory/index.vue | 67 +++++++++---------- src/views/business-data/mo/index.vue | 2 +- .../business-data/pickDetail/itemOut.vue | 6 +- src/views/system/user/index.vue | 2 +- 19 files changed, 119 insertions(+), 99 deletions(-) create mode 100644 hefeihvac_web.iml diff --git a/hefeihvac_web.iml b/hefeihvac_web.iml new file mode 100644 index 0000000..8021953 --- /dev/null +++ b/hefeihvac_web.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/assets/styles/eladmin.scss b/src/assets/styles/eladmin.scss index 0ed66fe..cd8b9d1 100644 --- a/src/assets/styles/eladmin.scss +++ b/src/assets/styles/eladmin.scss @@ -115,3 +115,11 @@ .el-tabs{ margin-bottom: 25px; } + +/* 全局修改el-table 表头和内容颜色 header color content color */ +.el-table th { + font-size: 14px; + background: #f5f7fa !important; + color: #606266; +} + diff --git a/src/components/Crud/UD.operation.vue b/src/components/Crud/UD.operation.vue index 9377c2b..ed4533c 100644 --- a/src/components/Crud/UD.operation.vue +++ b/src/components/Crud/UD.operation.vue @@ -157,11 +157,11 @@ export default { this.ContainerIn.containerCode = data.code this.ContainerIn.position = data.point.code stockUrl.containerOut(this.ContainerIn).then(res => { - if (res.status == 200) { - this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); + if (res.code == 200) { + this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS); this.crud.toQuery() } else { - this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); + this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR); } }) }, diff --git a/src/main.js b/src/main.js index c62c9b4..9a2e085 100644 --- a/src/main.js +++ b/src/main.js @@ -4,12 +4,20 @@ import Cookies from 'js-cookie' import 'normalize.css/normalize.css' -import Element from 'element-ui' +import Element, { Table, TableColumn } from 'element-ui' +const TableProps = Element.Table.props +const TableColumnProps = Element.TableColumn.props +TableProps.border = { type: Boolean, default: true } // 边框 +TableProps.align = { type: String, default: 'center' } // 居中 +TableProps.stripe = { type: Boolean, default: true } // 斑马纹 +TableColumnProps.showOverflowTooltip = { type: Boolean, default: true } // 文本溢出 +// TableColumnProps.sortable = { type: Boolean, default: true } // 置默认的排序列和排序顺序 +Vue.use(Table) +Vue.use(TableColumn) + // 数据字典 import dict from './components/Dict' -import dataV from '@jiaminghi/data-view' - // 权限指令 import checkPer from '@/utils/permission' import permission from './components/Permission' @@ -28,7 +36,6 @@ import './router/index' // permission control Vue.use(checkPer) Vue.use(permission) Vue.use(dict) -Vue.use(dataV) Vue.use(Element, { size: Cookies.get('size') || 'small' // set element-ui default size }) diff --git a/src/views/base-data/box/bindOrderNumber.vue b/src/views/base-data/box/bindOrderNumber.vue index 00c50d0..ecf7e5e 100644 --- a/src/views/base-data/box/bindOrderNumber.vue +++ b/src/views/base-data/box/bindOrderNumber.vue @@ -74,7 +74,7 @@ export default { this.toQuery() this.$parent.crud.notify('绑定成功!', CRUD.NOTIFICATION_TYPE.SUCCESS); }).catch(() => { - + this.$parent.crud.notify('绑定失败!', CRUD.NOTIFICATION_TYPE.ERROR); }) } else { return false; diff --git a/src/views/base-data/box/index.vue b/src/views/base-data/box/index.vue index f261d26..7f29d45 100644 --- a/src/views/base-data/box/index.vue +++ b/src/views/base-data/box/index.vue @@ -371,15 +371,13 @@ export default { callBox(data) { this.CallBox.id=data.id crudBox.callBox(this.CallBox).then(res => { - if(res.status==200){ - this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); + if(res.code){ + this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS); this.$parent.shuaxinContainerList() this.$refs['form'].resetFields(); }else{ - this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); + this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR); } - }).catch(() => { - this.crud.notify("呼叫失败", CRUD.NOTIFICATION_TYPE.ERROR); }) }, //单选时触发 diff --git a/src/views/base-data/box/smallLine.vue b/src/views/base-data/box/smallLine.vue index c8c23e4..69129d7 100644 --- a/src/views/base-data/box/smallLine.vue +++ b/src/views/base-data/box/smallLine.vue @@ -300,15 +300,13 @@ export default { callBox(data) { this.CallBox.id = data.id crudBox.callBox(this.CallBox).then(res => { - if (res.status == 200) { - this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); + if (res.code == 200) { + this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS); this.$parent.shuaxinContainerList() this.$refs['form'].resetFields(); } else { - this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); + this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR); } - }).catch(() => { - }) } } diff --git a/src/views/base-data/point/fullStockIn.vue b/src/views/base-data/point/fullStockIn.vue index 163b9cf..c3fd89d 100644 --- a/src/views/base-data/point/fullStockIn.vue +++ b/src/views/base-data/point/fullStockIn.vue @@ -75,16 +75,14 @@ export default { this.FullStockIn.itemCode = this.form.itemCode this.FullStockIn.agvScene="ZC" pointUrl.fullStockIn(this.FullStockIn).then(res => { - if(res.status==200){ + if(res.code=200){ this.dialogVisible = false - this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); + this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS); this.$parent.shuaxinContainerList() this.$refs['form'].resetFields(); }else{ - this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); + this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR); } - }).catch(() => { - }) } else { return false; diff --git a/src/views/base-data/point/fullStockOut.vue b/src/views/base-data/point/fullStockOut.vue index 9703593..0637534 100644 --- a/src/views/base-data/point/fullStockOut.vue +++ b/src/views/base-data/point/fullStockOut.vue @@ -65,16 +65,14 @@ export default { this.FullStockOut.itemCode = this.form.itemCode this.FullStockOut.agvScene="ZC" pointUrl.fullStockOut(this.FullStockOut).then(res => { - if(res.status==200){ + if(res.code){ this.dialogVisible = false - this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); + this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS); this.$parent.shuaxinContainerList() this.$refs['form'].resetFields(); }else{ - this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); + this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR); } - }).catch(() => { - }) } else { return false; diff --git a/src/views/base-data/point/multiAdjust.vue b/src/views/base-data/point/multiAdjust.vue index 38c0fda..8c9a0ac 100644 --- a/src/views/base-data/point/multiAdjust.vue +++ b/src/views/base-data/point/multiAdjust.vue @@ -152,21 +152,19 @@ export default { this.multiadjust.enabled=this.form.enabled crudPoint.multiAdjust(this.multiadjust).then(res => { - if(res.status==200){ + if(res.code=200){ this.dialog = false - this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); + this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS); this.$parent.crud.toQuery(); this.$refs['form'].resetFields(); this.form.description='' this.form.areaId='' }else{ - this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); + this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR); this.$refs['form'].resetFields(); this.form.description='' this.form.areaId='' } - }).catch(() => { - }) } else { return false; diff --git a/src/views/base-data/stock/containerIn.vue b/src/views/base-data/stock/containerIn.vue index 70e1d09..61308a4 100644 --- a/src/views/base-data/stock/containerIn.vue +++ b/src/views/base-data/stock/containerIn.vue @@ -70,16 +70,14 @@ export default { this.ContainerIn.position = this.form.position this.ContainerIn.itemCode=this.form.itemCode stockUrl.containerIn(this.ContainerIn).then(res => { - if(res.status==200){ + if(res.code=200){ this.dialogVisible = false - this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); + this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS); this.$parent.crud.toQuery(); this.$refs['form'].resetFields(); }else{ - this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); + this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR); } - }).catch(() => { - }) } else { return false; diff --git a/src/views/base-data/stock/returnContainer.vue b/src/views/base-data/stock/returnContainer.vue index b577366..712bc4b 100644 --- a/src/views/base-data/stock/returnContainer.vue +++ b/src/views/base-data/stock/returnContainer.vue @@ -103,12 +103,12 @@ export default { stockCode: this.form.stockCode } stockUrl.lineReturn(LineReturn).then(res => { - if (res.status = 200) { + if ( res.code == 200) { this.returnContainerCancel(formName); - this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); + this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS); this.$parent.crud.toQuery(); } else { - this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); + this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR); } }) } diff --git a/src/views/business-data/asnDetail/index.vue b/src/views/business-data/asnDetail/index.vue index a33bf28..ac83adf 100644 --- a/src/views/business-data/asnDetail/index.vue +++ b/src/views/business-data/asnDetail/index.vue @@ -619,12 +619,12 @@ export default { return } doBindStock(this.BindStock).then(res => { - if (res.status = 200) { + if ( res.code === 200) { this.manliao = false;//关闭窗口 - this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); + this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS); this.crud.toQuery(); } else { - this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); + this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR); } }) }) diff --git a/src/views/business-data/businessTask/agvTask.vue b/src/views/business-data/businessTask/agvTask.vue index 802a1ac..c56c7e8 100644 --- a/src/views/business-data/businessTask/agvTask.vue +++ b/src/views/business-data/businessTask/agvTask.vue @@ -52,7 +52,6 @@ 全部 待执行 执行中 - 顶升 已完成 任务取消 @@ -147,9 +146,9 @@ + width="140">