已重命名4个文件
已添加11个文件
已修改2个文件
ÎļþÃû´Ó src/views/eam/newEquipment/EquipmentList.vue ÐÞ¸Ä |
| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item label="è®¾å¤æå±åç±»"> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©è®¾å¤æå±åç±»" |
| | | :triggerChange="true" |
| | | dictCode="mom_eam_equipment_category,name,id" |
| | | <j-search-select-tag |
| | | dict="mom_eam_equipment_category,name,id" |
| | | v-model="queryParam.equipmentCategoryId" |
| | | /> |
| | | </a-form-item> |
| | |
| | | <a-col |
| | | :span="6" |
| | | > |
| | | <a-form-item label="设å¤ç¼å·"> |
| | | <a-input |
| | | placeholder="请è¾å
¥è®¾å¤ç¼å·æ¥è¯¢" |
| | | <a-form-item label="ç»ä¸ç¼ç "> |
| | | <j-input |
| | | placeholder="请è¾å
¥è®¾å¤ç»ä¸ç¼ç æ¥è¯¢" |
| | | v-model="queryParam.num" |
| | | ></a-input> |
| | | ></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="6" |
| | | > |
| | | <a-form-item label="设å¤åç§°"> |
| | | <a-input |
| | | <j-input |
| | | placeholder="请è¾å
¥è®¾å¤åç§°æ¥è¯¢" |
| | | v-model="queryParam.name" |
| | | ></a-input> |
| | | ></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import EquipmentModal from '../modules/equipmentNew/EquipmentModal' |
| | | import EquipmentModal from './modules/equipmentNew/EquipmentModal' |
| | | import { getAction } from '@/api/manage' |
| | | import EquipmentProcessParametersList from './EquipmentProcessParametersList' |
| | | import EquipmentDocumentList from './EquipmentDocumentList' |
| | | import EquipmentPrecisionParametersList from './EquipmentPrecisionParametersList' |
| | | import EquipmentProcessParametersList from './modules/equipmentNew/EquipmentProcessParametersList' |
| | | import EquipmentDocumentList from './modules/equipmentNew/EquipmentDocumentList' |
| | | import EquipmentPrecisionParametersList from './modules/equipmentNew/EquipmentPrecisionParametersList' |
| | | import '@/assets/less/TableExpand.less' |
| | | import EquipmentResumeDrawer from '../modules/equipment/EquipmentResume/EquipmentResumeDrawer' |
| | | import EquipmentResumeDrawer from './modules/equipmentNew/EquipmentResume/EquipmentResumeDrawer' |
| | | import JSearchSelectTag from '../../components/dict/JSearchSelectTag.vue' |
| | | |
| | | |
| | | export default { |
| | |
| | | EquipmentDocumentList, |
| | | EquipmentPrecisionParametersList, |
| | | EquipmentModal, |
| | | EquipmentResumeDrawer |
| | | EquipmentResumeDrawer, |
| | | JSearchSelectTag |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | { |
| | | title: 'ABCæ è¯', |
| | | align: "center", |
| | | dataIndex: 'equipmentImportanceId_dictText', |
| | | dataIndex: 'equipmentImportanceId', |
| | | }, |
| | | { |
| | | title: 'å
³é®è®¾å¤æ è¯', |
| | |
| | | { |
| | | title: 'å·¥èºåæ°æ¨¡æ¿', |
| | | align: "center", |
| | | dataIndex: 'processParametersTemplateName', |
| | | dataIndex: 'processParametersTemplateId_dictText', |
| | | }, |
| | | { |
| | | title: '设å¤ç²¾åº¦ç®¡ç', |
| | |
| | | { |
| | | title: 'ç²¾åº¦åæ°æ¨¡æ¿', |
| | | align: "center", |
| | | dataIndex: 'precisionParametersTemplateName', |
| | | dataIndex: 'precisionParametersTemplateId_dictText', |
| | | }, |
| | | // { |
| | | // title: '夿³¨', |
| | |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/eam/equipment/list", |
| | | list: "/eam/equipment/getEquipmentList", |
| | | delete: "/eam/equipment/delete", |
| | | deleteBatch: "/eam/equipment/deleteBatch", |
| | | active: "/eam/equipment/active", |
| | |
| | | </a-row>--> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="设å¤åç±»ç¼å·" |
| | | :labelCol="labelCol" |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24" v-if="parentId!='-1'"> |
| | | <a-col :span="24"> |
| | | <a-col :span="12" v-if="parentId!='-1'"> |
| | | <a-form-item |
| | | label="设å¤åç±»åç§°" |
| | | :labelCol="labelCol" |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24" v-if="parentId=='-1'"> |
| | | <a-col :span="24"> |
| | | <a-col :span="12" v-if="parentId=='-1'"> |
| | | <a-form-item |
| | | label="设å¤åç±»åç§°" |
| | | :labelCol="labelCol" |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | </a-form> |
| | | <a-divider v-if="title!='æ°å¢'" orientation="center" style="font-size: large;font-style: italic;color: #66aeed;"> éæ©å设å¤å类使å
¶è·éç¶è®¾å¤åç±»å±æ§ </a-divider> |
| | | <a-tabs |
| | |
| | | parentId: '', |
| | | model: {}, |
| | | labelCol: { |
| | | span:3 |
| | | span:7 |
| | | }, |
| | | wrapperCol: { |
| | | span:21 |
| | | span:17 |
| | | }, |
| | | confirmLoading: false, |
| | | form: this.$form.createForm(this), |
ÎļþÃû´Ó src/views/eam/newEquipment/EquipmentDocumentList.vue ÐÞ¸Ä |
| | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import EquipmentDocumentModal from '../modules/equipmentNew/EquipmentDocumentModal' |
| | | import EquipmentDocumentModal from './EquipmentDocumentModal' |
| | | import { preview } from 'vue-photo-preview' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { ACCESS_TOKEN } from '@/store/mutation-types' |
| | |
| | | import { getFileAccessHttpUrl } from '@/api/manage'; |
| | | import '@/assets/less/TableExpand.less' |
| | | import store from '@/store/' |
| | | import { downFile, getAction } from '../../../api/manage' |
| | | import { downFile, getAction } from '../../../../api/manage' |
| | | export default { |
| | | name: "EquipmentDocumentList", |
| | | mixins: [JeecgListMixin, mixinDevice], |
| | |
| | | customRender: 'action' |
| | | }, |
| | | width: 200, |
| | | fixed: 'right', |
| | | }, |
| | | ], |
| | | url: { |
| | |
| | | enter-button |
| | | @search="onSearchPrecisionParametersTemplate()" |
| | | :read-only="true" |
| | | v-model="model.precisionParametersTemplateName" |
| | | v-model="model.precisionParametersTemplateId_dictText" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | enter-button |
| | | @search="onSearchProcessParametersTemplate()" |
| | | :read-only="true" |
| | | v-model="model.processParametersTemplateName" |
| | | v-model="model.processParametersTemplateId_dictText" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | import { postAction, requestPut, getAction } from '@/api/manage' |
| | | import { duplicateCheck } from '@/api/api' |
| | | import moment from 'moment' |
| | | import ProcessParametersTemplateList from '../equipment/ProcessParametersTemplateList' |
| | | import PrecisionParametersTemplateList from '../equipment/PrecisionParametersTemplateList' |
| | | import ProcessParametersTemplateList from './serach/ProcessParametersTemplateList' |
| | | import PrecisionParametersTemplateList from './serach/PrecisionParametersTemplateList' |
| | | import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js' |
| | | import { JVXETypes } from '@/components/jeecg/JVxeTable' |
| | | export default { |
| | |
| | | ], |
| | | equipmentCategoryId: [ |
| | | { required: true, message: '请éå设å¤ç±»å«!' }, |
| | | ] |
| | | ], |
| | | specification:[ |
| | | { required: true, message: '请éå设å¤è§æ ¼!' }, |
| | | ], |
| | | model:[ |
| | | { required: true, message: '请éå设å¤åå·!' }, |
| | | ], |
| | | equipmentImportanceId:[ |
| | | { required: true, message: '请éå设å¤ABCæ è¯!' }, |
| | | ], |
| | | manageId:[ |
| | | { required: true, message: 'è¯·éæ©ç»´æ¤é¨é¨!' }, |
| | | ], |
| | | useId:[ |
| | | { required: true, message: 'è¯·éæ©ä½¿ç¨é¨é¨é¨é¨!' }, |
| | | ], |
| | | }, |
| | | url: { |
| | | add: "/eam/equipment/add", |
| | |
| | | sendProcessParametersTemplateRecord(data) { |
| | | let record = data.record; |
| | | this.model.processParametersTemplateId = record.id |
| | | this.model.processParametersTemplateName = record.name |
| | | this.model.processParametersTemplateId_dictText = record.name |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | |
| | | sendPrecisionParametersTemplateRecord(data) { |
| | | let record = data.record; |
| | | this.model.precisionParametersTemplateId = record.id |
| | | this.model.precisionParametersTemplateName = record.name |
| | | this.model.precisionParametersTemplateId_dictText= record.name |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | standardResultCompute() { |
ÎļþÃû´Ó src/views/eam/newEquipment/EquipmentPrecisionParametersList.vue ÐÞ¸Ä |
| | |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>å é¤</a-menu-item> |
| | | <a-menu-item key="1" @click="handleSubmitBatch"><a-icon type="to-top" />æäº¤</a-menu-item> |
| | | </a-menu> |
| | | <a-button style="margin-left: 8px"> æ¹éæä½ <a-icon type="down" /></a-button> |
| | | </a-dropdown> |
| | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import EquipmentPrecisionParametersModal from '../modules/equipmentNew/EquipmentPrecisionParametersModal' |
| | | import { postAction } from '../../../api/manage' |
| | | import EquipmentPrecisionParametersModal from './EquipmentPrecisionParametersModal' |
| | | import { postAction, putAction } from '../../../../api/manage' |
| | | |
| | | export default { |
| | | name: "EquipmentPrecisionParametersList", |
| | |
| | | scopedSlots: { |
| | | customRender: 'action' |
| | | }, |
| | | fixed: 'right', |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/eam/equipmentPrecisionParameters/list", |
| | | edit: "/eam/equipmentPrecisionParameters/edit", |
| | | submitBatch:"/eam/equipmentPrecisionParameters/submitBatch", |
| | | // delete: "/new/equipment/deleteEquipmentPrecisionParameters", |
| | | // deleteBatch: "/new/equipment/deleteBatchEquipmentPrecisionParameters", |
| | | // exportXlsUrl: "/new/equipment/exportEquipmentPrecisionParameters", |
| | |
| | | clearList(){ |
| | | this.dataSource=[] |
| | | this.selectedRowKeys=[] |
| | | this.selectionRows = [] |
| | | this.ipagination.current = 1 |
| | | }, |
| | | handleChange(value, key, column, index) { |
| | |
| | | modalFormOk() { |
| | | this.loadData(1); |
| | | }, |
| | | handleSubmitBatch(){ |
| | | for(var i=0;i<this.selectionRows.length;i++){ |
| | | let upperLimit = this.selectionRows[i].upperLimit; |
| | | let lowerLimit = this.selectionRows[i].lowerLimit; |
| | | let actualValue = this.selectionRows[i].actualValue; |
| | | if(upperLimit==null||upperLimit==undefined||upperLimit==''){ |
| | | this.$message.warning("请å
å¡«å鿩项çä¸éå¼åæäº¤") |
| | | return false; |
| | | } |
| | | if(lowerLimit==null||lowerLimit==undefined||lowerLimit==''){ |
| | | this.$message.warning("请å
å¡«å鿩项çä¸éå¼åæäº¤") |
| | | return false; |
| | | } |
| | | if(actualValue==null||actualValue==undefined||actualValue==''){ |
| | | this.$message.warning("请å
å¡«å鿩项çå®é
å¼åæäº¤") |
| | | return false; |
| | | } |
| | | } |
| | | let that = this; |
| | | this.$confirm({ |
| | | title: '设å¤ç²¾åº¦ç¡®è®¤æäº¤ï¼', |
| | | content: '确认æäº¤åï¼', |
| | | okText: '确认', |
| | | cancelText: 'åæ¶', |
| | | onOk() { |
| | | that.loading=true; |
| | | putAction(that.url.submitBatch,that.selectionRows).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("æäº¤æåï¼") |
| | | that.loadData(1) |
| | | } else { |
| | | that.$message.warning("æäº¤å¤±è´¥ï¼") |
| | | } |
| | | }).finally(() => { |
| | | that.loading = false; |
| | | that.clearList(); |
| | | }) |
| | | }, |
| | | }) |
| | | }, |
| | | onSelectChange(selectedRowKeys, selectionRows) { |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.selectionRows = selectionRows; |
| | | }, |
| | | |
| | | } |
| | | } |
ÎļþÃû´Ó src/views/eam/newEquipment/EquipmentProcessParametersList.vue ÐÞ¸Ä |
| | |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>å é¤</a-menu-item> |
| | | <a-menu-item key="1" @click="handleSubmitBatch"><a-icon type="to-top" />æäº¤</a-menu-item> |
| | | </a-menu> |
| | | <a-button style="margin-left: 8px"> æ¹éæä½ <a-icon type="down" /></a-button> |
| | | </a-dropdown> |
| | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import EquipmentProcessParametersModal from '../modules/equipmentNew/EquipmentProcessParametersModal' |
| | | import { postAction } from '../../../api/manage' |
| | | import EquipmentProcessParametersModal from './EquipmentProcessParametersModal' |
| | | import { postAction,putAction } from '../../../../api/manage' |
| | | |
| | | export default { |
| | | name: "EquipmentProcessParametersList", |
| | |
| | | scopedSlots: { |
| | | customRender: 'action' |
| | | }, |
| | | width:200 |
| | | width:200, |
| | | fixed: 'right', |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/eam/equipmentProcessParameters/list", |
| | | edit: "/eam/equipmentProcessParameters/edit", |
| | | submitBatch:"/eam/equipmentProcessParameters/submitBatch", |
| | | // delete: "/new/equipment/deleteEquipmentProcessParameters", |
| | | // deleteBatch: "/new/equipment/deleteBatchEquipmentProcessParameters", |
| | | // exportXlsUrl: "/new/equipment/exportEquipmentProcessParameters", |
| | |
| | | methods: { |
| | | clearList(){ |
| | | this.dataSource=[] |
| | | this.selectionRows = [] |
| | | this.selectedRowKeys=[] |
| | | this.ipagination.current = 1 |
| | | }, |
| | |
| | | that.dataSource = temp; |
| | | } |
| | | }, |
| | | handleSubmitBatch(){ |
| | | for(var i=0;i<this.selectionRows.length;i++){ |
| | | let parametersValue = this.selectionRows[i].parametersValue; |
| | | if(parametersValue==null||parametersValue==undefined||parametersValue==''){ |
| | | this.$message.warning("请å
å¡«å鿩项çåæ°å¼åæäº¤") |
| | | return false; |
| | | } |
| | | } |
| | | let that = this; |
| | | this.$confirm({ |
| | | title: '设å¤ç²¾åº¦ç¡®è®¤æäº¤ï¼', |
| | | content: '确认æäº¤åï¼', |
| | | okText: '确认', |
| | | cancelText: 'åæ¶', |
| | | onOk() { |
| | | that.loading=true; |
| | | putAction(that.url.submitBatch,that.selectionRows).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("æäº¤æåï¼") |
| | | that.loadData(1) |
| | | } else { |
| | | that.$message.warning("æäº¤å¤±è´¥ï¼") |
| | | } |
| | | }).finally(() => { |
| | | that.loading = false; |
| | | that.clearList(); |
| | | }) |
| | | }, |
| | | }) |
| | | }, |
| | | onSelectChange(selectedRowKeys, selectionRows) { |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.selectionRows = selectionRows; |
| | | }, |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <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" |
| | | > |
| | | |
| | | </a-table> |
| | | </div> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction, deleteAction } from '@/api/manage' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | |
| | | export default { |
| | | name: "EquipmentCalibrationRecord", |
| | | components: { |
| | | Tooltip, |
| | | }, |
| | | mixins: [JeecgListMixin], |
| | | props: { |
| | | equipmentId: { |
| | | type: String, |
| | | default: '-1', |
| | | required: false |
| | | } |
| | | }, |
| | | watch: { |
| | | equipmentId: { |
| | | immediate: true, |
| | | handler(val) { |
| | | if (!this.equipmentId) { |
| | | this.clearList() |
| | | } else { |
| | | this.queryParam['equipmentId'] = 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: 'calibrationTypeName', |
| | | |
| | | }, |
| | | { |
| | | title: 'ç»æ', |
| | | align: "center", |
| | | dataIndex: 'calibrationResult', |
| | | }, |
| | | { |
| | | title: 'æ£å®äºº', |
| | | align: "center", |
| | | dataIndex: 'calibrationUserName', |
| | | }, |
| | | { |
| | | title: 'æ£å®æ¶é´', |
| | | align: "center", |
| | | dataIndex: 'calibrationTime', |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/eam/equipment/getResumeCalibrationRecordList", |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | 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; |
| | | // this.originTargetKeys = []; |
| | | getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | 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 |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </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> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :scroll="{x:true}" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | > |
| | | <span |
| | | slot="action" |
| | | slot-scope="text, record" |
| | | > |
| | | <a-popconfirm |
| | | title="ç¡®å®å é¤å?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | > |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction, deleteAction } from '@/api/manage' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | |
| | | export default { |
| | | name: "EquipmentChangeRecord", |
| | | components: { |
| | | Tooltip, |
| | | }, |
| | | mixins: [JeecgListMixin], |
| | | props: { |
| | | equipmentId: { |
| | | type: String, |
| | | default: '-1', |
| | | required: false |
| | | } |
| | | }, |
| | | watch: { |
| | | equipmentId: { |
| | | immediate: true, |
| | | handler(val) { |
| | | if (!this.equipmentId) { |
| | | this.clearList() |
| | | } else { |
| | | this.queryParam['equipmentId'] = 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: 'changeMethod' |
| | | }, |
| | | { |
| | | title: 'ç»å人', |
| | | align: 'center', |
| | | dataIndex: 'createBy' |
| | | }, |
| | | { |
| | | title: 'ä¸å¡æ¥æ', |
| | | align: 'center', |
| | | dataIndex: 'createTime' |
| | | }, |
| | | |
| | | ], |
| | | url: { |
| | | list: "/eam/equipment/getResumeChangeRecordList", |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | clearList() { |
| | | this.dataSource = [] |
| | | this.selectedRowKeys = [] |
| | | this.ipagination.current = 1 |
| | | }, |
| | | loadData(arg) { |
| | | if (!this.url.list) { |
| | | this.$message.error("请设置url.list屿§!") |
| | | return |
| | | } |
| | | //å è½½æ°æ® è¥ä¼ å
¥åæ°1åå 载第ä¸é¡µçå
容 |
| | | if (arg === 1) { |
| | | this.ipagination.current = 1; |
| | | } |
| | | var params = this.getQueryParams();//æ¥è¯¢æ¡ä»¶ |
| | | this.loading = true; |
| | | getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | this.dataSource = res.result.records || res.result; |
| | | |
| | | 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 |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </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> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :scroll="{x:true}" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | > |
| | | |
| | | </a-table> |
| | | </div> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction, deleteAction } from '@/api/manage' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | |
| | | export default { |
| | | name: "EquipmentInspectionRecord", |
| | | components: { |
| | | Tooltip, |
| | | }, |
| | | mixins: [JeecgListMixin], |
| | | props: { |
| | | equipmentId: { |
| | | type: String, |
| | | default: '-1', |
| | | required: false |
| | | } |
| | | }, |
| | | watch: { |
| | | equipmentId: { |
| | | immediate: true, |
| | | handler(val) { |
| | | if (!this.equipmentId) { |
| | | this.clearList() |
| | | } else { |
| | | this.queryParam['equipmentId'] = 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: 'inspectionType', |
| | | |
| | | }, |
| | | { |
| | | title: 'ç¹æ£å·¥åå·', |
| | | align: "center", |
| | | dataIndex: 'num', |
| | | |
| | | }, |
| | | { |
| | | title: 'ç¹æ£ç»æ', |
| | | align: "center", |
| | | dataIndex: 'result', |
| | | }, |
| | | { |
| | | title: 'ç¹æ£æ¥æ', |
| | | align: "center", |
| | | dataIndex: 'inspectionTime', |
| | | }, |
| | | { |
| | | title: '责任çç»', |
| | | align: "center", |
| | | dataIndex: 'teamName', |
| | | }, |
| | | { |
| | | title: 'ç¹æ£äºº', |
| | | align: "center", |
| | | dataIndex: 'inspectionUserName', |
| | | }, |
| | | { |
| | | title: '宿æ¶é´', |
| | | align: "center", |
| | | dataIndex: 'actualEndTime', |
| | | }, |
| | | |
| | | ], |
| | | url: { |
| | | list: "/eam/equipment/getResumeInspectionRecordList", |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | 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; |
| | | // this.originTargetKeys = []; |
| | | getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | 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 |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </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> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :scroll="{x:true}" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | > |
| | | <span |
| | | slot="action" |
| | | slot-scope="text, record" |
| | | > |
| | | <a-popconfirm |
| | | title="ç¡®å®å é¤å?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | > |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction, deleteAction } from '@/api/manage' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | |
| | | export default { |
| | | name: "EquipmentMaintenanceRecord", |
| | | components: { |
| | | Tooltip, |
| | | }, |
| | | mixins: [JeecgListMixin], |
| | | props: { |
| | | equipmentId: { |
| | | type: String, |
| | | default: '-1', |
| | | required: false |
| | | } |
| | | }, |
| | | watch: { |
| | | equipmentId: { |
| | | immediate: true, |
| | | handler(val) { |
| | | if (!this.equipmentId) { |
| | | this.clearList() |
| | | } else { |
| | | this.queryParam['equipmentId'] = 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: 'maintenanceType' |
| | | }, |
| | | |
| | | { |
| | | title: 'ä¿å
»å·¥åå·', |
| | | align: 'center', |
| | | dataIndex: 'num' |
| | | }, |
| | | { |
| | | title: '责任çç»', |
| | | align: 'center', |
| | | dataIndex: 'teamName' |
| | | }, |
| | | { |
| | | title: 'æ§è¡äºº', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceuserName' |
| | | }, |
| | | { |
| | | title: 'å®é
å¼å§æ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'actualStartTime' |
| | | }, |
| | | { |
| | | title: 'å®é
ç»ææ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'actualEndTime' |
| | | }, |
| | | { |
| | | title: 'å®é
å·¥æ¶', |
| | | align: 'center', |
| | | dataIndex: 'measure' |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/eam/equipment/getResumeMaintenanceRecordList", |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | clearList() { |
| | | this.dataSource = [] |
| | | this.selectedRowKeys = [] |
| | | this.ipagination.current = 1 |
| | | }, |
| | | loadData(arg) { |
| | | if (!this.url.list) { |
| | | this.$message.error("请设置url.list屿§!") |
| | | return |
| | | } |
| | | //å è½½æ°æ® è¥ä¼ å
¥åæ°1åå 载第ä¸é¡µçå
容 |
| | | if (arg === 1) { |
| | | this.ipagination.current = 1; |
| | | } |
| | | var params = this.getQueryParams();//æ¥è¯¢æ¡ä»¶ |
| | | this.loading = true; |
| | | getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | this.dataSource = res.result.records || res.result; |
| | | |
| | | 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 |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </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> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :scroll="{x:true}" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | > |
| | | <span |
| | | slot="action" |
| | | slot-scope="text, record" |
| | | > |
| | | <a-popconfirm |
| | | title="ç¡®å®å é¤å?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | > |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction, deleteAction } from '@/api/manage' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | |
| | | export default { |
| | | name: "EquipmentMaintenanceRecord", |
| | | components: { |
| | | Tooltip, |
| | | }, |
| | | mixins: [JeecgListMixin], |
| | | props: { |
| | | equipmentId: { |
| | | type: String, |
| | | default: '-1', |
| | | required: false |
| | | } |
| | | }, |
| | | watch: { |
| | | equipmentId: { |
| | | immediate: true, |
| | | handler(val) { |
| | | if (!this.equipmentId) { |
| | | this.clearList() |
| | | } else { |
| | | this.queryParam['equipmentId'] = 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: 'faultDescription' |
| | | }, |
| | | { |
| | | title: 'æ
éæ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'faultTime' |
| | | }, |
| | | { |
| | | title: 'ç»´ä¿æ¹å¼', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceMethodName' |
| | | }, |
| | | { |
| | | title: '责任çç»', |
| | | align: 'center', |
| | | dataIndex: 'teamName' |
| | | }, |
| | | { |
| | | title: 'æ§è¡äºº', |
| | | align: 'center', |
| | | dataIndex: 'recipientuserName' |
| | | }, |
| | | { |
| | | title: 'å®é
å·¥æ¶', |
| | | align: 'center', |
| | | dataIndex: 'actualHour' |
| | | }, |
| | | { |
| | | title: 'å®é
å¼å§æ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'actualStartTime' |
| | | }, |
| | | { |
| | | title: 'å®é
ç»ææ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'actualEndTime' |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/eam/equipment/getResumeRepairRecordList", |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | clearList() { |
| | | this.dataSource = [] |
| | | this.selectedRowKeys = [] |
| | | this.ipagination.current = 1 |
| | | }, |
| | | loadData(arg) { |
| | | if (!this.url.list) { |
| | | this.$message.error("请设置url.list屿§!") |
| | | return |
| | | } |
| | | //å è½½æ°æ® è¥ä¼ å
¥åæ°1åå 载第ä¸é¡µçå
容 |
| | | if (arg === 1) { |
| | | this.ipagination.current = 1; |
| | | } |
| | | var params = this.getQueryParams();//æ¥è¯¢æ¡ä»¶ |
| | | this.loading = true; |
| | | getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | this.dataSource = res.result.records || res.result; |
| | | |
| | | 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 |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-drawer |
| | | :title="title" |
| | | :width="drawerWidth" |
| | | :visible="visible" |
| | | @close="handleCancel" |
| | | :confirmLoading="confirmLoading" |
| | | :maskClosable="maskClosable" |
| | | > |
| | | <a-card :style="getBackground()"> |
| | | <template> |
| | | <a-card> |
| | | <div :style="{width: '100%',border: '1px solid #e9e9e9',padding: '10px 16px',background: '#fff',}"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="设å¤ç¼ç " |
| | | class="hightColor" |
| | | > |
| | | <span |
| | | v-if="this.model != null" |
| | | class="hightColor" |
| | | >{{ this.model.num }}</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.model != null" |
| | | class="hightColor" |
| | | >{{ this.model.name }}</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.model != null" |
| | | class="hightColor" |
| | | >{{ this.model.specification }}</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.model != null" |
| | | class="hightColor" |
| | | >{{ this.model.model }}</span> |
| | | <span |
| | | v-else |
| | | class="frozenRowClass" |
| | | >-</span> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </div> |
| | | |
| | | <a-tabs |
| | | type="card" |
| | | defaultActiveKey="1" |
| | | > |
| | | <a-tab-pane |
| | | tab='使ç¨è®°å½' |
| | | key="1" |
| | | class="hightColor" |
| | | > |
| | | <div> |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | :pagination="ipagination" |
| | | > |
| | | <!-- :scroll="{ x: 'calc(1000px + 50%)', y: 900 }" --> |
| | | </a-table> |
| | | </div> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane |
| | | tab='ç¹æ£è®°å½' |
| | | key="2" |
| | | > |
| | | <div |
| | | class="table-operator" |
| | | style="margin:-16px" |
| | | > |
| | | <equipment-inspection-record :equipmentId='equipmentId' /> |
| | | </div> |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | | tab='ä¿å
»è®°å½' |
| | | key="3" |
| | | > |
| | | <div |
| | | class="table-operator" |
| | | style="margin:-16px" |
| | | > |
| | | <equipment-maintenance-record :equipmentId='equipmentId' /> |
| | | </div> |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | | tab='维修记å½' |
| | | key="4" |
| | | > |
| | | <div |
| | | class="table-operator" |
| | | style="margin:-16px" |
| | | > |
| | | <equipment-repair-record :equipmentId='equipmentId' /> |
| | | </div> |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | | tab='æ¢ä»¶è®°å½' |
| | | key="5" |
| | | > |
| | | <div |
| | | class="table-operator" |
| | | style="margin:-16px" |
| | | > |
| | | <equipment-spare-record :equipmentId="equipmentId" /> |
| | | </div> |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | | tab='æ£å®è®°å½' |
| | | key="6" |
| | | > |
| | | <div |
| | | class="table-operator" |
| | | style="margin:-16px" |
| | | > |
| | | <equipment-calibration-record :equipmentId="equipmentId" /> |
| | | </div> |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | | tab='å¤çè®°å½' |
| | | key="7" |
| | | > |
| | | <div |
| | | class="table-operator" |
| | | style="margin:-16px" |
| | | > |
| | | <equipment-change-record :equipmentId="equipmentId" /> |
| | | </div> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-card> |
| | | <div :style="{width: '100%',border: '1px solid #e9e9e9',padding: '10px 16px',background: '#fff',}"> |
| | | <a-row :style="{textAlign:'right'}"> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleCancel" |
| | | > |
| | | åæ¶ |
| | | </a-button> |
| | | </a-row> |
| | | </div> |
| | | </template> |
| | | </a-card> |
| | | </a-drawer> |
| | | </template> |
| | | |
| | | <script> |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { requestPut, getAction, downFile } from '@/api/manage' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | import { ACCESS_TOKEN } from '@/store/mutation-types' |
| | | import Vue from 'vue' |
| | | import { getFileAccessHttpUrl } from '@/api/manage'; |
| | | |
| | | import EquipmentInspectionRecord from './EquipmentInspectionRecord' |
| | | import EquipmentMaintenanceRecord from './EquipmentMaintenanceRecord' |
| | | import EquipmentRepairRecord from './EquipmentRepairRecord' |
| | | import EquipmentSpareRecord from './EquipmentSpareRecord.vue' |
| | | import EquipmentCalibrationRecord from './EquipmentCalibrationRecord.vue' |
| | | import EquipmentChangeRecord from './EquipmentChangeRecord.vue' |
| | | |
| | | export default { |
| | | name: 'EquipmentResumeDrawer', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | Tooltip, |
| | | EquipmentInspectionRecord, |
| | | EquipmentMaintenanceRecord, |
| | | EquipmentRepairRecord, |
| | | EquipmentCalibrationRecord, |
| | | EquipmentSpareRecord, |
| | | EquipmentChangeRecord, |
| | | |
| | | }, |
| | | data() { |
| | | return { |
| | | title: "设å¤å±¥å", |
| | | visible: false, |
| | | maskClosable: true, |
| | | confirmLoading: false, |
| | | drawerWidth: "100%", |
| | | equipmentId: '-1', |
| | | dataSource: [], |
| | | model: {}, |
| | | ipagination: { |
| | | current: 1, |
| | | pageSize: 5, |
| | | pageSizeOptions: ['5', '10', '20'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + "-" + range[1] + " å
±" + total + "æ¡" |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 6 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 18 }, |
| | | }, |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | align: 'center', |
| | | width: 50, |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | | { |
| | | title: 'åæ®å·', |
| | | align: 'center', |
| | | dataIndex: 'num', |
| | | }, |
| | | { |
| | | title: 'åæ®ç±»å', |
| | | align: 'center', |
| | | dataIndex: 'type', |
| | | }, |
| | | { |
| | | title: 'ä¸å¡ç±»å', |
| | | align: 'center', |
| | | dataIndex: 'businessType', |
| | | }, |
| | | { |
| | | title: 'ç»å人', |
| | | align: 'center', |
| | | dataIndex: 'createBy', |
| | | }, |
| | | { |
| | | title: 'ä¸å¡æ¥æ', |
| | | align: 'center', |
| | | dataIndex: 'createTime', |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/eam/equipment/getResumeUseRecordList", |
| | | }, |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.$bus.$on('closeDrawer', (data) => { |
| | | this.visible = false; |
| | | }) |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | handleShow(record) { |
| | | this.model = Object.assign({}, record); |
| | | this.equipmentId = record.id |
| | | this.dataSource = [] |
| | | this.visible = true; |
| | | this.queryParam.equipmentId = record.id |
| | | this.loadData(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) { |
| | | //update-begin---author:zhangyafei Date:20201118 forï¼éé
ä¸åé¡µçæ°æ®å表------------ |
| | | 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 |
| | | }) |
| | | }, |
| | | |
| | | // loadData() { |
| | | // }, |
| | | getBackground() { |
| | | return "background-color:rgba(127, 127, 127,0.08)"; |
| | | }, |
| | | handleCancel() { |
| | | this.$emit('ok'); |
| | | this.alterFlag = new Date(); |
| | | this.close() |
| | | }, |
| | | close() { |
| | | this.visible = false; |
| | | }, |
| | | |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | .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; |
| | | } |
| | | </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" |
| | | > |
| | | |
| | | </a-table> |
| | | </div> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction, deleteAction } from '@/api/manage' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | |
| | | export default { |
| | | name: "EquipmentSpareRecord", |
| | | components: { |
| | | Tooltip, |
| | | }, |
| | | mixins: [JeecgListMixin], |
| | | props: { |
| | | equipmentId: { |
| | | type: String, |
| | | default: '-1', |
| | | required: false |
| | | } |
| | | }, |
| | | watch: { |
| | | equipmentId: { |
| | | immediate: true, |
| | | handler(val) { |
| | | if (!this.equipmentId) { |
| | | this.clearList() |
| | | } else { |
| | | this.queryParam['equipmentId'] = 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: 'inspectionType', |
| | | |
| | | }, |
| | | { |
| | | title: 'åæ®ç±»å', |
| | | align: "center", |
| | | dataIndex: 'num', |
| | | |
| | | }, |
| | | { |
| | | title: 'å¤ä»¶ç¼ç ', |
| | | align: "center", |
| | | dataIndex: 'result', |
| | | }, |
| | | { |
| | | title: 'å¤ä»¶åç§°', |
| | | align: "center", |
| | | dataIndex: 'inspectionTime', |
| | | }, |
| | | { |
| | | title: 'è§æ ¼', |
| | | align: "center", |
| | | dataIndex: 'teamName', |
| | | }, |
| | | { |
| | | title: 'åå·', |
| | | align: "center", |
| | | dataIndex: 'inspectionUserName', |
| | | }, |
| | | { |
| | | title: 'å¶é å', |
| | | align: "center", |
| | | dataIndex: 'actualEndTime', |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | align: "center", |
| | | dataIndex: 'actualEndTime1', |
| | | }, |
| | | { |
| | | title: '主æ°é', |
| | | align: "center", |
| | | dataIndex: 'actualEndTime2', |
| | | }, |
| | | { |
| | | title: 'æ´æ¢æ¶é´', |
| | | align: "center", |
| | | dataIndex: 'actualEndTime3', |
| | | }, |
| | | |
| | | ], |
| | | url: { |
| | | list: "/eam/equipment/getResumeInspectionRecordList", |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | 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; |
| | | // this.originTargetKeys = []; |
| | | getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | 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 |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :pagination="ipagination" |
| | | :dataSource="dataSource" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | > |
| | | |
| | | </a-table> |
| | | </div> |
| | | |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import JEllipsis from "@/components/jeecg/JEllipsis"; |
| | | import { deleteAction, getAction } from '@/api/manage' |
| | | |
| | | export default { |
| | | name: "ProcessParametersDetailList", |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | JEllipsis, |
| | | }, |
| | | data() { |
| | | return { |
| | | disabled: true, |
| | | description: '设å¤ç²¾åº¦æç»', |
| | | val: { precisionParametersTemplateId: -1 }, |
| | | dataSource: [], |
| | | /* å页忰 */ |
| | | ipagination: { |
| | | current: 1, |
| | | pageSize: 5, |
| | | pageSizeOptions: ['5', '10', '20', '30'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + "-" + range[1] + " å
±" + total + "æ¡" |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | align: "center", |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1; |
| | | }, |
| | | width: 50, |
| | | }, |
| | | { |
| | | title: '设å¤ç²¾åº¦ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'precisionParametersNum', |
| | | }, |
| | | { |
| | | title: '设å¤ç²¾åº¦åç§°', |
| | | align: 'center', |
| | | dataIndex: 'precisionParametersName', |
| | | }, |
| | | { |
| | | title: '计éåä½', |
| | | align: 'center', |
| | | dataIndex: 'unit', |
| | | }, |
| | | { |
| | | title: '夿³¨', |
| | | align: 'center', |
| | | dataIndex: 'remark', |
| | | }, |
| | | ], |
| | | |
| | | url: { |
| | | list: '/eam/precisionParametersTemplateDetail/listByPrecisionParametersTemplateId', |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | mounted() { |
| | | this.$bus.$on('refreshChildPage', (data) => { |
| | | this.val = data |
| | | this.loadData2("1", data); |
| | | }) |
| | | }, |
| | | |
| | | watch: { |
| | | dataSource() { |
| | | this.$bus.$emit('precisionParametersDataSource', this.dataSource); |
| | | }, |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | handleTableChange(pagination, filters, sorter) { |
| | | //å页ãæåºãçéååæ¶è§¦å |
| | | //TODO çé |
| | | if (Object.keys(sorter).length > 0) { |
| | | this.isorter.column = sorter.field; |
| | | this.isorter.order = "ascend" == sorter.order ? "asc" : "desc" |
| | | } |
| | | this.ipagination = pagination; |
| | | this.loadData(); |
| | | }, |
| | | loadData() { |
| | | this.loadData2(this.ipagination.current, this.val) |
| | | }, |
| | | |
| | | loadData2(arg, val) { |
| | | if (arg === 1) { |
| | | this.ipagination.current = 1; |
| | | } |
| | | var params = this.getQueryParams(); |
| | | if (val != null) { |
| | | params.precisionParametersTemplateId = val.precisionParametersTemplateId |
| | | } else { |
| | | params.precisionParametersTemplateId = "-1" |
| | | } |
| | | this.loading = true; |
| | | getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | this.dataSource = res.result.records; |
| | | this.ipagination.total = res.result.total; |
| | | } |
| | | this.loading = false; |
| | | }) |
| | | }, |
| | | |
| | | }, |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style lang='less' scoped> |
| | | @import '~@assets/less/common.less'; |
| | | /deep/ .frozenRowClass { |
| | | color: #c9c9c9; |
| | | } |
| | | .success { |
| | | color: green; |
| | | } |
| | | .error { |
| | | color: red; |
| | | } |
| | | .fontweight { |
| | | font-weight: bold; |
| | | } |
| | | .fontweightSuccess { |
| | | color: green; |
| | | font-weight: bold; |
| | | } |
| | | .fontweightfrozen { |
| | | color: #c9c9c9; |
| | | font-weight: bold; |
| | | } |
| | | .ant-card { |
| | | margin-left: -30px; |
| | | margin-right: -30px; |
| | | } |
| | | .fontweightColor { |
| | | font-weight: bold; |
| | | color: red; |
| | | } |
| | | .ant-card { |
| | | margin-left: -30px; |
| | | margin-right: -30px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-modal |
| | | :title="title" |
| | | :width="1250" |
| | | :visible="visible" |
| | | :confirmLoading="confirmLoading" |
| | | :okButtonProps="{ props: {disabled: disableSubmit} }" |
| | | @ok="handleOk" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é" |
| | | > |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form :form="form"> |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | :customRow="clickThenCheck" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange,type:type}" |
| | | > |
| | | |
| | | </a-table> |
| | | |
| | | <a-tabs defaultActiveKey="1"> |
| | | <a-tab-pane key="1"> |
| | | <span slot="tab"> |
| | | <a-badge>ç²¾åº¦åæ° </a-badge> |
| | | </span> |
| | | <div |
| | | class="table-operator" |
| | | style="margin:8px" |
| | | > |
| | | <precision-parameters-detail-list ref="PrecisionParametersDetailList"> </precision-parameters-detail-list> |
| | | </div> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-form> |
| | | </a-spin> |
| | | |
| | | </a-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { postAction, getAction } from '@/api/manage' |
| | | import JDate from '@/components/jeecg/JDate' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import JEllipsis from '@/components/jeecg/JEllipsis'//å¼å
¥è¿é¿è£åª |
| | | import PrecisionParametersDetailList from './PrecisionParametersDetailList' |
| | | import store from '@/store' |
| | | |
| | | export default { |
| | | name: "PrecisionParametersTemplateList", |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | JDate, |
| | | Tooltip, |
| | | JEllipsis, |
| | | PrecisionParametersDetailList, |
| | | }, |
| | | data() { |
| | | return { |
| | | title: "ç²¾åº¦åæ°æ¨¡æ¿", |
| | | visible: false, |
| | | model: {}, |
| | | dataSource: [], |
| | | precisionParametersDataSource: [], |
| | | disableSubmit: false, |
| | | equipmentId: "", |
| | | type: "radio", |
| | | /* å页忰 */ |
| | | ipagination: { |
| | | current: 1, |
| | | pageSize: 5, |
| | | pageSizeOptions: ['5', '10', '20', '30'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + "-" + range[1] + " å
±" + total + "æ¡" |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 6 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 18 }, |
| | | }, |
| | | confirmLoading: false, |
| | | form: this.$form.createForm(this), |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | 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: 'createBy' |
| | | }, |
| | | { |
| | | title: 'åå»ºæ¥æ', |
| | | align: "center", |
| | | dataIndex: 'createTime' |
| | | }, |
| | | { |
| | | title: '夿³¨', |
| | | align: 'center', |
| | | dataIndex: 'remark', |
| | | }, |
| | | ], |
| | | url: { |
| | | add: '/eam/equipmentPrecisionParameters/add', |
| | | list: "/eam/precisionParametersTemplate/list", |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | mounted() { |
| | | this.$bus.$on('precisionParametersDataSource', (data) => { |
| | | this.precisionParametersDataSource = data |
| | | }) |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | searchQuery() { |
| | | this.loadData(1); |
| | | }, |
| | | searchReset() { |
| | | this.loadData(1) |
| | | }, |
| | | list() { |
| | | this.selectedRowKeys = []; |
| | | this.selectedRowRecord = []; |
| | | this.visible = true; |
| | | this.$bus.$emit('refreshChildPage', { precisionParametersTemplateId: "-1" }); |
| | | this.loadData(1); |
| | | }, |
| | | clickThenCheck(record) { |
| | | return { |
| | | on: { |
| | | click: (e) => { |
| | | this.selectedRowRecord = record; |
| | | this.onSelectChange(record.id.split(","), [record]); |
| | | this.$bus.$emit('refreshChildPage', { precisionParametersTemplateId: record.id }); |
| | | } |
| | | } |
| | | }; |
| | | }, |
| | | 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('sendPrecisionParametersTemplateRecord', { record: that.selectedRowRecord }); |
| | | that.close(); |
| | | } else { |
| | | that.$message.error("è¯·éæ©è®¾å¤ç²¾åº¦æ¨¡æ¿ï¼") |
| | | } |
| | | } else { |
| | | that.$message.error("è¯·éæ©è®¾å¤ç²¾åº¦æ¨¡æ¿ï¼") |
| | | } |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.close(); |
| | | }, |
| | | |
| | | // add() { |
| | | // let that = this |
| | | // this.form.resetFields(); |
| | | // this.disableSubmit = false; |
| | | // this.visible = true; |
| | | // this.selectedRowRecord = []; |
| | | // this.selectedRowKeys = []; |
| | | // this.loadData(1); |
| | | // this.$bus.$emit('refreshChildPage', { precisionParametersTemplateId: "-1" }); |
| | | // }, |
| | | |
| | | // close() { |
| | | // this.$emit('close'); |
| | | // this.visible = false; |
| | | // }, |
| | | // handleOk() { |
| | | // const that = this; |
| | | // if (this.precisionParametersDataSource.length == 0) { |
| | | // that.$message.warning("è¯·éæ©åæ°æ¨¡æ¿ï¼"); |
| | | // return |
| | | // } |
| | | // // 触å表åéªè¯ |
| | | // this.form.validateFields((err, values) => { |
| | | // if (!err) { |
| | | // that.confirmLoading = true; |
| | | |
| | | // let formData = Object.assign(this.model, values); |
| | | // formData.equipmentId = this.equipmentId |
| | | // formData.precisionParametersList = this.precisionParametersDataSource |
| | | // postAction(this.url.add, formData).then((res) => { |
| | | // if (res.success) { |
| | | // that.$message.success(res.message); |
| | | // that.$emit('ok'); |
| | | // that.alterFlag = new Date(); |
| | | // } else { |
| | | // that.$message.warning(res.message); |
| | | // } |
| | | // }).finally(() => { |
| | | // that.confirmLoading = false; |
| | | // that.close(); |
| | | // }) |
| | | // } |
| | | // }) |
| | | // }, |
| | | // handleCancel() { |
| | | // this.close() |
| | | // }, |
| | | |
| | | // clickThenCheck(record) { |
| | | // return { |
| | | // on: { |
| | | // click: (e) => { |
| | | // this.selectedRowRecord = record; |
| | | // this.selectedRowKeys = record.id.split(","); |
| | | // this.$bus.$emit('refreshChildPage', { precisionParametersTemplateId: record.id }); |
| | | // } |
| | | // } |
| | | // }; |
| | | // }, |
| | | }, |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .ant-btn { |
| | | padding: 0 10px; |
| | | margin-left: 3px; |
| | | } |
| | | |
| | | .ant-form-item-control { |
| | | line-height: 0px; |
| | | } |
| | | |
| | | .fontweight { |
| | | font-weight: bold; |
| | | } |
| | | |
| | | /** 主表åè¡é´è· */ |
| | | .ant-form .ant-form-item { |
| | | margin-bottom: 10px; |
| | | } |
| | | |
| | | /** Tab页é¢è¡é´è· */ |
| | | .ant-tabs-content .ant-form-item { |
| | | margin-bottom: 0px; |
| | | } |
| | | .ant-table-tbody .ant-table-row td { |
| | | padding-top: 10px; |
| | | padding-bottom: 10px; |
| | | } |
| | | |
| | | .anty-row-operator button { |
| | | margin: 0 5px; |
| | | } |
| | | |
| | | .ant-btn-danger { |
| | | background-color: #ffffff; |
| | | } |
| | | |
| | | .ant-modal-cust-warp { |
| | | height: 100%; |
| | | } |
| | | |
| | | .ant-modal-cust-warp .ant-modal-body { |
| | | height: calc(100% - 110px) !important; |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | .ant-modal-cust-warp .ant-modal-content { |
| | | height: 90% !important; |
| | | overflow-y: hidden; |
| | | } |
| | | |
| | | /deep/ .notshow { |
| | | display: none; |
| | | } |
| | | |
| | | .frozenRowClass { |
| | | color: #c9c9c9; |
| | | } |
| | | .hight { |
| | | color: #f5222d; |
| | | } |
| | | .middle { |
| | | color: #fa8c16; |
| | | } |
| | | .low { |
| | | color: #52c41a; |
| | | } |
| | | .dataUnKnow { |
| | | color: #1890ff; |
| | | } |
| | | |
| | | /deep/ .frozenRowClass { |
| | | color: #c9c9c9; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :pagination="ipagination" |
| | | :dataSource="dataSource" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | > |
| | | <!-- <span |
| | | slot="workCenterName" |
| | | slot-scope="text" |
| | | > |
| | | <j-ellipsis |
| | | :value="text" |
| | | :length="10" |
| | | /> |
| | | </span> --> |
| | | |
| | | </a-table> |
| | | </div> |
| | | |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import JEllipsis from "@/components/jeecg/JEllipsis"; |
| | | import { deleteAction, getAction } from '@/api/manage' |
| | | |
| | | export default { |
| | | name: "ProcessParametersDetailList", |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | JEllipsis, |
| | | }, |
| | | data() { |
| | | return { |
| | | disabled: true, |
| | | description: '设å¤å·¥èºåæ°', |
| | | val: { processParametersTemplateId: -1 }, |
| | | dataSource: [], |
| | | /* å页忰 */ |
| | | ipagination: { |
| | | current: 1, |
| | | pageSize: 5, |
| | | pageSizeOptions: ['5', '10', '20', '30'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + "-" + range[1] + " å
±" + total + "æ¡" |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | align: "center", |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1; |
| | | }, |
| | | width: 50, |
| | | }, |
| | | { |
| | | title: 'å·¥èºåæ°ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'processParametersNum', |
| | | }, |
| | | { |
| | | title: 'å·¥èºåæ°åç§°', |
| | | align: 'center', |
| | | dataIndex: 'processParametersName', |
| | | }, |
| | | { |
| | | title: '计éåä½', |
| | | align: 'center', |
| | | dataIndex: 'unit', |
| | | }, |
| | | { |
| | | title: '夿³¨', |
| | | align: 'center', |
| | | dataIndex: 'remark', |
| | | }, |
| | | ], |
| | | |
| | | url: { |
| | | list: '/eam/processParametersTemplateDetail/listByProcessParametersTemplateId', |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | mounted() { |
| | | this.$bus.$on('refreshChildPage', (data) => { |
| | | this.val = data |
| | | this.loadData2("1", data); |
| | | }) |
| | | }, |
| | | |
| | | watch: { |
| | | dataSource() { |
| | | this.$bus.$emit('processParametersDataSource', this.dataSource); |
| | | }, |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | handleTableChange(pagination, filters, sorter) { |
| | | //å页ãæåºãçéååæ¶è§¦å |
| | | //TODO çé |
| | | if (Object.keys(sorter).length > 0) { |
| | | this.isorter.column = sorter.field; |
| | | this.isorter.order = "ascend" == sorter.order ? "asc" : "desc" |
| | | } |
| | | this.ipagination = pagination; |
| | | this.loadData(); |
| | | }, |
| | | loadData() { |
| | | this.loadData2(this.ipagination.current, this.val) |
| | | }, |
| | | |
| | | loadData2(arg, val) { |
| | | if (arg === 1) { |
| | | this.ipagination.current = 1; |
| | | } |
| | | var params = this.getQueryParams(); |
| | | if (val != null) { |
| | | params.processParametersTemplateId = val.processParametersTemplateId |
| | | } else { |
| | | params.processParametersTemplateId = "-1" |
| | | } |
| | | this.loading = true; |
| | | getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | this.dataSource = res.result.records; |
| | | this.ipagination.total = res.result.total; |
| | | } |
| | | this.loading = false; |
| | | }) |
| | | }, |
| | | |
| | | }, |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style lang='less' scoped> |
| | | @import '~@assets/less/common.less'; |
| | | /deep/ .frozenRowClass { |
| | | color: #c9c9c9; |
| | | } |
| | | .success { |
| | | color: green; |
| | | } |
| | | .error { |
| | | color: red; |
| | | } |
| | | .fontweight { |
| | | font-weight: bold; |
| | | } |
| | | .fontweightSuccess { |
| | | color: green; |
| | | font-weight: bold; |
| | | } |
| | | .fontweightfrozen { |
| | | color: #c9c9c9; |
| | | font-weight: bold; |
| | | } |
| | | .ant-card { |
| | | margin-left: -30px; |
| | | margin-right: -30px; |
| | | } |
| | | .fontweightColor { |
| | | font-weight: bold; |
| | | color: red; |
| | | } |
| | | .ant-card { |
| | | margin-left: -30px; |
| | | margin-right: -30px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-modal |
| | | :title="title" |
| | | :width="1250" |
| | | :visible="visible" |
| | | :confirmLoading="confirmLoading" |
| | | :okButtonProps="{ props: {disabled: disableSubmit} }" |
| | | @ok="handleOk" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é" |
| | | > |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form :form="form"> |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | :customRow="clickThenCheck" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange,type:type}" |
| | | > |
| | | |
| | | </a-table> |
| | | |
| | | <a-tabs defaultActiveKey="1"> |
| | | <a-tab-pane key="1"> |
| | | <span slot="tab"> |
| | | <a-badge>å·¥èºåæ° </a-badge> |
| | | </span> |
| | | <div |
| | | class="table-operator" |
| | | style="margin:8px" |
| | | > |
| | | <process-parameters-detail-list ref="ProcessParametersDetailList"> </process-parameters-detail-list> |
| | | </div> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-form> |
| | | </a-spin> |
| | | |
| | | </a-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { postAction, getAction } from '@/api/manage' |
| | | import JDate from '@/components/jeecg/JDate' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import JEllipsis from '@/components/jeecg/JEllipsis'//å¼å
¥è¿é¿è£åª |
| | | import ProcessParametersDetailList from './ProcessParametersDetailList' |
| | | import store from '@/store' |
| | | |
| | | export default { |
| | | name: "ProcessParametersTemplateList", |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | JDate, |
| | | Tooltip, |
| | | JEllipsis, |
| | | ProcessParametersDetailList, |
| | | }, |
| | | data() { |
| | | return { |
| | | title: "å·¥èºåæ°æ¨¡æ¿", |
| | | visible: false, |
| | | model: {}, |
| | | dataSource: [], |
| | | processParametersDataSource: [], |
| | | disableSubmit: false, |
| | | equipmentId: "", |
| | | type: "radio", |
| | | /* å页忰 */ |
| | | ipagination: { |
| | | current: 1, |
| | | pageSize: 5, |
| | | pageSizeOptions: ['5', '10', '20', '30'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + "-" + range[1] + " å
±" + total + "æ¡" |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 6 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 18 }, |
| | | }, |
| | | confirmLoading: false, |
| | | form: this.$form.createForm(this), |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | 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: 'createBy' |
| | | }, |
| | | { |
| | | title: 'åå»ºæ¥æ', |
| | | align: "center", |
| | | dataIndex: 'createTime' |
| | | }, |
| | | { |
| | | title: '夿³¨', |
| | | align: 'center', |
| | | dataIndex: 'remark', |
| | | }, |
| | | ], |
| | | url: { |
| | | add: '/eam/equipmentProcessParameters/add', |
| | | list: "/eam/processParametersTemplate/list", |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | mounted() { |
| | | this.$bus.$on('processParametersDataSource', (data) => { |
| | | this.processParametersDataSource = data |
| | | }) |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | searchQuery() { |
| | | this.loadData(1); |
| | | }, |
| | | searchReset() { |
| | | this.loadData(1) |
| | | }, |
| | | list() { |
| | | this.selectedRowKeys = []; |
| | | this.selectedRowRecord = []; |
| | | this.visible = true; |
| | | this.$bus.$emit('refreshChildPage', { processParametersTemplateId: "-1" }); |
| | | this.loadData(1); |
| | | }, |
| | | clickThenCheck(record) { |
| | | return { |
| | | on: { |
| | | click: (e) => { |
| | | this.selectedRowRecord = record; |
| | | this.onSelectChange(record.id.split(","), [record]); |
| | | // this.selectedRowRecord = record; |
| | | // this.selectedRowKeys = record.id.split(","); |
| | | this.$bus.$emit('refreshChildPage', { processParametersTemplateId: record.id }); |
| | | } |
| | | } |
| | | }; |
| | | }, |
| | | 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('sendProcessParametersTemplateRecord', { record: that.selectedRowRecord }); |
| | | that.close(); |
| | | } else { |
| | | that.$message.error("è¯·éæ©å·¥èºåæ°æ¨¡æ¿ï¼") |
| | | } |
| | | } else { |
| | | that.$message.error("è¯·éæ©å·¥èºåæ°æ¨¡æ¿ï¼") |
| | | } |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.close(); |
| | | }, |
| | | |
| | | |
| | | // add() { |
| | | // let that = this |
| | | // this.form.resetFields(); |
| | | // this.disableSubmit = false; |
| | | // this.visible = true; |
| | | // this.selectedRowRecord = []; |
| | | // this.selectedRowKeys = []; |
| | | // this.loadData(1); |
| | | // this.$bus.$emit('refreshChildPage', { processParametersTemplateId: "-1" }); |
| | | // }, |
| | | |
| | | // close() { |
| | | // this.$emit('close'); |
| | | // this.visible = false; |
| | | // }, |
| | | // handleOk() { |
| | | // const that = this; |
| | | // if (this.processParametersDataSource.length == 0) { |
| | | // that.$message.warning("è¯·éæ©åæ°æ¨¡æ¿ï¼"); |
| | | // return |
| | | // } |
| | | // // 触å表åéªè¯ |
| | | // this.form.validateFields((err, values) => { |
| | | // if (!err) { |
| | | // that.confirmLoading = true; |
| | | |
| | | // let formData = Object.assign(this.model, values); |
| | | // formData.equipmentId = this.equipmentId |
| | | // formData.processParametersList = this.processParametersDataSource |
| | | // postAction(this.url.add, formData).then((res) => { |
| | | // if (res.success) { |
| | | // that.$message.success(res.message); |
| | | // that.$emit('ok'); |
| | | // that.alterFlag = new Date(); |
| | | // } else { |
| | | // that.$message.warning(res.message); |
| | | // } |
| | | // }).finally(() => { |
| | | // that.confirmLoading = false; |
| | | // that.close(); |
| | | // }) |
| | | // } |
| | | // }) |
| | | // }, |
| | | |
| | | // clickThenCheck(record) { |
| | | // return { |
| | | // on: { |
| | | // click: (e) => { |
| | | // this.selectedRowRecord = record; |
| | | // this.selectedRowKeys = record.id.split(","); |
| | | // this.$bus.$emit('refreshChildPage', { processParametersTemplateId: record.id }); |
| | | // } |
| | | // } |
| | | // }; |
| | | // }, |
| | | }, |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .ant-btn { |
| | | padding: 0 10px; |
| | | margin-left: 3px; |
| | | } |
| | | |
| | | .ant-form-item-control { |
| | | line-height: 0px; |
| | | } |
| | | |
| | | .fontweight { |
| | | font-weight: bold; |
| | | } |
| | | |
| | | /** 主表åè¡é´è· */ |
| | | .ant-form .ant-form-item { |
| | | margin-bottom: 10px; |
| | | } |
| | | |
| | | /** Tab页é¢è¡é´è· */ |
| | | .ant-tabs-content .ant-form-item { |
| | | margin-bottom: 0px; |
| | | } |
| | | .ant-table-tbody .ant-table-row td { |
| | | padding-top: 10px; |
| | | padding-bottom: 10px; |
| | | } |
| | | |
| | | .anty-row-operator button { |
| | | margin: 0 5px; |
| | | } |
| | | |
| | | .ant-btn-danger { |
| | | background-color: #ffffff; |
| | | } |
| | | |
| | | .ant-modal-cust-warp { |
| | | height: 100%; |
| | | } |
| | | |
| | | .ant-modal-cust-warp .ant-modal-body { |
| | | height: calc(100% - 110px) !important; |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | .ant-modal-cust-warp .ant-modal-content { |
| | | height: 90% !important; |
| | | overflow-y: hidden; |
| | | } |
| | | |
| | | /deep/ .notshow { |
| | | display: none; |
| | | } |
| | | |
| | | .frozenRowClass { |
| | | color: #c9c9c9; |
| | | } |
| | | .hight { |
| | | color: #f5222d; |
| | | } |
| | | .middle { |
| | | color: #fa8c16; |
| | | } |
| | | .low { |
| | | color: #52c41a; |
| | | } |
| | | .dataUnKnow { |
| | | color: #1890ff; |
| | | } |
| | | |
| | | /deep/ .frozenRowClass { |
| | | color: #c9c9c9; |
| | | } |
| | | </style> |