diff --git a/src/plugins/modal.js b/src/plugins/modal.js index b37ca145..78623683 100644 --- a/src/plugins/modal.js +++ b/src/plugins/modal.js @@ -59,6 +59,33 @@ export default { type: "warning", }) }, + // 删除确认窗体(UI规范) + delConfirm(title) { + return MessageBox.confirm("确定删除后不可恢复该数据", `是否确认删除 【${title}】 数据项?`, { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: "warning", + showClose:false + }) + }, + // 关闭页面确认窗体(UI规范) + closeConfirm() { + return MessageBox.confirm("确定关闭将不保留编辑内容", "是否确认要关闭页面?", { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: "warning", + showClose:false + }) + }, + // 确认窗体(UI规范) + newConfirm(content,title) { + return MessageBox.confirm(content, title, { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: "warning", + showClose:false + }) + }, // 提交内容 prompt(content) { return MessageBox.prompt(content, "系统提示", { diff --git a/src/styles/index.scss b/src/styles/index.scss index d162abed..f1393e30 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -200,4 +200,35 @@ input, textarea{ // 弹出框,上下分布,去掉label的padding-bottom .el-form--label-top .el-form-item__label { padding: 0; -} \ No newline at end of file +} + +// 确认弹窗(UI样式修改和原样式有区别--start) +.el-message-box__status+.el-message-box__message { + padding-left: 58px; +} +.el-message-box { + width: auto; + min-width: 424px; + .el-message-box__header { + padding:32px 32px 0px 72px; + .el-message-box__title { + font-size: 16px; + font-weight: 600; + color: rgba(0,0,0,0.85); + } + } + .el-message-box__content { + padding-bottom: 24px; + .el-message-box__status { + top:-72%; + left:20px; + font-size:21px !important + } + } + .el-message-box__btns { + padding-right: 32px; + padding-bottom:14px; + } +} + +// 确认弹窗(UI样式修改和原样式有区别--end) \ No newline at end of file diff --git a/src/views/devConfig/quality/qualityInspectionBoxBtn/dialogForm.vue b/src/views/devConfig/quality/qualityInspectionBoxBtn/dialogForm.vue index 0cae68d9..6253c041 100644 --- a/src/views/devConfig/quality/qualityInspectionBoxBtn/dialogForm.vue +++ b/src/views/devConfig/quality/qualityInspectionBoxBtn/dialogForm.vue @@ -6,37 +6,67 @@ --> diff --git a/src/views/devConfig/quality/qualityScrapDet/index.vue b/src/views/devConfig/quality/qualityScrapDet/index.vue index 189fa59a..6bb2f75d 100644 --- a/src/views/devConfig/quality/qualityScrapDet/index.vue +++ b/src/views/devConfig/quality/qualityScrapDet/index.vue @@ -9,11 +9,12 @@ :table-props="tableProps" :page="listQuery.pageNo" :limit="listQuery.pageSize" - :table-data="tableData"> + :table-data="tableData" + :max-height="tableH"> @@ -21,7 +22,7 @@ + width="50%"> @@ -46,32 +47,38 @@ import { deleteQualityScrapDet, } from '@/api/base/qualityScrapDet'; import { getList } from '@/api/base/qualityScrapType'; +import tableHeightMixin from '@/mixins/tableHeightMixin'; const tableProps = [ { prop: 'createTime', label: '添加时间', filter: parseTime, + width: 160, }, { prop: 'content', label: '报废原因', + showOverflowtooltip: true, }, { prop: 'code', label: '报废原因编码', + showOverflowtooltip: true, }, { prop: 'typeName', label: '报废类型', + showOverflowtooltip: true, }, { prop: 'remark', label: '备注', + showOverflowtooltip: true, }, ]; export default { - mixins: [basicPage], + mixins: [basicPage, tableHeightMixin], data() { return { urlOptions: { @@ -109,6 +116,7 @@ export default { labelField: 'name', valueField: 'id', param: 'typeId', + filterable: true, }, { type: 'button', @@ -129,6 +137,11 @@ export default { plain: true, }, ], + listQuery: { + pageNo: 1, + pageSize: 20, + }, + total: 0, }; }, components: { @@ -144,7 +157,7 @@ export default { this.dataListLoading = true; this.urlOptions.getDataListURL(this.listQuery).then((response) => { this.tableData = response.data.list; - this.listQuery.total = response.data.total; + this.total = response.data.total; this.dataListLoading = false; }); }, @@ -157,20 +170,10 @@ export default { switch (val.btnName) { case 'search': this.listQuery.pageNo = 1; - this.listQuery.pageSize = 10; this.listQuery.content = val.content ? val.content : undefined; this.listQuery.typeId = val.typeId ? val.typeId : undefined; this.getDataList(); break; - case 'reset': - this.$refs.searchBarForm.resetForm(); - this.listQuery = { - pageSize: 10, - pageNo: 1, - total: 1, - }; - this.getDataList(); - break; case 'add': this.addOrEditTitle = '新增'; this.addOrUpdateVisible = true; diff --git a/src/views/devConfig/quality/qualityScrapType/add-or-updata.vue b/src/views/devConfig/quality/qualityScrapType/add-or-updata.vue index 0358535b..26e83799 100644 --- a/src/views/devConfig/quality/qualityScrapType/add-or-updata.vue +++ b/src/views/devConfig/quality/qualityScrapType/add-or-updata.vue @@ -55,7 +55,6 @@ import { getQualityScrapType, getCode, } from '@/api/base/qualityScrapType'; -// import { getMaterialList } from "@/api/base/material"; export default { mixins: [basicAdd], @@ -75,9 +74,7 @@ export default { description: undefined, remark: undefined, }, - // materialList: [], dataRule: { - // materialId: [{ required: true, message: "", trigger: "blur" }], code: [ { required: true, message: '报废类型编码不能为空', trigger: 'blur' }, ], @@ -87,22 +84,5 @@ export default { }, }; }, - mounted() { - // this.getDict() - console.log('我看看', this.dataForm); - }, - methods: { - // async getDict() { - // // 物料列表 - // const res = await getMaterialList(); - // this.materialList = res.data; - // }, - // setMaterialCode() { - // const chooseM = this.materialList.filter(item => { - // return item.id === this.dataForm.materialId - // }) - // this.dataForm.materialCode = chooseM[0].code - // } - }, }; diff --git a/src/views/devConfig/quality/qualityScrapType/index.vue b/src/views/devConfig/quality/qualityScrapType/index.vue index dc7e7605..9750239e 100644 --- a/src/views/devConfig/quality/qualityScrapType/index.vue +++ b/src/views/devConfig/quality/qualityScrapType/index.vue @@ -9,11 +9,12 @@ :table-props="tableProps" :page="listQuery.pageNo" :limit="listQuery.pageSize" - :table-data="tableData"> + :table-data="tableData" + :max-height="tableH"> @@ -21,7 +22,7 @@ + width="50%"> @@ -45,33 +46,39 @@ import { getQualityScrapTypePage, deleteQualityScrapType, } from '@/api/base/qualityScrapType'; +import tableHeightMixin from '@/mixins/tableHeightMixin'; const tableProps = [ { prop: 'createTime', label: '添加时间', filter: parseTime, + width: 160, }, { prop: 'name', label: '报废类型', + showOverflowtooltip: true, }, { prop: 'code', label: '报废类型编码', + showOverflowtooltip: true, }, { prop: 'description', label: '描述信息', + showOverflowtooltip: true, }, { prop: 'remark', label: '备注', + showOverflowtooltip: true, }, ]; export default { - mixins: [basicPage], + mixins: [basicPage, tableHeightMixin], data() { return { urlOptions: { @@ -121,6 +128,11 @@ export default { plain: true, }, ], + listQuery: { + pageNo: 1, + pageSize: 20, + }, + total: 0, }; }, components: { @@ -133,7 +145,7 @@ export default { this.dataListLoading = true; this.urlOptions.getDataListURL(this.listQuery).then((response) => { this.tableData = response.data.list; - this.listQuery.total = response.data.total; + this.total = response.data.total; this.dataListLoading = false; }); }, @@ -141,19 +153,9 @@ export default { switch (val.btnName) { case 'search': this.listQuery.pageNo = 1; - this.listQuery.pageSize = 10; this.listQuery.name = val.name ? val.name : undefined; this.getDataList(); break; - case 'reset': - this.$refs.searchBarForm.resetForm(); - this.listQuery = { - pageSize: 10, - pageNo: 1, - total: 1, - }; - this.getDataList(); - break; case 'add': this.addOrEditTitle = '新增'; this.addOrUpdateVisible = true; diff --git a/src/views/quality/monitoring/equipmentTraceability/index.vue b/src/views/quality/monitoring/equipmentTraceability/index.vue index 77e101eb..9e2d0892 100644 --- a/src/views/quality/monitoring/equipmentTraceability/index.vue +++ b/src/views/quality/monitoring/equipmentTraceability/index.vue @@ -1,10 +1,3 @@ - - diff --git a/src/views/quality/monitoring/materielDateFrom/index.vue b/src/views/quality/monitoring/materielDateFrom/index.vue index e7bd7a88..0d9ab707 100644 --- a/src/views/quality/monitoring/materielDateFrom/index.vue +++ b/src/views/quality/monitoring/materielDateFrom/index.vue @@ -1,10 +1,3 @@ -