¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="12"> |
| | | <a-form-item label="ç»ä¸ç¼ç "> |
| | | <lx-search-equipment-select placeholder="请è¾å
¥ç»ä¸ç¼ç æåç§°æç´¢" v-model="queryParam.equipmentId"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="ç¶æ"> |
| | | <j-dict-select-tag dict-code="report_three_no_spare_submit_status" placeholder="è¯·éæ©ç¶æ" v-model="queryParam.submitStatus"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="åå åæ"> |
| | | <a-input placeholder="请è¾å
¥åå åæ" v-model="queryParam.causeAnalysis"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="å¹è®å½¢å¼"> |
| | | <a-input placeholder="请è¾å
¥å¹è®å½¢å¼" v-model="queryParam.trainingFormat"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="å¹è®å
容"> |
| | | <a-input placeholder="请è¾å
¥å¹è®å
容" v-model="queryParam.trainingContent"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | </template> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">æ¥è¯¢</a-button> |
| | | <a-button type="info" @click="searchReset" icon="reload" style="margin-left: 8px">éç½®</a-button> |
| | | <a @click="handleToggleSearch" style="margin-left: 8px"> |
| | | {{ toggleSearchStatus ? 'æ¶èµ·' : 'å±å¼' }} |
| | | <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/> |
| | | </a> |
| | | </span> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | :scroll="{x:'max-content'}" |
| | | @change="handleTableChange"> |
| | | <span slot="action" slot-scope="text, record"> |
| | | <template> |
| | | <a v-if="record.submitStatus=='PENDING_SUBMIT'||record.submitStatus=='REJECTED'" @click="handleFillIn(record)">å¡«æ¥</a> |
| | | <a-divider v-if="record.submitStatus=='PENDING_SUBMIT'||record.submitStatus=='REJECTED'" type="vertical"/> |
| | | <a-popconfirm v-if="record.submitStatus=='PENDING_SUBMIT'||record.submitStatus=='REJECTED'" title="ç¡®å®æäº¤å?" @confirm="() => handleSubmit(record.id)"> |
| | | <a>æäº¤</a> |
| | | </a-popconfirm> |
| | | </template> |
| | | <a-divider v-if="record.submitStatus=='PENDING_SUBMIT'||record.submitStatus=='REJECTED'" type="vertical"/> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | </span> |
| | | |
| | | |
| | | <!--å符串è¶
é¿æªåçç¥å·æ¾ç¤º--> |
| | | <span slot="accidentPhenomenon" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="8"/> |
| | | </span> |
| | | <!--å符串è¶
é¿æªåçç¥å·æ¾ç¤º--> |
| | | <span slot="measure" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="8"/> |
| | | </span> |
| | | <!--å符串è¶
é¿æªåçç¥å·æ¾ç¤º--> |
| | | <span slot="causingResults" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="8"/> |
| | | </span> |
| | | <!--å符串è¶
é¿æªåçç¥å·æ¾ç¤º--> |
| | | <span slot="causeAnalysis" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="8"/> |
| | | </span> |
| | | <!--å符串è¶
é¿æªåçç¥å·æ¾ç¤º--> |
| | | <span slot="preventionMeasures" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="8"/> |
| | | </span> |
| | | <!--å符串è¶
é¿æªåçç¥å·æ¾ç¤º--> |
| | | <span slot="trainingFormat" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="8"/> |
| | | </span> |
| | | <!--å符串è¶
é¿æªåçç¥å·æ¾ç¤º--> |
| | | <span slot="trainingContent" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="8"/> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | <!-- tableåºå-end --> |
| | | |
| | | <!-- 表ååºå --> |
| | | <eamReportThreeNoSpare-modal ref="modalForm" @ok="modalFormOk"></eamReportThreeNoSpare-modal> |
| | | |
| | | <!--审æ¹çªå£--> |
| | | <report-threeNo-spare-approval-modal ref="reportThreeNoSpareApprovalModal" |
| | | :selectShenpiData="selectedRowData"/> |
| | | |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import '@/assets/less/TableExpand.less' |
| | | import EamReportThreeNoSpareModal from './modules/EamReportThreeNoSpareModal' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import {getAction} from "@api/manage"; |
| | | import LxSearchEquipmentSelect from "@views/eam/equipment/modules/LxSearchEquipmentSelect.vue"; |
| | | import ReportThreeNoSpareApprovalModal |
| | | from '../../flowable/workflow/repairOrder/ReportThreeNoSpareApprovalModal' |
| | | |
| | | export default { |
| | | name: "EamReportThreeNoSpareList", |
| | | mixins:[JeecgListMixin], |
| | | components: { |
| | | ReportThreeNoSpareApprovalModal, |
| | | LxSearchEquipmentSelect, |
| | | EamReportThreeNoSpareModal |
| | | }, |
| | | props: { |
| | | isDisplayOperation: { |
| | | type: Boolean, |
| | | default: true |
| | | }, |
| | | propsQueryParam: { |
| | | type: Object |
| | | } |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'âä¸ä¸æ¾è¿çååâåæè¡¨ç®¡ç页é¢', |
| | | disableMixinCreated: true, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | }, |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'equipmentCode', |
| | | fixed: 'left', |
| | | scopedSlots: { customRender: 'equipmentCode' } |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '设å¤åå·', |
| | | align: 'center', |
| | | dataIndex: 'equipmentModel', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: 'ç¶æ', |
| | | align: 'center', |
| | | dataIndex: 'submitStatus_dictText', |
| | | }, |
| | | { |
| | | title: 'äºæ
ç°è±¡', |
| | | align: 'center', |
| | | dataIndex: 'accidentPhenomenon', |
| | | scopedSlots: {customRender: 'accidentPhenomenon'}, |
| | | }, |
| | | { |
| | | title: 'éåæªæ½', |
| | | align: 'center', |
| | | dataIndex: 'measure', |
| | | scopedSlots: {customRender: 'measure'}, |
| | | }, |
| | | { |
| | | title: 'é æç»æ', |
| | | align: 'center', |
| | | dataIndex: 'causingResults', |
| | | scopedSlots: {customRender: 'causingResults'}, |
| | | }, |
| | | { |
| | | title: 'åå åæ', |
| | | align:"center", |
| | | dataIndex: 'causeAnalysis', |
| | | scopedSlots: {customRender: 'causeAnalysis'}, |
| | | }, |
| | | { |
| | | title: 'é¢é²æªæ½', |
| | | align: 'center', |
| | | dataIndex: 'preventionMeasures', |
| | | scopedSlots: {customRender: 'preventionMeasures'}, |
| | | }, |
| | | { |
| | | title: 'å¹è®æè²', |
| | | align:"center", |
| | | dataIndex: 'isTrainingEducation_dictText', |
| | | }, |
| | | { |
| | | title: 'å¹è®å½¢å¼', |
| | | align:"center", |
| | | dataIndex: 'trainingFormat', |
| | | scopedSlots: {customRender: 'trainingFormat'}, |
| | | }, |
| | | { |
| | | title: 'å¹è®å
容', |
| | | align:"center", |
| | | dataIndex: 'trainingContent', |
| | | scopedSlots: {customRender: 'trainingContent'}, |
| | | }, |
| | | { |
| | | title: 'å¹è®äºº', |
| | | align:"center", |
| | | dataIndex: 'trainingUser_dictText' |
| | | }, |
| | | { |
| | | title: 'å¹è®æ¶é´', |
| | | align:"center", |
| | | dataIndex: 'trainingUserTime' |
| | | }, |
| | | { |
| | | title: 'åä½é¢å¯¼', |
| | | align:"center", |
| | | dataIndex: 'unitLeader_dictText' |
| | | }, |
| | | { |
| | | title: 'é¢å¯¼æè§', |
| | | align:"center", |
| | | dataIndex: 'leaderOpinion' |
| | | }, |
| | | { |
| | | title: 'é¢å¯¼ç¡®è®¤æ¶é´', |
| | | align:"center", |
| | | dataIndex: 'leaderConfirmTime' |
| | | }, |
| | | ], |
| | | selectedRowData: {}, |
| | | url: { |
| | | list: "/eam/eamReportThreeNoSpare/list", |
| | | delete: "/eam/eamReportThreeNoSpare/delete", |
| | | deleteBatch: "/eam/eamReportThreeNoSpare/deleteBatch", |
| | | exportXlsUrl: "eam/eamReportThreeNoSpare/exportXls", |
| | | importExcelUrl: "eam/eamReportThreeNoSpare/importExcel", |
| | | submit:"eam/eamReportThreeNoSpare/submit" |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | | if (!this.isDisplayOperation) this.queryParam = Object.assign({}, this.propsQueryParam) |
| | | else { |
| | | const operationColumn = { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'action' }, |
| | | width: 200, |
| | | fixed: 'right' |
| | | } |
| | | this.columns = [...this.columns, operationColumn] |
| | | } |
| | | this.loadData(1) |
| | | }, |
| | | methods: { |
| | | /** |
| | | * ç¹å»å¡«æ¥æ¶è§¦å |
| | | * @param record |
| | | */ |
| | | handleFillIn(record) { |
| | | this.$refs.modalForm.title = 'å¡«æ¥' |
| | | this.$refs.modalForm.handleFillIn(record) |
| | | }, |
| | | |
| | | /** |
| | | * ç¹å»æäº¤æ¶è§¦å |
| | | * @param id |
| | | */ |
| | | handleSubmit(id) { |
| | | this.loading = true |
| | | getAction(this.url.submit, { id }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | this.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | this.loadData() |
| | | } else { |
| | | this.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | this.loading = false |
| | | } |
| | | }) |
| | | }, |
| | | /** |
| | | * ç¹å»è¯¦æ
触å |
| | | * @param record è¡¨æ ¼è¡ä¿¡æ¯ |
| | | */ |
| | | handleDetail(record) { |
| | | this.selectRepairOrderData = Object.assign({}, record) |
| | | this.$refs.reportThreeNoSpareApprovalModal.visible = true |
| | | this.$refs.reportThreeNoSpareApprovalModal.title = '详æ
' |
| | | this.$refs.reportThreeNoSpareApprovalModal.disableSubmit = true |
| | | this.$refs.reportThreeNoSpareApprovalModal.handleDetail(record) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |