¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col |
| | | :xl='6' |
| | | :lg='7' |
| | | :md='8' |
| | | :sm='24' |
| | | > |
| | | <a-form-item label='åæ®å·'> |
| | | <j-input |
| | | placeholder='忮巿£ç´¢' |
| | | v-model='queryParam.num' |
| | | ></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :xl='6' |
| | | :lg='7' |
| | | :md='8' |
| | | :sm='24' |
| | | > |
| | | <a-form-item label='æ¯å¦å·²ç¡®è®¤ç»æ'> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="" |
| | | :triggerChange="true" |
| | | dictCode="is_product" |
| | | v-model='queryParam.isConfirm' |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button |
| | | type='primary' |
| | | @click='searchQuery' |
| | | icon='search' |
| | | >æ¥è¯¢</a-button> |
| | | <a-button |
| | | type='primary' |
| | | @click='searchReset' |
| | | icon='reload' |
| | | style='margin-left: 8px' |
| | | >éç½®</a-button> |
| | | <!-- <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</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-button type="primary" icon="import">导å
¥</a-button> |
| | | </a-upload> --> |
| | | <!-- é«çº§æ¥è¯¢åºå --> |
| | | <!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
| | | <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> |
| | | <a-button style="margin-left: 8px"> æ¹éæä½ <a-icon type="down" /></a-button> |
| | | </a-dropdown> --> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> |
| | | <i class="anticon anticon-info-circle ant-alert-icon"></i> 已鿩 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
| | | <a style="margin-left: 24px" @click="onClearSelected">æ¸
空</a> |
| | | </div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange"> |
| | | |
| | | <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)" v-if="record.isConfirm!=='yes'">å½å
¥</a> |
| | | |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | <a-divider type="vertical" /> |
| | | <a-popconfirm |
| | | title="ç¡®è®¤ç»æåä¸å¯åå½å
¥ï¼ç¡®è®¤å?" |
| | | @confirm="() => handleConfirm(record)" |
| | | > |
| | | <a v-if="record.isConfirm!=='yes'">确认</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | |
| | | <fault-info-modal ref="modalForm" @ok="modalFormOk"></fault-info-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import FaultInfoModal from './modules/FaultInfoModal' |
| | | import { putAction } from '../../api/manage' |
| | | |
| | | export default { |
| | | name: 'FaultInfoList', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | FaultInfoModal |
| | | }, |
| | | data () { |
| | | return { |
| | | description: '设å¤äºæ
ç»è®°ç®¡ç页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title:'åæ®å·', |
| | | align:"center", |
| | | dataIndex: 'num' |
| | | }, |
| | | { |
| | | title:'è´¨ééæ£ç¡®è®¤å', |
| | | align:"center", |
| | | dataIndex: 'quanlityId_dictText' |
| | | }, |
| | | { |
| | | title:'ç产åä½', |
| | | align:"center", |
| | | dataIndex: 'departId' |
| | | }, |
| | | { |
| | | title:'设å¤åç§°', |
| | | align:"center", |
| | | dataIndex: 'equipName' |
| | | }, |
| | | { |
| | | title:'设å¤åå·', |
| | | align:"center", |
| | | dataIndex: 'equipModel' |
| | | }, |
| | | { |
| | | title:'ç»ä¸ç¼å·', |
| | | align:"center", |
| | | dataIndex: 'equipNum' |
| | | }, |
| | | { |
| | | title:'å·¥åº', |
| | | align:"center", |
| | | dataIndex: 'area1' |
| | | }, |
| | | { |
| | | title:'åå
/工段', |
| | | align:"center", |
| | | dataIndex: 'area2' |
| | | }, |
| | | { |
| | | title:'维修费ç¨', |
| | | align:"center", |
| | | dataIndex: 'cost' |
| | | }, |
| | | { |
| | | title:'æä½è
', |
| | | align:"center", |
| | | dataIndex: 'operator_dictText' |
| | | }, |
| | | { |
| | | title:'åºçå¹´æ', |
| | | align:"center", |
| | | dataIndex: 'birthday' |
| | | }, |
| | | { |
| | | title:'工使¶é´', |
| | | align:"center", |
| | | dataIndex: 'workStartTime' |
| | | }, |
| | | // { |
| | | // title:'æä½åæ¯å¦ææä½è¯', |
| | | // align:"center", |
| | | // dataIndex: 'isCertificate' |
| | | // }, |
| | | // { |
| | | // title:'æ¯å¦æçµéå¯', |
| | | // align:"center", |
| | | // dataIndex: 'isOutage' |
| | | // }, |
| | | // { |
| | | // title:'å å·¥è¿ç¨ä¸çåå¨å ç´ ', |
| | | // align:"center", |
| | | // dataIndex: 'factor' |
| | | // }, |
| | | // { |
| | | // title:'å
·ä½æ´æ¹å
容', |
| | | // align:"center", |
| | | // dataIndex: 'modifyContent' |
| | | // }, |
| | | // { |
| | | // title:'åçäºæ
æ¶è®¾å¤ææ§è¡çç¨åº', |
| | | // align:"center", |
| | | // dataIndex: 'equipmentProcess' |
| | | // }, |
| | | // { |
| | | // title:'åçäºæ
æ¶çç°è±¡', |
| | | // align:"center", |
| | | // dataIndex: 'phenomenon' |
| | | // }, |
| | | // { |
| | | // title:'éåæªæ½1', |
| | | // align:"center", |
| | | // dataIndex: 'method1' |
| | | // }, |
| | | // { |
| | | // title:'éåæªæ½2', |
| | | // align:"center", |
| | | // dataIndex: 'method2' |
| | | // }, |
| | | // { |
| | | // title:'éåæªæ½3', |
| | | // align:"center", |
| | | // dataIndex: 'method3' |
| | | // }, |
| | | // { |
| | | // title:'äºæ
æé æçç»æ', |
| | | // align:"center", |
| | | // dataIndex: 'result' |
| | | // }, |
| | | // { |
| | | // title:'å¼å§æ£æ¥æ¶é´', |
| | | // align:"center", |
| | | // dataIndex: 'startCheckTime', |
| | | // customRender:function (text) { |
| | | // return !text?"":(text.length>10?text.substr(0,10):text) |
| | | // } |
| | | // }, |
| | | // { |
| | | // title:'åçäºæ
å设å¤çç¶æ', |
| | | // align:"center", |
| | | // dataIndex: 'equipmentStatus' |
| | | // }, |
| | | // { |
| | | // title:'维修人åå¯¹äºæ
çåæ', |
| | | // align:"center", |
| | | // dataIndex: 'anlysis' |
| | | // }, |
| | | // { |
| | | // title:'ç»´ä¿®äººåæ£æ¥ç»æ', |
| | | // align:"center", |
| | | // dataIndex: 'checkResult' |
| | | // }, |
| | | // { |
| | | // title:'äºæ
åå åæè¿ç¨ä¸æéåçç¸å
³è¡ä¸º', |
| | | // align:"center", |
| | | // dataIndex: 'active' |
| | | // }, |
| | | // { |
| | | // title:'建议éåçæªæ½åæ¶é´èç¹', |
| | | // align:"center", |
| | | // dataIndex: 'suggest' |
| | | // }, |
| | | // { |
| | | // title:'äºæ
åçåå åæçæ ¸å¯¹', |
| | | // align:"center", |
| | | // dataIndex: 'judgment' |
| | | // }, |
| | | // { |
| | | // title:'ä¸åçæè§ååæ', |
| | | // align:"center", |
| | | // dataIndex: 'differentJudgment' |
| | | // }, |
| | | // { |
| | | // title:'æ´æ¹æªæ½', |
| | | // align:"center", |
| | | // dataIndex: 'updateMethod' |
| | | // }, |
| | | // { |
| | | // title:'äºæ
ç»è®º', |
| | | // align:"center", |
| | | // dataIndex: 'finalResult' |
| | | // }, |
| | | // { |
| | | // title:'维修责任人', |
| | | // align:"center", |
| | | // dataIndex: 'engineer' |
| | | // }, |
| | | // { |
| | | // title:'ææ¯è´è´£äºº', |
| | | // align:"center", |
| | | // dataIndex: 'mechanic' |
| | | // }, |
| | | // { |
| | | // title:'å·¥é¿', |
| | | // align:"center", |
| | | // dataIndex: 'workLeader' |
| | | // }, |
| | | // { |
| | | // title:'ä¸å¿ä¸»ä»»', |
| | | // align:"center", |
| | | // dataIndex: 'centerLeader' |
| | | // }, |
| | | // { |
| | | // title:'ç»é¿', |
| | | // align:"center", |
| | | // dataIndex: 'teamLeader' |
| | | // }, |
| | | // { |
| | | // title:'ç»´ä¿®ç«ç«é¿', |
| | | // align:"center", |
| | | // dataIndex: 'repairLeader' |
| | | // }, |
| | | // { |
| | | // title:'管ç室ä¸å¡ç»ç', |
| | | // align:"center", |
| | | // dataIndex: 'equipLeader' |
| | | // }, |
| | | // { |
| | | // title:'è¿è¡ä¿éé¨ä¸»ç®¡é¢å¯¼', |
| | | // align:"center", |
| | | // dataIndex: 'guaranteeLeader' |
| | | // }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | fixed:"right", |
| | | width:147, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/li/faultInfo/list", |
| | | delete: "/li/faultInfo/delete", |
| | | deleteBatch: "/li/faultInfo/deleteBatch", |
| | | exportXlsUrl: "/li/faultInfo/exportXls", |
| | | importExcelUrl: "li/faultInfo/importExcel", |
| | | confirm: "li/faultInfo/confirm" |
| | | |
| | | }, |
| | | dictOptions:{}, |
| | | superFieldList:[], |
| | | } |
| | | }, |
| | | created() { |
| | | this.getSuperFieldList(); |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | }, |
| | | }, |
| | | methods: { |
| | | initDictConfig(){ |
| | | }, |
| | | getSuperFieldList(){ |
| | | let fieldList=[]; |
| | | fieldList.push({type:'string',value:'num',text:'ç¼ç '}) |
| | | fieldList.push({type:'string',value:'qId',text:'è´¨ééæ£ç¡®è®¤åID'}) |
| | | fieldList.push({type:'string',value:'cost',text:'维修费ç¨'}) |
| | | fieldList.push({type:'string',value:'isCertificate',text:'æä½åæ¯å¦ææä½è¯'}) |
| | | fieldList.push({type:'string',value:'isOutage',text:'æ¯å¦æçµéå¯'}) |
| | | fieldList.push({type:'string',value:'factor',text:'å å·¥è¿ç¨ä¸çåå¨å ç´ '}) |
| | | fieldList.push({type:'string',value:'modifyContent',text:'å
·ä½æ´æ¹å
容'}) |
| | | fieldList.push({type:'string',value:'equipmentProcess',text:'åçäºæ
æ¶è®¾å¤ææ§è¡çç¨åº'}) |
| | | fieldList.push({type:'string',value:'phenomenon',text:'åçäºæ
æ¶çç°è±¡'}) |
| | | fieldList.push({type:'string',value:'method1',text:'éåæªæ½1'}) |
| | | fieldList.push({type:'string',value:'method2',text:'éåæªæ½2'}) |
| | | fieldList.push({type:'string',value:'method3',text:'éåæªæ½3'}) |
| | | fieldList.push({type:'string',value:'result',text:'äºæ
æé æçç»æ'}) |
| | | fieldList.push({type:'date',value:'startCheckTime',text:'å¼å§æ£æ¥æ¶é´'}) |
| | | fieldList.push({type:'string',value:'equipmentStatus',text:'åçäºæ
å设å¤çç¶æ'}) |
| | | fieldList.push({type:'string',value:'anlysis',text:'维修人åå¯¹äºæ
çåæ'}) |
| | | fieldList.push({type:'string',value:'checkResult',text:'ç»´ä¿®äººåæ£æ¥ç»æ'}) |
| | | fieldList.push({type:'string',value:'active',text:'äºæ
åå åæè¿ç¨ä¸æéåçç¸å
³è¡ä¸º'}) |
| | | fieldList.push({type:'string',value:'suggest',text:'建议éåçæªæ½åæ¶é´èç¹'}) |
| | | fieldList.push({type:'string',value:'judgment',text:'äºæ
åçåå åæçæ ¸å¯¹'}) |
| | | fieldList.push({type:'string',value:'differentJudgment',text:'ä¸åçæè§ååæ'}) |
| | | fieldList.push({type:'string',value:'updateMethod',text:'æ´æ¹æªæ½'}) |
| | | fieldList.push({type:'string',value:'finalResult',text:'äºæ
ç»è®º'}) |
| | | fieldList.push({type:'string',value:'operater',text:'æä½è
'}) |
| | | fieldList.push({type:'string',value:'engineer',text:'维修责任人'}) |
| | | fieldList.push({type:'string',value:'mechanic',text:'ææ¯è´è´£äºº'}) |
| | | fieldList.push({type:'string',value:'workLeader',text:'å·¥é¿'}) |
| | | fieldList.push({type:'string',value:'centerLeader',text:'ä¸å¿ä¸»ä»»'}) |
| | | fieldList.push({type:'string',value:'teamLeader',text:'ç»é¿'}) |
| | | fieldList.push({type:'string',value:'repairLeader',text:'ç»´ä¿®ç«ç«é¿'}) |
| | | fieldList.push({type:'string',value:'equipLeader',text:'管ç室ä¸å¡ç»ç'}) |
| | | fieldList.push({type:'string',value:'guaranteeLeader',text:'è¿è¡ä¿éé¨ä¸»ç®¡é¢å¯¼'}) |
| | | this.superFieldList = fieldList |
| | | }, |
| | | handleConfirm(record) { |
| | | putAction(this.url.confirm, record).then(res => { |
| | | if (res.result) { |
| | | this.$message.success('确认æå'); |
| | | this.loadData(); |
| | | } else { |
| | | this.$message.error('确认åºç°å¼å¸¸') |
| | | } |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
| | |
| | | dataIndex: 'isStopName', |
| | | }, |
| | | { |
| | | title: 'æ¯å¦å¨å å·¥é¶ä»¶', |
| | | align: "center", |
| | | dataIndex: 'errUda1_dictText', |
| | | }, |
| | | { |
| | | title: 'å建人', |
| | | align: "center", |
| | | dataIndex: 'createBy' |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col |
| | | :xl='6' |
| | | :lg='7' |
| | | :md='8' |
| | | :sm='24' |
| | | > |
| | | <a-form-item label='åæ®å·'> |
| | | <j-input |
| | | placeholder='忮巿£ç´¢' |
| | | v-model='queryParam.num' |
| | | ></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :xl='6' |
| | | :lg='7' |
| | | :md='8' |
| | | :sm='24' |
| | | > |
| | | <a-form-item label='ä¿éä¿ä¿®å'> |
| | | <j-input |
| | | placeholder='æ
éæ¥ä¿®åæ£ç´¢' |
| | | v-model='queryParam.reportNum' |
| | | ></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :xl='6' |
| | | :lg='7' |
| | | :md='8' |
| | | :sm='24' |
| | | > |
| | | <a-form-item label='ç»ä¸ç¼å·'> |
| | | <j-input |
| | | placeholder='ç»ä¸ç¼å·æ£ç´¢' |
| | | v-model='queryParam.equipmentNum' |
| | | ></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button |
| | | type='primary' |
| | | @click='searchQuery' |
| | | icon='search' |
| | | >æ¥è¯¢</a-button> |
| | | <a-button |
| | | type='primary' |
| | | @click='searchReset' |
| | | icon='reload' |
| | | style='margin-left: 8px' |
| | | >éç½®</a-button> |
| | | <!-- <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</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-button type="primary" icon="import">导å
¥</a-button> |
| | | </a-upload> --> |
| | | <!-- é«çº§æ¥è¯¢åºå --> |
| | | <!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
| | | <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> |
| | | <a-button style="margin-left: 8px"> æ¹éæä½ <a-icon type="down" /></a-button> |
| | | </a-dropdown> --> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> |
| | | <i class="anticon anticon-info-circle ant-alert-icon"></i> 已鿩 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
| | | <a style="margin-left: 24px" @click="onClearSelected">æ¸
空</a> |
| | | </div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange"> |
| | | |
| | | <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)" :disabled="record.isConfirm==='yes'">确认</a> |
| | | |
| | | <!-- <a-divider type="vertical" /> |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">æ´å¤ <a-icon type="down" /></a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a-popconfirm title="ç¡®å®å é¤å?" @confirm="() => handleDelete(record.id)"> |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> --> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | |
| | | <quanlity-confirm-modal ref="modalForm" @ok="modalFormOk"></quanlity-confirm-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import QuanlityConfirmModal from './modules/QuanlityConfirmModal' |
| | | |
| | | export default { |
| | | name: 'QuanlityConfirmList', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | QuanlityConfirmModal |
| | | }, |
| | | data () { |
| | | return { |
| | | description: '产åè´¨ééæ£ç¡®è®¤ç®¡ç页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title:'åæ®å·', |
| | | align:"center", |
| | | dataIndex: 'num', |
| | | width:200 |
| | | }, |
| | | { |
| | | title:'æ
éæ¥ä¿®å', |
| | | align:"center", |
| | | dataIndex: 'reportNum', |
| | | width:200 |
| | | }, |
| | | { |
| | | title:'设å¤åç§°', |
| | | align:"center", |
| | | dataIndex: 'equipmentName', |
| | | width:200 |
| | | }, |
| | | { |
| | | title:'设å¤åå·', |
| | | align:"center", |
| | | dataIndex: 'equipmentModel', |
| | | width:200 |
| | | }, |
| | | { |
| | | title:'ç»ä¸ç¼å·', |
| | | align:"center", |
| | | dataIndex: 'equipmentNum', |
| | | width:200 |
| | | }, |
| | | { |
| | | title:'å å·¥é¶ä»¶å·', |
| | | align:"center", |
| | | dataIndex: 'partNumber', |
| | | width:200 |
| | | }, |
| | | { |
| | | title:'æ¹æ¬¡å·', |
| | | align:"center", |
| | | dataIndex: 'batchNo', |
| | | width:200 |
| | | }, |
| | | { |
| | | title:'ä»¶æ°', |
| | | align:"center", |
| | | dataIndex: 'quantity', |
| | | width:100 |
| | | }, |
| | | { |
| | | title:'æä½å', |
| | | align:"center", |
| | | dataIndex: 'operator_dictText', |
| | | width:100 |
| | | }, |
| | | { |
| | | title:'æ¯å¦å·²ç¡®è®¤', |
| | | align:"center", |
| | | dataIndex: 'isConfirm_dictText' |
| | | , |
| | | width:100 |
| | | }, |
| | | { |
| | | title:'确认é¢å¯¼', |
| | | align:"center", |
| | | dataIndex: 'leader_dictText' |
| | | , |
| | | width:100 |
| | | }, |
| | | { |
| | | title:'é¢å¯¼ç¡®è®¤æ¶é´', |
| | | align:"center", |
| | | dataIndex: 'confirmTime', |
| | | customRender:function (text) { |
| | | return !text?"":(text.length>10?text.substr(0,10):text) |
| | | }, |
| | | width:200 |
| | | }, |
| | | { |
| | | title:'产åæå¤±æ
åµ', |
| | | align:"center", |
| | | dataIndex: 'condition', |
| | | width:100 |
| | | }, |
| | | { |
| | | title:'æå¤±æ
åµåæ', |
| | | align:"center", |
| | | dataIndex: 'conditionAnalysis', |
| | | width:200 |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | fixed:"right", |
| | | width:147, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/li/quanlityConfirm/list", |
| | | delete: "/li/quanlityConfirm/delete", |
| | | deleteBatch: "/li/quanlityConfirm/deleteBatch", |
| | | exportXlsUrl: "/li/quanlityConfirm/exportXls", |
| | | importExcelUrl: "li/quanlityConfirm/importExcel", |
| | | |
| | | }, |
| | | dictOptions:{}, |
| | | superFieldList:[], |
| | | } |
| | | }, |
| | | created() { |
| | | this.getSuperFieldList(); |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | }, |
| | | }, |
| | | methods: { |
| | | initDictConfig(){ |
| | | }, |
| | | getSuperFieldList(){ |
| | | let fieldList=[]; |
| | | fieldList.push({type:'string',value:'reportId',text:'æ
éæ¥ä¿®åID'}) |
| | | fieldList.push({type:'string',value:'condition',text:'产åæå¤±æ
åµ'}) |
| | | fieldList.push({type:'string',value:'conditionAnalysis',text:'æå¤±æ
åµåæ'}) |
| | | fieldList.push({type:'string',value:'partNumber',text:'é¶ä»¶å·'}) |
| | | fieldList.push({type:'string',value:'batchNo',text:'æ¹æ¬¡å·'}) |
| | | fieldList.push({type:'int',value:'qunatity',text:'ä»¶æ°'}) |
| | | fieldList.push({type:'string',value:'leader',text:'确认é¢å¯¼'}) |
| | | fieldList.push({type:'date',value:'confirmTime',text:'é¢å¯¼ç¡®è®¤æ¶é´'}) |
| | | fieldList.push({type:'string',value:'isConfirm',text:'æ¯å¦å·²ç¡®è®¤'}) |
| | | this.superFieldList = fieldList |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-spin :spinning="confirmLoading"> |
| | | <j-form-container :disabled="formDisabled"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail"> |
| | | <a-row> |
| | | <a-divider |
| | | orientation="center" |
| | | style="font-size: large;font-style: italic;color: #66aeed;" |
| | | > 表头 </a-divider> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="ç产åä½" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="num"> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="ç产åä½" |
| | | :triggerChange="true" |
| | | dictCode="sys_depart,depart_name,id,del_flag='0'" |
| | | v-model="model.departId" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="å·¥åº" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="area1"> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="å·¥åº" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_area,name,id,del_flag='0'" |
| | | v-model="model.area1" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="æä½è
" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="operater"> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="请è¾å
¥æä½è
" |
| | | :triggerChange="true" |
| | | dictCode="sys_user,realname,id,del_flag='0'" |
| | | v-model="model.operater" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="设å¤åç§°" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="eName"> |
| | | <a-input v-model="model.equipName" placeholder="设å¤åç§°" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="åå
/工段" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="area2"> |
| | | <a-input v-model="model.area2" placeholder="åå
/工段" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="åºçå¹´æ" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="birthday"> |
| | | <j-date placeholder="åºçå¹´æ" v-model="model.birthday" style="width: 100%" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="设å¤åå·" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="eModel"> |
| | | <a-input v-model="model.equipModel" placeholder="请è¾å
¥è®¾å¤åå·" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="äºæ
åçæ¶é´" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="faultTime"> |
| | | <j-date placeholder="请è¾å
¥äºæ
åçæ¶é´" v-model="model.faultTime" style="width: 100%" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="ææ¯ç级" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="level"> |
| | | <a-input v-model="model.level" placeholder="请è¾å
¥ææ¯ç级" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="ç»ä¸ç¼å·" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="eNum"> |
| | | <a-input v-model="model.equipNum" placeholder="请è¾å
¥ç»ä¸ç¼å·" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="维修费ç¨" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="cost"> |
| | | <a-input v-model="model.cost" placeholder="请è¾å
¥ç»´ä¿®è´¹ç¨" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="工使¶é´" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="workStartTime"> |
| | | <j-date placeholder="请è¾å
¥å·¥ä½æ¶é´" v-model="model.workStartTime" style="width: 100%" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-divider |
| | | orientation="center" |
| | | style="font-size: large;font-style: italic;color: #66aeed;" |
| | | > æä½è
å¡«åäºæ
åçç»è¿ </a-divider> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="æä½åæ¯å¦ææä½è¯" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="isCertificate"> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="请è¾å
¥æä½åæ¯å¦ææä½è¯" |
| | | :triggerChange="true" |
| | | dictCode="is_product" |
| | | v-model="model.isCertificate" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="äºæ
åç忝妿çµéå¯" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="isOutage"> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="请è¾å
¥æ¯å¦æçµéå¯" |
| | | :triggerChange="true" |
| | | dictCode="is_product" |
| | | v-model="model.isOutage" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="å å·¥è¿ç¨ä¸çåå¨å ç´ " :labelCol="labelCol" :wrapperCol="wrapperCol" prop="factor"> |
| | | <j-multi-select-tag |
| | | allow-clear |
| | | placeholder="请è¾å
¥å å·¥è¿ç¨ä¸çåå¨å ç´ " |
| | | dictCode="fault_change_factor" |
| | | v-model="model.factor" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="å
·ä½æ´æ¹å
容" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="modifyContent"> |
| | | <a-textarea v-model="model.modifyContent" rows="4" placeholder="请è¾å
¥å
·ä½æ´æ¹å
容" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="åçäºæ
æ¶è®¾å¤ææ§è¡çç¨åº" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="equipmentProcess"> |
| | | <a-textarea v-model="model.equipmentProcess" rows="4" placeholder="请è¾å
¥åçäºæ
æ¶è®¾å¤ææ§è¡çç¨åº" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="åçäºæ
æ¶çç°è±¡" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="phenomenon"> |
| | | <a-textarea v-model="model.phenomenon" rows="4" placeholder="请è¾å
¥åçäºæ
æ¶çç°è±¡" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="éåæªæ½1" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="method1"> |
| | | <a-textarea v-model="model.method1" rows="4" placeholder="请è¾å
¥éåæªæ½1" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="éåæªæ½2" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="method2"> |
| | | <a-textarea v-model="model.method2" rows="4" placeholder="请è¾å
¥éåæªæ½2" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="éåæªæ½3" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="method3"> |
| | | <a-textarea v-model="model.method3" rows="4" placeholder="请è¾å
¥éåæªæ½3" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="äºæ
æé æçç»æ" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="result"> |
| | | <a-input v-model="model.result" placeholder="请è¾å
¥äºæ
æé æçç»æ" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="å·¥é¿" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="workLeader"> |
| | | <a-input v-model="model.workLeader" placeholder="请è¾å
¥å·¥é¿" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="ä¸å¿ä¸»ä»»" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="centerLeader"> |
| | | <a-input v-model="model.centerLeader" placeholder="请è¾å
¥ä¸å¿ä¸»ä»»" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-divider |
| | | orientation="center" |
| | | style="font-size: large;font-style: italic;color: #66aeed;" |
| | | > 维修人åè¿è¡äºæ
åæ </a-divider> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="å¼å§æ£æ¥æ¶é´" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="startCheckTime"> |
| | | <j-date placeholder="è¯·éæ©å¼å§æ£æ¥æ¶é´" v-model="model.startCheckTime" style="width: 100%" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="åçäºæ
å设å¤çç¶æ" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="equipmentStatus"> |
| | | <a-input v-model="model.equipmentStatus" placeholder="请è¾å
¥åçäºæ
å设å¤çç¶æ" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="维修人åå¯¹äºæ
çåæ" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="anlysis"> |
| | | <a-textarea v-model="model.anlysis" rows="4" placeholder="请è¾å
¥ç»´ä¿®äººåå¯¹äºæ
çåæ" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="ç»´ä¿®äººåæ£æ¥ç»æ" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="checkResult"> |
| | | <a-textarea v-model="model.checkResult" rows="4" placeholder="请è¾å
¥ç»´ä¿®äººåæ£æ¥ç»æ" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="äºæ
åå åæè¿ç¨ä¸æéåçç¸å
³è¡ä¸º" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="active"> |
| | | <a-textarea v-model="model.active" rows="4" placeholder="请è¾å
¥äºæ
åå åæè¿ç¨ä¸æéåçç¸å
³è¡ä¸º" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="建议éåçæªæ½åæ¶é´èç¹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="suggest"> |
| | | <a-textarea v-model="model.suggest" rows="4" placeholder="请è¾å
¥å»ºè®®éåçæªæ½åæ¶é´èç¹" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="维修责任人" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="engineer"> |
| | | <a-input v-model="model.engineer" placeholder="请è¾å
¥ç»´ä¿®è´£ä»»äºº" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="ç»é¿" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="teamLeader"> |
| | | <a-input v-model="model.teamLeader" placeholder="请è¾å
¥ç»é¿" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="ç»´ä¿®ç«ç«é¿" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="repairLeader"> |
| | | <a-input v-model="model.repairLeader" placeholder="请è¾å
¥ç»´ä¿®ç«ç«é¿" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-divider |
| | | orientation="center" |
| | | style="font-size: large;font-style: italic;color: #66aeed;" |
| | | > è®¾å¤ææ¯ä¸å®¶æè§ </a-divider> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="äºæ
åçåå åæçæ ¸å¯¹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="judgment"> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="请è¾å
¥äºæ
åçåå åæçæ ¸å¯¹" |
| | | :triggerChange="true" |
| | | dictCode="opinion" |
| | | v-model="model.judgment" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="ä¸åçæè§ååæ" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="differentJudgment"> |
| | | <a-textarea v-model="model.differentJudgment" rows="4" placeholder="请è¾å
¥ä¸åçæè§ååæ" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="æ´æ¹æªæ½" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="updateMethod"> |
| | | <a-textarea v-model="model.updateMethod" rows="4" placeholder="请è¾å
¥æ´æ¹æªæ½" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="äºæ
ç»è®º" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="finalResult"> |
| | | <a-textarea v-model="model.finalResult" rows="4" placeholder="请è¾å
¥äºæ
ç»è®º" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="ææ¯è´è´£äºº" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mechanic"> |
| | | <a-input v-model="model.mechanic" placeholder="请è¾å
¥ææ¯è´è´£äºº" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="管ç室ä¸å¡ç»ç" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="equipLeader"> |
| | | <a-input v-model="model.equipLeader" placeholder="请è¾å
¥ç®¡ç室ä¸å¡ç»ç" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="è¿è¡ä¿éé¨ä¸»ç®¡é¢å¯¼" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="guaranteeLeader"> |
| | | <a-input v-model="model.guaranteeLeader" placeholder="请è¾å
¥è¿è¡ä¿éé¨ä¸»ç®¡é¢å¯¼" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </j-form-container> |
| | | </a-spin> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { httpAction, getAction } from '@/api/manage' |
| | | import { validateDuplicateValue } from '@/utils/util' |
| | | |
| | | export default { |
| | | name: 'FaultInfoForm', |
| | | components: { |
| | | }, |
| | | props: { |
| | | //表åç¦ç¨ |
| | | disabled: { |
| | | type: Boolean, |
| | | default: false, |
| | | required: false |
| | | } |
| | | }, |
| | | data () { |
| | | return { |
| | | model:{ |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 10 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 14 }, |
| | | }, |
| | | confirmLoading: false, |
| | | validatorRules: { |
| | | num:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | area1:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | operater:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | eName:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | area2:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | birthday:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | eModel:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | faultTime:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | level:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | eNum:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | cost:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | workStartTime:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | isCertificate:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | isOutage:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | factor:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | modifyContent:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | equipmentProcess:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | phenomenon:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | method1:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | method2:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | method3:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | result:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | workLeader:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | centerLeader:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | startCheckTime:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | equipmentStatus:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | anlysis:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | checkResult:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | active:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | suggest:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | engineer:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | teamLeader:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | repairLeader:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | differentJudgment:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | updateMethod:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | finalResult:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | mechanic:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | equipLeader:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | guaranteeLeader:[ |
| | | { required: true, message: 'å¿
å¡«!' }, |
| | | ], |
| | | }, |
| | | url: { |
| | | add: "/li/faultInfo/add", |
| | | edit: "/li/faultInfo/edit", |
| | | queryById: "/li/faultInfo/queryById" |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | formDisabled(){ |
| | | return this.disabled |
| | | }, |
| | | }, |
| | | 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; |
| | | }, |
| | | submitForm () { |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true; |
| | | let httpurl = ''; |
| | | let method = ''; |
| | | if(!this.model.id){ |
| | | httpurl+=this.url.add; |
| | | method = 'post'; |
| | | }else{ |
| | | httpurl+=this.url.edit; |
| | | 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; |
| | | }) |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="'设å¤äºæ
ç»è®°è¡¨'" |
| | | :width="width" |
| | | :visible="visible" |
| | | switchFullscreen |
| | | :fullscreen="true" |
| | | @ok="handleOk" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | <fault-info-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></fault-info-form> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import FaultInfoForm from './FaultInfoForm' |
| | | export default { |
| | | name: 'FaultInfoModal', |
| | | components: { |
| | | FaultInfoForm |
| | | }, |
| | | data () { |
| | | return { |
| | | title:'设å¤äºæ
ç»è®°è¡¨', |
| | | width:1500, |
| | | visible: false, |
| | | disableSubmit: false |
| | | } |
| | | }, |
| | | methods: { |
| | | add () { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.add(); |
| | | }) |
| | | }, |
| | | edit (record) { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.edit(record); |
| | | }) |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | handleOk () { |
| | | this.$refs.realForm.submitForm(); |
| | | }, |
| | | submitCallback(){ |
| | | this.$emit('ok'); |
| | | this.visible = false; |
| | | }, |
| | | handleCancel () { |
| | | this.close() |
| | | } |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-spin :spinning="confirmLoading"> |
| | | <j-form-container :disabled="formDisabled"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail"> |
| | | <a-row> |
| | | <!-- <a-col :span="24"> |
| | | <a-form-model-item label="æ
éæ¥ä¿®åID" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="reportId"> |
| | | <a-input v-model="model.reportId" placeholder="请è¾å
¥æ
éæ¥ä¿®åID" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> --> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="产åæå¤±æ
åµ" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="condition"> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="请è¾å
¥äº§åæå¤±æ
åµ" |
| | | :triggerChange="true" |
| | | dictCode="is_product" |
| | | v-model="model.condition" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="æå¤±æ
åµåæ" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="conditionAnalysis"> |
| | | <a-textarea v-model="model.conditionAnalysis" rows="4" placeholder="请è¾å
¥æå¤±æ
åµåæ" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <!-- <a-col :span="24"> |
| | | <a-form-model-item label="é¶ä»¶å·" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partNumber"> |
| | | <a-input v-model="model.partNumber" placeholder="请è¾å
¥é¶ä»¶å·" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="æ¹æ¬¡å·" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="batchNo"> |
| | | <a-input v-model="model.batchNo" placeholder="请è¾å
¥æ¹æ¬¡å·" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="ä»¶æ°" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="qunatity"> |
| | | <a-input-number v-model="model.qunatity" placeholder="请è¾å
¥ä»¶æ°" style="width: 100%" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="确认é¢å¯¼" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="leader"> |
| | | <a-input v-model="model.leader" placeholder="请è¾å
¥ç¡®è®¤é¢å¯¼" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="é¢å¯¼ç¡®è®¤æ¶é´" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="confirmTime"> |
| | | <j-date placeholder="è¯·éæ©é¢å¯¼ç¡®è®¤æ¶é´" v-model="model.confirmTime" style="width: 100%" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="æ¯å¦å·²ç¡®è®¤" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="isConfirm"> |
| | | <a-input v-model="model.isConfirm" placeholder="请è¾å
¥æ¯å¦å·²ç¡®è®¤" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> --> |
| | | </a-row> |
| | | </a-form-model> |
| | | </j-form-container> |
| | | </a-spin> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { httpAction, getAction } from '@/api/manage' |
| | | import { validateDuplicateValue } from '@/utils/util' |
| | | |
| | | export default { |
| | | name: 'QuanlityConfirmForm', |
| | | components: { |
| | | }, |
| | | props: { |
| | | //表åç¦ç¨ |
| | | disabled: { |
| | | type: Boolean, |
| | | default: false, |
| | | required: false |
| | | } |
| | | }, |
| | | data () { |
| | | return { |
| | | model:{ |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | confirmLoading: false, |
| | | validatorRules: { |
| | | conditionAnalysis:[ |
| | | { required: true, message: '请è¾å
¥æå¤±æ
åµåæ!' }, |
| | | { min: 1, max: 1000, message: 'é¿åº¦ä¸è¶
è¿ 1000 个å符', trigger: 'blur' }, |
| | | ], |
| | | condition:[ |
| | | { required: true, message: 'è¯·éæ©äº§åæ¯å¦ææå¤±!' }, |
| | | ] |
| | | }, |
| | | url: { |
| | | add: "/li/quanlityConfirm/add", |
| | | edit: "/li/quanlityConfirm/edit", |
| | | queryById: "/li/quanlityConfirm/queryById" |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | formDisabled(){ |
| | | return this.disabled |
| | | }, |
| | | }, |
| | | 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; |
| | | }, |
| | | submitForm () { |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true; |
| | | let httpurl = ''; |
| | | let method = ''; |
| | | if(!this.model.id){ |
| | | httpurl+=this.url.add; |
| | | method = 'post'; |
| | | }else{ |
| | | httpurl+=this.url.edit; |
| | | this.model.isConfirm = "yes"; |
| | | 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; |
| | | }) |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="width" |
| | | :visible="visible" |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | <quanlity-confirm-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></quanlity-confirm-form> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import QuanlityConfirmForm from './QuanlityConfirmForm' |
| | | export default { |
| | | name: 'QuanlityConfirmModal', |
| | | components: { |
| | | QuanlityConfirmForm |
| | | }, |
| | | data () { |
| | | return { |
| | | title:'', |
| | | width:800, |
| | | visible: false, |
| | | disableSubmit: false |
| | | } |
| | | }, |
| | | methods: { |
| | | add () { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.add(); |
| | | }) |
| | | }, |
| | | edit (record) { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.edit(record); |
| | | }) |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | handleOk () { |
| | | this.$refs.realForm.submitForm(); |
| | | }, |
| | | submitCallback(){ |
| | | this.$emit('ok'); |
| | | this.visible = false; |
| | | }, |
| | | handleCancel () { |
| | | this.close() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | > |
| | | <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.name" |
| | | ></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-form> |
| | | </div> |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | |
| | | |
| | | |
| | | methods: { |
| | | |
| | | searchQuery() { |
| | | this.loadData(1); |
| | | }, |
| | | searchReset() { |
| | | this.loadData(1) |
| | | }, |
| | | list() { |
| | | this.selectedRowKeys = []; |
| | | this.selectedRowRecord = []; |
| | |
| | | v-decorator="['isStop', validatorRules.isStop]" |
| | | /> |
| | | </a-form-item> |
| | | |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <!-- <a-row :gutter="24"> |
| | | <a-col :span="24/2"> |
| | | <a-form-item |
| | | label="ç´§æ¥ç¨åº¦" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'è¯·éæ©ç´§æ¥ç¨åº¦'" |
| | | :triggerChange="true" |
| | | dictCode="urgency" |
| | | v-decorator="['urgency', validatorRules.urgency]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> --> |
| | | <!-- <a-col :span="24/2" v-show="false"> |
| | | <a-form-item |
| | | label="æ
éåå " |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | :disabled="disableSubmit" |
| | | enter-button |
| | | v-decorator="['faultReason', validatorRules.faultReason]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> --> |
| | | <!-- </a-row> --> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24/2"> |
| | | <a-form-item |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <!-- <a-row :gutter="24"> |
| | | <a-col :span="24/2"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24/2"> |
| | | <a-form-item |
| | | label="æ
éç
§ç" |
| | | label="æ¯å¦å¨å å·¥é¶ä»¶" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-image-upload |
| | | :disabled="disableSubmit" |
| | | :isMultiple="true" |
| | | v-decorator="['photo', {}]" |
| | | ></j-image-upload> |
| | | |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :placeholder="disableSubmit?'':'è¯·éæ©æ¯å¦å¨å å·¥é¶ä»¶'" |
| | | :triggerChange="true" |
| | | @change="(e) => statusChange(e)" |
| | | dictCode="is_product" |
| | | v-decorator="['errUda1', validatorRules.errUda1]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> --> |
| | | <a-col :span="24/2" v-if="workingStatus"> |
| | | <a-form-item |
| | | label="å å·¥é¶ä»¶å·" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :placeholder="disableSubmit?'':'请è¾å
¥å å·¥é¶ä»¶å·'" |
| | | v-decorator="['partNumber', validatorRules.partNumber ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24/2" v-if="workingStatus"> |
| | | <a-form-item |
| | | label="æ¹æ¬¡å·" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :placeholder="disableSubmit?'':'请è¾å
¥æ¹æ¬¡å·'" |
| | | v-decorator="['batchNo', validatorRules.batchNo ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24/2" v-if="workingStatus"> |
| | | <a-form-item |
| | | label="ä»¶æ°" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input-number |
| | | allow-clear |
| | | style="width: 100%;" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥ä»¶æ°'" |
| | | :min="1" |
| | | v-decorator="['quantity', validatorRules.quantity]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </a-spin> |
| | | |
| | |
| | | { max: 1000, min:1,message: 'æå¤å¯æè¿°1000å!' }, |
| | | ] |
| | | }, |
| | | errUda1:{ |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©æ¯å¦å¨å å·¥é¶ä»¶!' }, |
| | | ] |
| | | }, |
| | | partNumber:{ |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥é¶ä»¶å¾å·!' }, |
| | | ] |
| | | }, |
| | | batchNo:{ |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥æ¹æ¬¡å·!' }, |
| | | ] |
| | | }, |
| | | quantity:{ |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥ä»¶æ°!' }, |
| | | ] |
| | | } |
| | | }, |
| | | url: { |
| | | add: "/eam/equipmentReportRepair/add", |
| | |
| | | getNum:'/eam/sysIdentity/getNumNew' |
| | | }, |
| | | dataSource: [], |
| | | workingStatus:false |
| | | } |
| | | }, |
| | | |
| | |
| | | getAction(this.url.getNum,param).then(res=>{ |
| | | if(res.success){ |
| | | modelDefault.num = res.result; |
| | | this.workingStatus = false; |
| | | modelDefault.faultTime = dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'); |
| | | that.edit(modelDefault); |
| | | } |
| | |
| | | that.model = Object.assign({}, record); |
| | | that.visible = true; |
| | | that.$nextTick(() => { |
| | | that.form.setFieldsValue(pick(that.model, 'num', 'isStop', 'equipmentId', 'equipmentNum', 'equipmentName', 'equipmentModel', 'equipmentSpecification', 'urgency', 'useDepartId', 'departName', 'faultDescription', 'faultTime', 'remark', "photo")); |
| | | that.form.setFieldsValue(pick(that.model,'errUda1' ,'num', 'isStop', 'equipmentId', 'equipmentNum', 'equipmentName', 'equipmentModel', 'equipmentSpecification', 'urgency', 'useDepartId', 'departName', 'faultDescription', 'faultTime', 'remark', "photo")); |
| | | }); |
| | | if (record.id) { |
| | | this.codeDisable = true; |
| | |
| | | let record = data.record; |
| | | this.form.setFieldsValue({ equipmentName: record.name, equipmentId: record.id, equipmentNum: record.num, equipmentModel: record.model, equipmentSpecification: record.specification, useDepartId: record.useId, departName: record.useId_dictText }); |
| | | }, |
| | | |
| | | statusChange(val){ |
| | | this.workingStatus=val==='no'?false:true; |
| | | } |
| | | }, |
| | | } |
| | | </script> |