From 1e1e70da5288f47d8770ba2e7f22f3362e5b577c Mon Sep 17 00:00:00 2001 From: zhuzhuanzhuan Date: 星期五, 08 十二月 2023 17:16:35 +0800 Subject: [PATCH] 1、全局修改密码弹窗中的新密码校验长度与数据字典password_length设置保持一致 2、报警分析页面优化过快点击多次表格行时图表内容出现数据残留以及加载图表应设置加载中动画,若不设置用户在查询时短时间内不清楚有无数据 3、车间看板以及设备监控页面设备详情弹窗右上角增加关闭按钮、设备详情弹窗透明度加深、设备详情弹窗图表表盘指针对比色加强、调整设备详情弹窗中描述列表子项标题对齐方式由左对齐改为右对齐,锁定运行数据描述列表子项数值宽度,超出部分隐藏出现省略号,悬浮出现气泡卡片 4、设备利用率、设备开动率、班次利用率页面表格前三列增加表头,依次为公司、车间、工段以及表格有关时间值调整为若小时或分钟为0则不显示 5、设备综合效率分析页面表格数据默认每页最多显示10条改为20条 6、设备加工工件报表页面完成布局及功能实现 --- src/views/eam/modules/dailyMaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue | 160 ++++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 127 insertions(+), 33 deletions(-) diff --git a/src/views/eam/modules/dailyMaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue b/src/views/eam/modules/dailyMaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue index 1e3fb34..277863d 100644 --- a/src/views/eam/modules/dailyMaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue +++ b/src/views/eam/modules/dailyMaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue @@ -152,7 +152,7 @@ <template v-for="col in columns" :slot="col.dataIndex" - slot-scope='text, record' + slot-scope='text, record, index' > <div :key="col.dataIndex"> <span @@ -192,11 +192,49 @@ 棰勮 </a> --> + <a-input + :value="text" + v-if="col.dataIndex == 'maintenanceOrderDetailUda1'" + @change="(e)=>handleChange(e, record.key, col, index)" + placeholder="璇疯緭鍏ヤ繚鍏讳汉" + :disabled="record.disabled" + /> + <!-- <a-input + :value="text" + v-if="col.dataIndex == 'maintenanceOrderDetailUda2'" + @change="(e)=>handleChange(e, record.key, col, index)" + placeholder="璇疯緭鍏ユ墽琛屾儏鍐�" + /> --> + <a-textarea + :value="text" + v-if="col.dataIndex == 'maintenanceOrderDetailUda2'" + :maxLength="500" + auto-size + placeholder="璇疯緭鍏ユ墽琛屾儏鍐�" + @change="(e)=>handleChange(e, record.key, col, index)" + :disabled="record.disabled" + /> </div> - </template> - </a-table> + <div :style="{width: '100%',border: '1px solid #e9e9e9',padding: '10px 16px',background: '#fff',}"> + <a-row :style="{textAlign:'right'}"> + <a-button + :style="{marginRight: '8px'}" + @click="handleCancel" + > + 鍙栨秷 + </a-button> + <a-button + @click="handleOk()" + type="primary" + :disabled="this.model.status!='4'" + :loading="confirmLoading" + >淇濆瓨</a-button> + </a-row> + <!-- v-has="'dailyMaintenanceOrder:actualWorkHoursSave'" --> + <!-- :disabled="false" --> + </div> </div> </a-tab-pane> @@ -297,7 +335,7 @@ <script> import { JeecgListMixin } from '@/mixins/JeecgListMixin' -import { requestPut, getAction, downFile } from '@/api/manage' +import { requestPut, getAction, downFile, postAction } from '@/api/manage' import Tooltip from 'ant-design-vue/es/tooltip' import { preview } from 'vue-photo-preview' @@ -327,7 +365,7 @@ }, data() { return { - title: "鏃ュ父淇濆吇宸ュ崟鎵ц", + title: "浜岀骇淇濆吇宸ュ崟鎵ц", visible: false, maskClosable: true, confirmLoading: false, @@ -339,6 +377,7 @@ maintenanceStandardId: '-1', dataSource: [], model: {}, + form: this.$form.createForm(this), labelCol: { xs: { span: 24 }, sm: { span: 6 }, @@ -372,12 +411,12 @@ dataIndex: 'location', }, // class: "notshow" - { - title: '绀烘剰鍥�', - align: 'center', - dataIndex: 'photo', - scopedSlots: { customRender: 'photo' }, - }, + // { + // title: '绀烘剰鍥�', + // align: 'center', + // dataIndex: 'photo', + // scopedSlots: { customRender: 'photo' }, + // }, // class: "notshow" { title: '淇濆吇椤圭洰', @@ -389,35 +428,49 @@ align: 'center', dataIndex: 'standard', }, - { - title: '鏂规硶', - align: 'center', - dataIndex: 'maintenanceMethodName', - }, - { - title: '宸ュ叿', - align: 'center', - dataIndex: 'maintenanceTool', - }, - { - title: '瀹夊叏瑕佹眰', - align: 'center', - dataIndex: 'maintenanceRequire', - }, - { - title: '宸ユ椂瀹氶锛堝皬鏃讹級', - align: 'center', - dataIndex: 'workingHourQuota', - }, + // { + // title: '鏂规硶', + // align: 'center', + // dataIndex: 'maintenanceMethodName', + // }, + // { + // title: '宸ュ叿', + // align: 'center', + // dataIndex: 'maintenanceTool', + // }, + // { + // title: '瀹夊叏瑕佹眰', + // align: 'center', + // dataIndex: 'maintenanceRequire', + // }, + // { + // title: '宸ユ椂瀹氶锛堝皬鏃讹級', + // align: 'center', + // dataIndex: 'workingHourQuota', + // }, { title: '淇濆吇鍛ㄦ湡', align: 'center', dataIndex: 'maintenanceCycleName', }, + // { + // title: '缁翠繚涓撲笟', + // align: 'center', + // dataIndex: 'maintenanceSpecialtyName', + // }, { - title: '缁翠繚涓撲笟', + title: '鎵ц鎯呭喌', align: 'center', - dataIndex: 'maintenanceSpecialtyName', + dataIndex: 'maintenanceOrderDetailUda2', + width: 200, + scopedSlots: { customRender: 'maintenanceOrderDetailUda2' }, + }, + { + title: '淇濆吇浜�', + align: 'center', + dataIndex: 'maintenanceOrderDetailUda1', + width: 200, + scopedSlots: { customRender: 'maintenanceOrderDetailUda1' }, }, ], url: { @@ -427,6 +480,7 @@ editStatus: "/eam/dailyMaintenanceOrder/editStatus", revocation: "/eam/dailyMaintenanceOrder/revocation", report: "/eam/dailyMaintenanceOrder/report", + edit: "/eam/dailyMaintenanceOrderDetail/edit" }, } }, @@ -518,6 +572,7 @@ that.buttonDistable = false that.revocationDistable = true that.SWbuttonDistable = true + that.loadData1(1) } else { that.$message.warning("宸ュ崟寮�宸ュけ璐ワ紒") } @@ -575,6 +630,7 @@ that.buttonDistable = false that.revocationDistable = true that.SWbuttonDistable = true + that.loadData1(1) } else { that.$message.warning(res.message) } @@ -587,7 +643,45 @@ }, //淇濆瓨 handleOk() { + const that = this + this.loading = true; + this.form.validateFields((err, values) => { + if (!err) { + that.confirmLoading = true + let formData = {} + formData.dailyMaintenanceOrderDetails = that.dataSource; + let obj = obj = postAction(this.url.edit, formData) + obj.then((res) => { + if (res.success) { + that.$message.success(res.message) + that.$emit('ok') + } else { + that.$message.warning(res.message) + } + }).finally(() => { + that.confirmLoading = false + that.loadData1(); + this.loading = false; + }) + } + }) + }, + + handleChange(value, key, column, index) { + let that = this; + const temp = [...that.dataSource]; + const target = temp[index]; + if (target) { + target[column.dataIndex] = value; + if ('maintenanceOrderDetailUda1' == column.dataIndex) { + target['maintenanceOrderDetailUda1'] = value.target.value; + } + if ('maintenanceOrderDetailUda2' == column.dataIndex) { + target['maintenanceOrderDetailUda2'] = value.target.value; + } + that.dataSource = temp; + } }, view(record) { -- Gitblit v1.9.3