| | |
| | | @click="handleAdd" |
| | | type="primary" |
| | | icon="plus" |
| | | v-has="'report:add&edit'" |
| | | >新增</a-button> |
| | | </div> |
| | | |
| | |
| | | slot="action" |
| | | slot-scope="text, record" |
| | | > |
| | | <a-popconfirm |
| | | <a |
| | | :disabled=" record.status !== '4'" |
| | | @click="handleAccept(record)" |
| | | v-has="'report:accept'" |
| | | >验收</a> |
| | | <!-- <a-popconfirm |
| | | v-if="record.status == '1' || record.status == '4'" |
| | | title="确认提交吗?" |
| | | @confirm="() =>handleCommit(record, 'commit')" |
| | |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </a-dropdown> --> |
| | | </span> |
| | | <span slot="faultDescription" slot-scope="text"> |
| | | <span slot="jell" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="10" /> |
| | | </span> |
| | | |
| | |
| | | @ok='approvalModalFormOk' |
| | | @cancel='approvalModalFormOk' |
| | | ></approvel-modal> |
| | | <accept-model |
| | | ref="acceptModel" |
| | | @ok="modalFormOk" |
| | | ></accept-model> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import ApprovelModal from './modules/malfunctionRepair/ApprovelModal' |
| | | import JEllipsis from '@/components/jeecg/JEllipsis' |
| | | import moment from 'moment' |
| | | import AcceptModel from './modules/malfunctionRepair/AcceptModel' |
| | | |
| | | export default { |
| | | name: 'MalfunctionRepairList', |
| | |
| | | MalfunctionRepairModal, |
| | | FaultDescriptionList, |
| | | ApprovelModal, |
| | | JEllipsis |
| | | JEllipsis, |
| | | AcceptModel, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | align: "center", |
| | | dataIndex: 'createBy' |
| | | }, |
| | | // { |
| | | // title: '创建时间', |
| | | // align: "center", |
| | | // dataIndex: 'createTime', |
| | | // }, |
| | | { |
| | | title: '验收意见', |
| | | align: "center", |
| | | dataIndex: 'errUda5', |
| | | scopedSlots: { |
| | | customRender: 'jell' |
| | | } |
| | | }, |
| | | { |
| | | title: '备注', |
| | | align: "center", |
| | | dataIndex: 'remark' |
| | | }, |
| | | // { |
| | | // title: '操作', |
| | | // dataIndex: 'action', |
| | | // align: "center", |
| | | // fixed: "right", |
| | | // width: 200, |
| | | // scopedSlots: { customRender: 'action' } |
| | | // } |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align: "center", |
| | | fixed: "right", |
| | | width: 200, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/eam/equipmentReportRepair/getReportRepairList", |
| | |
| | | timeChange(){ |
| | | this.queryParam.faultStartTime = moment(this.faultTime[0]).format("YYYY-MM-DD HH:mm:ss") |
| | | this.queryParam.faultEndTime = moment(this.faultTime[1]).format("YYYY-MM-DD HH:mm:ss") |
| | | }, |
| | | handleAccept(record){ |
| | | this.$refs.acceptModel.title="验收" |
| | | this.$refs.acceptModel.edit(record) |
| | | } |
| | | } |
| | | } |