| | |
| | | type="vertical" |
| | | /> |
| | | <a |
| | | v-show="record.status === '5' && record.isNotStoveCategoryFlag == false && record.precisionParameters == '0'" |
| | | v-show="record.status === '5' && record.isNotStoveCategoryFlag == false && record.precisionParameters != '1'" |
| | | @click="handleTechnologyStatus(record)" |
| | | v-has="'daily3MaintenanceOrder:TechnologyStatus'" |
| | | >ææ¯ç¶æé´å®</a> |
| | | <a-divider |
| | | v-show="record.status === '5'&& record.isNotStoveCategoryFlag == false && record.precisionParameters == '0' " |
| | | v-show="record.status === '5'&& record.isNotStoveCategoryFlag == false && record.precisionParameters != '1'" |
| | | type="vertical" |
| | | /> |
| | | <a |
| | |
| | | </a-table> |
| | | </div> |
| | | |
| | | <maintenance-order-modal |
| | | <maintenance-order3-modal |
| | | ref="modalForm" |
| | | @ok="modalFormOk" |
| | | ></maintenance-order-modal> |
| | | ></maintenance-order3-modal> |
| | | <finish-devolution-modal |
| | | ref="FinishDevolutionModal" |
| | | @ok="modalFormOk" |
| | |
| | | ref="EquipmentTechnologyStatusModal" |
| | | @ok="modalFormOk" |
| | | ></equipment-technology-status-modal> |
| | | <technology-status-authenticate-modal |
| | | ref="TechnologyStatusAuthenticateModal" |
| | | @ok="modalFormOk" |
| | | ></technology-status-authenticate-modal> |
| | | <maintenance-3-receipt-modal |
| | | ref="Maintenance3ReceiptModal" |
| | | @ok="modalFormOk" |
| | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import MaintenanceOrderModal from './modules/dailyMaintenanceOrder/MaintenanceOrderModal' |
| | | import MaintenanceOrder3Modal from './modules/daily3MaintenanceOrder/MaintenanceOrder3Modal' |
| | | import FinishDevolutionModal from './modules/dailyMaintenanceOrder/FinishDevolutionModal' |
| | | import MaintenanceOrderChangeModal from './modules/dailyMaintenanceOrder/MaintenanceOrderChangeModal' |
| | | import EquipmentPrecisionCheckOrderModal from './modules/daily3MaintenanceOrder/EquipmentPrecisionCheckOrderModal' |
| | |
| | | import MaintenanceOrderAssignModal from './modules/dailyMaintenanceOrder/MaintenanceOrderAssignModal' |
| | | import DailyMaintenanceOrderExeDrawer from './modules/daily3MaintenanceOrder/DailyMaintenanceOrderExeDrawer' |
| | | import EquipmentTechnologyStatusModal from './modules/daily3MaintenanceOrder/EquipmentTechnologyStatusModal' |
| | | import TechnologyStatusAuthenticateModal from './modules/daily3MaintenanceOrder/TechnologyStatusAuthenticateModal' |
| | | import Maintenance3ReceiptModal from './modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue' |
| | | import { getAction, postAction, requestPut } from '@/api/manage' |
| | | import JEllipsis from "@/components/jeecg/JEllipsis"; |
| | |
| | | name: 'DailyMaintenanceOrderList', |
| | | mixins: [JeecgListMixin, mixinDevice], |
| | | components: { |
| | | MaintenanceOrderModal, |
| | | MaintenanceOrder3Modal, |
| | | FinishDevolutionModal, |
| | | MaintenanceOrderAssignModal, |
| | | EquipmentPrecisionCheckOrderModal, |
| | |
| | | MaintenanceOrderChangeModal, |
| | | StoveCategoryModal, |
| | | EquipmentTechnologyStatusModal, |
| | | TechnologyStatusAuthenticateModal, |
| | | Maintenance3ReceiptModal, |
| | | JEllipsis |
| | | }, |
| | |
| | | }, |
| | | |
| | | handleTechnologyStatus: function (record) { |
| | | this.$refs.EquipmentTechnologyStatusModal.edit(record); |
| | | this.$refs.EquipmentTechnologyStatusModal.title = "ææ¯ç¶æç¼è¾"; |
| | | this.$refs.EquipmentTechnologyStatusModal.disableSubmit = false; |
| | | // this.$refs.EquipmentTechnologyStatusModal.edit(record); |
| | | // this.$refs.EquipmentTechnologyStatusModal.title = "ææ¯ç¶æç¼è¾"; |
| | | // this.$refs.EquipmentTechnologyStatusModal.disableSubmit = false; |
| | | this.$refs.TechnologyStatusAuthenticateModal.edit(record); |
| | | this.$refs.TechnologyStatusAuthenticateModal.title = "ææ¯ç¶æç¼è¾"; |
| | | this.$refs.TechnologyStatusAuthenticateModal.disableSubmit = false; |
| | | |
| | | }, |
| | | |
| | | handleStoveDetection: function (record) { |
| | |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange" |
| | | :rowClassName="tableRowClass" |
| | | > |
| | | <!-- :rowSelection="rowSelection" --> |
| | | <!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" --> |
| | |
| | | }, |
| | | handleOrderExe(record) { |
| | | this.$refs.DailyInspectionOrderExeDrawer.visible = true |
| | | this.$refs.DailyInspectionOrderExeDrawer.title = 'æ¥å¸¸ç¹æ£å·¥åæ§è¡' |
| | | this.$refs.DailyInspectionOrderExeDrawer.title = 'èªä¸»ç»´æ¤ç¹æ£æ§è¡' |
| | | this.$refs.DailyInspectionOrderExeDrawer.handleShow(record) |
| | | if (record.status === '3') { |
| | | this.$refs.DailyInspectionOrderExeDrawer.buttonDistable = true//ä¿åãæåãæ¥å·¥ |
| | |
| | | }) |
| | | }, |
| | | |
| | | //é¢è¦é¢è² |
| | | tableRowClass(record, index) { |
| | | if (("1" == record.status || "2" == record.status) && "1æ¥" == record.inspectionCycleName) { |
| | | if (record.redWarningTime < record.currentDateTime) { |
| | | return 'error' |
| | | } |
| | | } |
| | | }, |
| | | |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | <style> |
| | | @import '~@assets/less/common.less'; |
| | | .frozenRowClass { |
| | | color: #c9c9c9; |
| | | font-weight: bold; |
| | | } |
| | | .success { |
| | | color: green; |
| | | } |
| | | .error { |
| | | color: red; |
| | | font-weight: bold; |
| | | } |
| | | .yellow { |
| | | color: rgba(255, 255, 0, 0.443); |
| | | font-weight: bold; |
| | | } |
| | | .fontweight { |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .ant-table-tbody .red { |
| | | background-color: red !important; |
| | | } |
| | | </style> |
| | |
| | | icon="reload" |
| | | style="margin-left: 8px" |
| | | >éç½®</a-button> |
| | | <a-button |
| | | v-show="this.selectedRowKeys.length > 0 && this.queryParam.versionStatus == '1'" |
| | | type="primary" |
| | | @click="batchHandleOK" |
| | | icon="reload" |
| | | style="margin-left: 8px" |
| | | v-has="'dailyInspectionStandard:batchHandleOK'" |
| | | >æ¹ééè¿</a-button> |
| | | <a-button |
| | | v-show="this.selectedRowKeys.length > 0 && this.queryParam.versionStatus == '1'" |
| | | type="primary" |
| | | @click="batchHandleReject" |
| | | icon="reload" |
| | | style="margin-left: 8px" |
| | | v-has="'dailyInspectionStandard:batchHandleReject'" |
| | | >æ¹é驳å</a-button> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | |
| | | align: 'center', |
| | | dataIndex: 'teamName', |
| | | }, |
| | | { |
| | | title: '派工æ¹å¼', |
| | | align: 'center', |
| | | dataIndex: 'assignModeName', |
| | | }, |
| | | // { |
| | | // title: '派工æ¹å¼', |
| | | // align: 'center', |
| | | // dataIndex: 'assignModeName', |
| | | // }, |
| | | { |
| | | title: 'å®¡æ ¸æè§', |
| | | align: 'center', |
| | |
| | | align: 'center', |
| | | fixed: 'right', |
| | | scopedSlots: { customRender: 'action' }, |
| | | width: 200, |
| | | width: 230, |
| | | } |
| | | ], |
| | | url: { |
| | |
| | | deleteBatch: '/eam/inspectionStandard/deleteBatch', |
| | | versionTakeEffect: "/eam/inspectionStandard/versionTakeEffect", |
| | | importExcelUrl: "/eam/inspectionStandard/importExcel", |
| | | passBatch: '/eam/inspectionStandard/auditApprovalBatch', |
| | | }, |
| | | version: '1.0', |
| | | dictOptions: {}, |
| | |
| | | }, |
| | | searchReset() { |
| | | this.inspectionStandardId = '-1' |
| | | this.queryParam = {} |
| | | this.queryParam = { versionStatus: '2' } |
| | | this.loadData(1); |
| | | }, |
| | | modalFormOk() { |
| | |
| | | //æ¸
空å表éä¸ |
| | | // this.onClearSelected() |
| | | }, |
| | | batchHandleReject: function () { |
| | | if (this.selectedRowKeys.length <= 0) { |
| | | // this.$message.warning('è¯·éæ©ä¸æ¡è®°å½ï¼'); |
| | | this.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: "è¯·éæ©ä¸æ¡è®°å½" |
| | | }); |
| | | return; |
| | | } else { |
| | | |
| | | var that = this; |
| | | this.$confirm({ |
| | | title: "确认æ¹é驳å", |
| | | content: "æ¯å¦æ¹é驳åé䏿°æ®?", |
| | | onOk: function () { |
| | | that.loading = true; |
| | | that.confirmLoading = true; |
| | | let formData = {}; |
| | | let dailyInspectionStandardlist = that.selectionRows |
| | | for (var i = 0; i < dailyInspectionStandardlist.length; i++) { |
| | | let record = dailyInspectionStandardlist[i] |
| | | if (record.approvalStatus == '1') { |
| | | record.approvalStatus = '2' |
| | | } else if (record.approvalStatus == '3') { |
| | | record.approvalStatus = '4' |
| | | } else if (record.approvalStatus == '4') { |
| | | record.approvalStatus = '2' |
| | | } |
| | | } |
| | | formData.dailyInspectionStandardlist = dailyInspectionStandardlist |
| | | requestPut(that.url.passBatch, formData).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("æ¹é驳åæåï¼") |
| | | that.loadData(1) |
| | | } else { |
| | | that.$message.warning("æ¹ééè¿å¤±è´¥ï¼") |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | that.loading = false; |
| | | }) |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | batchHandleOK: function () { |
| | | if (this.selectedRowKeys.length <= 0) { |
| | | // this.$message.warning('è¯·éæ©ä¸æ¡è®°å½ï¼'); |
| | | this.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: "è¯·éæ©ä¸æ¡è®°å½" |
| | | }); |
| | | return; |
| | | } else { |
| | | |
| | | var that = this; |
| | | this.$confirm({ |
| | | title: "确认æ¹ééè¿", |
| | | content: "æ¯å¦æ¹ééè¿é䏿°æ®?", |
| | | onOk: function () { |
| | | that.loading = true; |
| | | that.confirmLoading = true; |
| | | let formData = {}; |
| | | let dailyInspectionStandardlist = that.selectionRows |
| | | for (var i = 0; i < dailyInspectionStandardlist.length; i++) { |
| | | let record = dailyInspectionStandardlist[i] |
| | | if (record.approvalStatus == '1') { |
| | | record.approvalStatus = '3' |
| | | } else if (record.approvalStatus == '2') { |
| | | record.approvalStatus = '3' |
| | | } else if (record.approvalStatus == '3') { |
| | | record.approvalStatus = '5' |
| | | } else if (record.approvalStatus == '4') { |
| | | record.approvalStatus = '3' |
| | | } |
| | | } |
| | | formData.dailyInspectionStandardlist = dailyInspectionStandardlist |
| | | requestPut(that.url.passBatch, formData).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("æ¹ééè¿æåï¼") |
| | | that.loadData(1) |
| | | } else { |
| | | that.$message.warning("æ¹ééè¿å¤±è´¥ï¼") |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | that.loading = false; |
| | | }) |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | } |
| | | } |
| | |
| | | type='vertical' |
| | | /> |
| | | <a |
| | | v-show="record.status === '2'" |
| | | v-show="record.status === '2' && record.equipmentImportance != 'D'" |
| | | @click='handleTechnologyStatus(record)' |
| | | v-has="'calibrationOrder:audit'" |
| | | >ç»æå®¡æ ¸</a> |
| | | |
| | | <a-divider |
| | | v-show="record.status === '2'" |
| | | v-show="record.status === '2' && record.equipmentImportance != 'D'" |
| | | type='vertical' |
| | | /> |
| | | <a |
| | | v-show="record.status === '2' && record.equipmentImportance == 'D'" |
| | | @click='handleTechnologyStatusAuthenticate(record)' |
| | | v-has="'calibrationOrder:authenticate'" |
| | | >Dç±»ææ¯ç¶æé´å®</a> |
| | | |
| | | <a-divider |
| | | v-show="record.status === '2' && record.equipmentImportance == 'D'" |
| | | type='vertical' |
| | | /> |
| | | <a @click='handleDetail(record)'>详æ
</a> |
| | |
| | | ref="EquipmentTechnologyStatusModal" |
| | | @ok="modalFormOk" |
| | | ></equipment-technology-status-modal> |
| | | |
| | | <technology-status-authenticate-modal |
| | | ref="TechnologyStatusAuthenticateModal" |
| | | @ok="modalFormOk" |
| | | ></technology-status-authenticate-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import EquipmentCalibrationOrderReportModal |
| | | from './modules/equipmentCalibrationOrder/EquipmentCalibrationOrderReportModal' |
| | | import EquipmentTechnologyStatusModal from './modules/equipmentCalibrationOrder/EquipmentTechnologyStatusModal' |
| | | import TechnologyStatusAuthenticateModal from './modules/equipmentCalibrationOrder/TechnologyStatusAuthenticateModal' |
| | | |
| | | export default { |
| | | name: 'EquipmentCalibrationOrder', |
| | |
| | | EquipmentCalibrationOrderReportList, |
| | | EquipmentCalibrationOrderReportModal, |
| | | FinalModal, |
| | | EquipmentTechnologyStatusModal |
| | | EquipmentTechnologyStatusModal, |
| | | TechnologyStatusAuthenticateModal |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | this.$refs.EquipmentTechnologyStatusModal.disableSubmit = false; |
| | | }, |
| | | |
| | | handleTechnologyStatusAuthenticate: function (record) { |
| | | this.$refs.TechnologyStatusAuthenticateModal.edit(record); |
| | | this.$refs.TechnologyStatusAuthenticateModal.title = "ææ¯ç¶æç¼è¾"; |
| | | this.$refs.TechnologyStatusAuthenticateModal.disableSubmit = false; |
| | | |
| | | }, |
| | | |
| | | handleOrderExe(record) { |
| | | this.$refs.EquipmentCalibrationOrderExeDrawer.visible = true |
| | | this.$refs.EquipmentCalibrationOrderExeDrawer.title = 'æ£å®å·¥åæ§è¡' |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <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 }; |
| | | this.loadData(1); |
| | | }, |
| | | searchReset() { |
| | | this.queryParam = { type: "daily", delFlag: '0', useId: this.useId }; |
| | | this.loadData(1) |
| | | }, |
| | | list(useId) { |
| | | this.visible = true; |
| | | this.useId = useId; |
| | | this.queryParam = { type: "daily", delFlag: '0', useId: useId, versionStatus: '2' }; |
| | | 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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-modal |
| | | :title="title" |
| | | :width="1250" |
| | | :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 |
| | | allow-clear |
| | | :disabled="codeDisable" |
| | | :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-select |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'è¯·éæ©ä½¿ç¨é¨é¨'" |
| | | :options="this.departs" |
| | | style="width: 100%" |
| | | v-decorator="['useId', validatorRules.useId]" |
| | | @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" |
| | | > |
| | | <!-- <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="codeDisable" |
| | | :placeholder="disableSubmit?'':'è¯·éæ©ä¿å
»æ å'" |
| | | :triggerChange="true" |
| | | dictCode="" |
| | | @change="(e)=>handleChange(e)" |
| | | v-decorator="['maintenanceStandardId', validatorRules.maintenanceStandardId]" |
| | | /> --> |
| | | <a-input-search |
| | | :disabled="disableSubmit" |
| | | placeholder="è¯·éæ©ä¿å
»æ å" |
| | | enter-button |
| | | @search="onSearchMaintenanceStandard()" |
| | | :read-only="true" |
| | | v-decorator="['maintenanceStandardNum', validatorRules.maintenanceStandardNum]" |
| | | /> |
| | | </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="['equipmentNum', validatorRules.equipmentNum ]" |
| | | /> |
| | | </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?'':'请è¾å
¥ä¿å
»æ åId'" |
| | | v-decorator="['maintenanceStandardId', validatorRules.maintenanceStandardId ]" |
| | | /> |
| | | </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?'':'请è¾å
¥ç»ä¸ç¼ç /åç§°/åå·'" |
| | | v-decorator="['equipmentId', validatorRules.equipmentId ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="ä¿å
»å¨æ" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-select |
| | | :placeholder="disableSubmit?'':'è¯·éæ©ä¿å
»å¨æ'" |
| | | :options="this.maintenanceCycles" |
| | | @change="(e)=>handle3Change(e)" |
| | | style="width: 100%" |
| | | :disabled="disableSubmit" |
| | | v-decorator="['maintenanceCycleId', validatorRules.maintenanceCycleId]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="计åå¼å§æ¶é´" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-date |
| | | :disabled="disableSubmit" |
| | | v-decorator="['planStartTime', validatorRules.planStartTime ]" |
| | | placeholder="è¯·éæ©è®¡åå¼å§æ¶é´" |
| | | style="width: 100%" |
| | | :showTime="true" |
| | | dateFormat="YYYY-MM-DD HH:mm:ss" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24 / 2"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="派工æ¹å¼" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'è¯·éæ©æ´¾å·¥æ¹å¼'" |
| | | :triggerChange="true" |
| | | dictCode="assign_mode" |
| | | v-decorator="['assignMode', validatorRules.assignMode]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24 / 2"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="责任çç»" |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥è´£ä»»çç»'" |
| | | v-decorator="['teamName', validatorRules.teamName ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row |
| | | hidden |
| | | :gutter="24" |
| | | > |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="æææ¶é¿" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input-number |
| | | style="width: 100%" |
| | | allow-clear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥æææ¶é¿'" |
| | | v-decorator="['effectiveTime', validatorRules.effectiveTime ]" |
| | | /> |
| | | </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="['unit', validatorRules.unit ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col |
| | | v-if="!isHidden" |
| | | :span="12" |
| | | > |
| | | <a-form-item |
| | | label="责任人" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input-search |
| | | :disabled="disableSubmit" |
| | | placeholder="责任人" |
| | | enter-button |
| | | @search="onDutyUserList()" |
| | | :read-only="true" |
| | | v-decorator="['maintenanceUserName', validatorRules.maintenanceUserName]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row |
| | | hidden |
| | | :gutter="24" |
| | | > |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="责任çç»" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥è´£ä»»çç»'" |
| | | v-decorator="['teamId', validatorRules.teamId ]" |
| | | /> |
| | | </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="['maintenanceUserId', validatorRules.maintenanceUserId ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | :labelCol="{span:3}" |
| | | :wrapperCol="{span:21}" |
| | | label="夿³¨" |
| | | > |
| | | <a-textarea |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥å¤æ³¨'" |
| | | v-decorator="['remark', validatorRules.remark]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </a-spin> |
| | | <a-table |
| | | ref="table" |
| | | bordered |
| | | size="middle" |
| | | rowKey='id' |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="false" |
| | | > |
| | | <!-- <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.maintenanceStandardDetailId" |
| | | height="25px" |
| | | alt="" |
| | | style="max-width:80px;font-size: 12px;font-style: italic;" |
| | | /> |
| | | </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" |
| | | :disabled="disableSubmit || confirmLoading" |
| | | >ç¡®å®</a-button> |
| | | </template> |
| | | |
| | | <daily-maintenance-standard3-list |
| | | ref="DailyMaintenanceStandard3List" |
| | | @send3MaintenanceStandardRecord='send3MaintenanceStandardRecord' |
| | | ></daily-maintenance-standard3-list> |
| | | |
| | | <user-list |
| | | ref="UserList" |
| | | @sendDutyUserRecord='sendDutyUserRecord' |
| | | ></user-list> |
| | | </a-modal> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getAction, postAction, requestPut } from '@/api/manage' |
| | | import pick from 'lodash.pick' |
| | | import JMultiSelectTag from '@/components/dict/JMultiSelectTag' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | import DailyMaintenanceStandard3List from './DailyMaintenanceStandard3List' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | 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 UserList from '.././dailyInspectionOrder/UserList' |
| | | |
| | | export default { |
| | | name: "MaintenanceOrderModal", |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | JMultiSelectTag, |
| | | Tooltip, |
| | | PdfView, |
| | | preview, |
| | | DailyMaintenanceStandard3List, |
| | | UserList |
| | | }, |
| | | data() { |
| | | return { |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | align: 'center', |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1 |
| | | }, |
| | | width: 50, |
| | | }, |
| | | { |
| | | title: 'é¨ä½', |
| | | align: 'center', |
| | | dataIndex: 'location' |
| | | }, |
| | | { |
| | | title: 'ä¿å
»é¡¹ç®', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceProjectName' |
| | | }, |
| | | { |
| | | title: 'ä¿å
»æ å', |
| | | align: 'center', |
| | | dataIndex: 'standard' |
| | | }, |
| | | // { |
| | | // title: 'æ¹æ³', |
| | | // align: 'center', |
| | | // dataIndex: 'maintenanceMethod' |
| | | // }, |
| | | // { |
| | | // title: 'å·¥å
·', |
| | | // align: 'center', |
| | | // dataIndex: 'maintenanceTool' |
| | | // }, |
| | | // { |
| | | // title: '示æå¾', |
| | | // align: 'center', |
| | | // dataIndex: 'photo', |
| | | // scopedSlots: { customRender: 'photo' } |
| | | // }, |
| | | // { |
| | | // title: 'ç»´ä¿ä¸ä¸', |
| | | // align: 'center', |
| | | // dataIndex: 'maintenanceSpecialty', |
| | | // }, |
| | | ], |
| | | title: "æä½", |
| | | visible: false, |
| | | disableSubmit: false, |
| | | codeDisable: true, |
| | | isHidden: true, |
| | | dataSource: [], |
| | | model: {}, |
| | | departs: [], |
| | | maintenanceCycles: [], |
| | | 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: '请è¾å
¥ä¿å
»å·¥åç¼ç !' }, |
| | | ] |
| | | }, |
| | | useId: { |
| | | rules: [ |
| | | { required: false, message: 'è¯·éæ©ä½¿ç¨é¨é¨!' }, |
| | | ] |
| | | }, |
| | | maintenanceCycleId: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©ä¿å
»å¨æ!' }, |
| | | ] |
| | | }, |
| | | maintenanceStandardNum: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©ä¿å
»æ å!' }, |
| | | ] |
| | | }, |
| | | equipmentNum: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©è®¾å¤!' }, |
| | | ] |
| | | }, |
| | | maintenanceUserName: { |
| | | rules: [ |
| | | { required: true, message: '请维æ¤è´£ä»»äºº!' }, |
| | | ] |
| | | }, |
| | | assignMode: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·ç»´æ¤æ´¾å·¥æ¹å¼!' }, |
| | | ] |
| | | }, |
| | | teamName: { |
| | | rules: [ |
| | | { required: true, message: '请维æ¤è´£ä»»çç»!' }, |
| | | ] |
| | | }, |
| | | planStartTime: { |
| | | rules: [ |
| | | { required: true, message: '请维æ¤è®¡åå¼å§æ¶é´!' }, |
| | | ] |
| | | } |
| | | }, |
| | | url: { |
| | | add: "/eam/dailyMaintenanceOrder/add", |
| | | edit: "/eam/dailyMaintenanceOrder/edit", |
| | | getCycleByStandardId: "/eam/dailyMaintenanceOrder/getMaintenanceCycleByStandardId", |
| | | getMaintenanceProjectList: "/eam/dailyMaintenanceOrder/getMaintenanceProjectId", |
| | | getSysDeparts: "/eam/dailyMaintenanceOrder/getSysDeparts", |
| | | list: "/eam/dailyMaintenanceOrder/getMaintenanceCycleByStandardId", |
| | | getNum: '/eam/sysIdentity/getNumNew' |
| | | }, |
| | | |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | add() { |
| | | this.edit({}) |
| | | this.getSeq() |
| | | }, |
| | | |
| | | edit(record) { |
| | | let that = this; |
| | | this.getSysDeparts() |
| | | this.form.resetFields(); |
| | | this.model = Object.assign({}, record); |
| | | this.visible = true; |
| | | this.maintenanceCycles = record.maintenanceCycles |
| | | if (record.dailyMaintenanceDetails != undefined) { |
| | | const temp = [...record.dailyMaintenanceDetails]; |
| | | that.dataSource = temp; |
| | | // for (let i = 0; i < temp.length; i++) { |
| | | // let r = temp[i].upload; |
| | | // r.src = this.getSrc(temp[i].upload); |
| | | // } |
| | | } |
| | | that.$nextTick(() => { |
| | | that.form.setFieldsValue(pick(that.model, 'num', 'useId', 'maintenanceStandardNum', |
| | | 'effectiveTime', 'equipmentNum', 'maintenanceStandardId', 'equipmentId', 'maintenanceCycleId', |
| | | 'planStartTime', 'assignMode', 'teamName', 'unit', 'teamId', 'remark')); |
| | | }); |
| | | if (record.id) { |
| | | if ("3" == record.assignMode) { |
| | | this.isHidden = false |
| | | } else { |
| | | this.isHidden = true |
| | | } |
| | | this.codeDisable = true; |
| | | } else { |
| | | this.isHidden = true |
| | | this.codeDisable = false; |
| | | } |
| | | }, |
| | | |
| | | onDutyUserList() { |
| | | let data = this.form.getFieldsValue(['teamId']); |
| | | if (data.teamId == null || data.teamId == "") { |
| | | this.$message.warning("请å
ç»´æ¤çç»ï¼"); |
| | | return |
| | | } |
| | | this.$refs.UserList.list(data.teamId); |
| | | this.$refs.UserList.title = "éæ©äººå"; |
| | | }, |
| | | sendDutyUserRecord(data) { |
| | | let record = data.record; |
| | | this.form.setFieldsValue({ maintenanceUserId: record.id, maintenanceUserName: record.username + "/" + record.realname }); |
| | | }, |
| | | |
| | | close() { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.close(); |
| | | }, |
| | | |
| | | handleOk() { |
| | | const that = this; |
| | | this.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | that.confirmLoading = true; |
| | | let formData = Object.assign(this.model, values); |
| | | formData.dailyMaintenanceOrderDetails = that.dataSource; |
| | | let obj; |
| | | if (!this.model.id) { |
| | | obj = postAction(this.url.add, 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); |
| | | }, |
| | | |
| | | onSearchMaintenanceStandard() { |
| | | let data = this.form.getFieldsValue(['useId']); |
| | | // if (data.useId == null || data.useId == "") { |
| | | // this.$message.warning("请å
éæ©ä½¿ç¨é¨é¨!"); |
| | | // return |
| | | // } |
| | | this.$refs.DailyMaintenanceStandard3List.list(data.useId); |
| | | this.$refs.DailyMaintenanceStandard3List.title = "éæ©æ¥å¸¸ä¿å
»æ å"; |
| | | }, |
| | | send3MaintenanceStandardRecord(data) { |
| | | let record = data.record; |
| | | this.form.setFieldsValue({ equipmentId: record.equipmentId, maintenanceStandardId: record.id, equipmentNum: record.equipmentNum, maintenanceStandardNum: record.num, maintenanceCycleId: null }); |
| | | this.form.setFieldsValue({ assignMode: record.assignMode, teamId: record.teamId, teamName: record.teamName }); |
| | | this.getCycleByStandardId(record.id); |
| | | if ("3" == record.assignMode) { |
| | | this.isHidden = false |
| | | } else { |
| | | this.isHidden = true |
| | | } |
| | | }, |
| | | |
| | | getCycleByStandardId(maintenanceStandardId) { |
| | | getAction(this.url.getCycleByStandardId, { maintenanceStandardId: maintenanceStandardId }).then((res) => { |
| | | if (res.success) { |
| | | this.maintenanceCycles = res.result |
| | | this.dataSource = []; |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | getSysDeparts() { |
| | | getAction(this.url.getSysDeparts).then((res) => { |
| | | if (res.success) { |
| | | this.departs = res.result |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | getSeq() { |
| | | getAction(this.url.getNum, { type: 'MaintenanceOrder', length: 4 }).then(res => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ "num": res.result }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handle3Change(val) { |
| | | let data = this.form.getFieldsValue(['maintenanceStandardId']); |
| | | getAction(this.url.getMaintenanceProjectList, { maintenanceStandardId: data.maintenanceStandardId, maintenanceCycleId: val }).then((res) => { |
| | | if (res.success) { |
| | | this.dataSource = res.result; |
| | | if (res.result.length == 0) { |
| | | this.form.setFieldsValue({ "effectiveTime": null, "unit": null }) |
| | | } else { |
| | | this.form.setFieldsValue({ "effectiveTime": res.result[0].effectiveTime, "unit": res.result[0].unit }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | |
| | | handle2Change(val) { |
| | | this.maintenanceCycles = []; |
| | | this.dataSource = []; |
| | | this.form.setFieldsValue({ equipmentId: null, maintenanceStandardId: null, equipmentNum: null, maintenanceStandardNum: null, maintenanceCycleId: null }) |
| | | }, |
| | | |
| | | // 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 == 'inspectionCycleId') { |
| | | // target[column.dataIndex] = value; |
| | | // } |
| | | // //æ¾ç¤ºå¸¦è¿æ¥çæ°æ® |
| | | // that.dataSource = temp; |
| | | // } |
| | | // }, |
| | | |
| | | |
| | | }, |
| | | } |
| | | </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 |
| | | :width="800" |
| | | :visible="visible" |
| | | :maskClosable="false" |
| | | @ok="handleOk" |
| | | cancelText="å
³é" |
| | | @cancel="handleCancel" |
| | | :confirmLoading="confirmLoading" |
| | | title="éå½3" |
| | | > |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-size: 15px;float: right;" |
| | | >{{this.model.receiptsNum}}</span> |
| | | |
| | | <a-divider |
| | | orientation="center" |
| | | style="font-size: large;font-style: normal;font-size: 30px;color: #66aeed;" |
| | | > {{this.model.receiptsName}} </a-divider> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="使ç¨åä½" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | > |
| | | {{this.model.departName}} |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="æ£æ¥æ¥æ" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | {{this.model.updateTime}} |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '15%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >设å¤åç§°</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '19%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >{{this.model.equipmentName}}</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '15%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >设å¤åå·</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '18%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >{{this.model.equipmentModel}}</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '15%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >ç»ä¸ç¼å·</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '18%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >{{this.model.equipmentNum}}</span> |
| | | </div> |
| | | |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥é¨ä½</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥æ å</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥ç»æ(åæ ¼/ä¸åæ ¼)</span> |
| | | </div> |
| | | </div> |
| | | |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æçºµææåå¼å
³</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >å®å
¨ãæ ç ´æ</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_1 == '0'" |
| | | @change="handleSwitch(model.result_1)" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >ä¼ å¨ç³»ç»</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >çµæ´»ãæ å¼å</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_2 == '0'" |
| | | @change="handle2Switch(model.result_2)" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >å®å
¨è£
ç½®</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >å®å
¨ãçµæãå¯é </span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_3 == '0'" |
| | | @change="handle3Switch(model.result_3)" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >设å¤å¤è§</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ´æ´</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_4 == '0'" |
| | | @change="handle4Switch(model.result_4)" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >çµæ°çº¿è·¯</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >线路æ´é½ãæ¥çº¿æ£ç¡®</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_5 == '0'" |
| | | @change="handle5Switch(model.result_5)" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥åç´§åºè£
ç½®</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ æ¾å¨</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_6 == '0'" |
| | | @change="handle6Switch(model.result_6)" |
| | | /> |
| | | |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '70%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;float: center" |
| | | >æ¯å¦æ»¡è¶³ç产å å·¥è¦æ±</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_7 == '0'" |
| | | @change="handle7Switch(model.result_7)" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '130px',float: 'left',width: '100%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="é´å®ç»è®º" |
| | | > |
| | | <j-dict-select-tag |
| | | style="font-size: large;font-style: normal;font-size: 15px;width: 100%" |
| | | allow-clear |
| | | :triggerChange="true" |
| | | dictCode="technology_status" |
| | | v-model="model.technologyStatus" |
| | | /> |
| | | <!-- :placeholder="è¯·éæ©é´å®ç»è®º" --> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | > é´å®äººåç¾åï¼ </span> |
| | | <span v-if="this.model != null">{{ this.model.appraiser }}</span> |
| | | <span v-else>-</span> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | > åä½é¢å¯¼ç¾å: </span> |
| | | <span v-if="this.model != null">{{ this.model.leadership }}</span> |
| | | <span v-else>-</span> |
| | | </a-col> |
| | | </a-row> |
| | | </div> |
| | | </div> |
| | | |
| | | <template slot="footer"> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleCancel()" |
| | | > |
| | | å
³é |
| | | </a-button> |
| | | |
| | | <a-button |
| | | @click="handleOk1('1')" |
| | | type="primary" |
| | | :loading="confirmLoading" |
| | | :disabled="disableSubmit || confirmLoading" |
| | | v-has="'technologyStatusAuthenticate:admin'" |
| | | >ç¡®å®</a-button> |
| | | <a-button |
| | | @click="handleOk2('2')" |
| | | type="primary" |
| | | :loading="confirmLoading" |
| | | :disabled="disableSubmit || confirmLoading" |
| | | v-has="'technologyStatusAuthenticate:appraiser'" |
| | | >ç¡®å®</a-button> |
| | | <a-button |
| | | @click="handleOk3('3')" |
| | | type="primary" |
| | | :loading="confirmLoading" |
| | | :disabled="disableSubmit || confirmLoading" |
| | | v-has="'technologyStatusAuthenticate:leadership'" |
| | | >ç¡®å®</a-button> |
| | | </template> |
| | | </a-modal> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getAction, postAction, requestPut } from '@/api/manage' |
| | | import pick from 'lodash.pick' |
| | | import JMultiSelectTag from '@/components/dict/JMultiSelectTag' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | // import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { ACCESS_TOKEN } from '@/store/mutation-types' |
| | | import { getFileAccessHttpUrl } from '@/api/manage'; |
| | | |
| | | export default { |
| | | name: "StoveCategoryModal", |
| | | // mixins: [JeecgListMixin], |
| | | components: { |
| | | JMultiSelectTag, |
| | | Tooltip, |
| | | }, |
| | | data() { |
| | | return { |
| | | title: "æä½", |
| | | visible: false, |
| | | disableSubmit: false, |
| | | codeDisable: true, |
| | | dataSource: [], |
| | | model: {}, |
| | | 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: '请è¾å
¥ä¿å
»å·¥åç¼ç !' }, |
| | | ] |
| | | }, |
| | | }, |
| | | url: { |
| | | add: "/eam/technologyStatus/technologyStatusAuthenticate", |
| | | getTechnologyStatus: "/eam/technologyStatus/getTechnologyStatus", |
| | | list: "/eam/dailyMaintenanceOrder/getMaintenanceCycleByStandardId", |
| | | }, |
| | | |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | edit(record) { |
| | | let that = this; |
| | | this.form.resetFields(); |
| | | this.model = Object.assign({}, record); |
| | | this.getTechnologyStatus() |
| | | this.visible = true; |
| | | that.$nextTick(() => { |
| | | // that.form.setFieldsValue(pick(that.model, 'num', 'teamId', 'remark')); |
| | | }); |
| | | |
| | | }, |
| | | |
| | | |
| | | close() { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.close(); |
| | | }, |
| | | |
| | | handleOk1(arg) { |
| | | if (this.model.technologyStatus == "" || this.model.technologyStatus == null) { |
| | | this.$message.warning("请å
ç»´æ¤é´å®ç»è®ºï¼"); |
| | | return |
| | | } |
| | | this.handleOk(arg); |
| | | }, |
| | | handleOk2(arg) { |
| | | this.handleOk(arg); |
| | | }, |
| | | handleOk3(arg) { |
| | | if (this.model.technologyStatus == "" || this.model.technologyStatus == null) { |
| | | this.$message.warning("请å
ç»´æ¤é´å®ç»è®ºï¼"); |
| | | return |
| | | } |
| | | this.handleOk(arg); |
| | | }, |
| | | |
| | | handleOk(arg) { |
| | | |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | that.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | this.$confirm({ |
| | | title: 'çäº§è®¾å¤ææ¯ç¶æé´å®ç¡®è®¤', |
| | | content: 'æç¤ºï¼è¯·è°¨æ
æä½ï¼', |
| | | okText: '确认', |
| | | cancelText: 'åæ¶', |
| | | onOk() { |
| | | let formData = Object.assign(that.model, values); |
| | | if (arg == '1') {//管çå |
| | | formData.flag = "1" |
| | | } else if (arg == '2') {//é´å®äººå |
| | | formData.flag = "2" |
| | | } else {//é¢å¯¼ |
| | | formData.flag = "3" |
| | | } |
| | | that.confirmLoading = true; |
| | | postAction(that.url.add, formData).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message); |
| | | that.$emit('ok', new Date()); |
| | | } else { |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | that.close(); |
| | | }) |
| | | }, |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handleDelete(text, record, index) { |
| | | this.dataSource.splice(index, 1); |
| | | }, |
| | | |
| | | getTechnologyStatus() { |
| | | getAction(this.url.getTechnologyStatus, { orderId: this.model.id }).then((res) => { |
| | | if (res.success) { |
| | | this.model = Object.assign(this.model, res.result[0]); |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handleSwitch(result_1) { |
| | | if ('0' == result_1) { |
| | | this.model.result_1 = '1' |
| | | } else { |
| | | this.model.result_1 = '0' |
| | | } |
| | | |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle2Switch(result_2) { |
| | | if ('0' == result_2) { |
| | | this.model.result_2 = '1' |
| | | } else { |
| | | this.model.result_2 = '0' |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle3Switch(result_3) { |
| | | if ('0' == result_3) { |
| | | this.model.result_3 = '1' |
| | | } else { |
| | | this.model.result_3 = '0' |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle4Switch(result_4) { |
| | | if ('0' == result_4) { |
| | | this.model.result_4 = '1' |
| | | } else { |
| | | this.model.result_4 = '0' |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle5Switch(result_5) { |
| | | if ('0' == result_5) { |
| | | this.model.result_5 = '1' |
| | | } else { |
| | | this.model.result_5 = '0' |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle6Switch(result_6) { |
| | | if ('0' == result_6) { |
| | | this.model.result_6 = '1' |
| | | } else { |
| | | this.model.result_6 = '0' |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle7Switch(result_7) { |
| | | if ('0' == result_7) { |
| | | this.model.result_7 = '1' |
| | | } else { |
| | | this.model.result_7 = '0' |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | |
| | | |
| | | // handle21Switch(result_21) { |
| | | // if ('0' == result_21) { |
| | | // this.model.result_21 = '1' |
| | | // this.disabled22Switch = true |
| | | // } else { |
| | | // this.model.result_21 = '0' |
| | | // this.disabled22Switch = false |
| | | // } |
| | | // this.model = Object.assign({}, this.model); |
| | | // }, |
| | | |
| | | // handle22Switch(result_22) { |
| | | // if ('0' == result_22) { |
| | | // this.model.result_22 = '1' |
| | | // this.disabled21Switch = true |
| | | // } else { |
| | | // this.model.result_22 = '0' |
| | | // this.disabled21Switch = false |
| | | // } |
| | | // this.model = Object.assign({}, this.model); |
| | | // }, |
| | | |
| | | |
| | | // onChangeJudgmentResult(e) { |
| | | // this.model.judgmentResult = e.target.value |
| | | // }, |
| | | |
| | | // handleChange(value, key, column, index) { |
| | | // let that = this; |
| | | // const temp = [...that.dataSource]; |
| | | // const target = temp.filter(item => key === item.key)[index]; |
| | | // if (target) { |
| | | // if ('actualMeasure' == column.dataIndex) { |
| | | // target['actualMeasure'] = value.target.value; |
| | | // } |
| | | // //æ¾ç¤ºå¸¦è¿æ¥çæ°æ® |
| | | // that.dataSource = temp; |
| | | // } |
| | | // }, |
| | | |
| | | }, |
| | | } |
| | | </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; |
| | | } |
| | | .hightColor { |
| | | height: 10%; |
| | | font-weight: bold; |
| | | font-size: 20px; |
| | | color: #1b1e1e; |
| | | } |
| | | .frozenRowClass { |
| | | color: #c9c9c9; |
| | | } |
| | | .fontweight { |
| | | font-weight: bold; |
| | | } |
| | | .hight { |
| | | color: #f5222d; |
| | | } |
| | | /deep/ .red { |
| | | color: red; |
| | | } |
| | | |
| | | .line { |
| | | width: 1px; |
| | | height: 300px; |
| | | background-color: #000; |
| | | border: none; |
| | | float: left; |
| | | } |
| | | </style> |
| | |
| | | align: "center", |
| | | dataIndex: 'location', |
| | | }, |
| | | { |
| | | title: '示æå¾', |
| | | align: "center", |
| | | dataIndex: 'photo', |
| | | scopedSlots: { customRender: 'photo' }, |
| | | }, |
| | | // { |
| | | // title: '示æå¾', |
| | | // align: "center", |
| | | // dataIndex: 'photo', |
| | | // scopedSlots: { customRender: 'photo' }, |
| | | // }, |
| | | { |
| | | title: 'ç¹æ£é¡¹ç®', |
| | | align: "center", |
| | |
| | | </a-col> --> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <!-- <a-col :span="12"> |
| | | <a-form-item |
| | | label="派工æ¹å¼" |
| | | :labelCol="labelCol" |
| | |
| | | v-decorator="['assignMode', validatorRules.assignMode]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-col> --> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="çæ¬" |
| | |
| | | style="width: 100%" |
| | | :disabled="false" |
| | | /> |
| | | <j-image-upload |
| | | <!-- <j-image-upload |
| | | :value="text" |
| | | v-if="col.dataIndex == 'photo'" |
| | | :isMultiple="false" |
| | |
| | | placeholder="请ä¸ä¼ å¾ç" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | > |
| | | </j-image-upload> |
| | | </j-image-upload> --> |
| | | <a-input |
| | | :value="text" |
| | | v-if="col.dataIndex == 'location'" |
| | |
| | | scopedSlots: { customRender: 'inspectionCycleId' }, |
| | | width: 170, |
| | | }, |
| | | { |
| | | title: '示æå¾', |
| | | align: 'center', |
| | | dataIndex: 'photo', |
| | | scopedSlots: { customRender: 'photo' }, |
| | | width: 170, |
| | | }, |
| | | // { |
| | | // title: '示æå¾', |
| | | // align: 'center', |
| | | // dataIndex: 'photo', |
| | | // scopedSlots: { customRender: 'photo' }, |
| | | // width: 170, |
| | | // }, |
| | | { |
| | | title: 'é¨ä½', |
| | | align: 'center', |
| | |
| | | }, |
| | | useId: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©ä½¿ç¨é¨é¨!' }, |
| | | { required: false, message: 'è¯·éæ©ä½¿ç¨é¨é¨!' }, |
| | | ] |
| | | }, |
| | | maintenanceCycleId: { |
| | |
| | | |
| | | onSearchMaintenanceStandard() { |
| | | let data = this.form.getFieldsValue(['useId']); |
| | | if (data.useId == null || data.useId == "") { |
| | | this.$message.warning("请å
éæ©ä½¿ç¨é¨é¨!"); |
| | | return |
| | | } |
| | | // if (data.useId == null || data.useId == "") { |
| | | // this.$message.warning("请å
éæ©ä½¿ç¨é¨é¨!"); |
| | | // return |
| | | // } |
| | | this.$refs.DailyMaintenanceStandardList.list(data.useId); |
| | | this.$refs.DailyMaintenanceStandardList.title = "éæ©æ¥å¸¸ä¿å
»æ å"; |
| | | }, |
| | |
| | | }, |
| | | judgmentResult: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©ææ¯ç¶æ!' }, |
| | | { required: false, message: 'è¯·éæ©ææ¯ç¶æ!' }, |
| | | ] |
| | | }, |
| | | }, |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-modal |
| | | :width="800" |
| | | :visible="visible" |
| | | :maskClosable="false" |
| | | @ok="handleOk" |
| | | cancelText="å
³é" |
| | | @cancel="handleCancel" |
| | | :confirmLoading="confirmLoading" |
| | | title="éå½3" |
| | | > |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-size: 15px;float: right;" |
| | | >{{this.model.receiptsNum}}</span> |
| | | |
| | | <a-divider |
| | | orientation="center" |
| | | style="font-size: large;font-style: normal;font-size: 30px;color: #66aeed;" |
| | | > {{this.model.receiptsName}} </a-divider> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="使ç¨åä½" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | > |
| | | {{this.model.useDepartName}} |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="æ£æ¥æ¥æ" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | {{this.model.updateTime}} |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '15%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >设å¤åç§°</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '19%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >{{this.model.equipmentName}}</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '15%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >设å¤åå·</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '18%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >{{this.model.equipmentModel}}</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '15%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >ç»ä¸ç¼å·</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '18%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >{{this.model.equipmentNum}}</span> |
| | | </div> |
| | | |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥é¨ä½</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥æ å</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥ç»æ(åæ ¼/ä¸åæ ¼)</span> |
| | | </div> |
| | | </div> |
| | | |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æçºµææåå¼å
³</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >å®å
¨ãæ ç ´æ</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_1 == '0'" |
| | | @change="handleSwitch(model.result_1)" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >ä¼ å¨ç³»ç»</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >çµæ´»ãæ å¼å</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_2 == '0'" |
| | | @change="handle2Switch(model.result_2)" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >å®å
¨è£
ç½®</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >å®å
¨ãçµæãå¯é </span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_3 == '0'" |
| | | @change="handle3Switch(model.result_3)" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >设å¤å¤è§</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ´æ´</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_4 == '0'" |
| | | @change="handle4Switch(model.result_4)" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >çµæ°çº¿è·¯</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >线路æ´é½ãæ¥çº¿æ£ç¡®</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_5 == '0'" |
| | | @change="handle5Switch(model.result_5)" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥åç´§åºè£
ç½®</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ æ¾å¨</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_6 == '0'" |
| | | @change="handle6Switch(model.result_6)" |
| | | /> |
| | | |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '70%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;float: center" |
| | | >æ¯å¦æ»¡è¶³ç产å å·¥è¦æ±</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_7 == '0'" |
| | | @change="handle7Switch(model.result_7)" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '130px',float: 'left',width: '100%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="é´å®ç»è®º" |
| | | > |
| | | <j-dict-select-tag |
| | | style="width: 100%" |
| | | allow-clear |
| | | :triggerChange="true" |
| | | dictCode="technology_status" |
| | | v-model="model.technologyStatus" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | > é´å®äººåç¾åï¼ </span> |
| | | <span v-if="this.model != null">{{ this.model.appraiser }}</span> |
| | | <span v-else>-</span> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | > åä½é¢å¯¼ç¾å: </span> |
| | | <span v-if="this.model != null">{{ this.model.leadership }}</span> |
| | | <span v-else>-</span> |
| | | </a-col> |
| | | </a-row> |
| | | </div> |
| | | </div> |
| | | |
| | | <template slot="footer"> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleCancel()" |
| | | > |
| | | å
³é |
| | | </a-button> |
| | | |
| | | <a-button |
| | | @click="handleOk1('1')" |
| | | type="primary" |
| | | :loading="confirmLoading" |
| | | :disabled="disableSubmit || confirmLoading" |
| | | v-has="'calibrationOrder:admin'" |
| | | >ç¡®å®</a-button> |
| | | <a-button |
| | | @click="handleOk2('2')" |
| | | type="primary" |
| | | :loading="confirmLoading" |
| | | :disabled="disableSubmit || confirmLoading" |
| | | v-has="'calibrationOrder:appraiser'" |
| | | >ç¡®å®</a-button> |
| | | <a-button |
| | | @click="handleOk3('3')" |
| | | type="primary" |
| | | :loading="confirmLoading" |
| | | :disabled="disableSubmit || confirmLoading" |
| | | v-has="'calibrationOrder:leadership'" |
| | | >ç¡®å®</a-button> |
| | | </template> |
| | | </a-modal> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getAction, postAction, requestPut } from '@/api/manage' |
| | | import pick from 'lodash.pick' |
| | | import JMultiSelectTag from '@/components/dict/JMultiSelectTag' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | // import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { ACCESS_TOKEN } from '@/store/mutation-types' |
| | | import { getFileAccessHttpUrl } from '@/api/manage'; |
| | | |
| | | export default { |
| | | name: "StoveCategoryModal", |
| | | // mixins: [JeecgListMixin], |
| | | components: { |
| | | JMultiSelectTag, |
| | | Tooltip, |
| | | }, |
| | | data() { |
| | | return { |
| | | title: "æä½", |
| | | visible: false, |
| | | disableSubmit: false, |
| | | codeDisable: true, |
| | | dataSource: [], |
| | | model: {}, |
| | | 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: '请è¾å
¥ä¿å
»å·¥åç¼ç !' }, |
| | | ] |
| | | }, |
| | | }, |
| | | url: { |
| | | add: "/eam/technologyStatus/technologyStatusAuthenticateD", |
| | | getTechnologyStatus: "/eam/technologyStatus/getTechnologyStatus", |
| | | list: "/eam/dailyMaintenanceOrder/getMaintenanceCycleByStandardId", |
| | | }, |
| | | |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | edit(record) { |
| | | let that = this; |
| | | this.form.resetFields(); |
| | | this.model = Object.assign({}, record); |
| | | this.getTechnologyStatus() |
| | | this.visible = true; |
| | | that.$nextTick(() => { |
| | | // that.form.setFieldsValue(pick(that.model, 'num', 'teamId', 'remark')); |
| | | }); |
| | | |
| | | }, |
| | | |
| | | |
| | | close() { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.close(); |
| | | }, |
| | | |
| | | handleOk1(arg) { |
| | | if (this.model.technologyStatus == "" || this.model.technologyStatus == null) { |
| | | this.$message.warning("请å
ç»´æ¤é´å®ç»è®ºï¼"); |
| | | return |
| | | } |
| | | console.log(this.model) |
| | | this.handleOk(arg); |
| | | }, |
| | | handleOk2(arg) { |
| | | this.handleOk(arg); |
| | | }, |
| | | handleOk3(arg) { |
| | | if (this.model.technologyStatus == "" || this.model.technologyStatus == null) { |
| | | this.$message.warning("请å
ç»´æ¤é´å®ç»è®ºï¼"); |
| | | return |
| | | } |
| | | this.handleOk(arg); |
| | | }, |
| | | |
| | | handleOk(arg) { |
| | | |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | that.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | this.$confirm({ |
| | | title: 'çäº§è®¾å¤ææ¯ç¶æé´å®ç¡®è®¤', |
| | | content: 'æç¤ºï¼è¯·è°¨æ
æä½ï¼', |
| | | okText: '确认', |
| | | cancelText: 'åæ¶', |
| | | onOk() { |
| | | let formData = Object.assign(that.model, values); |
| | | if (arg == '1') {//管çå |
| | | formData.flag = "1" |
| | | } else if (arg == '2') {//é´å®äººå |
| | | formData.flag = "2" |
| | | } else {//é¢å¯¼ |
| | | formData.flag = "3" |
| | | } |
| | | that.confirmLoading = true; |
| | | postAction(that.url.add, formData).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message); |
| | | that.$emit('ok', new Date()); |
| | | } else { |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | that.close(); |
| | | }) |
| | | }, |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handleDelete(text, record, index) { |
| | | this.dataSource.splice(index, 1); |
| | | }, |
| | | |
| | | getTechnologyStatus() { |
| | | getAction(this.url.getTechnologyStatus, { orderId: this.model.id }).then((res) => { |
| | | if (res.success) { |
| | | this.model = Object.assign(this.model, res.result[0]); |
| | | this.model = Object.assign({}, this.model); |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handleSwitch(result_1) { |
| | | if ('0' == result_1) { |
| | | this.model.result_1 = '1' |
| | | } else { |
| | | this.model.result_1 = '0' |
| | | } |
| | | |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle2Switch(result_2) { |
| | | if ('0' == result_2) { |
| | | this.model.result_2 = '1' |
| | | } else { |
| | | this.model.result_2 = '0' |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle3Switch(result_3) { |
| | | if ('0' == result_3) { |
| | | this.model.result_3 = '1' |
| | | } else { |
| | | this.model.result_3 = '0' |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle4Switch(result_4) { |
| | | if ('0' == result_4) { |
| | | this.model.result_4 = '1' |
| | | } else { |
| | | this.model.result_4 = '0' |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle5Switch(result_5) { |
| | | if ('0' == result_5) { |
| | | this.model.result_5 = '1' |
| | | } else { |
| | | this.model.result_5 = '0' |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle6Switch(result_6) { |
| | | if ('0' == result_6) { |
| | | this.model.result_6 = '1' |
| | | } else { |
| | | this.model.result_6 = '0' |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle7Switch(result_7) { |
| | | if ('0' == result_7) { |
| | | this.model.result_7 = '1' |
| | | } else { |
| | | this.model.result_7 = '0' |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | }, |
| | | } |
| | | </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; |
| | | } |
| | | .hightColor { |
| | | height: 10%; |
| | | font-weight: bold; |
| | | font-size: 20px; |
| | | color: #1b1e1e; |
| | | } |
| | | .frozenRowClass { |
| | | color: #c9c9c9; |
| | | } |
| | | .fontweight { |
| | | font-weight: bold; |
| | | } |
| | | .hight { |
| | | color: #f5222d; |
| | | } |
| | | /deep/ .red { |
| | | color: red; |
| | | } |
| | | |
| | | .line { |
| | | width: 1px; |
| | | height: 300px; |
| | | background-color: #000; |
| | | border: none; |
| | | float: left; |
| | | } |
| | | </style> |
| | |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | @change="handleTableChange" |
| | | :scroll="{ x: 'calc(1000px + 50%)', y: 900 }" |
| | | :scroll="{ x: 'calc(600px + 50%)', y: 900 }" |
| | | > |
| | | <!--å符串è¶
é¿æªåçç¥å·æ¾ç¤º--> |
| | | <span |
| | |
| | | // align: "center", |
| | | // dataIndex: 'inspectionTool', |
| | | // }, |
| | | { |
| | | title: 'å建人', |
| | | align: "center", |
| | | dataIndex: 'createBy', |
| | | }, |
| | | { |
| | | title: 'å建æ¶é´', |
| | | align: "center", |
| | | dataIndex: 'createTime', |
| | | }, |
| | | // { |
| | | // title: 'å建人', |
| | | // align: "center", |
| | | // dataIndex: 'createBy', |
| | | // }, |
| | | // { |
| | | // title: 'å建æ¶é´', |
| | | // align: "center", |
| | | // dataIndex: 'createTime', |
| | | // }, |
| | | { |
| | | |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | width: 150, |
| | | scopedSlots: { |
| | | customRender: 'action' |
| | | }, |
| | | fixed: 'right', |
| | | }, |
| | | // width: 150, |
| | | // fixed: 'right', |
| | | ], |
| | | url: { |
| | | list: '/eam/inspectionProject/list', |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.$bus.$on('queryTreeData', this.queryTreeData); |
| | | this.$bus.$on('queryAreaTreeData', this.queryTreeData); |
| | | }, |
| | | //çå¬ |
| | | watch: { |
| | |
| | | }, |
| | | watch: { |
| | | alterFlag() { |
| | | this.$bus.$emit('queryTreeData'); |
| | | this.$bus.$emit('queryAreaTreeData'); |
| | | }, |
| | | } |
| | | } |