| | |
| | | // dataIndex: 'actualWorkingHourQuota', |
| | | // }, |
| | | { |
| | | title: 'æ§è¡äºº', |
| | | title: 'æ¥å·¥äºº', |
| | | align: "center", |
| | | dataIndex: 'maintenanceUserName' |
| | | dataIndex: 'maintenanceUserId' |
| | | }, |
| | | { |
| | | title: 'é®é¢åç¸åºå¤çæªæ½æè¿°', |
| | |
| | | // dataIndex: 'actualWorkingHourQuota', |
| | | // }, |
| | | { |
| | | title: 'æ§è¡äºº', |
| | | title: 'æ¥å·¥äºº', |
| | | align: "center", |
| | | dataIndex: 'maintenanceUserName' |
| | | dataIndex: 'maintenanceUserId' |
| | | }, |
| | | { |
| | | title: 'é®é¢åç¸åºå¤çæªæ½æè¿°', |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card |
| | | title="ä¸çº§ä¿å
»æ å" |
| | | :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='24' |
| | | > |
| | | <a-form-item label='æ åç¼ç '> |
| | | <a-input |
| | | placeholder='请è¾å
¥æ åç¼ç ' |
| | | v-model='queryParam.num' |
| | | ></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.name' |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :md="10" |
| | | :sm="8" |
| | | > |
| | | <a-form-item label="çæ¬ç¶æ"> |
| | | <a-radio-group |
| | | v-model="queryParam.versionStatus" |
| | | @change="onChange" |
| | | default-value="2" |
| | | > |
| | | <a-radio-button value="1"> |
| | | æªçæ |
| | | </a-radio-button> |
| | | <a-radio-button value="2"> |
| | | å·²çæ |
| | | </a-radio-button> |
| | | <a-radio-button value="3"> |
| | | 已失æ |
| | | </a-radio-button> |
| | | </a-radio-group> |
| | | </a-form-item> |
| | | </a-col> |
| | | <!-- <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='primary' |
| | | @click='searchReset' |
| | | icon='reload' |
| | | style='margin-left: 8px' |
| | | >éç½®</a-button> |
| | | </span> |
| | | </a-col> --> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | |
| | | <div class="table-operator"> |
| | | <a-button |
| | | @click='handleAdd' |
| | | type='primary' |
| | | icon='plus' |
| | | v-has="'dailyMaintenance3Standard:add'" |
| | | >ç¼å¶</a-button> |
| | | <a-button |
| | | type='primary' |
| | | @click='searchQuery' |
| | | icon='search' |
| | | >æ¥è¯¢</a-button> |
| | | <a-button |
| | | type='primary' |
| | | @click='searchReset' |
| | | icon='reload' |
| | | style='margin-left: 8px' |
| | | >éç½®</a-button> |
| | | <a-upload |
| | | name="file" |
| | | :showUploadList="false" |
| | | :multiple="false" |
| | | :headers="tokenHeader" |
| | | :action="importExcelUrl" |
| | | @change="handleImportExcel" |
| | | > |
| | | <a-button |
| | | type="primary" |
| | | icon="import" |
| | | v-has="'dailyMaintenance3Standard:import'" |
| | | >导å
¥</a-button> |
| | | </a-upload> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | <div |
| | | class='ant-alert ant-alert-info' |
| | | style='margin-bottom: 16px;' |
| | | > |
| | | <i class='anticon anticon-info-circle ant-alert-icon'></i> 已鿩 <a style='font-weight: 600'>{{ selectedRowKeys.length }}</a>项 |
| | | <a |
| | | style='margin-left: 24px' |
| | | @click='onClearSelected' |
| | | >æ¸
空</a> |
| | | </div> |
| | | |
| | | <a-table |
| | | ref='table' |
| | | size='middle' |
| | | bordered |
| | | rowKey='id' |
| | | :scroll="{ x: 'calc(2300px + 50%)', y: 900 }" |
| | | :columns='columns' |
| | | :dataSource='dataSource' |
| | | :pagination='ipagination' |
| | | :loading='loading' |
| | | :rowSelection='{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}' |
| | | :customRow='clickThenSelect' |
| | | @change='handleTableChange' |
| | | > |
| | | |
| | | <!-- <span |
| | | slot='action' |
| | | slot-scope='text, record' |
| | | > |
| | | <a @click='handleEdit(record)'>ç¼è¾</a> |
| | | |
| | | <a-divider type='vertical' /> |
| | | <a-dropdown> |
| | | <a class='ant-dropdown-link'>æ´å¤ <a-icon type='down' /></a> |
| | | <a-menu slot='overlay'> |
| | | <a-menu-item> |
| | | <a-popconfirm |
| | | title='ç¡®å®å é¤å?' |
| | | @confirm='() => handleDelete(record.id)' |
| | | > |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> --> |
| | | |
| | | <span |
| | | slot="action" |
| | | slot-scope="text, record" |
| | | > |
| | | <a |
| | | v-show="record.versionStatus == '1' && record.approvalStatus == '1' " |
| | | @click="handleAuditApproval(record)" |
| | | v-has="'dailyMaintenance3Standard:audit'" |
| | | >å®¡æ ¸</a> |
| | | <a-divider type="vertical" /> |
| | | <a |
| | | v-show="record.versionStatus == '1' && record.approvalStatus == '4'" |
| | | @click="handleAuditApproval(record)" |
| | | v-has="'dailyMaintenance3Standard:againAudit'" |
| | | >éæ°å®¡æ ¸</a> |
| | | <a-divider type="vertical" /> |
| | | <a |
| | | v-show="record.versionStatus == '1'&& record.approvalStatus == '3' " |
| | | @click="handleAuditApproval(record)" |
| | | v-has="'dailyMaintenance3Standard:approval'" |
| | | >审æ¹</a> |
| | | <a-divider type="vertical" /> |
| | | <a |
| | | v-show="record.versionStatus == '1' && (record.approvalStatus == '1' || record.approvalStatus == '2')" |
| | | @click="handleEdit(record)" |
| | | v-has="'dailyMaintenance3Standard:edit'" |
| | | >ç¼è¾</a> |
| | | <a-divider type="vertical" /> |
| | | <a-popconfirm |
| | | v-show="record.versionStatus == '1' && (record.approvalStatus == '1' || record.approvalStatus == '2')" |
| | | title="ç¡®å®å é¤å?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | v-has="'dailyMaintenance3Standard:delete'" |
| | | > |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | <a-divider type="vertical" /> |
| | | <a |
| | | v-show="record.versionStatus != '1'" |
| | | @click="handleRevise(record)" |
| | | v-has="'dailyMaintenance3Standard:revise'" |
| | | >åç</a> |
| | | <a-divider type="vertical" /> |
| | | <a |
| | | v-show="record.versionStatus == '2'" |
| | | @click="handleTakeEffect(record)" |
| | | v-has="'dailyMaintenance3Standard:loseEfficacy'" |
| | | >失æ</a> |
| | | </span> |
| | | |
| | | </a-table> |
| | | <a-tabs |
| | | type="card" |
| | | defaultActiveKey="1" |
| | | > |
| | | <a-tab-pane |
| | | tab='ä¿å
»æç»' |
| | | key="1" |
| | | > |
| | | <div |
| | | class="table-operator" |
| | | style="margin:-16px" |
| | | > |
| | | <daily-maintenance-standard-detail :maintenanceStandardId='maintenanceStandardId' /> |
| | | </div> |
| | | </a-tab-pane> |
| | | <!-- <a-tab-pane |
| | | tab='计åç¨æ' |
| | | key="2" |
| | | > |
| | | <div |
| | | class="table-operator" |
| | | style="margin:-16px" |
| | | > |
| | | <maintenance-standard-planning-material :maintenanceStandardId='maintenanceStandardId' /> |
| | | </div> |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | | tab='å±é©é²æ§' |
| | | key="3" |
| | | > |
| | | <div |
| | | class="table-operator" |
| | | style="margin:-16px" |
| | | > |
| | | <maintenance-standard-safety-requirement :maintenanceStandardId='maintenanceStandardId' /> |
| | | </div> |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | | tab='ä½ä¸æå¯¼ä¹¦' |
| | | key="4" |
| | | > |
| | | <div |
| | | class="table-operator" |
| | | style="margin:-16px" |
| | | > |
| | | <maintenance-standard-work-instruction :maintenanceStandardId='maintenanceStandardId' /> |
| | | </div> |
| | | </a-tab-pane> --> |
| | | |
| | | </a-tabs> |
| | | </div> |
| | | |
| | | <daily-maintenance-standard-modal |
| | | ref='modalForm' |
| | | @ok='modalFormOk' |
| | | ></daily-maintenance-standard-modal> |
| | | |
| | | <audit-approval-modal |
| | | ref='auditApprovalModal' |
| | | @ok='modalFormOk' |
| | | ></audit-approval-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | | import { getAction, postAction, requestPut } from '@/api/manage' |
| | | import DailyMaintenanceStandardDetail from './modules/dailyMaintenanceStandard3/DailyMaintenanceStandardDetail' |
| | | import MaintenanceStandardPlanningMaterial from '@/views/eam/modules/dailyMaintenanceStandard/MaintenanceStandardPlanningMaterial' |
| | | import MaintenanceStandardSafetyRequirement from '@/views/eam/modules/dailyMaintenanceStandard/MaintenanceStandardSafetyRequirement' |
| | | import DailyMaintenanceStandardModal from './modules/dailyMaintenanceStandard3/DailyMaintenanceStandardModal' |
| | | import MaintenanceStandardWorkInstruction from '@/views/eam/modules/dailyMaintenanceStandard/MaintenanceStandardWorkInstruction' |
| | | import AuditApprovalModal from './modules/dailyMaintenanceStandard/AuditApprovalModal' |
| | | import '@/assets/less/TableExpand.less' |
| | | |
| | | export default { |
| | | name: 'DailyMaintenanceStandardList', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | DailyMaintenanceStandardDetail, |
| | | DailyMaintenanceStandardModal, |
| | | MaintenanceStandardPlanningMaterial, |
| | | MaintenanceStandardSafetyRequirement, |
| | | MaintenanceStandardWorkInstruction, |
| | | AuditApprovalModal |
| | | }, |
| | | data() { |
| | | return { |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | | { |
| | | title: 'æ åç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'num', |
| | | }, |
| | | { |
| | | title: 'æ åç±»å', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceTypeName', |
| | | }, |
| | | { |
| | | title: 'ç¾å®¡ç¶æ', |
| | | align: 'center', |
| | | dataIndex: 'approvalStatusName', |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'equipmentNum', |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName', |
| | | }, |
| | | { |
| | | title: '设å¤åå·', |
| | | align: 'center', |
| | | dataIndex: 'equipmentModel', |
| | | }, |
| | | { |
| | | title: '使ç¨é¨é¨', |
| | | align: 'center', |
| | | dataIndex: 'useDepartName', |
| | | }, |
| | | |
| | | { |
| | | title: '责任çç»', |
| | | align: 'center', |
| | | dataIndex: 'teamName', |
| | | }, |
| | | // { |
| | | // title: 'ç¹ç§è®¾å¤', |
| | | // align: 'center', |
| | | // dataIndex: 'specificEquipment', |
| | | // }, |
| | | { |
| | | title: 'å®¡æ ¸æè§', |
| | | align: 'center', |
| | | dataIndex: 'auditFeedback', |
| | | }, |
| | | { |
| | | title: 'å®¡æ¹æè§', |
| | | align: 'center', |
| | | dataIndex: 'approvalFeedback', |
| | | }, |
| | | { |
| | | title: 'ç¼å¶äºº', |
| | | align: 'center', |
| | | dataIndex: 'writePerson', |
| | | }, |
| | | { |
| | | title: 'å®¡æ ¸äºº', |
| | | align: 'center', |
| | | dataIndex: 'auditPerson', |
| | | }, |
| | | { |
| | | title: '审æ¹äºº', |
| | | align: 'center', |
| | | dataIndex: 'approvalPerson', |
| | | }, |
| | | { |
| | | title: '失æäºº', |
| | | align: 'center', |
| | | dataIndex: 'loseEfficacyPerson', |
| | | }, |
| | | { |
| | | title: 'ç¼å¶æ¥æ', |
| | | align: 'center', |
| | | dataIndex: 'createTime', |
| | | width: 150, |
| | | }, |
| | | { |
| | | title: 'çææ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'takeEffectTime', |
| | | width: 150, |
| | | }, |
| | | { |
| | | title: 'å¤±ææ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'loseEfficacyTime', |
| | | width: 150, |
| | | }, |
| | | { |
| | | title: 'çæ¬', |
| | | align: 'center', |
| | | dataIndex: 'version', |
| | | }, |
| | | { |
| | | title: 'çæ¬ç¶æ', |
| | | align: 'center', |
| | | dataIndex: 'versionStatusName', |
| | | }, |
| | | // { |
| | | // title: 'å建人', |
| | | // align: 'center', |
| | | // dataIndex: 'createBy', |
| | | // }, |
| | | |
| | | // { |
| | | // title: 'æ´æ°äºº', |
| | | // align: 'center', |
| | | // dataIndex: 'updateBy', |
| | | // }, |
| | | // { |
| | | // title: 'æ´æ°æ¥æ', |
| | | // align: 'center', |
| | | // dataIndex: 'updateTime', |
| | | // }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | fixed: 'right', |
| | | scopedSlots: { customRender: 'action' }, |
| | | width: 200, |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/eam/maintenanceStandard/getMaintenanceStandardList', |
| | | delete: '/eam/maintenanceStandard/delete', |
| | | deleteBatch: '/eam/maintenanceStandard/deleteBatch', |
| | | versionTakeEffect: "/eam/maintenanceStandard/versionTakeEffect", |
| | | importExcelUrl: "/eam/maintenanceStandard/importExcelOfTwoMaintenance", |
| | | }, |
| | | /* å页忰 */ |
| | | ipagination: { |
| | | current: 1, |
| | | pageSize: 20, |
| | | pageSizeOptions: ['5', '10', '20', '50'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + '-' + range[1] + ' å
±' + total + 'æ¡' |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | maintenanceStandardId: '-1', |
| | | queryParam: { type: 'daily', maintenanceType: '3' } |
| | | } |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function () { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | watch: { |
| | | selectionRows() { |
| | | this.$bus.$emit('dailyMaintenanceStandardSelectionRows', this.selectionRows); |
| | | }, |
| | | }, |
| | | methods: { |
| | | clickThenSelect(record) { |
| | | return { |
| | | on: { |
| | | click: () => { |
| | | this.onSelectChange(record.id.split(','), [record]) |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | onClearSelected() { |
| | | this.selectedRowKeys = [] |
| | | this.selectionRows = [] |
| | | this.maintenanceStandardId = '-1' |
| | | }, |
| | | onSelectChange(selectedRowKeys, selectionRows) { |
| | | if (selectedRowKeys.length == 1) { |
| | | this.maintenanceStandardId = selectionRows[0]['id'] |
| | | } else { |
| | | this.maintenanceStandardId = '-1' |
| | | } |
| | | this.selectedRowKeys = selectedRowKeys |
| | | this.selectionRows = selectionRows |
| | | }, |
| | | |
| | | onChange(e) { |
| | | this.queryParam.versionStatus = e.target.value; |
| | | this.loadData(); |
| | | }, |
| | | |
| | | loadData(arg) { |
| | | if (!this.url.list) { |
| | | this.$message.error('请设置url.list屿§!') |
| | | return |
| | | } |
| | | //å è½½æ°æ® è¥ä¼ å
¥åæ°1åå 载第ä¸é¡µçå
容 |
| | | if (arg === 1) { |
| | | this.ipagination.current = 1 |
| | | } |
| | | this.onClearSelected() |
| | | var params = this.getQueryParams()//æ¥è¯¢æ¡ä»¶ |
| | | this.loading = true |
| | | getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | this.dataSource = res.result.records |
| | | this.ipagination.total = res.result.total |
| | | } |
| | | if (res.code === 510) { |
| | | this.$message.warning(res.message) |
| | | } |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | |
| | | handleEdit: function (record) { |
| | | this.$refs.modalForm.edit(record) |
| | | this.$refs.modalForm.title = 'ç¼è¾' |
| | | this.$refs.modalForm.disableSubmit = false |
| | | this.$refs.modalForm.isRevise = false; |
| | | }, |
| | | handleAdd: function () { |
| | | this.$refs.modalForm.add() |
| | | this.$refs.modalForm.title = 'æ°å¢' |
| | | this.$refs.modalForm.disableSubmit = false |
| | | this.$refs.modalForm.isRevise = false; |
| | | }, |
| | | |
| | | //å®¡æ ¸å®¡æ¹ |
| | | handleAuditApproval: function (record) { |
| | | this.$refs.auditApprovalModal.showModals(record); |
| | | this.$refs.auditApprovalModal.title = "å®¡æ ¸"; |
| | | }, |
| | | |
| | | //åç |
| | | handleRevise: function (record) { |
| | | this.$refs.modalForm.edit(record); |
| | | this.$refs.modalForm.title = "ä¿å
»æ åçæ¬å级"; |
| | | this.$refs.modalForm.disableSubmit = false; |
| | | this.$refs.modalForm.isRevise = true; |
| | | }, |
| | | |
| | | //失æ |
| | | handleTakeEffect(record) { |
| | | const that = this; |
| | | that.confirmLoading = true; |
| | | this.$confirm({ |
| | | title: 'ä¿å
»æ åçæ¬å¤±æï¼', |
| | | content: 'æç¤ºï¼çæ¬å¤±æåå°ç¦æ¢ä½¿ç¨ï¼è¯·è°¨æ
æä½ï¼', |
| | | okText: '确认', |
| | | cancelText: 'åæ¶', |
| | | onOk() { |
| | | requestPut(that.url.versionTakeEffect, { id: record.id, num: record.num, versionStatus: '3' }).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("çæ¬å¤±ææåï¼") |
| | | that.loadData(1) |
| | | } else { |
| | | that.$message.warning("çæ¬å¤±æå¤±è´¥ï¼") |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | }) |
| | | }, |
| | | }) |
| | | }, |
| | | |
| | | searchReset() { |
| | | this.maintenanceStandardId = '-1' |
| | | this.queryParam = { type: 'daily', maintenanceType: '3' } |
| | | this.loadData(1); |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | .table-operator .ant-btn { |
| | | margin: 10px 8px 8px 10px; |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <a-card |
| | | title="卿æ§ä¿å
»æ å" |
| | | title="äºçº§ä¿å
»æ å" |
| | | :bordered='false' |
| | | > |
| | | <div class='table-page-search-wrapper'> |
| | |
| | | <a-button |
| | | type="primary" |
| | | icon="import" |
| | | v-has="'dailyMaintenanceStandard:import'" |
| | | >导å
¥</a-button> |
| | | </a-upload> |
| | | </div> |
| | |
| | | total: 0 |
| | | }, |
| | | maintenanceStandardId: '-1', |
| | | queryParam: { type: 'daily' } |
| | | queryParam: { type: 'daily', maintenanceType: '2' } |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | |
| | | searchReset() { |
| | | this.maintenanceStandardId = '-1' |
| | | this.queryParam = { type: 'daily' } |
| | | this.queryParam = { type: 'daily', maintenanceType: '2' } |
| | | this.loadData(1); |
| | | }, |
| | | } |
| | |
| | | > |
| | | <span |
| | | v-if="this.model != null" |
| | | class="hight" |
| | | class="hightColor" |
| | | >{{ this.model.teamName }}</span> |
| | | <span |
| | | v-else |
| | |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-col :span="17"> |
| | | <a-form-item |
| | | label="é®é¢åå¤çæªæ½æè¿°" |
| | | label="é®é¢/å¤çæªæ½" |
| | | :labelCol="{span:3}" |
| | | :wrapperCol="{span:18}" |
| | | class="hightColor" |
| | |
| | | :disabled="this.model.status!='4'" |
| | | :placeholder="'请è¾å
¥é®é¢åå¤çæªæ½æè¿°'" |
| | | v-model="model.description" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="7"> |
| | | <a-form-item |
| | | label="æ¥å·¥äºº" |
| | | :labelCol="{span:4}" |
| | | :wrapperCol="{span:17}" |
| | | class="hightColor" |
| | | > |
| | | <a-input |
| | | :disabled="this.model.status!='4'" |
| | | allow-clear |
| | | placeholder="请è¾å
¥æ¥å·¥äºº" |
| | | v-model="model.maintenanceUserId" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | |
| | | }, |
| | | { |
| | | title: 'é¨ä½', |
| | | title: 'ä¿å
»é¨ä½', |
| | | align: 'center', |
| | | dataIndex: 'location', |
| | | }, |
| | |
| | | // }, |
| | | // class: "notshow" |
| | | { |
| | | title: 'ä¿å
»é¡¹ç®', |
| | | title: 'ä¿å
Ȍ
容', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceProjectNum', |
| | | }, |
| | | { |
| | | title: 'ä¿å
»æ å', |
| | | title: 'éªæ¶æ å', |
| | | align: 'center', |
| | | dataIndex: 'standard', |
| | | }, |
| | |
| | | handleReport() { |
| | | const that = this; |
| | | that.confirmLoading = true; |
| | | for (let i = 0; i < that.dataSource.length; i++) { |
| | | let o = this.dataSource[i] |
| | | if (o.maintenanceOrderDetailUda1 == null || o.maintenanceOrderDetailUda1 == '') { |
| | | that.$message.warning("请填å第" + (i + 1) + "ä¿å
»äººï¼"); |
| | | that.confirmLoading = false; |
| | | return |
| | | } |
| | | } |
| | | if (that.model.maintenanceUserId == null || that.model.maintenanceUserId == "") { |
| | | that.$message.warning("è¯·å¡«åæ¥å·¥äººï¼"); |
| | | that.confirmLoading = false; |
| | | return |
| | | } |
| | | this.$confirm({ |
| | | title: 'ä¿å
»å·¥åæ¥å·¥', |
| | | content: 'æç¤ºï¼æ¥å·¥åä¿å
»å®å·¥ï¼è¯·è°¨æ
æä½ï¼', |
| | | okText: '确认', |
| | | cancelText: 'åæ¶', |
| | | onOk() { |
| | | requestPut(that.url.report, { id: that.model.id, status: '5', description: that.model.description }).then((res) => { |
| | | requestPut(that.url.report, { id: that.model.id, status: '5', description: that.model.description, dailyMaintenanceOrderDetails: that.dataSource, maintenanceUserId: that.model.maintenanceUserId }).then((res) => { |
| | | if (res.success) { |
| | | that.model.status = '5' |
| | | that.$message.success(res.message) |
| | |
| | | width: 50, |
| | | }, |
| | | { |
| | | title: 'é¨ä½', |
| | | title: 'ä¿å
»é¨ä½', |
| | | align: 'center', |
| | | dataIndex: 'location' |
| | | }, |
| | | { |
| | | title: 'ä¿å
»é¡¹ç®', |
| | | title: 'ä¿å
Ȍ
容', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceProjectName' |
| | | }, |
| | | { |
| | | title: 'ä¿å
»æ å', |
| | | title: 'éªæ¶æ å', |
| | | align: 'center', |
| | | dataIndex: 'standard' |
| | | }, |
| | |
| | | type="primary" |
| | | v-has="'dailyInspectionOrder:SW'" |
| | | >å¼å·¥</a-button> |
| | | |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleNormalReport" |
| | | :disabled="buttonDistable" |
| | | type="primary" |
| | | v-has="'dailyInspectionOrder:normalReport'" |
| | | >ç»æå
¨é¨æ£å¸¸</a-button> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleReport" |
| | |
| | | type="primary" |
| | | v-has="'dailyInspectionOrder:report'" |
| | | >æ¥å·¥</a-button> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleNormalReport" |
| | | :disabled="buttonDistable" |
| | | type="primary" |
| | | v-has="'dailyInspectionOrder:normalReport'" |
| | | >ç»ææ£å¸¸å¹¶æ¥å·¥</a-button> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleReset" |
| | |
| | | alt="" |
| | | style="max-width:80px;font-size: 12px;font-style: italic;" |
| | | /> |
| | | <!-- <j-dict-select-tag |
| | | v-if="col.dataIndex == 'inspectionProjectResult' " |
| | | allow-clear |
| | | @input="handleChange()" |
| | | :disabled="record.disabled" |
| | | :placeholder="'è¯·éæ©ç¹æ£ç»æ'" |
| | | :triggerChange="true" |
| | | style="width: 100%" |
| | | dictCode="inspection_project_result" |
| | | /> --> |
| | | <a-select |
| | | v-if="col.dataIndex == 'inspectionProjectResult' " |
| | | :value="text" |
| | |
| | | style="width: 100%" |
| | | :disabled="record.disabled" |
| | | > |
| | | <!-- :options="record.inspectionCycles" --> |
| | | <a-select-option value="1">æ£å¸¸</a-select-option> |
| | | <a-select-option value="2">å¼å¸¸</a-select-option> |
| | | <a-select-option value="3">æ
éåæº</a-select-option> |
| | |
| | | this.loadData1(1) |
| | | }, |
| | | loadData() { |
| | | this.loadData1(1) |
| | | // this.loadData1(1) |
| | | }, |
| | | getBackground() { |
| | | return "background-color:rgba(127, 127, 127,0.08)"; |
| | |
| | | }) |
| | | }, |
| | | |
| | | //æ¥å·¥ |
| | | //ææç»ææ£å¸¸ |
| | | handleNormalReport() { |
| | | const that = this; |
| | | for (let i = 0; i < that.dataSource.length; i++) { |
| | | let o = this.dataSource[i] |
| | | o.inspectionProjectResult = "1" |
| | | o.abnormalDesc = "" |
| | | o.treatmentMeasure = null |
| | | } |
| | | }, |
| | | |
| | | |
| | | //æ¥å·¥ |
| | | handleNormalReport1() { |
| | | const that = this; |
| | | that.confirmLoading = true; |
| | | let formData = Object.assign(this.model); |
| | |
| | | // } |
| | | // } else { |
| | | target[column.dataIndex] = value; |
| | | // if (value == "1") { |
| | | // target['judgmentResult'] = "pass"; |
| | | // } else { |
| | | // target['judgmentResult'] = "fail"; |
| | | // } |
| | | if (value == 1) { |
| | | target['abnormalDesc'] = null; |
| | | } |
| | | target['treatmentMeasure'] = null; |
| | | |
| | | // if (value == null || value == "") { |
| | | // target['judgmentResult'] = ""; |
| | | // } |
| | |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-col :span="17"> |
| | | <a-form-item |
| | | label="é®é¢åå¤çæªæ½æè¿°" |
| | | label="é®é¢/å¤çæªæ½" |
| | | :labelCol="{span:3}" |
| | | :wrapperCol="{span:18}" |
| | | class="hightColor" |
| | |
| | | :disabled="this.model.status!='4'" |
| | | :placeholder="'请è¾å
¥é®é¢åå¤çæªæ½æè¿°'" |
| | | v-model="model.description" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="7"> |
| | | <a-form-item |
| | | label="æ¥å·¥äºº" |
| | | :labelCol="{span:4}" |
| | | :wrapperCol="{span:17}" |
| | | class="hightColor" |
| | | > |
| | | <a-input |
| | | :disabled="this.model.status!='4'" |
| | | allow-clear |
| | | placeholder="请è¾å
¥æ¥å·¥äºº" |
| | | v-model="model.maintenanceUserId" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | } |
| | | |
| | | }, |
| | | { |
| | | title: 'é¨ä½', |
| | | align: 'center', |
| | | dataIndex: 'location', |
| | | }, |
| | | // { |
| | | // title: 'é¨ä½', |
| | | // align: 'center', |
| | | // dataIndex: 'location', |
| | | // }, |
| | | // class: "notshow" |
| | | // { |
| | | // title: '示æå¾', |
| | |
| | | // }, |
| | | // class: "notshow" |
| | | { |
| | | title: 'ä¿å
»é¡¹ç®', |
| | | title: 'ä¿å
Ȍ
容', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceProjectNum', |
| | | }, |
| | | { |
| | | title: 'ä¿å
»æ å', |
| | | align: 'center', |
| | | dataIndex: 'standard', |
| | | }, |
| | | // { |
| | | // title: 'ä¿å
»æ å', |
| | | // align: 'center', |
| | | // dataIndex: 'standard', |
| | | // }, |
| | | // { |
| | | // title: 'æ¹æ³', |
| | | // align: 'center', |
| | |
| | | handleReport() { |
| | | const that = this; |
| | | that.confirmLoading = true; |
| | | for (let i = 0; i < that.dataSource.length; i++) { |
| | | let o = this.dataSource[i] |
| | | if (o.maintenanceOrderDetailUda2 == null || o.maintenanceOrderDetailUda2 == '') { |
| | | that.$message.warning("请填å第" + (i + 1) + "æ§è¡æ
åµï¼"); |
| | | that.confirmLoading = false; |
| | | return |
| | | } |
| | | if (o.maintenanceOrderDetailUda1 == null || o.maintenanceOrderDetailUda1 == '') { |
| | | that.$message.warning("请填å第" + (i + 1) + "ä¿å
»äººï¼"); |
| | | that.confirmLoading = false; |
| | | return |
| | | } |
| | | } |
| | | if (that.model.maintenanceUserId == null || that.model.maintenanceUserId == "") { |
| | | that.$message.warning("è¯·å¡«åæ¥å·¥äººï¼"); |
| | | that.confirmLoading = false; |
| | | return |
| | | } |
| | | this.$confirm({ |
| | | title: 'ä¿å
»å·¥åæ¥å·¥', |
| | | content: 'æç¤ºï¼æ¥å·¥åä¿å
»å®å·¥ï¼è¯·è°¨æ
æä½ï¼', |
| | | okText: '确认', |
| | | cancelText: 'åæ¶', |
| | | onOk() { |
| | | requestPut(that.url.report, { id: that.model.id, status: '5', description: that.model.description }).then((res) => { |
| | | requestPut(that.url.report, { id: that.model.id, status: '5', description: that.model.description, dailyMaintenanceOrderDetails: that.dataSource, maintenanceUserId: that.model.maintenanceUserId }).then((res) => { |
| | | if (res.success) { |
| | | that.model.status = '5' |
| | | that.$message.success(res.message) |
| | |
| | | handleOk() { |
| | | const that = this |
| | | this.loading = true; |
| | | for (let i = 0; i < that.dataSource.length; i++) { |
| | | let o = this.dataSource[i] |
| | | if (o.maintenanceOrderDetailUda2 == null || o.maintenanceOrderDetailUda2 == '') { |
| | | that.$message.warning("请填å第" + (i + 1) + "æ§è¡æ
åµï¼"); |
| | | that.loading = false; |
| | | return |
| | | } |
| | | if (o.maintenanceOrderDetailUda1 == null || o.maintenanceOrderDetailUda1 == '') { |
| | | that.$message.warning("请填å第" + (i + 1) + "ä¿å
»äººï¼"); |
| | | that.loading = false; |
| | | return |
| | | } |
| | | } |
| | | this.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | that.confirmLoading = true |
| | |
| | | dataIndex: 'maintenanceRole' |
| | | }, |
| | | |
| | | { |
| | | title: 'é¨ä½', |
| | | align: 'center', |
| | | dataIndex: 'location' |
| | | }, |
| | | // { |
| | | // title: 'é¨ä½', |
| | | // align: 'center', |
| | | // dataIndex: 'location' |
| | | // }, |
| | | { |
| | | title: 'ä¿å
»é¡¹ç®', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceProjectName' |
| | | }, |
| | | { |
| | | title: 'ä¿å
»æ å', |
| | | align: 'center', |
| | | dataIndex: 'standard' |
| | | }, |
| | | // { |
| | | // title: 'ä¿å
»æ å', |
| | | // align: 'center', |
| | | // dataIndex: 'standard' |
| | | // }, |
| | | { |
| | | title: 'æ§è¡æ
åµ', |
| | | align: 'center', |
| | |
| | | }, |
| | | width: 50, |
| | | }, |
| | | // { |
| | | // title: 'é¨ä½', |
| | | // align: 'center', |
| | | // dataIndex: 'location' |
| | | // }, |
| | | { |
| | | title: 'é¨ä½', |
| | | title: 'ä¿å
»è§è²', |
| | | align: 'center', |
| | | dataIndex: 'location' |
| | | dataIndex: 'maintenanceRole' |
| | | }, |
| | | { |
| | | title: 'ä¿å
»é¡¹ç®', |
| | | title: 'ä¿å
Ȍ
容', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceProjectName' |
| | | }, |
| | | { |
| | | title: 'ä¿å
»æ å', |
| | | align: 'center', |
| | | dataIndex: 'standard' |
| | | }, |
| | | // { |
| | | // title: 'ä¿å
»æ å', |
| | | // align: 'center', |
| | | // dataIndex: 'standard' |
| | | // }, |
| | | // { |
| | | // title: 'æ¹æ³', |
| | | // align: 'center', |
| | |
| | | // scopedSlots: { customRender: 'photo' }, |
| | | // }, |
| | | { |
| | | title: 'ä¿å
»é¡¹ç®', |
| | | title: 'ç»´ä¿®ä¿å
»è§è²', |
| | | align: "center", |
| | | dataIndex: 'maintenanceRoleName', |
| | | }, |
| | | { |
| | | title: 'ä¿å
Ȍ
容', |
| | | align: "center", |
| | | dataIndex: 'name', |
| | | |
| | | }, |
| | | { |
| | | title: 'ä¿å
»æ å', |
| | | align: "center", |
| | | dataIndex: 'standard', |
| | | // { |
| | | // title: 'ä¿å
»æ å', |
| | | // align: "center", |
| | | // dataIndex: 'standard', |
| | | |
| | | }, |
| | | { |
| | | title: 'é¨ä½', |
| | | align: "center", |
| | | dataIndex: 'location', |
| | | }, |
| | | // }, |
| | | // { |
| | | // title: 'é¨ä½', |
| | | // align: "center", |
| | | // dataIndex: 'location', |
| | | // }, |
| | | // { |
| | | // title: 'æ¹æ³', |
| | | // align: "center", |
| | |
| | | // align: "center", |
| | | // dataIndex: 'maintenanceSpecialtyName', |
| | | // }, |
| | | { |
| | | title: 'ç»´ä¿®ä¿å
»è§è²', |
| | | align: "center", |
| | | dataIndex: 'maintenanceRoleName', |
| | | }, |
| | | |
| | | |
| | | ], |
| | | url: { |
| | |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <!-- <a-col :span="12"> |
| | | <a-form-item |
| | | label="ä¿å
»ç±»å" |
| | | :labelCol="labelCol" |
| | |
| | | v-decorator="['maintenanceType', validatorRules.maintenanceType]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-col> --> |
| | | <!-- <a-col :span="12"> |
| | | <a-form-item |
| | | label="派工æ¹å¼" |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col |
| | | v-if="this.isRevise == true" |
| | | :span="12" |
| | |
| | | style="width: 100%" |
| | | :disabled="false" |
| | | /> --> |
| | | <a-textarea |
| | | <!--<a-textarea |
| | | :value="text" |
| | | v-if="col.dataIndex == 'maintenanceRequire'" |
| | | :maxLength="500" |
| | |
| | | placeholder="请è¾å
¥å®å
¨è¦æ±" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | /> |
| | | <a-textarea |
| | | <a-textarea |
| | | :value="text" |
| | | v-if="col.dataIndex == 'location'" |
| | | :maxLength="500" |
| | |
| | | placeholder="请è¾å
¥ä¿å
»ä½ç½®" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | :disabled="true" |
| | | /> |
| | | /> |
| | | <j-image-upload |
| | | :value="text" |
| | | v-if="col.dataIndex == 'photo'" |
| | |
| | | placeholder="请ä¸ä¼ å¾ç" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | > |
| | | </j-image-upload> |
| | | </j-image-upload>--> |
| | | <j-dict-select-tag |
| | | v-if="col.dataIndex == 'maintenanceRole'" |
| | | :value="text" |
| | |
| | | :triggerChange="true" |
| | | dictCode="maintenance_role" |
| | | placeholder="è¯·éæ©ä¿å
»è§è²" |
| | | style="width: 100%" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | style="width: 100%" |
| | | /> |
| | | </div> |
| | | </template> |
| | |
| | | // align: 'center', |
| | | // dataIndex: 'id' |
| | | // }, |
| | | // { |
| | | // title: 'ä¿å
»é¨ä½', |
| | | // align: 'center', |
| | | // dataIndex: 'location', |
| | | // // scopedSlots: { customRender: 'location' }, |
| | | // // width: 150, |
| | | // }, |
| | | { |
| | | title: 'ä¿å
»é¡¹ç®', |
| | | title: 'ä¿å
»è§è²', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceRole', |
| | | scopedSlots: { customRender: 'maintenanceRole' }, |
| | | }, |
| | | { |
| | | title: 'ä¿å
Ȍ
容', |
| | | align: 'center', |
| | | dataIndex: 'name' |
| | | }, |
| | | |
| | | { |
| | | title: 'ä¿å
»æ å', |
| | | align: 'center', |
| | | dataIndex: 'standard' |
| | | }, |
| | | // { |
| | | // title: 'éªæ¶æ å', |
| | | // align: 'center', |
| | | // dataIndex: 'standard' |
| | | // }, |
| | | // { |
| | | // title: 'æ¹æ³', |
| | | // align: 'center', |
| | |
| | | // scopedSlots: { customRender: 'photo' }, |
| | | // width: 150, |
| | | // }, |
| | | { |
| | | title: 'ä¿å
»é¨ä½', |
| | | align: 'center', |
| | | dataIndex: 'location', |
| | | // scopedSlots: { customRender: 'location' }, |
| | | // width: 150, |
| | | }, |
| | | |
| | | // { |
| | | // title: '卿', |
| | | // align: 'center', |
| | |
| | | // scopedSlots: { customRender: 'maintenanceCycleId' }, |
| | | // width: 150, |
| | | // }, |
| | | { |
| | | title: 'ä¿å
»è§è²', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceRole', |
| | | scopedSlots: { customRender: 'maintenanceRole' }, |
| | | width: 150, |
| | | }, |
| | | |
| | | { |
| | | title: 'æä½', |
| | | align: 'center', |
| | |
| | | } |
| | | formData.maintenanceStandardDetaillist = that.dataSource; |
| | | formData.type = 'daily'; |
| | | formData.maintenanceType = '2'; |
| | | let obj; |
| | | if (!this.model.id) { |
| | | formData.versionStatus = '1' |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card |
| | | :bordered="false" |
| | | :class="'cust-erp-sub-tab'" |
| | | > |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form |
| | | layout="inline" |
| | | @keyup.enter.native="searchQuery" |
| | | > |
| | | <a-row :gutter="24"> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <div> |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :scroll="{x:true}" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | > |
| | | <!-- <span |
| | | slot="photo" |
| | | slot-scope="text,record" |
| | | > |
| | | <Tooltip |
| | | placement="top" |
| | | title="é¢è§å¾ç" |
| | | > |
| | | <img |
| | | v-if=" record.upload.path && (record.upload.format.toLowerCase()=='jpg'||record.upload.format.toLowerCase()=='bmp'||record.upload.format.toLowerCase()=='png'||record.upload.format.toLowerCase()=='jpeg'||record.upload.format.toLowerCase()=='gif')" |
| | | width="30" |
| | | height="14" |
| | | border="1" |
| | | draggable="false" |
| | | preview="1" |
| | | :preview-text="''" |
| | | :src="record.upload.src" |
| | | /> |
| | | </Tooltip> |
| | | <a |
| | | v-if="record.upload.path && record.upload.format.toLowerCase()=='pdf'" |
| | | href="javascript:;" |
| | | @click="view(record.upload)" |
| | | > |
| | | é¢è§ |
| | | </a> |
| | | </span> --> |
| | | |
| | | <template |
| | | slot="photo" |
| | | slot-scope="text,record" |
| | | > |
| | | <span |
| | | v-if="!text" |
| | | style="font-size: 12px;font-style: italic;" |
| | | >æ å¾ç</span> |
| | | <img |
| | | v-else |
| | | :src="getImgView(text)" |
| | | :preview="record.id" |
| | | height="25px" |
| | | alt="" |
| | | style="max-width:80px;font-size: 12px;font-style: italic;" |
| | | /> |
| | | </template> |
| | | </a-table> |
| | | </div> |
| | | <pdf-view ref="pdfview"></pdf-view> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction } from '@/api/manage' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | import { preview } from 'vue-photo-preview' |
| | | import { ACCESS_TOKEN } from '@/store/mutation-types' |
| | | import Vue from 'vue' |
| | | import PdfView from '@views/common/PdfView' |
| | | import { getFileAccessHttpUrl } from '@/api/manage'; |
| | | |
| | | export default { |
| | | name: "MaintenanceStandardModal", |
| | | components: { |
| | | Tooltip, |
| | | PdfView, |
| | | preview, |
| | | }, |
| | | mixins: [JeecgListMixin], |
| | | props: { |
| | | maintenanceStandardId: { |
| | | type: String, |
| | | default: '-1', |
| | | required: false |
| | | } |
| | | }, |
| | | watch: { |
| | | maintenanceStandardId: { |
| | | immediate: true, |
| | | handler(val) { |
| | | if (!this.maintenanceStandardId) { |
| | | this.clearList() |
| | | } else { |
| | | this.queryParam['maintenanceStandardId'] = val; |
| | | this.queryParam['delFlag'] = 0; |
| | | this.loadData(1); |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 100, |
| | | align: "center", |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1; |
| | | } |
| | | }, |
| | | |
| | | // { |
| | | // title: '示æå¾', |
| | | // align: "center", |
| | | // dataIndex: 'photo', |
| | | // scopedSlots: { customRender: 'photo' }, |
| | | // }, |
| | | { |
| | | title: 'ä¿å
»é¡¹ç®', |
| | | align: "center", |
| | | dataIndex: 'name', |
| | | |
| | | }, |
| | | { |
| | | title: 'ä¿å
»æ å', |
| | | align: "center", |
| | | dataIndex: 'standard', |
| | | |
| | | }, |
| | | { |
| | | title: 'é¨ä½', |
| | | align: "center", |
| | | dataIndex: 'location', |
| | | }, |
| | | // { |
| | | // 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: 'ç»´ä¿®ä¿å
»è§è²', |
| | | // align: "center", |
| | | // dataIndex: 'maintenanceRoleName', |
| | | // }, |
| | | |
| | | ], |
| | | url: { |
| | | list: "/eam/maintenanceStandardDetail/getMaintenanceStandardList",//æ°æ®æ¥æºmom_eam_daily_inspection_standard_detail |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | }, |
| | | methods: { |
| | | clearList() { |
| | | this.dataSource = [] |
| | | this.selectedRowKeys = [] |
| | | this.ipagination.current = 1 |
| | | }, |
| | | loadData(arg) { |
| | | if (!this.url.list) { |
| | | this.$message.error("请设置url.list屿§!") |
| | | return |
| | | } |
| | | //å è½½æ°æ® è¥ä¼ å
¥åæ°1åå 载第ä¸é¡µçå
容 |
| | | if (arg === 1) { |
| | | this.ipagination.current = 1; |
| | | } |
| | | var params = this.getQueryParams();//æ¥è¯¢æ¡ä»¶ |
| | | this.loading = true; |
| | | getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | this.dataSource = res.result.records || res.result; |
| | | // for (let i = 0; i < this.dataSource.length; i++) { |
| | | // let r = this.dataSource[i].upload; |
| | | // r.src = this.getSrc(this.dataSource[i].upload); |
| | | // } |
| | | if (res.result.total) { |
| | | this.ipagination.total = res.result.total; |
| | | } else { |
| | | this.ipagination.total = 0; |
| | | } |
| | | //update-end---author:zhangyafei Date:20201118 forï¼éé
ä¸åé¡µçæ°æ®å表------------ |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }).finally(() => { |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | |
| | | getSrc(record) { |
| | | |
| | | if (!record.path) { |
| | | return ''; |
| | | } |
| | | //æ¬å°ï¼local\Minioï¼minio\é¿éäºï¼alioss |
| | | if (record.uploadType == 'local') { |
| | | |
| | | let ssoLoginFlag = Vue.ls.get("ssoLoginFlag"); |
| | | let deployMode = Vue.ls.get("deployMode"); |
| | | |
| | | if (ssoLoginFlag && deployMode == "container") { |
| | | var baseProject = Vue.ls.get("baseProject"); |
| | | console.log("baseProject==>" + baseProject) |
| | | |
| | | var hostname = window.location.protocol + "//" + window.location.host; |
| | | var url = hostname + '/' + baseProject + '/sys/common/static'; |
| | | return getFileAccessHttpUrl(record.path + record.encodeName, url, window._CONFIG['hyperTextTransfer']) |
| | | } else { |
| | | //æ ¹æ®åå¸ç¶æä¿®æ¹https æ http |
| | | return getFileAccessHttpUrl(record.path + record.encodeName, this.url.urlDownload, window._CONFIG['hyperTextTransfer']) |
| | | } |
| | | |
| | | } else if (record.uploadType == 'alioss') { |
| | | |
| | | const OSS = require('ali-oss') |
| | | const client = new OSS({ |
| | | // region以æå·ä¸ºä¾ï¼oss-cn-hangzhouï¼ï¼å
¶ä»regionæå®é
æ
åµå¡«åã |
| | | region: window._CONFIG['region'], |
| | | // é¿éäºä¸»è´¦å·AccessKeyæ¥æææAPIçè®¿é®æéï¼é£é©å¾é«ã强ç建议æ¨å建并使ç¨RAMè´¦å·è¿è¡APIè®¿é®ææ¥å¸¸è¿ç»´ï¼è¯·ç»å½RAMæ§å¶å°å建RAMè´¦å·ã |
| | | accessKeyId: window._CONFIG['accessKeyId'], |
| | | accessKeySecret: window._CONFIG['accessKeySecret'], |
| | | bucket: window._CONFIG['bucket'], |
| | | }) |
| | | // object-key表示ä»OSSä¸è½½æä»¶æ¶éè¦æå®å
嫿件åç¼å¨å
ç宿´è·¯å¾ï¼ä¾å¦abc/efg/123.jpgã |
| | | return client.signatureUrl(record.path) |
| | | } |
| | | }, |
| | | |
| | | view(record) { |
| | | this.$refs.pdfview.showPdf(record.src); |
| | | }, |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-modal |
| | | :title="title" |
| | | :width="1500" |
| | | :visible="visible" |
| | | :maskClosable="false" |
| | | @ok="handleOk" |
| | | cancelText="å
³é" |
| | | @cancel="handleCancel" |
| | | :confirmLoading="confirmLoading" |
| | | > |
| | | |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form :form="form"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="æ åç¼ç " |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | allowClear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥æ åç¼ç '" |
| | | v-decorator="[ 'num', validatorRules.num]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="使ç¨é¨é¨" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <!-- <a-input-search |
| | | :disabled="disableSubmit" |
| | | placeholder="è¯·éæ©ä½¿ç¨é¨é¨" |
| | | enter-button |
| | | @search="onDepartList()" |
| | | :read-only="true" |
| | | v-decorator="['useDepartName', validatorRules.useDepartName]" |
| | | /> |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="è¯·éæ©é¨é¨" |
| | | tree-default-expand-all |
| | | v-decorator="['departId', validatorRules.useId ]" |
| | | />--> |
| | | |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'è¯·éæ©ä½¿ç¨é¨é¨'" |
| | | :triggerChange="true" |
| | | dictCode="sys_depart,depart_name,id,del_flag!='1'" |
| | | v-decorator="['departId', {}]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <!-- <a-col :span="12"> |
| | | <a-form-item |
| | | label="设å¤åç§°" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'è¯·éæ©åç§°'" |
| | | :triggerChange="true" |
| | | dictCode="mom_eam_equipment,name,id,status!='0' and del_flag!='1'" |
| | | v-decorator="['equipmentId', validatorRules.equipmentId]" |
| | | @change="(e)=>handle2Change(e)" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> --> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="设å¤åç§°" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input-search |
| | | :disabled="disableSubmit" |
| | | placeholder="è¯·éæ©è®¾å¤" |
| | | enter-button |
| | | @search="onEquipmentList()" |
| | | :read-only="true" |
| | | v-decorator="['equipmentName', validatorRules.equipmentName]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="责任çç»" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥è´£ä»»çç»'" |
| | | v-decorator="['teamName', {} ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row |
| | | hidden |
| | | :gutter="24" |
| | | > |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="设å¤Id" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥ç»ä¸ç¼ç /åç§°/åå·'" |
| | | v-decorator="['equipmentId', validatorRules.equipmentId ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <!-- <a-col :span="12"> |
| | | <a-form-item |
| | | label="使ç¨é¨é¨Id" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥ä½¿ç¨é¨é¨id'" |
| | | v-decorator="['departId', validatorRules.useId ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> --> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="çç»Id" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥çç»id'" |
| | | v-decorator="['teamId', validatorRules.teamId ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <!-- <a-col :span="12"> |
| | | <a-form-item |
| | | label="ä¿å
»ç±»å" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'è¯·éæ©ä¿å
»ç±»å'" |
| | | :triggerChange="true" |
| | | dictCode="maintenance_type" |
| | | v-decorator="['maintenanceType', validatorRules.maintenanceType]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> --> |
| | | <!-- <a-col :span="12"> |
| | | <a-form-item |
| | | label="派工æ¹å¼" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'è¯·éæ©æ´¾å·¥æ¹å¼'" |
| | | :triggerChange="true" |
| | | dictCode="assign_mode" |
| | | v-decorator="['assignMode', validatorRules.assignMode]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> --> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="çæ¬" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | allowClear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥çæ¬å·'" |
| | | v-decorator="[ 'version', validatorRules.version]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | v-if="this.isRevise == true" |
| | | :span="12" |
| | | > |
| | | <a-form-item |
| | | label="åå²çæ¬" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | allowClear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥åå²çæ¬å·'" |
| | | v-decorator="[ 'historyVersion', validatorRules.historyVersion]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | label="夿³¨" |
| | | :labelCol="{span:3}" |
| | | :wrapperCol="{span:21}" |
| | | > |
| | | <a-textarea |
| | | allowClear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥å¤æ³¨'" |
| | | v-decorator="[ 'remark', validatorRules.remark]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <!-- <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="使ç¨é¨é¨" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'请使ç¨é¨é¨'" |
| | | :triggerChange="true" |
| | | dictCode="sys_depart,depart_name,id,version = '7' and del_flag!='1'" |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | @change="(e)=>handle2Change(e)" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="责任çç»" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | allowClear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥æ åç¼ç '" |
| | | v-decorator="[ 'teamId', validatorRules.teamId]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> --> |
| | | </a-form> |
| | | </a-spin> |
| | | <a-button |
| | | type="primary" |
| | | :style="{ marginRight: '8px',marginBottom:'8px' }" |
| | | :loading="confirmLoading" |
| | | @click="selectMaintenanceProjects()" |
| | | >ä¿å
»é¡¹ç®</a-button> |
| | | <a-table |
| | | ref="table" |
| | | bordered |
| | | size="middle" |
| | | rowKey='id' |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="false" |
| | | > |
| | | <template |
| | | v-for="col in columns" |
| | | :slot="col.dataIndex" |
| | | slot-scope='text, record, index' |
| | | > |
| | | <div :key="col.dataIndex"> |
| | | |
| | | <!-- <a-select |
| | | v-if="col.dataIndex == 'maintenanceCycleId'" |
| | | :value="text" |
| | | :options="record.maintenanceCycles" |
| | | @change="(e) => handleChange(e, record.key, col, index)" |
| | | style="width: 100%" |
| | | :disabled="false" |
| | | /> --> |
| | | <a-textarea |
| | | :value="text" |
| | | v-if="col.dataIndex == 'maintenanceRequire'" |
| | | :maxLength="500" |
| | | auto-size |
| | | placeholder="请è¾å
¥å®å
¨è¦æ±" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | /> |
| | | <a-textarea |
| | | :value="text" |
| | | v-if="col.dataIndex == 'location'" |
| | | :maxLength="500" |
| | | auto-size |
| | | placeholder="请è¾å
¥ä¿å
»ä½ç½®" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | :disabled="true" |
| | | /> |
| | | <j-image-upload |
| | | :value="text" |
| | | v-if="col.dataIndex == 'photo'" |
| | | :isMultiple="false" |
| | | auto-size |
| | | placeholder="请ä¸ä¼ å¾ç" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | > |
| | | </j-image-upload> |
| | | <j-dict-select-tag |
| | | v-if="col.dataIndex == 'maintenanceRole'" |
| | | :value="text" |
| | | allow-clear |
| | | :triggerChange="true" |
| | | dictCode="maintenance_role" |
| | | placeholder="è¯·éæ©ä¿å
»è§è²" |
| | | style="width: 100%" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | /> |
| | | </div> |
| | | </template> |
| | | |
| | | <span |
| | | slot="action" |
| | | slot-scope="text, record, index" |
| | | > |
| | | <a-popconfirm |
| | | title="ç¡®å®å é¤å?" |
| | | @confirm="() => handleDelete(text,record, index)" |
| | | > |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | </a-table> |
| | | <template slot="footer"> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleCancel()" |
| | | > |
| | | å
³é |
| | | </a-button> |
| | | |
| | | <a-button |
| | | @click="handleOk()" |
| | | type="primary" |
| | | :loading="confirmLoading" |
| | | >ç¡®å®</a-button> |
| | | </template> |
| | | |
| | | <pdf-view ref="pdfview"></pdf-view> |
| | | <upload-model |
| | | ref="modalForm" |
| | | @ok="modalFormOk" |
| | | ></upload-model> |
| | | |
| | | <equipment-list |
| | | ref="EquipmentList" |
| | | @sendEquipmentRecord='sendEquipmentRecord' |
| | | ></equipment-list> |
| | | |
| | | <depart-list |
| | | ref="DepartList" |
| | | @sendDepartRecord='sendDepartRecord' |
| | | ></depart-list> |
| | | |
| | | <j-select-maintenance-standard-modal ref="maintenanceStandardModalForm"></j-select-maintenance-standard-modal> |
| | | </a-modal> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getAction, postAction, requestPut, deleteAction } from '@/api/manage' |
| | | import pick from 'lodash.pick' |
| | | import JMultiSelectTag from '@/components/dict/JMultiSelectTag' |
| | | import { duplicateCheck } from '@/api/api' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | import JSelectMaintenanceStandardModal from './JSelectMaintenanceStandardModal' |
| | | // import UploadModel from './UploadModel' |
| | | |
| | | import { preview } from 'vue-photo-preview' |
| | | import { ACCESS_TOKEN } from '@/store/mutation-types' |
| | | import Vue from 'vue' |
| | | import PdfView from '@views/common/PdfView' |
| | | import { getFileAccessHttpUrl } from '@/api/manage'; |
| | | import EquipmentList from '.././dailyInspectionStandard/EquipmentList' |
| | | import DepartList from '.././dailyInspectionStandard/DepartList' |
| | | |
| | | export default { |
| | | name: "MaintenanceStandardModal", |
| | | components: { |
| | | JMultiSelectTag, |
| | | Tooltip, |
| | | JSelectMaintenanceStandardModal, |
| | | // UploadModel, |
| | | PdfView, |
| | | preview, |
| | | EquipmentList, |
| | | DepartList |
| | | }, |
| | | data() { |
| | | return { |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | align: 'center', |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1 |
| | | }, |
| | | width: 50, |
| | | }, |
| | | // { |
| | | // title: 'id', |
| | | // align: 'center', |
| | | // dataIndex: 'id' |
| | | // }, |
| | | { |
| | | title: 'ä¿å
»é¨ä½', |
| | | align: 'center', |
| | | dataIndex: 'location', |
| | | // scopedSlots: { customRender: 'location' }, |
| | | // width: 150, |
| | | }, |
| | | { |
| | | title: 'ä¿å
Ȍ
容', |
| | | align: 'center', |
| | | dataIndex: 'name' |
| | | }, |
| | | |
| | | { |
| | | title: 'éªæ¶æ å', |
| | | align: 'center', |
| | | dataIndex: 'standard' |
| | | }, |
| | | // { |
| | | // title: 'æ¹æ³', |
| | | // align: 'center', |
| | | // dataIndex: 'maintenanceMethodName' |
| | | // }, |
| | | // { |
| | | // title: 'å·¥å
·', |
| | | // align: 'center', |
| | | // dataIndex: 'maintenanceTool' |
| | | // }, |
| | | // { |
| | | // title: 'ç»´ä¿ä¸ä¸', |
| | | // align: 'center', |
| | | // dataIndex: 'maintenanceSpecialtyName' |
| | | // }, |
| | | // { |
| | | // title: 'å®å
¨è¦æ±', |
| | | // align: 'center', |
| | | // dataIndex: 'maintenanceRequire', |
| | | // scopedSlots: { customRender: 'maintenanceRequire' }, |
| | | // width: 150, |
| | | // }, |
| | | // { |
| | | // title: 'å·¥æ¶å®é¢', |
| | | // align: 'center', |
| | | // dataIndex: 'workingHourQuota' |
| | | // }, |
| | | // { |
| | | // title: '示æå¾', |
| | | // align: 'center', |
| | | // dataIndex: 'photo', |
| | | // scopedSlots: { customRender: 'photo' }, |
| | | // width: 150, |
| | | // }, |
| | | |
| | | // { |
| | | // title: '卿', |
| | | // align: 'center', |
| | | // dataIndex: 'maintenanceCycleId', |
| | | // scopedSlots: { customRender: 'maintenanceCycleId' }, |
| | | // width: 150, |
| | | // }, |
| | | // { |
| | | // title: 'ä¿å
»è§è²', |
| | | // align: 'center', |
| | | // dataIndex: 'maintenanceRole', |
| | | // scopedSlots: { customRender: 'maintenanceRole' }, |
| | | // width: 150, |
| | | // }, |
| | | { |
| | | title: 'æä½', |
| | | align: 'center', |
| | | dataIndex: 'action', |
| | | scopedSlots: { |
| | | customRender: 'action' |
| | | }, |
| | | } |
| | | ], |
| | | title: "æä½", |
| | | visible: false, |
| | | visible4Confirm: false, |
| | | disableSubmit: false, |
| | | codeDisable: true, |
| | | isRevise: false, |
| | | model: {}, |
| | | upload: {}, |
| | | maintenanceCycles: {}, |
| | | treeData: [], |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 6 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 18 }, |
| | | }, |
| | | confirmLoading: false, |
| | | form: this.$form.createForm(this), |
| | | validatorRules: { |
| | | num: { |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥ç¼ç !' }, |
| | | ] |
| | | }, |
| | | teamName: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©è´£ä»»çç»!' }, |
| | | ] |
| | | }, |
| | | useDepartName: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©ä½¿ç¨é¨é¨!' }, |
| | | ] |
| | | }, |
| | | equipmentName: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©è®¾å¤!' }, |
| | | ] |
| | | }, |
| | | maintenanceType: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©ä¿å
»ç±»å!' }, |
| | | ] |
| | | }, |
| | | version: { |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥çæ¬!' }, |
| | | ] |
| | | }, |
| | | historyVersion: { |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥åå²çæ¬!' }, |
| | | ] |
| | | }, |
| | | }, |
| | | url: { |
| | | list: "/eam/maintenanceStandardDetail/getMaintenanceStandardDetailListByIds", |
| | | add: "/eam/maintenanceStandard/add", |
| | | edit: "/eam/maintenanceStandard/edit", |
| | | // addDetail: "/eam/maintenanceStandardDetail/add", |
| | | getMaintenanceCycle: "/eam/maintenanceStandardDetail/getPeriodicMaintenanceCycle", |
| | | realDelete: "/eam/maintenanceStandardDetail/realDelete", |
| | | revise: '/eam/maintenanceStandard/revise', |
| | | getReviseVersion: "/eam/maintenanceStandard/getReviseVersion", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | getNum: '/eam/sysIdentity/getNumNew' |
| | | }, |
| | | |
| | | dataSource: [], |
| | | departId: '', |
| | | } |
| | | }, |
| | | |
| | | |
| | | mounted() { |
| | | this.$bus.$on('selectionRows', (data) => { |
| | | for (let i = 0; i < data.length; i++) { |
| | | let id = this.getUuiD(15); |
| | | this.dataSource.push({ |
| | | id: id, |
| | | maintenanceProjectId: data[i].id, |
| | | name: data[i].name, |
| | | standard: data[i].standard, |
| | | maintenanceMethodName: data[i].maintenanceMethod_dictText, |
| | | maintenanceTool: data[i].maintenanceTool, |
| | | location: data[i].location, |
| | | maintenanceSpecialtyName: data[i].maintenanceSpecialtyId_dictText, |
| | | maintenanceRequire: data[i].maintenanceRequire, |
| | | workingHourQuota: data[i].workingHourQuota, |
| | | // upload: this.upload, |
| | | // maintenanceCycles: this.maintenanceCycles, |
| | | }) |
| | | |
| | | // let formData = {}; |
| | | // this.confirmLoading = true; |
| | | // formData.maintenanceStandardDetailList = this.dataSource |
| | | // postAction(this.url.addDetail, formData).then((res) => { |
| | | // if (res.success) { |
| | | // // this.$message.success(res.message); |
| | | // // this.$emit('ok'); |
| | | // } else { |
| | | // // that.$message.warning(res.message); |
| | | // } |
| | | // }).finally(() => { |
| | | // this.confirmLoading = false; |
| | | // }) |
| | | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // created() { |
| | | // var upload = {}; |
| | | // upload.path = null; |
| | | // upload.format = 'jpg'; |
| | | // this.upload = upload; |
| | | // }, |
| | | |
| | | |
| | | methods: { |
| | | |
| | | //éæ©ä¿å
»é¡¹ç® |
| | | selectMaintenanceProjects: function () { |
| | | let ids = []; |
| | | for (let i = 0; i < this.dataSource.length; i++) { |
| | | ids.push(this.dataSource[i].maintenanceProjectId); |
| | | } |
| | | this.$refs.maintenanceStandardModalForm.showModals(ids); |
| | | this.$refs.maintenanceStandardModalForm.title = 'éæ©ä¿å
»é¡¹ç®'; |
| | | this.$refs.maintenanceStandardModalForm.disableSubmit = false; |
| | | }, |
| | | |
| | | add() { |
| | | this.edit({ maintenanceStandardDetaillist: [] }) |
| | | this.getSeq() |
| | | }, |
| | | |
| | | edit(record) { |
| | | let that = this; |
| | | // this.initOptions(); |
| | | // this.getMaintenanceCycle() |
| | | this.dataSource = []; |
| | | this.form.resetFields(); |
| | | this.model = Object.assign({}, record); |
| | | this.visible = true; |
| | | if (record.maintenanceStandardDetaillist != undefined) { |
| | | const temp = [...record.maintenanceStandardDetaillist]; |
| | | that.dataSource = temp; |
| | | } |
| | | that.$nextTick(() => { |
| | | that.form.setFieldsValue(pick(that.model, 'num', 'departId', 'teamId', 'equipmentId', 'equipmentName', 'useDepartName', 'useId', 'maintenanceType', 'teamName', 'version', 'remark')); |
| | | }); |
| | | if (record.id) { |
| | | // this.maintenanceCycles = [] |
| | | // this.getMaintenanceCycle(this.model.equipmentId) |
| | | this.codeDisable = true; |
| | | that.$nextTick(() => { |
| | | if (that.isRevise) { |
| | | requestPut(that.url.getReviseVersion, record).then((res) => { |
| | | if (res.success) { |
| | | that.form.setFieldsValue({ version: res.result, historyVersion: record.version }) |
| | | } |
| | | }) |
| | | } |
| | | }, 200); |
| | | } else { |
| | | this.codeDisable = false; |
| | | that.$nextTick(() => { |
| | | that.form.setFieldsValue({ "version": "1.0", }) |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | | this.treeData = res.result |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | getSeq() { |
| | | getAction(this.url.getNum, { type: 'DailyMaintenanceStandard', length: 4 }).then(res => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ "num": res.result }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | onEquipmentList() { |
| | | let data = this.form.getFieldsValue(['departId']); |
| | | // if (data.departId == null || data.departId == "") { |
| | | // this.$message.warning("请å
éæ©ä½¿ç¨é¨é¨ï¼"); |
| | | // return |
| | | // } |
| | | this.$refs.EquipmentList.list(data.departId); |
| | | this.$refs.EquipmentList.title = "éæ©è®¾å¤ä¿¡æ¯"; |
| | | }, |
| | | sendEquipmentRecord(data) { |
| | | this.dataSource = []; |
| | | let record = data.record; |
| | | // this.getMaintenanceCycle(record.id) |
| | | this.form.setFieldsValue({ equipmentId: record.id, equipmentName: record.num + "/" + record.name + "/" + record.model, teamId: record.teamId, teamName: record.teamId_dictText }); |
| | | |
| | | }, |
| | | |
| | | onDepartList() { |
| | | this.$refs.DepartList.list(); |
| | | this.$refs.DepartList.title = "éæ©ä½¿ç¨é¨é¨"; |
| | | }, |
| | | sendDepartRecord(data) { |
| | | this.dataSource = []; |
| | | let record = data.record; |
| | | this.form.setFieldsValue({ useId: record.id, useDepartName: record.departName, departId: record.id }); |
| | | }, |
| | | |
| | | close() { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.realDelete() |
| | | this.close(); |
| | | }, |
| | | |
| | | handleOk() { |
| | | const that = this; |
| | | this.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | that.confirmLoading = true; |
| | | let formData = Object.assign(this.model, values); |
| | | if (that.dataSource.length === 0) { |
| | | that.$message.warning("è¯·éæ©ä¿å
»é¡¹ç®ï¼"); |
| | | that.confirmLoading = false; |
| | | return |
| | | } |
| | | formData.maintenanceStandardDetaillist = that.dataSource; |
| | | formData.type = 'daily'; |
| | | formData.maintenanceType = '3'; |
| | | let obj; |
| | | if (!this.model.id) { |
| | | formData.versionStatus = '1' |
| | | formData.approvalStatus = '1' |
| | | obj = postAction(this.url.add, formData); |
| | | } else { |
| | | if (this.isRevise) { |
| | | formData.versionStatus = '1' |
| | | formData.approvalStatus = '1' |
| | | obj = postAction(this.url.revise, formData); |
| | | } else { |
| | | obj = requestPut(this.url.edit, formData, { id: this.model.id }); |
| | | } |
| | | } |
| | | 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.close(); |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handleDelete(text, record, index) { |
| | | this.dataSource.splice(index, 1); |
| | | }, |
| | | |
| | | realDelete() { |
| | | var that = this |
| | | deleteAction(that.url.realDelete).then(res => { |
| | | if (res.success) { |
| | | //éæ°è®¡ç®å页é®é¢ |
| | | // that.reCalculatePage(1) |
| | | // that.$message.success(res.message) |
| | | // that.loadData() |
| | | } else { |
| | | // that.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | getMaintenanceCycle(equipmentId) { |
| | | getAction(this.url.getMaintenanceCycle, { equipmentId: equipmentId }).then((res) => { |
| | | if (res.success) { |
| | | this.maintenanceCycles = res.result |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handle2Change(val) { |
| | | this.dataSource = []; |
| | | }, |
| | | |
| | | handleChange(value, key, column, index) { |
| | | let that = this; |
| | | const temp = [...that.dataSource]; |
| | | const target = temp.filter(item => key === item.key)[index]; |
| | | if (target) { |
| | | if (column.dataIndex == 'maintenanceCycleId') { |
| | | target[column.dataIndex] = value; |
| | | } |
| | | if (column.dataIndex == 'maintenanceRequire') { |
| | | target[column.dataIndex] = value.target.value; |
| | | } |
| | | if ('photo' == column.dataIndex) { |
| | | target['photo'] = value; |
| | | } |
| | | if (column.dataIndex == 'location') { |
| | | target[column.dataIndex] = value.target.value; |
| | | } |
| | | if (column.dataIndex == 'maintenanceRole') { |
| | | target[column.dataIndex] = value; |
| | | } |
| | | //æ¾ç¤ºå¸¦è¿æ¥çæ°æ® |
| | | that.dataSource = temp; |
| | | } |
| | | }, |
| | | |
| | | handleUpload: function (record) { |
| | | this.$refs.modalForm.edit(record); |
| | | this.$refs.modalForm.title = "æä»¶ä¸ä¼ "; |
| | | this.$refs.modalForm.disableSubmit = false; |
| | | }, |
| | | |
| | | modalFormOk() { |
| | | let ids = []; |
| | | for (let i = 0; i < this.dataSource.length; i++) { |
| | | ids.push(this.dataSource[i].id); |
| | | } |
| | | postAction(this.url.list, { ids: ids }).then(res => { |
| | | if (res.success) { |
| | | |
| | | this.dataSource = res.result.records || res.result |
| | | for (let i = 0; i < this.dataSource.length; i++) { |
| | | let r = this.dataSource[i].upload; |
| | | r.src = this.getSrc(this.dataSource[i].upload); |
| | | } |
| | | |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | getSrc(record) { |
| | | |
| | | if (!record.path) { |
| | | return ''; |
| | | } |
| | | //æ¬å°ï¼local\Minioï¼minio\é¿éäºï¼alioss |
| | | if (record.uploadType == 'local') { |
| | | |
| | | let ssoLoginFlag = Vue.ls.get("ssoLoginFlag"); |
| | | let deployMode = Vue.ls.get("deployMode"); |
| | | |
| | | if (ssoLoginFlag && deployMode == "container") { |
| | | var baseProject = Vue.ls.get("baseProject"); |
| | | console.log("baseProject==>" + baseProject) |
| | | |
| | | var hostname = window.location.protocol + "//" + window.location.host; |
| | | var url = hostname + '/' + baseProject + '/sys/common/static'; |
| | | return getFileAccessHttpUrl(record.path + record.encodeName, url, window._CONFIG['hyperTextTransfer']) |
| | | } else { |
| | | //æ ¹æ®åå¸ç¶æä¿®æ¹https æ http |
| | | return getFileAccessHttpUrl(record.path + record.encodeName, this.url.urlDownload, window._CONFIG['hyperTextTransfer']) |
| | | } |
| | | |
| | | } else if (record.uploadType == 'alioss') { |
| | | |
| | | const OSS = require('ali-oss') |
| | | const client = new OSS({ |
| | | // region以æå·ä¸ºä¾ï¼oss-cn-hangzhouï¼ï¼å
¶ä»regionæå®é
æ
åµå¡«åã |
| | | region: window._CONFIG['region'], |
| | | // é¿éäºä¸»è´¦å·AccessKeyæ¥æææAPIçè®¿é®æéï¼é£é©å¾é«ã强ç建议æ¨å建并使ç¨RAMè´¦å·è¿è¡APIè®¿é®ææ¥å¸¸è¿ç»´ï¼è¯·ç»å½RAMæ§å¶å°å建RAMè´¦å·ã |
| | | accessKeyId: window._CONFIG['accessKeyId'], |
| | | accessKeySecret: window._CONFIG['accessKeySecret'], |
| | | bucket: window._CONFIG['bucket'], |
| | | }) |
| | | // object-key表示ä»OSSä¸è½½æä»¶æ¶éè¦æå®å
嫿件åç¼å¨å
ç宿´è·¯å¾ï¼ä¾å¦abc/efg/123.jpgã |
| | | return client.signatureUrl(record.path) |
| | | } |
| | | }, |
| | | |
| | | view(record) { |
| | | this.$refs.pdfview.showPdf(record.src); |
| | | }, |
| | | |
| | | getUuiD(randomLength) { |
| | | return Number( |
| | | Math.random() |
| | | .toString() |
| | | .substr(2, randomLength) + Date.now() |
| | | ).toString(36) |
| | | }, |
| | | |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | /deep/ .frozenRowClass { |
| | | color: #c9c9c9; |
| | | } |
| | | .fontweight { |
| | | font-weight: bold; |
| | | } |
| | | .ant-btn { |
| | | padding: 0 10px; |
| | | margin-left: 3px; |
| | | } |
| | | |
| | | .ant-form-item-control { |
| | | line-height: 0px; |
| | | } |
| | | |
| | | /** 主表åè¡é´è· */ |
| | | .ant-form .ant-form-item { |
| | | margin-bottom: 10px; |
| | | } |
| | | |
| | | /** Tab页é¢è¡é´è· */ |
| | | .ant-tabs-content .ant-form-item { |
| | | margin-bottom: 0px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <!--æ¯æå
¨å±ç¼©æ¾--> |
| | | <a-modal |
| | | :visible='visible' |
| | | :title='title' |
| | | switchFullscreen |
| | | @ok='handleSubmit' |
| | | @cancel='close' |
| | | style='top:50px' |
| | | cancelText='å
³é' |
| | | :width='1500' |
| | | > |
| | | <a-card :bordered='false'> |
| | | <div class='table-page-search-wrapper'> |
| | | <a-form |
| | | layout='inline' |
| | | @keyup.enter.native='searchQuery' |
| | | > |
| | | <a-row :gutter='24'> |
| | | <a-col |
| | | :md='8' |
| | | :sm='6' |
| | | > |
| | | <a-form-item label='ä¿å
»é¡¹ç®åç§°'> |
| | | <j-input |
| | | placeholder='请è¾å
¥ä¿å
»é¡¹ç®åç§°' |
| | | v-model='queryParam.name' |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md='3'> |
| | | <span |
| | | style='float: left;overflow: hidden;' |
| | | class='table-page-search-submitButtons' |
| | | > |
| | | <a-button |
| | | type='primary' |
| | | @click='searchQuery' |
| | | icon='search' |
| | | >æ¥è¯¢</a-button> |
| | | <a-button |
| | | @click='searchReset' |
| | | icon='reload' |
| | | style='margin-left: 10px' |
| | | >éç½®</a-button> |
| | | </span> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <a-table |
| | | ref='table' |
| | | :scroll='scrollTrigger' |
| | | size='middle' |
| | | rowKey='id' |
| | | bordered |
| | | :columns='columns' |
| | | :dataSource='dataSource' |
| | | :pagination='ipagination' |
| | | :rowSelection='rowSelection' |
| | | :loading='loading' |
| | | @change='handleTableChange' |
| | | > |
| | | |
| | | </a-table> |
| | | </a-card> |
| | | </a-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import { filterObj } from '@/utils/util' |
| | | import { getAction } from '@/api/manage' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | | export default { |
| | | name: 'JSelectMaintenanceStandardModal', |
| | | mixins: [JeecgListMixin], |
| | | components: {}, |
| | | props: {}, |
| | | data() { |
| | | return { |
| | | queryParam: {}, |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 50, |
| | | align: 'center', |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | | { |
| | | title: 'ä¿å
»é¡¹ç®', |
| | | align: 'center', |
| | | dataIndex: 'name' |
| | | }, |
| | | |
| | | { |
| | | title: 'ä¿å
»æ å', |
| | | align: 'center', |
| | | dataIndex: 'standard' |
| | | }, |
| | | // { |
| | | // title: 'æ¹æ³', |
| | | // align: 'center', |
| | | // dataIndex: 'maintenanceMethod_dictText' |
| | | // }, |
| | | // { |
| | | // title: 'å·¥å
·', |
| | | // align: 'center', |
| | | // dataIndex: 'maintenanceTool' |
| | | // }, |
| | | // { |
| | | // title: 'ç»´ä¿ä¸ä¸', |
| | | // align: 'center', |
| | | // dataIndex: 'maintenanceSpecialtyId_dictText' |
| | | // }, |
| | | { |
| | | title: 'ä¿å
»é¨ä½', |
| | | align: 'center', |
| | | dataIndex: 'location' |
| | | }, |
| | | // { |
| | | // title: 'å®å
¨è¦æ±', |
| | | // align: 'center', |
| | | // dataIndex: 'maintenanceRequire' |
| | | // }, |
| | | // { |
| | | // title: 'å·¥æ¶å®é¢', |
| | | // align: 'center', |
| | | // dataIndex: 'workingHourQuota' |
| | | // }, |
| | | ], |
| | | selectedRowKeys: [], |
| | | oldSelectRows: [], |
| | | scrollTrigger: {}, |
| | | dataSource: [], |
| | | selectionRows: [], |
| | | title: 'æ ¹æ®æ¥è¯¢ç»æéæ©ä¿å
»é¡¹ç®', |
| | | ipagination: { |
| | | current: 1, |
| | | pageSize: 10, |
| | | pageSizeOptions: ['5', '10', '30', '50', '100'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + '-' + range[1] + ' å
±' + total + 'æ¡' |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | isorter: { |
| | | column: 'num', |
| | | order: 'desc' |
| | | }, |
| | | visible: false, |
| | | loading: false, |
| | | url: { |
| | | list: '/eam/maintenanceProject/list' |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | rowSelection() { |
| | | return { |
| | | type: 'checkbox', |
| | | onChange: (selectedRowKeys, selectedRows) => { |
| | | this.selectedRowKeys = selectedRowKeys |
| | | this.onSelectChange(selectedRows) |
| | | }, |
| | | getCheckboxProps: record => ({ |
| | | props: { |
| | | disabled: record.distable |
| | | } |
| | | }), |
| | | selectedRowKeys: this.selectedRowKeys |
| | | } |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | async loadData(arg) { |
| | | if (arg === 1) { |
| | | this.ipagination.current = 1 |
| | | } |
| | | let that = this |
| | | this.loading = true |
| | | let params = this.getQueryParams()//æ¥è¯¢æ¡ä»¶ |
| | | await getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | for (let i = 0; i < res.result.records.length; i++) { |
| | | if (that.oldSelectRows.indexOf(res.result.records[i].id) > -1) { |
| | | res.result.records[i].distable = true |
| | | } else { |
| | | res.result.records[i].distable = false |
| | | } |
| | | } |
| | | this.dataSource = res.result.records |
| | | this.ipagination.total = res.result.total |
| | | } |
| | | if (res.code === 510) { |
| | | this.$message.warning(res.message) |
| | | } |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | |
| | | showModals(oldSelectRows) { |
| | | this.selectionRows = [] |
| | | this.oldSelectRows = oldSelectRows |
| | | this.visible = true |
| | | this.loadData(1) |
| | | }, |
| | | getQueryParams() { |
| | | let param = Object.assign({}, this.queryParam, this.isorter) |
| | | param.field = this.getQueryField() |
| | | param.pageNo = this.ipagination.current |
| | | param.pageSize = this.ipagination.pageSize |
| | | return filterObj(param) |
| | | }, |
| | | //æ¥è¯¢æ¡ä»¶å¤ç |
| | | getQueryField() { |
| | | let str = 'id,' |
| | | for (let a = 0; a < this.columns.length; a++) { |
| | | str += ',' + this.columns[a].dataIndex |
| | | } |
| | | return str |
| | | }, |
| | | searchReset(num) { |
| | | let that = this |
| | | this.queryParam = [] |
| | | if (num !== 0) { |
| | | that.loadData(1) |
| | | } |
| | | that.selectborrowIds = [] |
| | | }, |
| | | close() { |
| | | this.searchReset(0) |
| | | this.selectedRowKeys = [] |
| | | this.visible = false |
| | | }, |
| | | handleTableChange(pagination, filters, sorter) { |
| | | //TODO çé |
| | | |
| | | if (Object.keys(sorter).length > 0) { |
| | | this.isorter.column = sorter.field |
| | | this.isorter.order = 'ascend' === sorter.order ? 'asc' : 'desc' |
| | | } |
| | | this.ipagination = pagination |
| | | this.loadData() |
| | | }, |
| | | handleSubmit() { |
| | | this.$bus.$emit('selectionRows', this.selectionRows) |
| | | // this.searchReset(0) |
| | | this.close() |
| | | }, |
| | | onSelectChange(selectionRows) { |
| | | this.selectionRows = selectionRows |
| | | }, |
| | | searchQuery() { |
| | | this.loadData(1) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .ant-table-tbody .ant-table-row td { |
| | | padding-top: 10px; |
| | | padding-bottom: 10px; |
| | | } |
| | | |
| | | #components-layout-demo-custom-trigger .trigger { |
| | | font-size: 18px; |
| | | line-height: 64px; |
| | | padding: 0 24px; |
| | | cursor: pointer; |
| | | transition: color 0.3s; |
| | | } |
| | | </style> |
| | |
| | | :triggerChange="true" |
| | | dictCode="maintenance_type" |
| | | v-model="model.type" |
| | | @change="(e)=>handleClearTable(e)" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handleClearTable(e) { |
| | | this.equipmentMaintenancePlanDetailTable.dataSource = [] |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | :disabled="true" |
| | | v-decorator="['inspectionTime', validatorRules.inspectionTime ]" |
| | | placeholder="è¯·éæ©ç¹æ£æ¶é´" |
| | | style="width: 100%" |
| | | style="text-align:left;width: 100%" |
| | | :showTime="true" |
| | | dateFormat="YYYY-MM-DD HH:mm:ss" |
| | | /> |