| | |
| | | NODE_ENV=development |
| | | VUE_APP_API_BASE_URL=http://127.0.0.1:8099 |
| | | VUE_APP_API_BASE_URL=http://localhost:8080 |
| | | # VUE_APP_API_BASE_URL=http://195.0.1.10:8099 |
| | | VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas |
| | | VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview |
| | |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :rowClassName="tableRowClass" |
| | | :loading="loading" |
| | | @change="handleTableChange"> |
| | | |
| | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import '@/assets/less/TableExpand.less' |
| | | |
| | | export default { |
| | | name: "ABCAssessmentList", |
| | |
| | | this.dataSource=[] |
| | | this.selectedRowKeys=[] |
| | | this.ipagination.current = 1 |
| | | }, |
| | | tableRowClass(record, index) { |
| | | if (record.equipmentImportanceId!==record.finalStandard) { |
| | | return 'primary' |
| | | } |
| | | |
| | | }, |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less' |
| | | <style lang="less" scoped> |
| | | @import '~@assets/less/common.less'; |
| | | /deep/.primary { |
| | | color: rgb(0, 115, 255); |
| | | font-weight: bold; |
| | | } |
| | | </style> |
| | |
| | | </template> |
| | | <span slot="action" slot-scope="text, record"> |
| | | <div v-if="nodeValue===record.status"> |
| | | <a @click="handleStreamNext(record)" :disabled="nodeSort===1&&nodeValue!==record.status" >{{button1.name}}</a> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleStreamLast(record)" :disabled="nodeSort===1" >{{button2.name}}</a> |
| | | <a @click="handleStreamNext(record)" :disabled="nodeSort===1&&nodeValue!==record.status" v-if="button1!={}">{{button1.name}}</a> |
| | | <a-divider type="vertical" v-if="button2!={}"/> |
| | | <a @click="handleStreamLast(record)" :disabled="nodeSort===1" v-if="button2!={}" >{{button2.name}}</a> |
| | | </div> |
| | | <div v-if="nodeSort===1&&nodeValue===record.status"> |
| | | <a-divider type="vertical" /> |
| | |
| | | return { |
| | | description: '设å¤ABCè¯ä»·ç®¡ç页é¢', |
| | | // 表头 |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | |
| | | getAction(this.url.getPreInfo).then(res=>{ |
| | | if(res.result.msg==='ok'){ |
| | | this.button1 = res.result.buttons[0]; |
| | | this.button2 = res.result.buttons[1]; |
| | | if(res.result.buttons.length===2){ |
| | | this.button2 = res.result.buttons[1]; |
| | | } |
| | | this.nodeSort = res.result.nodeSort; |
| | | this.nodeValue = res.result.nodeValue; |
| | | } |
| | |
| | | :loading="aBCAssessmentTable.loading" |
| | | :columns="aBCAssessmentTable.columns" |
| | | :dataSource="aBCAssessmentTable.dataSource" |
| | | :maxHeight="300" |
| | | :maxHeight="1000" |
| | | :disabled="formDisabled" |
| | | :rowNumber="true" |
| | | :rowSelection="true" |
| | |
| | | title: 'ç»ä¸ç¼ç ', |
| | | key: 'num', |
| | | type: JVXETypes.normal, |
| | | width:"250px", |
| | | width:"160px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | disabled:true, |
| | | align:'center', |
| | |
| | | title: '设å¤åç§°', |
| | | key: 'name', |
| | | type: JVXETypes.normal, |
| | | width:"250px", |
| | | width:"160px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | disabled:true, |
| | | align:'center', |
| | |
| | | title: '设å¤åå·', |
| | | key: 'model', |
| | | type: JVXETypes.normal, |
| | | width:"250px", |
| | | width:"160px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | disabled:true, |
| | | align:'center', |
| | |
| | | title: 'å¹³å使ç¨ç', |
| | | key: 'standardA', |
| | | type: JVXETypes.select, |
| | | width:"250px", |
| | | width:"180px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue:'', |
| | | dictCode:'ABC-standardA', |
| | |
| | | title: '坿¿æ¢æ§', |
| | | key: 'standardB', |
| | | type: JVXETypes.select, |
| | | width:"250px", |
| | | width:"180px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue:'', |
| | | dictCode:'ABC-standardB', |
| | |
| | | title: 'æ
éå½±å度', |
| | | key: 'standardC', |
| | | type: JVXETypes.select, |
| | | width:"250px", |
| | | width:"230px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue:'', |
| | | dictCode:'ABC-standardC', |
| | |
| | | title: 'ç产è¶
差度', |
| | | key: 'standardD', |
| | | type: JVXETypes.select, |
| | | width:"250px", |
| | | width:"180px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue:'', |
| | | dictCode:'ABC-standardD', |
| | |
| | | title: 'æ
éé¢ç', |
| | | key: 'standardE', |
| | | type: JVXETypes.select, |
| | | width:"250px", |
| | | width:"180px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue:'', |
| | | dictCode:'ABC-standardE', |
| | |
| | | title: '设å¤ä»·å¼', |
| | | key: 'standardF', |
| | | type: JVXETypes.select, |
| | | width:"250px", |
| | | width:"180px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue:'', |
| | | dictCode:'ABC-standardF', |
| | |
| | | title: 'æ§æ è¯', |
| | | key: 'equipmentImportanceId', |
| | | type: JVXETypes.select, |
| | | width:"250px", |
| | | width:"180px", |
| | | disabled:true, |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue:'', |
| | |
| | | title: 'æ°æ è¯', |
| | | key: 'finalStandard', |
| | | type: JVXETypes.select, |
| | | width:"250px", |
| | | width:"180px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue:'', |
| | | dictCode:'ABC-standard-result', |
| | |
| | | } |
| | | var standardA = this.model.standardA == null || this.model.standardA == undefined || this.model.standardA == '' ? 0 : parseInt(this.model.standardA); |
| | | var standardB = this.model.standardB == null || this.model.standardB == undefined || this.model.standardB == '' ? 0 : parseInt(this.model.standardB); |
| | | var standardC = this.model.standardA == null || this.model.standardC == undefined || this.model.standardC == '' ? 0 : parseInt(this.model.standardC); |
| | | var standardC = this.model.standardC == null || this.model.standardC == undefined || this.model.standardC == '' ? 0 : parseInt(this.model.standardC); |
| | | var standardD = this.model.standardD == null || this.model.standardD == undefined || this.model.standardD == '' ? 0 : parseInt(this.model.standardD); |
| | | var standardE = this.model.standardE == null || this.model.standardE == undefined || this.model.standardE == '' ? 0 : parseInt(this.model.standardE); |
| | | var standardF = this.model.standardF == null || this.model.standardF == undefined || this.model.standardF == '' ? 0 : parseInt(this.model.standardF); |
| | |
| | | num: data[i].num, |
| | | name: data[i].name, |
| | | model:data[i].model, |
| | | standardA:data[i].standardA, |
| | | standardB:data[i].standardB, |
| | | standardC:data[i].standardC, |
| | | standardD:data[i].standardD, |
| | | standardE:data[i].standardE, |
| | | standardF:data[i].standardF, |
| | | equipmentImportanceId:data[i].equipmentImportanceId, |
| | | finalStandard:data[i].equipmentImportanceId, |
| | | } |
| | | } |
| | | addRows.push(equipment) |
| | |
| | | changeDate(target){ |
| | | var standardA = target.row.standardA == null || target.row.standardA == undefined || target.row.standardA == '' ? 0 : parseInt(target.row.standardA); |
| | | var standardB = target.row.standardB == null || target.row.standardB == undefined || target.row.standardB == '' ? 0 : parseInt(target.row.standardB); |
| | | var standardC = target.row.standardA == null || target.row.standardC == undefined || target.row.standardC == '' ? 0 : parseInt(target.row.standardC); |
| | | var standardC = target.row.standardC == null || target.row.standardC == undefined || target.row.standardC == '' ? 0 : parseInt(target.row.standardC); |
| | | var standardD = target.row.standardD == null || target.row.standardD == undefined || target.row.standardD == '' ? 0 : parseInt(target.row.standardD); |
| | | var standardE = target.row.standardE == null || target.row.standardE == undefined || target.row.standardE == '' ? 0 : parseInt(target.row.standardE); |
| | | var standardF = target.row.standardF == null || target.row.standardF == undefined || target.row.standardF == '' ? 0 : parseInt(target.row.standardF); |
| | |
| | | changeDateByRow(row){ |
| | | var standardA = row.standardA == null || row.standardA == undefined || row.standardA == '' ? 0 : parseInt(row.standardA); |
| | | var standardB = row.standardB == null || row.standardB == undefined || row.standardB == '' ? 0 : parseInt(row.standardB); |
| | | var standardC = row.standardA == null || row.standardC == undefined || row.standardC == '' ? 0 : parseInt(row.standardC); |
| | | var standardC = row.standardC == null || row.standardC == undefined || row.standardC == '' ? 0 : parseInt(row.standardC); |
| | | var standardD = row.standardD == null || row.standardD == undefined || row.standardD == '' ? 0 : parseInt(row.standardD); |
| | | var standardE = row.standardE == null || row.standardE == undefined || row.standardE == '' ? 0 : parseInt(row.standardE); |
| | | var standardF = row.standardF == null || row.standardF == undefined || row.standardF == '' ? 0 : parseInt(row.standardF); |
| | |
| | | type="vertical" |
| | | /> |
| | | <a |
| | | v-show="record.status === '5' && record.isNotStoveCategoryFlag == false && record.precisionParameters == '0'" |
| | | v-show="record.status === '5' && record.isNotStoveCategoryFlag == true && (record.stoveExemptStatus == '0' ||record.stoveExemptStatus == '1' ||record.stoveExemptStatus == '2')" |
| | | @click="handleStoveReport(record)" |
| | | v-has="'daily3MaintenanceOrder:StoveCategoryReport'" |
| | | >çç±»æ¥å</a> |
| | | <a-divider |
| | | v-show="record.status === '5'&& record.isNotStoveCategoryFlag == true && (record.stoveExemptStatus == '0' ||record.stoveExemptStatus == '1' ||record.stoveExemptStatus == '2')" |
| | | type="vertical" |
| | | /> |
| | | <a |
| | | 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="StoveCategoryModal" |
| | | @ok="modalFormOk" |
| | | ></stove-category-modal> |
| | | <stove-category-report-modal |
| | | ref="StoveCategoryReportModal" |
| | | @ok="modalFormOk" |
| | | ></stove-category-report-modal> |
| | | <maintenance-order-assign-modal |
| | | ref="MaintenanceOrderAssignModal" |
| | | @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 StoveCategoryModal from './modules/daily3MaintenanceOrder/StoveCategoryModal' |
| | | import StoveCategoryReportModal from './modules/daily3MaintenanceOrder/StoveCategoryReportModal' |
| | | 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, |
| | | DailyMaintenanceOrderExeDrawer, |
| | | MaintenanceOrderChangeModal, |
| | | StoveCategoryModal, |
| | | StoveCategoryReportModal, |
| | | 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) { |
| | |
| | | this.$refs.StoveCategoryModal.title = "温度ååæ§æ£æµæ¡ä»¶ç¡®è®¤è¡¨"; |
| | | this.$refs.StoveCategoryModal.disableSubmit = false; |
| | | }, |
| | | handleStoveReport: function (record) { |
| | | this.$refs.StoveCategoryReportModal.add(); |
| | | this.$refs.StoveCategoryReportModal.title = "çç±»è®¾å¤æ¥åä¸ä¼ "; |
| | | this.$refs.StoveCategoryReportModal.disableSubmit = false; |
| | | this.$refs.StoveCategoryReportModal.maintenanceStandardId = record.id |
| | | this.$refs.StoveCategoryReportModal.equipmentId = record.equipmentId |
| | | }, |
| | | |
| | | handleOrderChange: function (record) { |
| | | this.$refs.MaintenanceOrderChangeModal.edit(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; |
| | | }) |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | } |
| | | } |
| | |
| | | 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" |
| | | >导å
¥</a-button> |
| | | </a-upload> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | |
| | | dataIndex: 'num', |
| | | }, |
| | | { |
| | | title: 'æ åç±»å', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceTypeName', |
| | | }, |
| | | { |
| | | title: 'ç¾å®¡ç¶æ', |
| | | align: 'center', |
| | | dataIndex: 'approvalStatusName', |
| | |
| | | align: 'center', |
| | | dataIndex: 'useDepartName', |
| | | }, |
| | | { |
| | | title: '派工æ¹å¼', |
| | | align: 'center', |
| | | dataIndex: 'assignModeName', |
| | | }, |
| | | |
| | | { |
| | | title: '责任çç»', |
| | | align: 'center', |
| | |
| | | delete: '/eam/maintenanceStandard/delete', |
| | | deleteBatch: '/eam/maintenanceStandard/deleteBatch', |
| | | versionTakeEffect: "/eam/maintenanceStandard/versionTakeEffect", |
| | | importExcelUrl: "/eam/maintenanceStandard/importExcelOfTwoMaintenance", |
| | | }, |
| | | /* å页忰 */ |
| | | ipagination: { |
| | |
| | | queryParam: { type: 'daily' } |
| | | } |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function () { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | watch: { |
| | | selectionRows() { |
| | | this.$bus.$emit('dailyMaintenanceStandardSelectionRows', this.selectionRows); |
| | |
| | | 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 = 'æ£å®å·¥åæ§è¡' |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="æ¯å¦ç产线设å¤" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©" |
| | | :triggerChange="true" |
| | | dictCode="is_product" |
| | | v-model="queryParam.isLineEquip" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | size="small" |
| | | bordered |
| | | rowKey="id" |
| | | :scroll="{x:true}" |
| | |
| | | <a-tab-pane tab="ABCæ è¯åæ´è®°å½" key="5" forceRender> |
| | | <equipment-update-ABC-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´è®°å½" key="6" forceRender> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´" key="6" forceRender> |
| | | <equipment-update-warranty-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¿å
»ç¹æ£æ å" key="7" forceRender> |
| | | <standard-of-maintenance :mainId="selectedMainId"/> |
| | | <a-tab-pane tab="æ¥ä¿æ å" key="7" forceRender> |
| | | <daily-maintenance-list :mainId="selectedMainId"></daily-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="äºä¿æ å" key="8" forceRender> |
| | | <second-maintenance-list :mainId="selectedMainId"></second-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¸ä¿æ å" key="9" forceRender> |
| | | <third-maintenance-list :mainId="selectedMainId"></third-maintenance-list> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-modal ref="modalForm" @ok="modalFormOk" :caytegoryParam="caytegoryParam"></equipment-modal> |
| | |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | | import StandardOfInspection from './modules/equipmentNew/StandardOfInspection.vue' |
| | | import StandardOfMaintenance from './modules/equipmentNew/StandardOfMaintenance.vue' |
| | | import DailyMaintenanceList from './modules/equipmentNew/DailyMaintenanceList.vue' |
| | | import SecondMaintenanceList from './modules/equipmentNew/SecondMaintenanceList.vue' |
| | | import ThirdMaintenanceList from './modules/equipmentNew/ThirdMaintenanceList.vue' |
| | | export default { |
| | | name: "EquipmentList", |
| | | mixins:[JeecgListMixin,mixinDevice], |
| | |
| | | EquipmentSparePartsModal, |
| | | StandardOfInspection, |
| | | StandardOfMaintenance, |
| | | DailyMaintenanceList, |
| | | SecondMaintenanceList, |
| | | ThirdMaintenanceList, |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | title: '设å¤ç±»å', |
| | | align: "center", |
| | | dataIndex: 'equipmentCategoryId_dictText', |
| | | }, |
| | | { |
| | | title: 'æ¯å¦ç产线设å¤', |
| | | align: "center", |
| | | dataIndex: 'isLineEquip_dictText', |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | |
| | | dataIndex: 'technologyStatusVerificationType_dictText', |
| | | }, |
| | | |
| | | // { |
| | | // title: 'å·¥åº', |
| | | // align: "center", |
| | | // dataIndex: 'equipmentUda1', |
| | | // }, |
| | | { |
| | | title: 'ç产线ç¼å·', |
| | | align: "center", |
| | | dataIndex: 'lineId_dictText', |
| | | }, |
| | | { |
| | | title: '主设�', |
| | | align: "center", |
| | | dataIndex: 'isMeta_dictText', |
| | | }, |
| | | // { |
| | | // title: 'å®å
¨é
ç½®', |
| | | // align: "center", |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="æ¯å¦ç产线设å¤" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©" |
| | | :triggerChange="true" |
| | | dictCode="is_product" |
| | | v-model="queryParam.isLineEquip" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | |
| | | <a-tab-pane tab="ABCæ è¯åæ´è®°å½" key="5" forceRender> |
| | | <equipment-update-ABC-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´è®°å½" key="6" forceRender> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´" key="6" forceRender> |
| | | <equipment-update-warranty-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¿å
»ç¹æ£æ å" key="7" forceRender> |
| | | <standard-of-maintenance :mainId="selectedMainId"/> |
| | | <a-tab-pane tab="æ¥ä¿æ å" key="7" forceRender> |
| | | <daily-maintenance-list :mainId="selectedMainId"></daily-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="äºä¿æ å" key="8" forceRender> |
| | | <second-maintenance-list :mainId="selectedMainId"></second-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¸ä¿æ å" key="9" forceRender> |
| | | <third-maintenance-list :mainId="selectedMainId"></third-maintenance-list> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-modal ref="modalForm" @ok="modalFormOk" :caytegoryParam="caytegoryParam"></equipment-modal> |
| | |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | | import StandardOfInspection from './modules/equipmentNew/StandardOfInspection.vue' |
| | | import StandardOfMaintenance from './modules/equipmentNew/StandardOfMaintenance.vue' |
| | | import DailyMaintenanceList from './modules/equipmentNew/DailyMaintenanceList.vue' |
| | | import SecondMaintenanceList from './modules/equipmentNew/SecondMaintenanceList.vue' |
| | | import ThirdMaintenanceList from './modules/equipmentNew/ThirdMaintenanceList.vue' |
| | | export default { |
| | | name: "EquipmentList", |
| | | mixins:[JeecgListMixin,mixinDevice], |
| | |
| | | EquipmentSparePartsModal, |
| | | StandardOfInspection, |
| | | StandardOfMaintenance, |
| | | DailyMaintenanceList, |
| | | SecondMaintenanceList, |
| | | ThirdMaintenanceList, |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | title: '设å¤ç±»å', |
| | | align: "center", |
| | | dataIndex: 'equipmentCategoryId_dictText', |
| | | }, |
| | | { |
| | | title: 'æ¯å¦ç产线设å¤', |
| | | align: "center", |
| | | dataIndex: 'isLineEquip_dictText', |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | |
| | | align: "center", |
| | | dataIndex: 'technologyStatusVerificationType_dictText', |
| | | }, |
| | | { |
| | | title: 'ç产线ç¼å·', |
| | | align: "center", |
| | | dataIndex: 'lineId_dictText', |
| | | }, |
| | | { |
| | | title: '主设�', |
| | | align: "center", |
| | | dataIndex: 'isMeta_dictText', |
| | | }, |
| | | // { |
| | | // title: 'å·¥åº', |
| | | // align: "center", |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="æ¯å¦ç产线设å¤" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©" |
| | | :triggerChange="true" |
| | | dictCode="is_product" |
| | | v-model="queryParam.isLineEquip" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | |
| | | <a-tab-pane tab="ABCæ è¯åæ´è®°å½" key="5" forceRender> |
| | | <equipment-update-ABC-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´è®°å½" key="6" forceRender> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´" key="6" forceRender> |
| | | <equipment-update-warranty-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ç»´ä¿æ å" key="7" forceRender> |
| | | <standard-of-maintenance :mainId="selectedMainId"/> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¿å
»ç¹æ£æ å" key="7" forceRender> |
| | | <standard-of-maintenance :mainId="selectedMainId"/> |
| | | <a-tab-pane tab="æ¥ä¿æ å" key="7" forceRender> |
| | | <daily-maintenance-list :mainId="selectedMainId"></daily-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="äºä¿æ å" key="8" forceRender> |
| | | <second-maintenance-list :mainId="selectedMainId"></second-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¸ä¿æ å" key="9" forceRender> |
| | | <third-maintenance-list :mainId="selectedMainId"></third-maintenance-list> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-modal ref="modalForm" @ok="modalFormOk" :caytegoryParam="caytegoryParam"></equipment-modal> |
| | |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | | import StandardOfInspection from './modules/equipmentNew/StandardOfInspection.vue' |
| | | import StandardOfMaintenance from './modules/equipmentNew/StandardOfMaintenance.vue' |
| | | import DailyMaintenanceList from './modules/equipmentNew/DailyMaintenanceList.vue' |
| | | import SecondMaintenanceList from './modules/equipmentNew/SecondMaintenanceList.vue' |
| | | import ThirdMaintenanceList from './modules/equipmentNew/ThirdMaintenanceList.vue' |
| | | export default { |
| | | name: "EquipmentList", |
| | | mixins:[JeecgListMixin,mixinDevice], |
| | |
| | | EquipmentSparePartsModal, |
| | | StandardOfInspection, |
| | | StandardOfMaintenance, |
| | | DailyMaintenanceList, |
| | | SecondMaintenanceList, |
| | | ThirdMaintenanceList, |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | title: '设å¤ç±»å', |
| | | align: "center", |
| | | dataIndex: 'equipmentCategoryId_dictText', |
| | | }, |
| | | { |
| | | title: 'æ¯å¦ç产线设å¤', |
| | | align: "center", |
| | | dataIndex: 'isLineEquip_dictText', |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | |
| | | align: "center", |
| | | dataIndex: 'technologyStatusVerificationType_dictText', |
| | | }, |
| | | { |
| | | title: 'ç产线ç¼å·', |
| | | align: "center", |
| | | dataIndex: 'lineId_dictText', |
| | | }, |
| | | { |
| | | title: '主设�', |
| | | align: "center", |
| | | dataIndex: 'isMeta_dictText', |
| | | }, |
| | | // { |
| | | // title: 'å·¥åº', |
| | | // align: "center", |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="æ¯å¦ç产线设å¤" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©" |
| | | :triggerChange="true" |
| | | dictCode="is_product" |
| | | v-model="queryParam.isLineEquip" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | |
| | | <a-tab-pane tab="ABCæ è¯åæ´è®°å½" key="5" forceRender> |
| | | <equipment-update-ABC-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´è®°å½" key="6" forceRender> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´" key="6" forceRender> |
| | | <equipment-update-warranty-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¿å
»ç¹æ£æ å" key="7" forceRender> |
| | | <standard-of-maintenance :mainId="selectedMainId"/> |
| | | <a-tab-pane tab="æ¥ä¿æ å" key="7" forceRender> |
| | | <daily-maintenance-list :mainId="selectedMainId"></daily-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="äºä¿æ å" key="8" forceRender> |
| | | <second-maintenance-list :mainId="selectedMainId"></second-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¸ä¿æ å" key="9" forceRender> |
| | | <third-maintenance-list :mainId="selectedMainId"></third-maintenance-list> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-modal ref="modalForm" @ok="modalFormOk" :caytegoryParam="caytegoryParam"></equipment-modal> |
| | |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | | import StandardOfInspection from './modules/equipmentNew/StandardOfInspection.vue' |
| | | import StandardOfMaintenance from './modules/equipmentNew/StandardOfMaintenance.vue' |
| | | import DailyMaintenanceList from './modules/equipmentNew/DailyMaintenanceList.vue' |
| | | import SecondMaintenanceList from './modules/equipmentNew/SecondMaintenanceList.vue' |
| | | import ThirdMaintenanceList from './modules/equipmentNew/ThirdMaintenanceList.vue' |
| | | export default { |
| | | name: "EquipmentList", |
| | | mixins:[JeecgListMixin,mixinDevice], |
| | |
| | | EquipmentSparePartsModal, |
| | | StandardOfInspection, |
| | | StandardOfMaintenance, |
| | | DailyMaintenanceList, |
| | | SecondMaintenanceList, |
| | | ThirdMaintenanceList, |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | title: '设å¤ç±»å', |
| | | align: "center", |
| | | dataIndex: 'equipmentCategoryId_dictText', |
| | | }, |
| | | { |
| | | title: 'æ¯å¦ç产线设å¤', |
| | | align: "center", |
| | | dataIndex: 'isLineEquip_dictText', |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | |
| | | align: "center", |
| | | dataIndex: 'technologyStatusVerificationType_dictText', |
| | | }, |
| | | { |
| | | title: 'ç产线ç¼å·', |
| | | align: "center", |
| | | dataIndex: 'lineId_dictText', |
| | | }, |
| | | { |
| | | title: '主设�', |
| | | align: "center", |
| | | dataIndex: 'isMeta_dictText', |
| | | }, |
| | | // { |
| | | // title: 'å·¥åº', |
| | | // align: "center", |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="æ¯å¦ç产线设å¤" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©" |
| | | :triggerChange="true" |
| | | dictCode="is_product" |
| | | v-model="queryParam.isLineEquip" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | |
| | | <a-tab-pane tab="ABCæ è¯åæ´è®°å½" key="5" forceRender> |
| | | <equipment-update-ABC-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´è®°å½" key="6" forceRender> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´" key="6" forceRender> |
| | | <equipment-update-warranty-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¿å
»ç¹æ£æ å" key="7" forceRender> |
| | | <standard-of-maintenance :mainId="selectedMainId"/> |
| | | <a-tab-pane tab="æ¥ä¿æ å" key="7" forceRender> |
| | | <daily-maintenance-list :mainId="selectedMainId"></daily-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="äºä¿æ å" key="8" forceRender> |
| | | <second-maintenance-list :mainId="selectedMainId"></second-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¸ä¿æ å" key="9" forceRender> |
| | | <third-maintenance-list :mainId="selectedMainId"></third-maintenance-list> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-modal ref="modalForm" @ok="modalFormOk" :caytegoryParam="caytegoryParam"></equipment-modal> |
| | |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | | import StandardOfInspection from './modules/equipmentNew/StandardOfInspection.vue' |
| | | import StandardOfMaintenance from './modules/equipmentNew/StandardOfMaintenance.vue' |
| | | import DailyMaintenanceList from './modules/equipmentNew/DailyMaintenanceList.vue' |
| | | import SecondMaintenanceList from './modules/equipmentNew/SecondMaintenanceList.vue' |
| | | import ThirdMaintenanceList from './modules/equipmentNew/ThirdMaintenanceList.vue' |
| | | export default { |
| | | name: "EquipmentList", |
| | | mixins:[JeecgListMixin,mixinDevice], |
| | |
| | | EquipmentSparePartsModal, |
| | | StandardOfInspection, |
| | | StandardOfMaintenance, |
| | | DailyMaintenanceList, |
| | | SecondMaintenanceList, |
| | | ThirdMaintenanceList, |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | title: '设å¤ç±»å', |
| | | align: "center", |
| | | dataIndex: 'equipmentCategoryId_dictText', |
| | | }, |
| | | { |
| | | title: 'æ¯å¦ç产线设å¤', |
| | | align: "center", |
| | | dataIndex: 'isLineEquip_dictText', |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | |
| | | align: "center", |
| | | dataIndex: 'technologyStatusVerificationType_dictText', |
| | | }, |
| | | { |
| | | title: 'ç产线ç¼å·', |
| | | align: "center", |
| | | dataIndex: 'lineId_dictText', |
| | | }, |
| | | { |
| | | title: '主设�', |
| | | align: "center", |
| | | dataIndex: 'isMeta_dictText', |
| | | }, |
| | | // { |
| | | // title: 'å·¥åº', |
| | | // align: "center", |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="æ¯å¦ç产线设å¤" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©" |
| | | :triggerChange="true" |
| | | dictCode="is_product" |
| | | v-model="queryParam.isLineEquip" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | |
| | | <a-tab-pane tab="ABCæ è¯åæ´è®°å½" key="5" forceRender> |
| | | <equipment-update-ABC-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´è®°å½" key="6" forceRender> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´" key="6" forceRender> |
| | | <equipment-update-warranty-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¿å
»ç¹æ£æ å" key="7" forceRender> |
| | | <standard-of-maintenance :mainId="selectedMainId"/> |
| | | <a-tab-pane tab="æ¥ä¿æ å" key="7" forceRender> |
| | | <daily-maintenance-list :mainId="selectedMainId"></daily-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="äºä¿æ å" key="8" forceRender> |
| | | <second-maintenance-list :mainId="selectedMainId"></second-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¸ä¿æ å" key="9" forceRender> |
| | | <third-maintenance-list :mainId="selectedMainId"></third-maintenance-list> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-modal ref="modalForm" @ok="modalFormOk" :caytegoryParam="caytegoryParam"></equipment-modal> |
| | |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | | import StandardOfInspection from './modules/equipmentNew/StandardOfInspection.vue' |
| | | import StandardOfMaintenance from './modules/equipmentNew/StandardOfMaintenance.vue' |
| | | import DailyMaintenanceList from './modules/equipmentNew/DailyMaintenanceList.vue' |
| | | import SecondMaintenanceList from './modules/equipmentNew/SecondMaintenanceList.vue' |
| | | import ThirdMaintenanceList from './modules/equipmentNew/ThirdMaintenanceList.vue' |
| | | export default { |
| | | name: "EquipmentList", |
| | | mixins:[JeecgListMixin,mixinDevice], |
| | |
| | | EquipmentSparePartsModal, |
| | | StandardOfInspection, |
| | | StandardOfMaintenance, |
| | | DailyMaintenanceList, |
| | | SecondMaintenanceList, |
| | | ThirdMaintenanceList, |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | title: '设å¤ç±»å', |
| | | align: "center", |
| | | dataIndex: 'equipmentCategoryId_dictText', |
| | | }, |
| | | { |
| | | title: 'æ¯å¦ç产线设å¤', |
| | | align: "center", |
| | | dataIndex: 'isLineEquip_dictText', |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | |
| | | align: "center", |
| | | dataIndex: 'technologyStatusVerificationType_dictText', |
| | | }, |
| | | { |
| | | title: 'ç产线ç¼å·', |
| | | align: "center", |
| | | dataIndex: 'lineId_dictText', |
| | | }, |
| | | { |
| | | title: '主设�', |
| | | align: "center", |
| | | dataIndex: 'isMeta_dictText', |
| | | }, |
| | | // { |
| | | // title: 'å·¥åº', |
| | | // align: "center", |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="æ¯å¦ç产线设å¤" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©" |
| | | :triggerChange="true" |
| | | dictCode="is_product" |
| | | v-model="queryParam.isLineEquip" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | |
| | | <a-tab-pane tab="ABCæ è¯åæ´è®°å½" key="5" forceRender> |
| | | <equipment-update-ABC-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´è®°å½" key="6" forceRender> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´" key="6" forceRender> |
| | | <equipment-update-warranty-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¿å
»ç¹æ£æ å" key="7" forceRender> |
| | | <standard-of-maintenance :mainId="selectedMainId"/> |
| | | <a-tab-pane tab="æ¥ä¿æ å" key="7" forceRender> |
| | | <daily-maintenance-list :mainId="selectedMainId"></daily-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="äºä¿æ å" key="8" forceRender> |
| | | <second-maintenance-list :mainId="selectedMainId"></second-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¸ä¿æ å" key="9" forceRender> |
| | | <third-maintenance-list :mainId="selectedMainId"></third-maintenance-list> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-modal ref="modalForm" @ok="modalFormOk" :caytegoryParam="caytegoryParam"></equipment-modal> |
| | |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | | import StandardOfInspection from './modules/equipmentNew/StandardOfInspection.vue' |
| | | import StandardOfMaintenance from './modules/equipmentNew/StandardOfMaintenance.vue' |
| | | import DailyMaintenanceList from './modules/equipmentNew/DailyMaintenanceList.vue' |
| | | import SecondMaintenanceList from './modules/equipmentNew/SecondMaintenanceList.vue' |
| | | import ThirdMaintenanceList from './modules/equipmentNew/ThirdMaintenanceList.vue' |
| | | export default { |
| | | name: "EquipmentList", |
| | | mixins:[JeecgListMixin,mixinDevice], |
| | |
| | | EquipmentSparePartsModal, |
| | | StandardOfInspection, |
| | | StandardOfMaintenance, |
| | | DailyMaintenanceList, |
| | | SecondMaintenanceList, |
| | | ThirdMaintenanceList, |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | title: '设å¤ç±»å', |
| | | align: "center", |
| | | dataIndex: 'equipmentCategoryId_dictText', |
| | | }, |
| | | { |
| | | title: 'æ¯å¦ç产线设å¤', |
| | | align: "center", |
| | | dataIndex: 'isLineEquip_dictText', |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | |
| | | align: "center", |
| | | dataIndex: 'technologyStatusVerificationType_dictText', |
| | | }, |
| | | { |
| | | title: 'ç产线ç¼å·', |
| | | align: "center", |
| | | dataIndex: 'lineId_dictText', |
| | | }, |
| | | { |
| | | title: '主设�', |
| | | align: "center", |
| | | dataIndex: 'isMeta_dictText', |
| | | }, |
| | | // { |
| | | // title: 'å·¥åº', |
| | | // align: "center", |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="æ¯å¦ç产线设å¤" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©" |
| | | :triggerChange="true" |
| | | dictCode="is_product" |
| | | v-model="queryParam.isLineEquip" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | |
| | | <a-tab-pane tab="ABCæ è¯åæ´è®°å½" key="5" forceRender> |
| | | <equipment-update-ABC-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´è®°å½" key="6" forceRender> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´" key="6" forceRender> |
| | | <equipment-update-warranty-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¿å
»ç¹æ£æ å" key="7" forceRender> |
| | | <standard-of-maintenance :mainId="selectedMainId"/> |
| | | <a-tab-pane tab="æ¥ä¿æ å" key="7" forceRender> |
| | | <daily-maintenance-list :mainId="selectedMainId"></daily-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="äºä¿æ å" key="8" forceRender> |
| | | <second-maintenance-list :mainId="selectedMainId"></second-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¸ä¿æ å" key="9" forceRender> |
| | | <third-maintenance-list :mainId="selectedMainId"></third-maintenance-list> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-modal ref="modalForm" @ok="modalFormOk" :caytegoryParam="caytegoryParam"></equipment-modal> |
| | |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | | import StandardOfInspection from './modules/equipmentNew/StandardOfInspection.vue' |
| | | import StandardOfMaintenance from './modules/equipmentNew/StandardOfMaintenance.vue' |
| | | import DailyMaintenanceList from './modules/equipmentNew/DailyMaintenanceList.vue' |
| | | import SecondMaintenanceList from './modules/equipmentNew/SecondMaintenanceList.vue' |
| | | import ThirdMaintenanceList from './modules/equipmentNew/ThirdMaintenanceList.vue' |
| | | export default { |
| | | name: "EquipmentList", |
| | | mixins:[JeecgListMixin,mixinDevice], |
| | |
| | | EquipmentSparePartsModal, |
| | | StandardOfInspection, |
| | | StandardOfMaintenance, |
| | | DailyMaintenanceList, |
| | | SecondMaintenanceList, |
| | | ThirdMaintenanceList, |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | title: '设å¤ç±»å', |
| | | align: "center", |
| | | dataIndex: 'equipmentCategoryId_dictText', |
| | | }, |
| | | { |
| | | title: 'æ¯å¦ç产线设å¤', |
| | | align: "center", |
| | | dataIndex: 'isLineEquip_dictText', |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | |
| | | align: "center", |
| | | dataIndex: 'technologyStatusVerificationType_dictText', |
| | | }, |
| | | { |
| | | title: 'ç产线ç¼å·', |
| | | align: "center", |
| | | dataIndex: 'lineId_dictText', |
| | | }, |
| | | { |
| | | title: '主设�', |
| | | align: "center", |
| | | dataIndex: 'isMeta_dictText', |
| | | }, |
| | | // { |
| | | // title: 'å·¥åº', |
| | | // align: "center", |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="æ¯å¦ç产线设å¤" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©" |
| | | :triggerChange="true" |
| | | dictCode="is_product" |
| | | v-model="queryParam.isLineEquip" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | |
| | | <a-tab-pane tab="ABCæ è¯åæ´è®°å½" key="5" forceRender> |
| | | <equipment-update-ABC-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´è®°å½" key="6" forceRender> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´" key="6" forceRender> |
| | | <equipment-update-warranty-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¿å
»ç¹æ£æ å" key="7" forceRender> |
| | | <standard-of-maintenance :mainId="selectedMainId"/> |
| | | <a-tab-pane tab="æ¥ä¿æ å" key="7" forceRender> |
| | | <daily-maintenance-list :mainId="selectedMainId"></daily-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="äºä¿æ å" key="8" forceRender> |
| | | <second-maintenance-list :mainId="selectedMainId"></second-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¸ä¿æ å" key="9" forceRender> |
| | | <third-maintenance-list :mainId="selectedMainId"></third-maintenance-list> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-modal ref="modalForm" @ok="modalFormOk" :caytegoryParam="caytegoryParam"></equipment-modal> |
| | |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | | import StandardOfInspection from './modules/equipmentNew/StandardOfInspection.vue' |
| | | import StandardOfMaintenance from './modules/equipmentNew/StandardOfMaintenance.vue' |
| | | import DailyMaintenanceList from './modules/equipmentNew/DailyMaintenanceList.vue' |
| | | import SecondMaintenanceList from './modules/equipmentNew/SecondMaintenanceList.vue' |
| | | import ThirdMaintenanceList from './modules/equipmentNew/ThirdMaintenanceList.vue' |
| | | export default { |
| | | name: "EquipmentList", |
| | | mixins:[JeecgListMixin,mixinDevice], |
| | |
| | | EquipmentSparePartsModal, |
| | | StandardOfInspection, |
| | | StandardOfMaintenance, |
| | | DailyMaintenanceList, |
| | | SecondMaintenanceList, |
| | | ThirdMaintenanceList, |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | title: '设å¤ç±»å', |
| | | align: "center", |
| | | dataIndex: 'equipmentCategoryId_dictText', |
| | | }, |
| | | { |
| | | title: 'æ¯å¦ç产线设å¤', |
| | | align: "center", |
| | | dataIndex: 'isLineEquip_dictText', |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | |
| | | align: "center", |
| | | dataIndex: 'technologyStatusVerificationType_dictText', |
| | | }, |
| | | { |
| | | title: 'ç产线ç¼å·', |
| | | align: "center", |
| | | dataIndex: 'lineId_dictText', |
| | | }, |
| | | { |
| | | title: '主设�', |
| | | align: "center", |
| | | dataIndex: 'isMeta_dictText', |
| | | }, |
| | | // { |
| | | // title: 'å·¥åº', |
| | | // align: "center", |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="æ¯å¦ç产线设å¤" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©" |
| | | :triggerChange="true" |
| | | dictCode="is_product" |
| | | v-model="queryParam.isLineEquip" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | |
| | | <a-tab-pane tab="ABCæ è¯åæ´è®°å½" key="5" forceRender> |
| | | <equipment-update-ABC-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´è®°å½" key="6" forceRender> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´" key="6" forceRender> |
| | | <equipment-update-warranty-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¿å
»ç¹æ£æ å" key="7" forceRender> |
| | | <standard-of-maintenance :mainId="selectedMainId"/> |
| | | <a-tab-pane tab="æ¥ä¿æ å" key="7" forceRender> |
| | | <daily-maintenance-list :mainId="selectedMainId"></daily-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="äºä¿æ å" key="8" forceRender> |
| | | <second-maintenance-list :mainId="selectedMainId"></second-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ä¸ä¿æ å" key="9" forceRender> |
| | | <third-maintenance-list :mainId="selectedMainId"></third-maintenance-list> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-modal ref="modalForm" @ok="modalFormOk" :caytegoryParam="caytegoryParam"></equipment-modal> |
| | |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | | import StandardOfInspection from './modules/equipmentNew/StandardOfInspection.vue' |
| | | import StandardOfMaintenance from './modules/equipmentNew/StandardOfMaintenance.vue' |
| | | import DailyMaintenanceList from './modules/equipmentNew/DailyMaintenanceList.vue' |
| | | import SecondMaintenanceList from './modules/equipmentNew/SecondMaintenanceList.vue' |
| | | import ThirdMaintenanceList from './modules/equipmentNew/ThirdMaintenanceList.vue' |
| | | export default { |
| | | name: "EquipmentList", |
| | | mixins:[JeecgListMixin,mixinDevice], |
| | |
| | | EquipmentSparePartsModal, |
| | | StandardOfInspection, |
| | | StandardOfMaintenance, |
| | | DailyMaintenanceList, |
| | | SecondMaintenanceList, |
| | | ThirdMaintenanceList, |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | title: '设å¤ç±»å', |
| | | align: "center", |
| | | dataIndex: 'equipmentCategoryId_dictText', |
| | | }, |
| | | { |
| | | title: 'æ¯å¦ç产线设å¤', |
| | | align: "center", |
| | | dataIndex: 'isLineEquip_dictText', |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | |
| | | align: "center", |
| | | dataIndex: 'technologyStatusVerificationType_dictText', |
| | | }, |
| | | { |
| | | title: 'ç产线ç¼å·', |
| | | align: "center", |
| | | dataIndex: 'lineId_dictText', |
| | | }, |
| | | { |
| | | title: '主设�', |
| | | align: "center", |
| | | dataIndex: 'isMeta_dictText', |
| | | }, |
| | | // { |
| | | // title: 'å·¥åº', |
| | | // align: "center", |
| | |
| | | @click="searchReset" |
| | | icon="reload" |
| | | >éç½®</a-button> |
| | | <a-button @click="handleAdd" type="primary" icon="plus" v-has="'equipmentAccount:add&delete&import&Edit'">æ°å¢</a-button> |
| | | <a-button @click="handleAdd" type="primary" icon="plus" v-has="'line:add&edit&delete'">æ°å¢</a-button> |
| | | <!-- <a-button type="primary" icon="download" @click="handleExportXls('设å¤å°è´¦')" v-has="'equipmentAccount:outport'">导åº</a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import" v-has="'equipmentAccount:add&delete&import&Edit'">导å
¥</a-button> |
| | |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | size="small" |
| | | bordered |
| | | rowKey="id" |
| | | :scroll="{x:true}" |
| | |
| | | >详æ
</a> |
| | | <a-divider type="vertical" /> |
| | | <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 v-has="'equipmentAccount:add&delete&import&Edit'"> |
| | | <a-menu-item v-has="'line:add&edit&delete'"> |
| | | |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a-popconfirm |
| | | title="ç¡®å®å é¤å?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | v-has="'equipmentAccount:add&delete&import&Edit'" |
| | | v-has="'line:add&edit&delete'" |
| | | > |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | |
| | | import '@/assets/less/TableExpand.less' |
| | | import JSearchSelectTag from '../../components/dict/JSearchSelectTag.vue' |
| | | import EquipmentOfLineModal from './modules/line/EquipmentOfLineModal.vue' |
| | | import EquipmentListOfLine from './modules/line/EquipmentListOfLine.vue' |
| | | import EquipmentListOfLine from './modules/line/EquipmentListOfLine' |
| | | export default { |
| | | name: "EquipmentOfLine", |
| | | mixins:[JeecgListMixin,mixinDevice], |
| | |
| | | title: 'ç产线ç¼ç ', |
| | | align: "center", |
| | | dataIndex: 'num', |
| | | width: 200, |
| | | }, |
| | | { |
| | | title: 'ç产线åç§°', |
| | | align: "center", |
| | | dataIndex: 'name', |
| | | width: 200, |
| | | }, |
| | | { |
| | | title: '使ç¨é¨é¨', |
| | | align: "center", |
| | | dataIndex: 'useId_dictText', |
| | | width: 150, |
| | | }, |
| | | { |
| | | title: 'ç»´æ¤é¨é¨', |
| | | align: "center", |
| | | dataIndex: 'manageId_dictText', |
| | | width: 150, |
| | | }, |
| | | { |
| | | title: 'ç»´ä¿®çç»', |
| | | align: "center", |
| | | dataIndex: 'teamId_dictText', |
| | | width: 150, |
| | | }, |
| | | { |
| | | title: 'å·¥åº', |
| | | align: "center", |
| | | dataIndex: 'factoryModelId_dictText', |
| | | width: 150, |
| | | }, |
| | | { |
| | | title: 'è®¾å¤æ»æ°', |
| | | align: "center", |
| | | dataIndex: 'sumOfEquipment', |
| | | width: 150, |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | |
| | | scopedSlots: { |
| | | customRender: 'action', |
| | | }, |
| | | width: 147, |
| | | fixed: 'right', |
| | | width: 150, |
| | | }, |
| | | ], |
| | | url: { |
| | |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleEdit(record)" v-if="record.isConfirm!=='yes'">å½å
¥</a> |
| | | <a @click="handleEdit(record)" v-if="record.isConfirm!=='yes'" v-has="'fault:update'">å½å
¥</a> |
| | | |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | |
| | | title="ç¡®è®¤ç»æåä¸å¯åå½å
¥ï¼ç¡®è®¤å?" |
| | | @confirm="() => handleConfirm(record)" |
| | | > |
| | | <a v-if="record.isConfirm!=='yes'">确认</a> |
| | | <a v-if="record.isConfirm!=='yes'" v-has="'fault:confirm'">确认</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | |
| | |
| | | @click="handleAdd" |
| | | type="primary" |
| | | icon="plus" |
| | | v-has="'report:add&edit'" |
| | | >æ°å¢</a-button> |
| | | </div> |
| | | |
| | |
| | | slot="action" |
| | | slot-scope="text, record" |
| | | > |
| | | <a-popconfirm |
| | | <a |
| | | :disabled=" record.status !== '4'" |
| | | @click="handleAccept(record)" |
| | | v-has="'report:accept'" |
| | | >éªæ¶</a> |
| | | <!-- <a-popconfirm |
| | | v-if="record.status == '1' || record.status == '4'" |
| | | title="确认æäº¤å?" |
| | | @confirm="() =>handleCommit(record, 'commit')" |
| | |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </a-dropdown> --> |
| | | </span> |
| | | <span slot="faultDescription" slot-scope="text"> |
| | | <span slot="jell" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="10" /> |
| | | </span> |
| | | |
| | |
| | | @ok='approvalModalFormOk' |
| | | @cancel='approvalModalFormOk' |
| | | ></approvel-modal> |
| | | <accept-model |
| | | ref="acceptModel" |
| | | @ok="modalFormOk" |
| | | ></accept-model> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import ApprovelModal from './modules/malfunctionRepair/ApprovelModal' |
| | | import JEllipsis from '@/components/jeecg/JEllipsis' |
| | | import moment from 'moment' |
| | | import AcceptModel from './modules/malfunctionRepair/AcceptModel' |
| | | |
| | | export default { |
| | | name: 'MalfunctionRepairList', |
| | |
| | | MalfunctionRepairModal, |
| | | FaultDescriptionList, |
| | | ApprovelModal, |
| | | JEllipsis |
| | | JEllipsis, |
| | | AcceptModel, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | align: "center", |
| | | dataIndex: 'createBy' |
| | | }, |
| | | // { |
| | | // title: 'å建æ¶é´', |
| | | // align: "center", |
| | | // dataIndex: 'createTime', |
| | | // }, |
| | | { |
| | | title: 'éªæ¶æè§', |
| | | align: "center", |
| | | dataIndex: 'errUda5', |
| | | scopedSlots: { |
| | | customRender: 'jell' |
| | | } |
| | | }, |
| | | { |
| | | title: '夿³¨', |
| | | align: "center", |
| | | dataIndex: 'remark' |
| | | }, |
| | | // { |
| | | // title: 'æä½', |
| | | // dataIndex: 'action', |
| | | // align: "center", |
| | | // fixed: "right", |
| | | // width: 200, |
| | | // scopedSlots: { customRender: 'action' } |
| | | // } |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align: "center", |
| | | fixed: "right", |
| | | width: 200, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/eam/equipmentReportRepair/getReportRepairList", |
| | |
| | | timeChange(){ |
| | | this.queryParam.faultStartTime = moment(this.faultTime[0]).format("YYYY-MM-DD HH:mm:ss") |
| | | this.queryParam.faultEndTime = moment(this.faultTime[1]).format("YYYY-MM-DD HH:mm:ss") |
| | | }, |
| | | handleAccept(record){ |
| | | this.$refs.acceptModel.title="éªæ¶" |
| | | this.$refs.acceptModel.edit(record) |
| | | } |
| | | } |
| | | } |
| | |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleEdit(record)" :disabled="record.isConfirm==='yes'">确认</a> |
| | | <a @click="handleEdit(record)" :disabled="record.isConfirm==='yes'" v-has="'quanlity:confirm'">确认</a> |
| | | |
| | | <!-- <a-divider type="vertical" /> |
| | | <a-dropdown> |
| | |
| | | <div class="table-operator"> |
| | | <a-dropdown> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item |
| | | <!-- <a-menu-item |
| | | key="1" |
| | | @click="handleAddPre(1)" |
| | | ><a-icon type="smile" />èªå»º</a-menu-item> |
| | | ><a-icon type="smile" />èªå»º</a-menu-item> --> |
| | | <!-- <a-menu-item |
| | | key="2" |
| | | @click="handleAddPre(2)" |
| | |
| | | type="primary" |
| | | icon="plus" |
| | | @click="getReports" |
| | | v-has="'repair:accept'" |
| | | >é¢å</a-button> |
| | | <!-- <a-button type="primary" icon="download" @click="handleExportXls('维修工å')">导åº</a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
| | |
| | | <a |
| | | v-if="record.status === '2' || record.status === '3' " |
| | | @click="handleOrderExe(record)" |
| | | v-has="'repair:excute'" |
| | | >æ§è¡</a> |
| | | <a-divider |
| | | v-if="record.status === '2' || record.status === '3' " |
| | |
| | | } |
| | | }, |
| | | { |
| | | title: 'å
³é®è®¾å¤?', |
| | | title: 'å
³é®è®¾å¤', |
| | | align: "center", |
| | | dataIndex: 'specificEquipment', |
| | | scopedSlots: { customRender: 'specificEquipment' } |
| | |
| | | }, |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | <style lang="less" scoped> |
| | | @import '~@assets/less/common.less'; |
| | | .error { |
| | | |
| | | /deep/.error { |
| | | color: red; |
| | | font-weight: bold; |
| | | } |
| | | .primary { |
| | | |
| | | /deep/.primary { |
| | | color: rgb(255, 0, 251); |
| | | font-weight: bold; |
| | | } |
| | |
| | | @keyup.enter.native="searchQuery" |
| | | > |
| | | <a-row :gutter="24"> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item label="çç»ç¼ç "> |
| | | <j-input |
| | | placeholder="请è¾å
¥çç»ç¼ç æ£ç´¢" |
| | | v-model="queryParam.num" |
| | | ></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item label="çç»åç§°"> |
| | | <j-input |
| | | placeholder="请è¾å
¥çç»åç§°æ£ç´¢" |
| | | v-model="queryParam.name" |
| | | ></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <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> |
| | |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | <div |
| | | <!-- <div |
| | | class="ant-alert ant-alert-info" |
| | | style="margin-bottom: 16px;" |
| | | > |
| | |
| | | style="margin-left: 24px" |
| | | @click="onClearSelected" |
| | | >æ¸
空</a> |
| | | </div> |
| | | </div> --> |
| | | |
| | | <a-table |
| | | ref="table" |
| | |
| | | ></actual-work-hours-edit-table> |
| | | </div> |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | | tab='çç±»æ¥å' |
| | | key="7" |
| | | > |
| | | <div |
| | | class="table-operator" |
| | | style="margin:-16px" |
| | | > |
| | | <stove-category-report-list :maintenanceStandardId='this.model.id' /> |
| | | </div> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-card> |
| | | </template> |
| | |
| | | import MaintenanceStandardWorkInstruction from '../dailyMaintenanceOrder/MaintenanceStandardWorkInstruction' |
| | | import ActualMaterialEditTable from '../dailyMaintenanceOrder/ActualMaterialEditTable.vue' |
| | | import ActualWorkHoursEditTable from '../dailyMaintenanceOrder/ActualWorkHoursEditTable.vue' |
| | | import StoveCategoryReportList from './StoveCategoryReportList.vue' |
| | | |
| | | export default { |
| | | name: 'DailyMaintenanceOrderExeDrawer', |
| | |
| | | MaintenanceStandardSafetyRequirement, |
| | | MaintenanceStandardWorkInstruction, |
| | | ActualMaterialEditTable, |
| | | ActualWorkHoursEditTable |
| | | ActualWorkHoursEditTable, |
| | | StoveCategoryReportList |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | revocationDistable: false, |
| | | currentNodeSelect: '', |
| | | maintenanceStandardId: '-1', |
| | | maintenanceOrderId: '-1', |
| | | loading: false, |
| | | dataSource: [], |
| | | model: {}, |
| | |
| | | handleShow(record) { |
| | | this.model = Object.assign({}, record); |
| | | this.maintenanceStandardId = record.maintenanceStandardId |
| | | this.maintenanceOrderId = record.id |
| | | this.dataSource = [] |
| | | this.visible = true; |
| | | this.queryParam.dailyMaintenanceOrderId = record.id |
| | |
| | | return "background-color:rgba(127, 127, 127,0.08)"; |
| | | }, |
| | | handleCancel() { |
| | | debugger |
| | | this.maintenanceOrderId = '-1' |
| | | this.$emit('ok'); |
| | | this.alterFlag = new Date(); |
| | | this.close() |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-modal |
| | | :title="title" |
| | | :width="1250" |
| | | :visible="visible" |
| | | :confirmLoading="confirmLoading" |
| | | @ok="handleOk" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é" |
| | | > |
| | | |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form :form="form"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form |
| | | layout="inline" |
| | | @keyup.enter.native="searchQuery" |
| | | > |
| | | <a-row :gutter="24"> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item label="æ åç¼å·"> |
| | | <a-input |
| | | placeholder="请è¾å
¥æ åç¼å·æ£ç´¢" |
| | | v-model="queryParam.num" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item label="设å¤åç§°"> |
| | | <a-input |
| | | placeholder="请è¾å
¥è®¾å¤åç§°æ£ç´¢" |
| | | v-model="queryParam.equipmentName" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-button |
| | | type="primary" |
| | | @click="searchQuery" |
| | | icon="search" |
| | | >æ¥è¯¢</a-button> |
| | | <a-button |
| | | @click="searchReset" |
| | | icon="reload" |
| | | style="margin-left:8px;" |
| | | >éç½®</a-button> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <div style="margin-top:8px;"> |
| | | <a-table |
| | | ref="table" |
| | | bordered |
| | | size="middle" |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type: 'radio'}" |
| | | @change="handleTableChange" |
| | | :customRow="clickThenCheck" |
| | | > |
| | | </a-table> |
| | | </div> |
| | | </a-form> |
| | | </a-spin> |
| | | </a-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import pick from 'lodash.pick' |
| | | import { httpAction, getAction } from '@/api/manage' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import JInput from '@/components/jeecg/JInput' |
| | | import JEllipsis from '@/components/jeecg/JEllipsis'//å¼å
¥è¿é¿è£åª |
| | | |
| | | export default { |
| | | name: "DailyMaintenanceStandardList", |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | JInput, |
| | | JEllipsis, |
| | | }, |
| | | data() { |
| | | return { |
| | | title: "æä½", |
| | | visible: false, |
| | | model: {}, |
| | | confirmLoading: false, |
| | | form: this.$form.createForm(this), |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | align: 'center', |
| | | width: 40, |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1 |
| | | }, |
| | | }, |
| | | { |
| | | title: 'æ åç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'num', |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'equipmentNum', |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName', |
| | | }, |
| | | { |
| | | title: '设å¤åå·', |
| | | align: 'center', |
| | | dataIndex: 'equipmentModel', |
| | | }, |
| | | { |
| | | title: 'ç¹ç§è®¾å¤', |
| | | align: 'center', |
| | | dataIndex: 'specificEquipment', |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/eam/maintenanceStandard/getMaintenanceStandard3List", |
| | | }, |
| | | useId: '', |
| | | } |
| | | }, |
| | | methods: { |
| | | searchQuery() { |
| | | this.queryParam = { type: "daily", delFlag: '0', useId: this.useId, maintenanceType: '3' }; |
| | | this.loadData(1); |
| | | }, |
| | | searchReset() { |
| | | this.queryParam = { type: "daily", delFlag: '0', useId: this.useId, maintenanceType: '3' }; |
| | | this.loadData(1) |
| | | }, |
| | | list(useId) { |
| | | this.visible = true; |
| | | this.useId = useId; |
| | | this.queryParam = { type: "daily", delFlag: '0', useId: useId, versionStatus: '2', maintenanceType: '3' }; |
| | | this.loadData(1); |
| | | }, |
| | | clickThenCheck(record) { |
| | | return { |
| | | on: { |
| | | click: (e) => { |
| | | this.selectedRowRecord = record; |
| | | this.onSelectChange(record.id.split(","), [record]); |
| | | } |
| | | } |
| | | }; |
| | | }, |
| | | onSelectChange(selectedRowKeys, selectedRows) { |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.selectedRowRecord = selectedRows[0]; |
| | | }, |
| | | close() { |
| | | this.queryParam = {}; |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | handleOk() { |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | if (that.selectedRowKeys.length > 0) { |
| | | if (that.selectedRowRecord.id != null && that.selectedRowRecord.id != "") { |
| | | that.$emit('send3MaintenanceStandardRecord', { record: that.selectedRowRecord }); |
| | | that.close(); |
| | | } else { |
| | | that.$message.error("è¯·éæ©ä¿å
»æ åï¼") |
| | | } |
| | | } else { |
| | | that.$message.error("è¯·éæ©ä¿å
»æ åï¼") |
| | | } |
| | | }, |
| | | handleCancel() { |
| | | this.close(); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | rozenRowClass { |
| | | color: #c9c9c9; |
| | | } |
| | | .success { |
| | | color: green; |
| | | } |
| | | .error { |
| | | color: red; |
| | | } |
| | | .fontweight { |
| | | font-weight: bold; |
| | | } |
| | | .ant-card { |
| | | margin-left: -30px; |
| | | margin-right: -30px; |
| | | } |
| | | .fontweight { |
| | | font-weight: bold; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <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-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="size" |
| | | slot-scope="text" |
| | | class="error" |
| | | > |
| | | {{sizeConvert(text)}} |
| | | </span> |
| | | <span |
| | | slot="action" |
| | | 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)" |
| | | > |
| | | é¢è§ |
| | | </a> |
| | | |
| | | <a-divider |
| | | 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'||record.upload.format.toLowerCase()=='pdf')" |
| | | type="vertical" |
| | | /> |
| | | |
| | | <a |
| | | href="javascript:;" |
| | | @click="handleDownload(record)" |
| | | >ä¸è½½</a> |
| | | <!-- |
| | | <a-divider type="vertical" /> |
| | | <a-popconfirm |
| | | title="ç¡®å®å é¤å?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | > |
| | | <a>å é¤</a> |
| | | </a-popconfirm> --> |
| | | |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | | <pdf-view ref="pdfview"></pdf-view> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction, deleteAction, downFile } from '@/api/manage' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | import JInput from '@/components/jeecg/JInput' |
| | | import JEllipsis from "@/components/jeecg/JEllipsis"; |
| | | |
| | | 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 store from '@/store/' |
| | | |
| | | export default { |
| | | name: "MaintenanceStandardWorkInstruction", |
| | | components: { |
| | | Tooltip, |
| | | JInput, |
| | | JEllipsis, |
| | | 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: 'num' |
| | | }, |
| | | |
| | | { |
| | | title: 'æ¥ååç§°', |
| | | align: 'center', |
| | | dataIndex: 'name' |
| | | }, |
| | | // { |
| | | // title: 'æ¥åç±»å', |
| | | // align: 'center', |
| | | // dataIndex: 'typeName' |
| | | // }, |
| | | { |
| | | title: 'æ¥å大å°', |
| | | align: 'center', |
| | | dataIndex: 'size', |
| | | scopedSlots: { customRender: 'size' }, |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | align: 'center', |
| | | dataIndex: 'action', |
| | | scopedSlots: { |
| | | customRender: 'action' |
| | | }, |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/eam/maintenanceStandardWorkInstruction/getMaintenanceStandardWorkInstructionList", |
| | | urlDownload: window._CONFIG['staticDomainURL'], |
| | | download: '/sys/upload/downloadFile', |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | 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) { |
| | | for (let i = 0; i < res.result.records.length; i++) { |
| | | let r = res.result.records[i].upload; |
| | | r.src = this.getSrc(res.result.records[i].upload); |
| | | } |
| | | this.dataSource = res.result.records || res.result; |
| | | 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 |
| | | }) |
| | | }, |
| | | |
| | | handleDownload(record) { |
| | | downFile(this.url.download, { id: record.upload.id }).then((res) => { |
| | | if (!res) { |
| | | this.$message.warning('æä»¶ä¸è½½å¤±è´¥') |
| | | return |
| | | } else { |
| | | let fileName = record.name; |
| | | if (typeof window.navigator.msSaveBlob !== 'undefined') { |
| | | window.navigator.msSaveBlob(new Blob([res]), fileName); |
| | | } else { |
| | | let url = window.URL.createObjectURL(new Blob([res])); |
| | | let link = document.createElement('a'); |
| | | link.style.display = 'none'; |
| | | link.href = url; |
| | | link.setAttribute('download', fileName); |
| | | document.body.appendChild(link); |
| | | link.click() |
| | | document.body.removeChild(link) //ä¸è½½å®æç§»é¤å
ç´ |
| | | window.URL.revokeObjectURL(url) //éæ¾æblob对象 |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | //æ¼è£
src |
| | | 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) |
| | | } |
| | | }, |
| | | |
| | | |
| | | sizeConvert(limit) { |
| | | var size = ""; |
| | | if (limit < 0.1 * 1024) { |
| | | size = parseFloat(limit).toFixed(2) + "B";//å°äº0.1KBï¼å转åæB |
| | | } else if (limit < 0.1 * 1024 * 1024) { |
| | | size = (parseFloat(limit) / 1024).toFixed(2) + "KB";//å°äº0.1MBï¼å转åæKB |
| | | } else if (limit < 0.1 * 1024 * 1024 * 1024) { |
| | | size = (parseFloat(limit) / (1024 * 1024)).toFixed(2) + "MB";//å°äº0.1GBï¼å转åæMB |
| | | } else { |
| | | size = (parseFloat(limit) / (1024 * 1024 * 1024)).toFixed(2) + "GB";//å
¶ä»è½¬åæGB |
| | | } |
| | | var sizeStr = size + "";//转æå符串 |
| | | var index = sizeStr.indexOf(".");//è·åå°æ°ç¹å¤çç´¢å¼ |
| | | var dou = sizeStr.substr(index + 1, 2);//è·åå°æ°ç¹å两ä½çå¼ |
| | | if (dou == "00") {//夿å䏤使¯å¦ä¸º00ï¼å¦ææ¯åå é¤00 |
| | | return sizeStr.substring(0, index) + sizeStr.substr(index + 3, 2); |
| | | } |
| | | return size; |
| | | }, |
| | | |
| | | view(record) { |
| | | this.$refs.pdfview.showPdf(record.src); |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-modal |
| | | :title="title" |
| | | :width="850" |
| | | :visible="visible" |
| | | :maskClosable="false" |
| | | :confirmLoading="confirmLoading" |
| | | :okButtonProps="{ props: {disabled: disableSubmit} }" |
| | | @ok="handleOk" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é" |
| | | > |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form :form="form"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | :labelCol="{span:4}" |
| | | :wrapperCol="{span:18}" |
| | | label="æ¥åç¼ç " |
| | | > |
| | | <a-input |
| | | :disabled="disableSubmit" |
| | | placeholder="请è¾å
¥æ¥åç¼ç " |
| | | v-decorator="['num', validatorRules.num ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <!-- <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | :labelCol="{span:4}" |
| | | :wrapperCol="{span:18}" |
| | | label="æ¥åç±»å" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©ææ¡£ç±»å" |
| | | :triggerChange="true" |
| | | dictCode="mom_eam_document_type,name,id, del_flag!='1'" |
| | | v-decorator="['fileType', validatorRules.fileType ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> --> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | :labelCol="{span:4}" |
| | | :wrapperCol="{span:18}" |
| | | label="æä»¶ä¸ä¼ " |
| | | > |
| | | <a-upload-dragger |
| | | name="file" |
| | | :customRequest="customRequest" |
| | | @change="handleChange" |
| | | :file-list="fileList" |
| | | :multiple="false" |
| | | > |
| | | <p class="ant-upload-drag-icon"> |
| | | <a-icon type="inbox" /> |
| | | </p> |
| | | <p class="ant-upload-text"> |
| | | ç¹å»ä¸ä¼ æææ½æä»¶è³è¯¥åºåè¿è¡ä¸ä¼ |
| | | </p> |
| | | <p class="ant-upload-hint"> |
| | | ä»
æ¯æåæä»¶ä¸ä¼ |
| | | </p> |
| | | </a-upload-dragger> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | :labelCol="{span:4}" |
| | | :wrapperCol="{span:18}" |
| | | label="æ¥ååç§°" |
| | | > |
| | | <a-input |
| | | :disabled="true " |
| | | placeholder="请è¾å
¥æ¥ååç§°" |
| | | v-decorator="['name', validatorRules.name ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-model-item |
| | | label="ææ¯ç¶æ" |
| | | :labelCol="{span:4}" |
| | | :wrapperCol="{span:18}" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©ææ¯ç¶æ" |
| | | :triggerChange="true" |
| | | dictCode="technology_status_stove" |
| | | v-decorator="['technologyStatus', validatorRules.technologyStatus ]" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | :labelCol="{span:4}" |
| | | :wrapperCol="{span:18}" |
| | | label="æ¥åæè¿°" |
| | | > |
| | | <a-textarea |
| | | :disabled="disableSubmit" |
| | | placeholder="请è¾å
¥æ¥åæè¿°" |
| | | allow-clear |
| | | v-decorator="['description', validatorRules.description]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | </a-form> |
| | | </a-spin> |
| | | <template slot='footer'> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleCancel" |
| | | :loading='confirmLoading' |
| | | > |
| | | åæ¶ |
| | | </a-button> |
| | | <a-popconfirm |
| | | @confirm="() => handleOk()" |
| | | title="ç¡®è®¤æ¤æä½ï¼" |
| | | > |
| | | <a-button |
| | | type='primary' |
| | | :loading='confirmLoading' |
| | | :style="{marginRight: '8px'}" |
| | | > |
| | | ç¡®å® |
| | | </a-button> |
| | | </a-popconfirm> |
| | | </template> |
| | | </a-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getAction, postAction, postFileAction } from '@/api/manage' |
| | | import Vue from 'vue' |
| | | import JInput from '@/components/jeecg/JInput' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | import JEllipsis from "@/components/jeecg/JEllipsis"; |
| | | import { ajaxGetDictItems } from '@/api/api' |
| | | import { ACCESS_TOKEN, TENANT_ID } from "@/store/mutation-types" |
| | | |
| | | export default { |
| | | name: "StoveCategoryReportModal", |
| | | components: { |
| | | JInput, |
| | | Tooltip, |
| | | JEllipsis, |
| | | }, |
| | | data() { |
| | | return { |
| | | title: "æä½", |
| | | visible: false, |
| | | disableSubmit: false, |
| | | model: {}, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 8 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | confirmLoading: false, |
| | | form: this.$form.createForm(this), |
| | | headers: {}, |
| | | validatorRules: { |
| | | num: { |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥ç¼ç ï¼' }, |
| | | { min: 0, max: 150, message: 'æé¿ 30 个å符', trigger: 'blur' }, |
| | | ] |
| | | }, |
| | | fileType: { |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥éæ©ç±»åï¼' }, |
| | | ] |
| | | }, |
| | | name: { |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥åç§°ï¼' }, |
| | | ] |
| | | }, |
| | | technologyStatus: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©ææ¯ç¶æï¼' }, |
| | | ] |
| | | }, |
| | | }, |
| | | url: { |
| | | add: "/eam/maintenanceStandardWorkInstruction/addStoveCategoryReport", |
| | | edit: "/eam/maintenanceStandardWorkInstruction/edit", |
| | | listByBusIdAndBusType: "/system/sysUploadRela/listByBusIdAndBusType", |
| | | }, |
| | | //ç¨äºå±ç¤ºæä»¶ |
| | | fileList: [], |
| | | fileObject: {}, |
| | | fileTypes: [], |
| | | //ç¨äºå¤æéä»¶çç¶æ addï¼æ°å¢é¡µé¢çéä»¶ editï¼ç¼è¾é¡µé¢çé件为被修æ¹i editUpdateï¼ç¼è¾é¡µé¢çéä»¶è¢«ä¿®æ¹ |
| | | isFileChange: false, |
| | | uploadId: '', |
| | | maintenanceStandardId: '', |
| | | equipmentId: '', |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | customRequest(val) { |
| | | if (this.fileList.length == 0) { |
| | | this.fileObject = val; |
| | | } |
| | | }, |
| | | |
| | | handleChange(info) { |
| | | //é»è®¤ç»éä»¶ç¶æï¼ä»
æ§å¶æ ·å¼ |
| | | let file = info.file; |
| | | //æä»¶æ´æ¹ï¼æ è®°æ´æ° |
| | | if (this.model.id) { |
| | | this.isFileChange = true; |
| | | } |
| | | //å é¤ |
| | | if (file.status == "removed") { |
| | | this.fileList = []; |
| | | this.fileObject.file = {}; |
| | | this.form.setFieldsValue({ name: '' }); |
| | | return false; |
| | | } |
| | | //åæä»¶æ§å¶ |
| | | if (this.fileList.length > 0) { |
| | | this.$message.warning("å½åä»
å
许ä¸ä¼ ä¸ä¸ªæä»¶ï¼"); |
| | | return false; |
| | | } |
| | | file.status = 'done'; |
| | | //页é¢å±ç¤ºä¸ä¼ æä»¶ |
| | | this.fileList.push(file); |
| | | this.form.setFieldsValue({ name: file.name }); |
| | | }, |
| | | |
| | | add() { |
| | | this.edit({}) |
| | | }, |
| | | |
| | | edit(record) { |
| | | let that = this; |
| | | that.visible = true; |
| | | that.isFileChange = false; |
| | | that.model = Object.assign({}, record); |
| | | that.fileList = []; |
| | | that.form.resetFields(); |
| | | that.uploadId = '' |
| | | if (record.isNoPhotoFlag) { |
| | | //è·åå½åæä»¶å¯¹åºéä»¶ |
| | | getAction(that.url.listByBusIdAndBusType, { busId: record.id, busType: 'maintenance_standard_work_instruction' }).then((res) => { |
| | | if (res.success) { |
| | | for (let i = 0; i < res.result.length; i++) { |
| | | that.fileList.push({ |
| | | uid: res.result[i].upload.id, |
| | | name: res.result[i].upload.name, |
| | | status: "done", |
| | | }) |
| | | that.$nextTick(() => { |
| | | that.form.setFieldsValue({ name: res.result[i].upload.name }); |
| | | }); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | close() { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | |
| | | handleOk() { |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | that.form.validateFields((err, values) => { |
| | | if (JSON.stringify(that.fileObject.file) == '{}' && that.uploadId == '' && that.fileList.length == 0) { |
| | | that.$message.warning("请ä¸ä¼ æä»¶"); |
| | | return false |
| | | } |
| | | if (!err) { |
| | | that.confirmLoading = true; |
| | | let httpurl = '' |
| | | let method = '' |
| | | if (!that.model.id) { |
| | | httpurl += that.url.add; |
| | | method = 'post'; |
| | | } else { |
| | | httpurl += that.url.edit; |
| | | method = 'put'; |
| | | } |
| | | let formData = Object.assign(that.model, values); |
| | | |
| | | formData.type = "maintenance_standard_work_instruction"; |
| | | formData.uploadId = that.uploadId; |
| | | // formData.fileType = "7";//æä»¶ç±»å 7ï¼å¾ç |
| | | formData.maintenanceStandardId = this.maintenanceStandardId; |
| | | formData.equipmentId = this.equipmentId |
| | | var saveDate = new FormData(); |
| | | |
| | | formData.isFileChange = that.isFileChange; |
| | | |
| | | saveDate.append("file", that.fileObject.file); |
| | | saveDate.append('data', JSON.stringify(formData)); |
| | | |
| | | postFileAction(httpurl, saveDate, this.headers).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(); |
| | | }) |
| | | } |
| | | }).catch((e) => { }) |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.close(); |
| | | }, |
| | | // initFileTypes() { |
| | | // ajaxGetDictItems("common_upload_type", null).then((res) => { |
| | | // if (res.success) { |
| | | // this.fileTypes = res.result; |
| | | // } |
| | | // }) |
| | | // }, |
| | | |
| | | }, |
| | | |
| | | created() { |
| | | // this.initFileTypes(); |
| | | const token = Vue.ls.get(ACCESS_TOKEN); |
| | | const tenantid = Vue.ls.get(TENANT_ID) |
| | | this.headers = { |
| | | 'Content-Type': 'multipart/form-data', |
| | | "X-Access-Token": token, |
| | | 'X-Access-Tenant': tenantid |
| | | }; |
| | | }, |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .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', |
| | |
| | | }, |
| | | methods: { |
| | | searchQuery() { |
| | | this.queryParam = { type: "daily", delFlag: '0', useId: this.useId }; |
| | | this.queryParam = { type: "daily", delFlag: '0', useId: this.useId, maintenanceType: '2' }; |
| | | this.loadData(1); |
| | | }, |
| | | searchReset() { |
| | | this.queryParam = { type: "daily", delFlag: '0', useId: this.useId }; |
| | | this.queryParam = { type: "daily", delFlag: '0', useId: this.useId, maintenanceType: '2' }; |
| | | this.loadData(1) |
| | | }, |
| | | list(useId) { |
| | | this.visible = true; |
| | | this.useId = useId; |
| | | this.queryParam = { type: "daily", delFlag: '0', useId: useId, versionStatus: '2' }; |
| | | this.queryParam = { type: "daily", delFlag: '0', useId: useId, versionStatus: '2', maintenanceType: '2' }; |
| | | this.loadData(1); |
| | | }, |
| | | clickThenCheck(record) { |
| | |
| | | }, |
| | | 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 = "éæ©æ¥å¸¸ä¿å
»æ å"; |
| | | }, |
| | |
| | | <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" |
| | |
| | | v-decorator="['assignMode', validatorRules.assignMode]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-col> --> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="çæ¬" |
| | |
| | | > |
| | | <div :key="col.dataIndex"> |
| | | |
| | | <a-select |
| | | <!-- <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'" |
| | |
| | | // scopedSlots: { customRender: 'location' }, |
| | | // width: 150, |
| | | }, |
| | | { |
| | | title: '卿', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceCycleId', |
| | | scopedSlots: { customRender: 'maintenanceCycleId' }, |
| | | width: 150, |
| | | }, |
| | | // { |
| | | // title: '卿', |
| | | // align: 'center', |
| | | // dataIndex: 'maintenanceCycleId', |
| | | // scopedSlots: { customRender: 'maintenanceCycleId' }, |
| | | // width: 150, |
| | | // }, |
| | | { |
| | | title: 'ä¿å
»è§è²', |
| | | align: 'center', |
| | |
| | | { required: true, message: 'è¯·éæ©è®¾å¤!' }, |
| | | ] |
| | | }, |
| | | assignMode: { |
| | | maintenanceType: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©æ´¾å·¥æ¹å¼!' }, |
| | | { required: true, message: 'è¯·éæ©ä¿å
»ç±»å!' }, |
| | | ] |
| | | }, |
| | | version: { |
| | |
| | | maintenanceRequire: data[i].maintenanceRequire, |
| | | workingHourQuota: data[i].workingHourQuota, |
| | | // upload: this.upload, |
| | | maintenanceCycles: this.maintenanceCycles, |
| | | // maintenanceCycles: this.maintenanceCycles, |
| | | }) |
| | | |
| | | // let formData = {}; |
| | |
| | | that.dataSource = temp; |
| | | } |
| | | that.$nextTick(() => { |
| | | that.form.setFieldsValue(pick(that.model, 'num', 'departId', 'teamId', 'equipmentId', 'equipmentName', 'useDepartName', 'useId', 'teamName', 'assignMode', 'version', 'remark')); |
| | | 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.maintenanceCycles = [] |
| | | // this.getMaintenanceCycle(this.model.equipmentId) |
| | | this.codeDisable = true; |
| | | that.$nextTick(() => { |
| | | if (that.isRevise) { |
| | |
| | | |
| | | onEquipmentList() { |
| | | let data = this.form.getFieldsValue(['departId']); |
| | | if (data.departId == null || data.departId == "") { |
| | | this.$message.warning("请å
éæ©ä½¿ç¨é¨é¨ï¼"); |
| | | return |
| | | } |
| | | // 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.getMaintenanceCycle(record.id) |
| | | this.form.setFieldsValue({ equipmentId: record.id, equipmentName: record.num + "/" + record.name + "/" + record.model, teamId: record.teamId, teamName: record.teamId_dictText }); |
| | | |
| | | }, |
| | |
| | | }, |
| | | 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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <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> |
| | | <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:true}" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | |
| | | @change="handleTableChange"> |
| | | <!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" --> |
| | | <template slot="htmlSlot" slot-scope="text"> |
| | | <div v-html="text"></div> |
| | | </template> |
| | | <template slot="imgSlot" 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> |
| | | <template slot="fileSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ æä»¶</span> |
| | | <a-button |
| | | v-else |
| | | :ghost="true" |
| | | type="primary" |
| | | icon="download" |
| | | size="small" |
| | | @click="downloadFile(text)"> |
| | | ä¸è½½ |
| | | </a-button> |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | <a-divider type="vertical" /> |
| | | <a-popconfirm title="ç¡®å®å é¤å?" @confirm="() => handleDelete(record.id)"> |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | export default { |
| | | name: "UpdateABC", |
| | | mixins:[JeecgListMixin], |
| | | components: { }, |
| | | props:{ |
| | | mainId:{ |
| | | type:String, |
| | | default:'', |
| | | required:false |
| | | } |
| | | }, |
| | | watch:{ |
| | | mainId:{ |
| | | immediate: true, |
| | | handler(val) { |
| | | if(!this.mainId){ |
| | | this.clearList() |
| | | }else{ |
| | | this.queryParam['equipmentId'] = val |
| | | this.queryParam['type'] = '1' |
| | | this.loadData(1); |
| | | |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'ææåºåºå管ç页é¢', |
| | | disableMixinCreated:true, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | | { |
| | | title: 'ä¿å
»é¡¹ç®', |
| | | align: 'center', |
| | | dataIndex: 'projectName', |
| | | width: 250, |
| | | |
| | | }, |
| | | { |
| | | title: 'ä¿å
»æ å', |
| | | align: 'center', |
| | | dataIndex: 'standard', |
| | | width: 250, |
| | | |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/eam/equipment/getEquipmentStansdardList", |
| | | }, |
| | | dictOptions:{ |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | importExcelUrl(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importUrl}/${this.mainId}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | clearList(){ |
| | | this.dataSource=[] |
| | | this.selectedRowKeys=[] |
| | | this.ipagination.current = 1 |
| | | } |
| | | |
| | | }, |
| | | mounted(){ |
| | | this.$bus.$on('loadData', (data) => { |
| | | this.loadData(); |
| | | }); |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less' |
| | | </style> |
| | |
| | | :wrapperCol="wrapperCol" |
| | | prop="useId" |
| | | > |
| | | <!-- <a-tree-select |
| | | style="width: 100%" |
| | | :disabled="formDisabled" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="è¯·éæ©ä½¿ç¨é¨é¨" |
| | | tree-default-expand-all |
| | | v-model="model.useId" |
| | | /> --> |
| | | |
| | | |
| | | |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="formDisabled" |
| | |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="æ¯å¦ç产线设å¤" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="isLineEquip" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©" |
| | | :triggerChange="true" |
| | | :disabled="true" |
| | | dictCode="is_product" |
| | | v-model="model.isLineEquip" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="æ¯å¦ç产线" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="isLine" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©" |
| | | :triggerChange="true" |
| | | :disabled="true" |
| | | dictCode="is_product" |
| | | v-model="model.isLine" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="设å¤å¾ç" |
| | |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this |
| | | this.edit(this.modelDefault); |
| | | }, |
| | | edit(record) { |
| | |
| | | this.model = Object.assign({}, record); |
| | | if (!this.model.id) { |
| | | this.model.equipmentStatus = '1' |
| | | this.model.isLineEquip = 'no' |
| | | this.model.isLine = 'no' |
| | | } |
| | | this.visible = true; |
| | | }, |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <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> |
| | | <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:true}" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | |
| | | @change="handleTableChange"> |
| | | <!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" --> |
| | | <template slot="htmlSlot" slot-scope="text"> |
| | | <div v-html="text"></div> |
| | | </template> |
| | | <template slot="imgSlot" 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> |
| | | <template slot="fileSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ æä»¶</span> |
| | | <a-button |
| | | v-else |
| | | :ghost="true" |
| | | type="primary" |
| | | icon="download" |
| | | size="small" |
| | | @click="downloadFile(text)"> |
| | | ä¸è½½ |
| | | </a-button> |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | <a-divider type="vertical" /> |
| | | <a-popconfirm title="ç¡®å®å é¤å?" @confirm="() => handleDelete(record.id)"> |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | export default { |
| | | name: "UpdateABC", |
| | | mixins:[JeecgListMixin], |
| | | components: { }, |
| | | props:{ |
| | | mainId:{ |
| | | type:String, |
| | | default:'', |
| | | required:false |
| | | } |
| | | }, |
| | | watch:{ |
| | | mainId:{ |
| | | immediate: true, |
| | | handler(val) { |
| | | if(!this.mainId){ |
| | | this.clearList() |
| | | }else{ |
| | | this.queryParam['equipmentId'] = val |
| | | this.queryParam['type'] = '2' |
| | | this.loadData(1); |
| | | |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'ææåºåºå管ç页é¢', |
| | | disableMixinCreated:true, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | | { |
| | | title: 'ä¿å
»é¡¹ç®', |
| | | align: 'center', |
| | | dataIndex: 'projectName', |
| | | width: 250, |
| | | |
| | | }, |
| | | { |
| | | title: 'ä¿å
»æ å', |
| | | align: 'center', |
| | | dataIndex: 'standard', |
| | | width: 250, |
| | | |
| | | }, |
| | | { |
| | | title: 'ä¿å
»å¨æ', |
| | | align: "center", |
| | | dataIndex: 'cycleName', |
| | | width: 250, |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/eam/equipment/getEquipmentStansdardList", |
| | | }, |
| | | dictOptions:{ |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | importExcelUrl(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importUrl}/${this.mainId}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | clearList(){ |
| | | this.dataSource=[] |
| | | this.selectedRowKeys=[] |
| | | this.ipagination.current = 1 |
| | | } |
| | | |
| | | }, |
| | | mounted(){ |
| | | this.$bus.$on('loadData', (data) => { |
| | | this.loadData(); |
| | | }); |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less' |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <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> |
| | | <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:true}" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | |
| | | @change="handleTableChange"> |
| | | <!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" --> |
| | | <template slot="htmlSlot" slot-scope="text"> |
| | | <div v-html="text"></div> |
| | | </template> |
| | | <template slot="imgSlot" 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> |
| | | <template slot="fileSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ æä»¶</span> |
| | | <a-button |
| | | v-else |
| | | :ghost="true" |
| | | type="primary" |
| | | icon="download" |
| | | size="small" |
| | | @click="downloadFile(text)"> |
| | | ä¸è½½ |
| | | </a-button> |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | <a-divider type="vertical" /> |
| | | <a-popconfirm title="ç¡®å®å é¤å?" @confirm="() => handleDelete(record.id)"> |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | export default { |
| | | name: "UpdateABC", |
| | | mixins:[JeecgListMixin], |
| | | components: { }, |
| | | props:{ |
| | | mainId:{ |
| | | type:String, |
| | | default:'', |
| | | required:false |
| | | } |
| | | }, |
| | | watch:{ |
| | | mainId:{ |
| | | immediate: true, |
| | | handler(val) { |
| | | if(!this.mainId){ |
| | | this.clearList() |
| | | }else{ |
| | | this.queryParam['equipmentId'] = val |
| | | this.queryParam['type'] = '3' |
| | | this.loadData(1); |
| | | |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'ææåºåºå管ç页é¢', |
| | | disableMixinCreated:true, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | | { |
| | | title: 'ä¿å
»é¡¹ç®', |
| | | align: 'center', |
| | | dataIndex: 'projectName', |
| | | width: 250, |
| | | |
| | | }, |
| | | { |
| | | title: 'ä¿å
»æ å', |
| | | align: 'center', |
| | | dataIndex: 'standard', |
| | | width: 250, |
| | | |
| | | }, |
| | | { |
| | | title: 'ä¿å
»å¨æ', |
| | | align: "center", |
| | | dataIndex: 'cycleName', |
| | | width: 250, |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/eam/equipment/getEquipmentStansdardList", |
| | | }, |
| | | dictOptions:{ |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | importExcelUrl(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importUrl}/${this.mainId}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | clearList(){ |
| | | this.dataSource=[] |
| | | this.selectedRowKeys=[] |
| | | this.ipagination.current = 1 |
| | | } |
| | | |
| | | }, |
| | | mounted(){ |
| | | this.$bus.$on('loadData', (data) => { |
| | | this.loadData(); |
| | | }); |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less' |
| | | </style> |
| | |
| | | visible: false, |
| | | loading: false, |
| | | url: { |
| | | list: '/eam/equipment/list' |
| | | list: '/eam/equipment/getEquipmentList' |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | let that = this |
| | | this.loading = true |
| | | this.queryParam.isLine = 'no' |
| | | let params = this.getQueryParams()//æ¥è¯¢æ¡ä»¶ |
| | | // params.equipmentStatus = '1' |
| | | await getAction(this.url.list, params).then((res) => { |
| | |
| | | :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', |
| | |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="使ç¨é¨é¨" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="useId" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="formDisabled" |
| | | placeholder="è¯·éæ©ä½¿ç¨é¨é¨" |
| | | :triggerChange="true" |
| | | dictCode="sys_depart,depart_name,id,del_flag!='1'" |
| | | v-model="model.useId" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="ç»´æ¤é¨é¨" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="manageId" |
| | | > |
| | | <!-- <a-tree-select |
| | | :disabled="formDisabled" |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="è¯·éæ©ç»´æ¤é¨é¨" |
| | | tree-default-expand-all |
| | | v-model="model.manageId" |
| | | /> --> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="formDisabled" |
| | | placeholder="è¯·éæ©ç»´æ¤é¨é¨" |
| | | :triggerChange="true" |
| | | dictCode="sys_depart,depart_name,id,del_flag!='1'" |
| | | v-model="model.manageId" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="ç»´ä¿®çç»" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="teamId" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="formDisabled" |
| | | placeholder="è¯·éæ©è´£ä»»çç»" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_team,name,id,status='1' and del_flag='0'" |
| | | v-model="model.teamId" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="å·¥åº" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="factoryModelId" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="formDisabled" |
| | | placeholder="è¯·éæ©å·¥åº" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_area,name,id,del_flag!='1'" |
| | | v-model="model.factoryModelId" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </j-form-container> |
| | |
| | | :disabled="formDisabled" |
| | | :rowNumber="true" |
| | | :rowSelection="true" |
| | | :bordered="true" |
| | | :alwaysEdit="true" |
| | | :toolbar="true" |
| | | @valueChange="changeDate" |
| | |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | sm: { span: 11 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | sm: { span: 13 }, |
| | | }, |
| | | model:{ |
| | | }, |
| | |
| | | ], |
| | | equipmentCategoryId:[ |
| | | { required: true, message: '请è¾å
¥åç±»!' } |
| | | ] |
| | | ], |
| | | manageId: [ |
| | | { required: true, message: 'è¯·éæ©ç»´æ¤é¨é¨!' }, |
| | | ], |
| | | useId: [ |
| | | { required: true, message: 'è¯·éæ©ä½¿ç¨é¨é¨!' }, |
| | | ], |
| | | factoryModelId: [ |
| | | { required: true, message: 'è¯·éæ©å·¥åº!' }, |
| | | ], |
| | | teamId: [ |
| | | { required: true, message: 'è¯·éæ©è´£ä»»çç»!' }, |
| | | ], |
| | | }, |
| | | refKeys: ['equipmentOfLineTable', ], |
| | | tableKeys:['equipmentOfLineTable', ], |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="width" |
| | | :visible="visible" |
| | | :confirmLoading="confirmLoading" |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é" |
| | | > |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model |
| | | ref="form" |
| | | :model="model" |
| | | :rules="validatorRules" |
| | | > |
| | | <a-row :gutter="24"> |
| | | <a-col :span='24'> |
| | | <a-form-model-item |
| | | label='éªæ¶äºº' |
| | | prop='errUda3' |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol"> |
| | | <a-input v-model='model.errUda3' |
| | | > |
| | | </a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item |
| | | label="éªæ¶æè§" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="errUda5" |
| | | > |
| | | <a-textarea v-model="model.errUda5" rows="4" placeholder="éªæ¶æè§" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </a-spin> |
| | | </j-modal> |
| | | </template> |
| | | <script> |
| | | import { httpAction } from '@/api/manage' |
| | | import { validateDuplicateValue } from '@/utils/util' |
| | | import pick from 'lodash.pick' |
| | | import { postAction, requestPut, getAction } from '@/api/manage' |
| | | import { duplicateCheck } from '@/api/api' |
| | | import moment from 'moment' |
| | | import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js' |
| | | import { JVXETypes } from '@/components/jeecg/JVxeTable' |
| | | export default { |
| | | name: "NodeModel", |
| | | mixins: [JVxeTableModelMixin], |
| | | components: { |
| | | validateDuplicateValue, |
| | | }, |
| | | props: { |
| | | disableSubmit: { |
| | | type: Boolean, |
| | | default: false, |
| | | required: false |
| | | }, |
| | | caytegoryParam: { |
| | | type: String, |
| | | default: '', |
| | | required: false |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | title: "æä½", |
| | | width: 1500, |
| | | visible: false, |
| | | model: { |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | |
| | | confirmLoading: false, |
| | | validatorRules: { |
| | | errUda5: [ |
| | | {required:true,message:"请è¾å
¥éªæ¶æè§"}, |
| | | { min: 0, max: 100, message: 'é¿åº¦ä¸è¶
è¿ 100 个å符' }, |
| | | ], |
| | | errUda3 :[ |
| | | {required:true,message:"请è¾å
¥åç§°"}, |
| | | { min: 0, max: 10, message: 'åç§°ä¸è¶
è¿ 10 个å符'}, |
| | | ], |
| | | }, |
| | | url: { |
| | | accept: "/eam/equipmentReportRepair/accept", |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | | //å¤ä»½modelåå§å¼ |
| | | this.modelDefault = JSON.parse(JSON.stringify(this.model)); |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this.edit(this.modelDefault); |
| | | }, |
| | | edit(record) { |
| | | this.model = Object.assign({}, record); |
| | | this.visible = true; |
| | | }, |
| | | close() { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | this.$refs.form.clearValidate(); |
| | | }, |
| | | handleOk() { |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true; |
| | | let httpurl = this.url.accept; |
| | | let method = 'put'; |
| | | httpAction(httpurl, this.model, method).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(); |
| | | }) |
| | | } else { |
| | | return false |
| | | } |
| | | }) |
| | | }, |
| | | handleCancel() { |
| | | this.close() |
| | | }, |
| | | }, |
| | | computed: { |
| | | formDisabled() { |
| | | return this.disableSubmit |
| | | }, |
| | | }, |
| | | } |
| | | </script> |
| | |
| | | this.loading = true |
| | | getAction(this.url.list, params) |
| | | .then(res => { |
| | | if (res.success) { |
| | | if (res.success&&res.result!==null) { |
| | | //update-begin---author:zhangyafei Date:20201118 forï¼éé
ä¸åé¡µçæ°æ®å表------------ |
| | | this.dataSource = res.result.records |
| | | if (this.dataSource != null && this.dataSource != "") { |
| | |
| | | slot-scope='text, record, index' |
| | | > |
| | | <div :key='col.dataIndex'> |
| | | <a-input-search |
| | | v-if="col.dataIndex == 'username'" |
| | | enter-button |
| | | @search='onSearchUser(index)' |
| | | <a-input |
| | | v-if="col.dataIndex == 'userId'" |
| | | :value='text' |
| | | :read-only='true' |
| | | @change='(e) => handleChange(e, record.key, col, index)' |
| | | :disabled="repairOrderStatus=='4'" |
| | | /> |
| | |
| | | <!-- v-if="col.dataIndex == 'principalContractor'" />--> |
| | | <a-select default-value='0' :value='text' :disabled="repairOrderStatus=='4'" |
| | | v-if="col.dataIndex == 'principalContractor'" |
| | | style="width: 100%;" |
| | | @change='(e)=>handleChange(e, record.key, col, index)'> |
| | | <a-select-opt-group> |
| | | <a-select-option value='1'> |
| | | <a-select-option value='1' style="width: 100%;"> |
| | | æ¯ |
| | | </a-select-option> |
| | | <a-select-option value='0'> |
| | | <a-select-option value='0' style="width: 100%;"> |
| | | å¦ |
| | | </a-select-option> |
| | | </a-select-opt-group> |
| | |
| | | > |
| | | åæ¶ |
| | | </a-button> |
| | | <a-button |
| | | <!-- <a-button |
| | | @click='handleOk(1)' |
| | | type='primary' |
| | | :style="{marginRight: '8px'}" |
| | | :disabled="this.repairOrderStatus=='4' || this.repairOrderStatus=='2'" |
| | | >æå |
| | | </a-button> |
| | | </a-button> --> |
| | | <a-button |
| | | @click='handleOk(0)' |
| | | type='primary' |
| | |
| | | repairOrderId: { |
| | | type: String, |
| | | required: false, |
| | | default: '-1' |
| | | }, |
| | | repairOrderStatus: { |
| | | type: String, |
| | |
| | | validatorRules: { |
| | | userId: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©äººå!' } |
| | | { required: true, message: '请填å人å!' } |
| | | ] |
| | | }, |
| | | actual_hour: { |
| | |
| | | } |
| | | }, |
| | | { |
| | | title: '*人åç¼ç ', |
| | | dataIndex: 'username', |
| | | title: '*人ååç§°', |
| | | dataIndex: 'userId', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'username' }, |
| | | scopedSlots: { customRender: 'userId' }, |
| | | className: 'red', |
| | | width: 250 |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: '人ååç§°', |
| | | dataIndex: 'realname', |
| | | align: 'center', |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: '主æ¿ä¿®äºº', |
| | | title: '*主æ¿ä¿®äºº', |
| | | dataIndex: 'principalContractor', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'principalContractor' }, |
| | | width: 100 |
| | | className: 'red', |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: '*å®é
å·¥æ¶', |
| | |
| | | align: 'center', |
| | | className: 'red', |
| | | scopedSlots: { customRender: 'actualHour' }, |
| | | width: 120 |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: 'å¼å§æ¶é´', |
| | | dataIndex: 'startTime', |
| | | scopedSlots: { customRender: 'startTime' }, |
| | | align: 'center' |
| | | align: 'center', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: 'ç»ææ¶é´', |
| | | dataIndex: 'endTime', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'endTime' } |
| | | scopedSlots: { customRender: 'endTime' }, |
| | | width: 200 |
| | | |
| | | }, |
| | | |
| | | { |
| | |
| | | dataIndex: 'theoreticalTime', |
| | | align: 'center' |
| | | // scopedSlots: { customRender: 'theoreticalTime' }, |
| | | , |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | width: 250, |
| | | width: 150, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | |
| | | repairOrderId: { |
| | | immediate: true, |
| | | handler(val) { |
| | | this.clearList() |
| | | this.queryParam['repairOrderId'] = val |
| | | this.loadData(1) |
| | | if(this.repairOrderId){ |
| | | this.clearList() |
| | | this.queryParam['repairOrderId'] = val |
| | | this.loadData(1) |
| | | } |
| | | } |
| | | } |
| | | }, |
| | |
| | | this.disableSubmit = false |
| | | this.visible = false |
| | | }, |
| | | handleDelete(text, record, index) { |
| | | handleDelete(index) { |
| | | console.log(index) |
| | | this.dataSource.splice(index, 1) |
| | | }, |
| | | |
| | |
| | | const temp = [...that.dataSource] |
| | | const target = temp[index] |
| | | if (target) { |
| | | target[column.dataIndex] = value |
| | | if ('userId' == column.dataIndex) { |
| | | target['userId'] = value |
| | | target['userId'] = value.target.value |
| | | } |
| | | if ('principalContractor' == column.dataIndex) { |
| | | target['principalContractor'] = value |
| | | if(value==='1'){ |
| | | for(var i = 0;i<temp.length;i++){ |
| | | if(i!==index){ |
| | | temp[i]['principalContractor']='0'; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | if ('actualHour' == column.dataIndex) { |
| | | target['actualHour'] = value |
| | | if(target['theoreticalTime']!==null&&target['theoreticalTime']<value){ |
| | | that.$message.error('è¯·æ£æ¥ç¬¬' + (index + 1) + 'è¡å®é
å·¥æ¶ä¸è½å°äºç论工æ¶,è¯·éæ°å¡«å') |
| | | target['actualHour']=null; |
| | | }else if(target['theoreticalTime']===null||target['theoreticalTime']===undefined){ |
| | | that.$message.error('è¯·æ£æ¥ç¬¬' + (index + 1) + '请å
å¡«åå¼å§æ¶é´ä¸ç»ææ¶é´') |
| | | target['actualHour']=null; |
| | | }else{ |
| | | target['actualHour'] = value |
| | | } |
| | | |
| | | } |
| | | // if ('theoreticalTime' == column.dataIndex) { |
| | | // target['theoreticalTime'] = value |
| | |
| | | |
| | | if (target['endTime'] == null) { |
| | | target['startTime'] = value |
| | | } else if (target['startTime'] != null && target['endTime'] != null) { |
| | | const diffInHours = this.getTimeDiff(target['startTime'], target['endTime']) |
| | | if (diffInHours < 0) { |
| | | target['startTime'] = '' |
| | | target['theoreticalTime'] = '' |
| | | that.$message.error('è¯·æ£æ¥ç¬¬' + (index + 1) + 'è¡å¼å§æ¶é´ä¸è½å°äºç»ææ¶é´,è¯·éæ°éæ©') |
| | | } else { |
| | | target['startTime'] = value |
| | | target['theoreticalTime'] = diffInHours |
| | | } |
| | | } else if (target['startTime'] == null && target['endTime'] != null) { |
| | | } else { |
| | | const diffInHours = this.getTimeDiff(value, target['endTime']) |
| | | if (diffInHours < 0) { |
| | | target['startTime'] = '' |
| | | target['theoreticalTime'] = '' |
| | | that.$message.error('è¯·æ£æ¥ç¬¬' + (index + 1) + 'è¡å¼å§æ¶é´ä¸è½å°äºç»ææ¶é´,è¯·éæ°éæ©') |
| | | |
| | | that.$message.error('å¼å§æ¶é´ä¸è½å°äºç»ææ¶é´,è¯·éæ°éæ©') |
| | | } else { |
| | | target['startTime'] = value |
| | | target['theoreticalTime'] = diffInHours |
| | | if(target['actualHour']!==null){ |
| | | if(diffInHours<target['actualHour']){ |
| | | target['startTime'] = '' |
| | | target['theoreticalTime'] = '' |
| | | that.$message.error('å®é
å·¥æ¶ä¸è½å°äºç论工æ¶,è¯·éæ°å¡«å') |
| | | }else{ |
| | | target['startTime'] = value |
| | | target['theoreticalTime'] = diffInHours |
| | | } |
| | | }else{ |
| | | target['startTime'] = value |
| | | target['theoreticalTime'] = diffInHours |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | if ('endTime' == column.dataIndex) { |
| | | if (target['startTime'] == null) { |
| | | target['endTime'] = value |
| | | } else if (target['startTime'] != null && target['endTime'] != null) { |
| | | const diffInHours = this.getTimeDiff(target['startTime'], target['endTime']) |
| | | if (diffInHours < 0) { |
| | | target['endTime'] = '' |
| | | target['theoreticalTime'] = '' |
| | | that.$message.error('è¯·æ£æ¥ç¬¬' + (index + 1) + 'è¡å¼å§æ¶é´ä¸è½å°äºç»ææ¶é´,è¯·éæ°éæ©') |
| | | } else { |
| | | target['endTime'] = value |
| | | target['theoreticalTime'] = diffInHours |
| | | } |
| | | |
| | | } else if (target['startTime'] != null && target['endTime'] == null) { |
| | | } else { |
| | | const diffInHours = this.getTimeDiff(target['startTime'], value) |
| | | if (diffInHours < 0) { |
| | | target['endTime'] = '' |
| | | target['theoreticalTime'] = '' |
| | | that.$message.error('è¯·æ£æ¥ç¬¬' + (index + 1) + 'è¡å¼å§æ¶é´ä¸è½å°äºç»ææ¶é´,è¯·éæ°éæ©') |
| | | |
| | | that.$message.error('å¼å§æ¶é´ä¸è½å°äºç»ææ¶é´,è¯·éæ°éæ©') |
| | | } else { |
| | | target['endTime'] = value |
| | | target['theoreticalTime'] = diffInHours |
| | | if(target['actualHour']!==null){ |
| | | if(diffInHours<target['actualHour']){ |
| | | target['endTime'] = '' |
| | | target['theoreticalTime'] = '' |
| | | that.$message.error('å®é
å·¥æ¶ä¸è½å°äºç论工æ¶,è¯·éæ°å¡«å') |
| | | }else{ |
| | | target['endTime'] = value |
| | | target['theoreticalTime'] = diffInHours |
| | | } |
| | | }else{ |
| | | target['endTime'] = value |
| | | target['theoreticalTime'] = diffInHours |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | that.dataSource = temp |
| | |
| | | allow-clear |
| | | placeholder='请è¾å
¥æ
éç°è±¡' |
| | | v-decorator="['repairOrderFaultAnalysisUda1', validatorRules.repairOrderFaultAnalysisUda1]" |
| | | :disabled="isEdit" |
| | | :disabled="disabledEdit" |
| | | ></a-textarea> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | <a-textarea |
| | | placeholder='请è¾å
¥æ
鿣æ¥' |
| | | v-decorator="['faultCause', validatorRules.faultCause]" |
| | | :disabled="isEdit" |
| | | :disabled="disabledEdit" |
| | | ></a-textarea> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | <a-textarea |
| | | placeholder='请è¾å
¥æ
éç»´ä¿®' |
| | | v-decorator="['maintenanceMeasures', validatorRules.maintenanceMeasures]" |
| | | :disabled="isEdit" |
| | | :disabled="disabledEdit" |
| | | ></a-textarea> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | <a-textarea |
| | | v-decorator="['suggestion', validatorRules.suggestion]" |
| | | placeholder='请è¾å
¥æ
éé¢é²' |
| | | :disabled="isEdit" |
| | | :disabled="disabledEdit" |
| | | ></a-textarea> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click='handleEdit2()' |
| | | :disabled="buttonStatus" |
| | | :disabled="disabledButton||!disabledEdit" |
| | | :loading='confirmLoading' |
| | | > |
| | | ç¼è¾ |
| | |
| | | @click='handleOk()' |
| | | type='primary' |
| | | :loading='confirmLoading' |
| | | :disabled="buttonStatus" |
| | | :disabled="disabledButton||disabledEdit" |
| | | >ä¿å |
| | | </a-button> |
| | | </a-form> |
| | |
| | | 'repairOrder.id':{ |
| | | immediate: true, |
| | | handler(val) { |
| | | this.form.resetFields(); |
| | | if(this.repairOrder.id!==undefined&&this.repairOrder.status==='3'){ |
| | | this.isEdit = false; |
| | | this.loadData(val); |
| | | if(this.repairOrder.id!==undefined&&this.repairOrder.id!==null&&this.repairOrder.id!==''){ |
| | | if(this.repairOrder.status!=='3'){ |
| | | this.disabledButton = true; |
| | | }else{ |
| | | this.disabledButton = false; |
| | | } |
| | | }else{ |
| | | this.loadData(val); |
| | | this.disabledButton = true; |
| | | } |
| | | if(this.repairOrder.status!=='3'){ |
| | | this.buttonStatus = true; |
| | | } |
| | | } |
| | | }, |
| | | 'repairOrder.status':{ |
| | | immediate: true, |
| | | handler(val) { |
| | | if(val!=='3'){ |
| | | this.disabledButton = true; |
| | | }else{ |
| | | this.disabledButton = false; |
| | | } |
| | | } |
| | | } |
| | | }, |
| | |
| | | getInfo:'/eam/repairOrderFaultAnalysis/list', |
| | | }, |
| | | dictOptions: {}, |
| | | isEdit:false, |
| | | disabledEdit:false, |
| | | validatorRules: { |
| | | faultCause: { |
| | | rules: [ |
| | |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 } |
| | | }, |
| | | buttonStatus:false |
| | | disabledButton:false |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message); |
| | | that.isEdit = true; |
| | | } else { |
| | | that.$message.warning(res.message); |
| | | } |
| | |
| | | }) |
| | | }, |
| | | loadData(repairOrderId){ |
| | | let that = this; |
| | | let that = this; |
| | | getAction(that.url.getInfo,{repairOrderId:repairOrderId}).then(res=>{ |
| | | if(res.success){ |
| | | if(res.result.records.length!==0){ |
| | | that.isEdit=true; |
| | | if(res.success&&res.result.records.length!==0){ |
| | | that.disabledEdit=true; |
| | | that.form.setFieldsValue(pick(res.result.records[0], 'faultCause','repairOrderFaultAnalysisUda1', 'faultTypeId', 'suggestion', 'maintenanceMeasures','id')) |
| | | that.model = Object.assign({}, res.result.records[0]); |
| | | }else if(this.repairOrder.status==='3'){ |
| | | that.isEdit=false; |
| | | }else{ |
| | | that.isEdit=true; |
| | | } |
| | | }else{ |
| | | if(that.repairOrder.status==='3'){ |
| | | that.disabledEdit=false; |
| | | }else{ |
| | | that.disabledEdit=true; |
| | | } |
| | | that.form.resetFields(); |
| | | } |
| | | }) |
| | | }, |
| | | handleEdit2(){ |
| | | this.isEdit=false; |
| | | this.disabledEdit=false; |
| | | } |
| | | }, |
| | | |
| | |
| | | :loading="confirmLoading" |
| | | :disabled="repairOrder.status!='3'||repairOrder.repairOrderUda1==='needPart'||repairOrder.repairOrderUda1==='needSpare'" |
| | | type="primary" |
| | | >æ¥å·¥</a-button> |
| | | <a-button |
| | | >ä¿®å®</a-button> |
| | | <!-- <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleRevoke" |
| | | :loading="confirmLoading" |
| | | :disabled="repairOrder.status!='4'" |
| | | type="primary" |
| | | >æ¤é</a-button> |
| | | >æ¤é</a-button> --> |
| | | </a-row> |
| | | </div> |
| | | <div :style="{width: '100%',border: '1px solid #e9e9e9',padding: '10px 16px',background: '#fff',}"> |
| | | <a-divider |
| | | orientation="center" |
| | | style="font-size: large;font-style: italic;color: #66aeed;" |
| | | > åºç¡ä¿¡æ¯ </a-divider> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-divider |
| | | orientation="center" |
| | | style="font-size: large;font-style: italic;color: #66aeed;" |
| | | > æ¥ä¿®é¢åä¿¡æ¯ </a-divider> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-divider |
| | | orientation="center" |
| | | style="font-size: large;font-style: italic;color: #66aeed;" |
| | | > ç»´ä¿®ä¿¡æ¯ </a-divider> |
| | | <a-row |
| | | :gutter="24" |
| | | > |
| | |
| | | label="ç»´ä¿®æ¶é¿" |
| | | class="hightColor" |
| | | > |
| | | <span v-if="this.repairOrder != null">{{ this.repairOrder.actualHour }}</span> |
| | | <span v-if="this.repairOrder != null">{{this.formattedElapsedTime}}</span> |
| | | |
| | | <span |
| | | v-else |
| | | class="frozenRowClass" |
| | |
| | | label="å®æäºº" |
| | | class="hightColor" |
| | | > |
| | | <span v-if="this.repairOrder != null">{{ this.repairOrder.recipientUserId_dictText }}</span> |
| | | <span v-if="this.repairOrder != null">{{ this.repairOrder.recipientUserId}}</span> |
| | | <span |
| | | v-else |
| | | class="frozenRowClass" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-divider |
| | | orientation="center" |
| | | style="font-size: large;font-style: italic;color: #66aeed;" |
| | | > çéè´ä»¶ </a-divider> |
| | | <a-row |
| | | :gutter="24" |
| | | > |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="çéè´ä»¶å¼å§" |
| | | class="hightColor" |
| | | > |
| | | <span v-if="this.repairOrder != null">{{ this.repairOrder.repairOrderUda2}}</span> |
| | | <span |
| | | v-else |
| | | class="frozenRowClass" |
| | | >-</span> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="çéè´ä»¶ç»æ" |
| | | class="hightColor" |
| | | > |
| | | <span v-if="this.repairOrder != null">{{ this.repairOrder.repairOrderUda3 }}</span> |
| | | <span |
| | | v-else |
| | | class="frozenRowClass" |
| | | >-</span> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="累计æ¶é¿" |
| | | class="hightColor" |
| | | > |
| | | <span v-if="this.repairOrder != null">{{ this.time1 }}</span> |
| | | <span |
| | | v-else |
| | | class="frozenRowClass" |
| | | >-</span> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-divider |
| | | orientation="center" |
| | | style="font-size: large;font-style: italic;color: #66aeed;" |
| | | > çå 工件 </a-divider> |
| | | <a-row |
| | | :gutter="24" |
| | | > |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="çå 工件å¼å§" |
| | | class="hightColor" |
| | | > |
| | | <span v-if="this.repairOrder != null">{{ this.repairOrder.repairOrderUda4 }}</span> |
| | | <span |
| | | v-else |
| | | class="frozenRowClass" |
| | | >-</span> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="çå å·¥ä»¶ç»æ" |
| | | class="hightColor" |
| | | > |
| | | <span v-if="this.repairOrder != null">{{ this.repairOrder.repairOrderUda5 }}</span> |
| | | <span |
| | | v-else |
| | | class="frozenRowClass" |
| | | >-</span> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="累计æ¶é¿" |
| | | class="hightColor" |
| | | > |
| | | <span v-if="this.repairOrder != null">{{ this.time2 }}</span> |
| | | <span |
| | | v-else |
| | | class="frozenRowClass" |
| | | >-</span> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-divider |
| | | orientation="center" |
| | | style="font-size: large;font-style: italic;color: #66aeed;" |
| | | > éªæ¶ä¿¡æ¯ </a-divider> |
| | | <a-row |
| | | :gutter="24" |
| | | > |
| | |
| | | label="æ
éæ¶é¿" |
| | | class="hightColor" |
| | | > |
| | | <span v-if="this.repairOrder != null">{{ this.repairOrder.faultHour }}</span> |
| | | <span |
| | | v-else |
| | | class="frozenRowClass" |
| | | >-</span> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row |
| | | :gutter="24" |
| | | > |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="çéè´ä»¶å¼å§" |
| | | class="hightColor" |
| | | > |
| | | <span v-if="this.repairOrder != null">{{ this.repairOrder.repairOrderUda2}}</span> |
| | | <span |
| | | v-else |
| | | class="frozenRowClass" |
| | | >-</span> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="çéè´ä»¶ç»æ" |
| | | class="hightColor" |
| | | > |
| | | <span v-if="this.repairOrder != null">{{ this.repairOrder.repairOrderUda3 }}</span> |
| | | <span |
| | | v-else |
| | | class="frozenRowClass" |
| | | >-</span> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="累计æ¶é´" |
| | | class="hightColor" |
| | | > |
| | | <span v-if="this.repairOrder != null">{{ this.repairOrder.spareTime }}</span> |
| | | <span |
| | | v-else |
| | | class="frozenRowClass" |
| | | >-</span> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row |
| | | :gutter="24" |
| | | > |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="çå 工件å¼å§" |
| | | class="hightColor" |
| | | > |
| | | <span v-if="this.repairOrder != null">{{ this.repairOrder.repairOrderUda4 }}</span> |
| | | <span |
| | | v-else |
| | | class="frozenRowClass" |
| | | >-</span> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="çå å·¥ä»¶ç»æ" |
| | | class="hightColor" |
| | | > |
| | | <span v-if="this.repairOrder != null">{{ this.repairOrder.repairOrderUda5 }}</span> |
| | | <span |
| | | v-else |
| | | class="frozenRowClass" |
| | | >-</span> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="累计æ¶é´" |
| | | class="hightColor" |
| | | > |
| | | <span v-if="this.repairOrder != null">{{ this.repairOrder.partTime }}</span> |
| | | <span v-if="this.repairOrder != null">{{ this.time3 }}</span> |
| | | <span |
| | | v-else |
| | | class="frozenRowClass" |
| | |
| | | <script> |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { putAction } from '@/api/manage' |
| | | import dayjs from 'dayjs' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | import RepairOrderActualMaterialList from './moudles/RepairOrderActualMaterialReport' |
| | | import RepairOrderActualWorkHoursList from './moudles/RepairOrderActualHoursReport' |
| | |
| | | Tooltip, |
| | | RepairOrderActualMaterialList, |
| | | RepairOrderActualWorkHoursList, |
| | | RepairOrderFaultAnalysisList |
| | | RepairOrderFaultAnalysisList, |
| | | dayjs |
| | | }, |
| | | props: { |
| | | repairOrder: { |
| | |
| | | dataSource: [], |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 6 }, |
| | | sm: { span: 12 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 18 }, |
| | | sm: { span: 12 }, |
| | | }, |
| | | url: { |
| | | orderStart: "eam/repairOrder/start", |
| | |
| | | handlePartStop:"/eam/repairOrder/handlePartStop", |
| | | getInfo:'/eam/repairOrderFaultAnalysis/list', |
| | | }, |
| | | elapsedTime: 0, // è®°å½å·²è¿å»çæ¶é´ï¼åä½ï¼æ¯«ç§ï¼ |
| | | formattedElapsedTime: '0ç§', |
| | | time1:'0ç§', |
| | | time2:'0ç§', |
| | | time3:'0ç§', |
| | | timer:null // æ ¼å¼ååçå·²è¿å»æ¶é´ |
| | | } |
| | | }, |
| | | |
| | | mounted() { |
| | | this.$bus.$on('closeDrawer', (data) => { |
| | | this.handleCancel() |
| | | }) |
| | | // this.$bus.$on('closeDrawer', (data) => { |
| | | // this.handleCancel() |
| | | // }) |
| | | this.timer = setInterval(() => { |
| | | this.updateElapsedTime(); |
| | | }, 1000); |
| | | }, |
| | | beforeDestroy() { |
| | | // å¨ç»ä»¶éæ¯åæ¸
é¤è®¡æ¶å¨ |
| | | clearInterval(this.timer); |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | }, |
| | | //æ¥å·¥ |
| | | handleReportPro(){ |
| | | |
| | | let that = this; |
| | | getAction(that.url.getInfo,{repairOrderId:this.repairOrder.id}).then(res=>{ |
| | | if(res.success){ |
| | |
| | | putAction(that.url.orderReport, that.repairOrder).then(res => { |
| | | if (res.result) { |
| | | that.$message.success('æ¥å·¥æå'); |
| | | that.repairOrder.status = '4' |
| | | that.reload(); |
| | | that.$emit('loadData'); |
| | | } else { |
| | | that.$message.error('æ¥å·¥åºç°å¼å¸¸') |
| | | that.$message.error(res.message) |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | |
| | | putAction(that.url.orderRevoke, that.repairOrder).then(res => { |
| | | if (res.result) { |
| | | that.$message.success('æ¤éæå'); |
| | | that.repairOrder.status = '3' |
| | | that.$emit('loadData'); |
| | | } else { |
| | | that.$message.error('æ¤éåºç°å¼å¸¸') |
| | |
| | | this.repairOrder = res.result.records[0]; |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | updateElapsedTime() { |
| | | const stardand = new Date(); |
| | | if(this.repairOrder.actualEndTime!==null&&this.repairOrder.actualEndTime!==undefined&&this.repairOrder.actualEndTime!==''){ |
| | | this.formattedElapsedTime = this.repairOrder.actualHour+'æ¶'; |
| | | }else if(this.repairOrder.actualStartTime!==null&&this.repairOrder.actualStartTime!==undefined&&this.repairOrder.actualStartTime!==''){ |
| | | const startDateTime = dayjs(this.repairOrder.actualStartTime, { format: 'YYYY-MM-DD HH:mm:ss' }); |
| | | this.elapsedTime = stardand-startDateTime; |
| | | this.formattedElapsedTime = this.formatTime(this.elapsedTime); |
| | | }else{ |
| | | this.formattedElapsedTime="å¼å·¥åè®¡ç®æ¶é¿"; |
| | | } |
| | | if(this.repairOrder.repairOrderUda3!==null&&this.repairOrder.repairOrderUda3!==undefined&&this.repairOrder.repairOrderUda3!==''){ |
| | | this.time1 = this.repairOrder.spareTime+'æ¶'; |
| | | }else if(this.repairOrder.repairOrderUda2!==null&&this.repairOrder.repairOrderUda2!==undefined&&this.repairOrder.repairOrderUda2!==''){ |
| | | const startDateTime1 = dayjs(this.repairOrder.repairOrderUda2, { format: 'YYYY-MM-DD HH:mm:ss' }); |
| | | this.time1 = this.formatTime(stardand-startDateTime1); |
| | | }else{ |
| | | this.time1 = "çéè´ä»¶åè®¡ç®æ¶é¿" |
| | | } |
| | | if(this.repairOrder.repairOrderUda5!==null&&this.repairOrder.repairOrderUda5!==undefined&&this.repairOrder.repairOrderUda5!==''){ |
| | | this.time2 = this.repairOrder.partTime+'æ¶'; |
| | | }else if(this.repairOrder.repairOrderUda4!==null&&this.repairOrder.repairOrderUda4!==undefined&&this.repairOrder.repairOrderUda4!==''){ |
| | | const startDateTime2 = dayjs(this.repairOrder.repairOrderUda4, { format: 'YYYY-MM-DD HH:mm:ss' }); |
| | | this.time2 = this.formatTime(stardand-startDateTime2); |
| | | }else{ |
| | | this.time2 = "çå 工件åè®¡ç®æ¶é¿" |
| | | } |
| | | if(this.repairOrder.acceptTime!==null&&this.repairOrder.acceptTime!==undefined&&this.repairOrder.acceptTime!==''){ |
| | | this.time3 = this.repairOrder.faultHour+'æ¶'; |
| | | }else if(this.repairOrder.faultTime!==null&&this.repairOrder.faultTime!==undefined&&this.repairOrder.faultTime!==''){ |
| | | const startDateTime3 = dayjs(this.repairOrder.faultTime, { format: 'YYYY-MM-DD HH:mm:ss' }); |
| | | this.time3 = this.formatTime(stardand-startDateTime3); |
| | | }else{ |
| | | this.time3 = "éªæ¶åè®¡ç®æ¶é¿" |
| | | } |
| | | }, |
| | | formatTime(timeInMilliseconds) { |
| | | // å°æ¯«ç§è½¬æ¢ä¸ºæ´åå¥½çæ ¼å¼ï¼ä¾å¦ï¼xå°æ¶xåéxç§ï¼ |
| | | // è¿éåªæ¯ä¸ä¸ªç®åçå®ç°ï¼ä½ å¯è½éè¦æ ¹æ®éæ±è¿è¡æ´æ¹ |
| | | const seconds = Math.floor(timeInMilliseconds / 1000); |
| | | const minutes = Math.floor(seconds / 60); |
| | | const hours = Math.floor(minutes / 60); |
| | | |
| | | return `${hours}æ¶ ${minutes % 60}å ${seconds % 60}ç§`; |
| | | }, |
| | | }, |
| | | |
| | | } |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.$bus.$on('queryTreeData', this.queryTreeData); |
| | | this.$bus.$on('queryAreaTreeData', this.queryTreeData); |
| | | }, |
| | | //çå¬ |
| | | watch: { |
| | |
| | | }, |
| | | watch: { |
| | | alterFlag() { |
| | | this.$bus.$emit('queryTreeData'); |
| | | this.$bus.$emit('queryAreaTreeData'); |
| | | }, |
| | | } |
| | | } |
| | |
| | | placeholder="请维æ¤çç»" |
| | | ></j-dict-select-tag> |
| | | </a-form-model-item> |
| | | |
| | | <a-form-model-item label="ä¸å¿åé
" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="areaId"> |
| | | <j-dict-select-tag |
| | | v-model="model.areaId" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_area,name,id,del_flag = 0" |
| | | placeholder="请维æ¤ä¸å¿" |
| | | ></j-dict-select-tag> |
| | | </a-form-model-item> |
| | | <a-form-model-item label="è´è´£é¨é¨" :labelCol="labelCol" :wrapperCol="wrapperCol" v-if="departIdShow==true"> |
| | | <j-multi-select-tag |
| | | :disabled="disableSubmit" |