From 41d50b20c975faeaa9e5277bdcff13b5acecb575 Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期三, 13 十二月 2023 16:57:37 +0800 Subject: [PATCH] Merge branch 'master' of http://117.34.109.166:18448/r/vue_mdc_430 into develop --- src/views/eam/modules/daily3MaintenanceOrder/DailyMaintenanceStandard3List.vue | 228 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 228 insertions(+), 0 deletions(-) diff --git a/src/views/eam/modules/daily3MaintenanceOrder/DailyMaintenanceStandard3List.vue b/src/views/eam/modules/daily3MaintenanceOrder/DailyMaintenanceStandard3List.vue new file mode 100644 index 0000000..c25ff83 --- /dev/null +++ b/src/views/eam/modules/daily3MaintenanceOrder/DailyMaintenanceStandard3List.vue @@ -0,0 +1,228 @@ +<template> + <a-modal + :title="title" + :width="1250" + :visible="visible" + :confirmLoading="confirmLoading" + @ok="handleOk" + @cancel="handleCancel" + cancelText="鍏抽棴" + > + + <a-spin :spinning="confirmLoading"> + <a-form :form="form"> + <!-- 鏌ヨ鍖哄煙 --> + <div class="table-page-search-wrapper"> + <a-form + layout="inline" + @keyup.enter.native="searchQuery" + > + <a-row :gutter="24"> + <a-col + :md="6" + :sm="8" + > + <a-form-item label="鏍囧噯缂栧彿"> + <a-input + placeholder="璇疯緭鍏ユ爣鍑嗙紪鍙锋绱�" + v-model="queryParam.num" + ></a-input> + </a-form-item> + </a-col> + + <a-col + :md="6" + :sm="8" + > + <a-form-item label="璁惧鍚嶇О"> + <a-input + placeholder="璇疯緭鍏ヨ澶囧悕绉版绱�" + v-model="queryParam.equipmentName" + ></a-input> + </a-form-item> + </a-col> + <a-col + :md="6" + :sm="8" + > + <a-button + type="primary" + @click="searchQuery" + icon="search" + >鏌ヨ</a-button> + <a-button + @click="searchReset" + icon="reload" + style="margin-left:8px;" + >閲嶇疆</a-button> + </a-col> + </a-row> + <a-row :gutter="24"> + <a-col :span="24"> + + </a-col> + </a-row> + </a-form> + </div> + <div style="margin-top:8px;"> + <a-table + ref="table" + bordered + size="middle" + rowKey="id" + :columns="columns" + :dataSource="dataSource" + :pagination="ipagination" + :loading="loading" + :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type: 'radio'}" + @change="handleTableChange" + :customRow="clickThenCheck" + > + </a-table> + </div> + </a-form> + </a-spin> + </a-modal> +</template> + +<script> +import pick from 'lodash.pick' +import { httpAction, getAction } from '@/api/manage' +import { JeecgListMixin } from '@/mixins/JeecgListMixin' +import JInput from '@/components/jeecg/JInput' +import JEllipsis from '@/components/jeecg/JEllipsis'//寮曞叆杩囬暱瑁佸壀 + +export default { + name: "DailyMaintenanceStandardList", + mixins: [JeecgListMixin], + components: { + JInput, + JEllipsis, + }, + data() { + return { + title: "鎿嶄綔", + visible: false, + model: {}, + confirmLoading: false, + form: this.$form.createForm(this), + columns: [ + { + title: '#', + dataIndex: '', + key: 'rowIndex', + align: 'center', + width: 40, + customRender: function (t, r, index) { + return parseInt(index) + 1 + }, + }, + { + title: '鏍囧噯缂栫爜', + align: 'center', + dataIndex: 'num', + }, + { + title: '缁熶竴缂栫爜', + align: 'center', + dataIndex: 'equipmentNum', + }, + { + title: '璁惧鍚嶇О', + align: 'center', + dataIndex: 'equipmentName', + }, + { + title: '璁惧鍨嬪彿', + align: 'center', + dataIndex: 'equipmentModel', + }, + { + title: '鐗圭璁惧', + align: 'center', + dataIndex: 'specificEquipment', + }, + ], + url: { + list: "/eam/maintenanceStandard/getMaintenanceStandard3List", + }, + useId: '', + } + }, + methods: { + searchQuery() { + this.queryParam = { type: "daily", delFlag: '0', useId: this.useId, maintenanceType: '3' }; + this.loadData(1); + }, + searchReset() { + this.queryParam = { type: "daily", delFlag: '0', useId: this.useId, maintenanceType: '3' }; + this.loadData(1) + }, + list(useId) { + this.visible = true; + this.useId = useId; + this.queryParam = { type: "daily", delFlag: '0', useId: useId, versionStatus: '2', maintenanceType: '3' }; + this.loadData(1); + }, + clickThenCheck(record) { + return { + on: { + click: (e) => { + this.selectedRowRecord = record; + this.onSelectChange(record.id.split(","), [record]); + } + } + }; + }, + onSelectChange(selectedRowKeys, selectedRows) { + this.selectedRowKeys = selectedRowKeys; + this.selectedRowRecord = selectedRows[0]; + }, + close() { + this.queryParam = {}; + this.$emit('close'); + this.visible = false; + }, + handleOk() { + const that = this; + // 瑙﹀彂琛ㄥ崟楠岃瘉 + if (that.selectedRowKeys.length > 0) { + if (that.selectedRowRecord.id != null && that.selectedRowRecord.id != "") { + that.$emit('send3MaintenanceStandardRecord', { record: that.selectedRowRecord }); + that.close(); + } else { + that.$message.error("璇烽�夋嫨淇濆吇鏍囧噯锛�") + } + } else { + that.$message.error("璇烽�夋嫨淇濆吇鏍囧噯锛�") + } + }, + handleCancel() { + this.close(); + } + } +} +</script> + +<style scoped> +@import '~@assets/less/common.less'; +rozenRowClass { + color: #c9c9c9; +} +.success { + color: green; +} +.error { + color: red; +} +.fontweight { + font-weight: bold; +} +.ant-card { + margin-left: -30px; + margin-right: -30px; +} +.fontweight { + font-weight: bold; +} +</style> \ No newline at end of file -- Gitblit v1.9.3