| | |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="安灯类型"> |
| | | <j-dict-select-tag placeholder="请选择安灯类型" dictCode="andon_type" v-model="queryParam.andonType" |
| | | allow-clear/> |
| | | allow-clear /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="安灯状态"> |
| | | <j-dict-select-tag placeholder="请选择安灯状态" dictCode="order_status" v-model="queryParam.orderStatus" |
| | | allow-clear/> |
| | | allow-clear /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | |
| | | </a-row> |
| | | </a-form> |
| | | </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>--> |
| | | <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> |
| | | <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
| | | <a style="margin-left: 24px" @click="onClearSelected">清空</a> |
| | | </div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | @change="handleTableChange"> |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | @change="handleTableChange"> |
| | | |
| | | <template slot='imageFiles' slot-scope='text, record, index'> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;"> </span> |
| | | <img v-else :src="getImgView(text)" :preview="record.imageFiles" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/> |
| | | </template> |
| | | <span slot="action" slot-scope="text, record"> |
| | | <!-- <a @click="handleEdit(record)">编辑</a>--> |
| | | |
| | | <!-- <a-divider type="vertical" />--> |
| | | <!-- <a-dropdown>--> |
| | | <!-- <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>--> |
| | | <!-- <a-menu slot="overlay">--> |
| | | <!-- <a-menu-item>--> |
| | | <!-- <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">--> |
| | | <!-- <a>删除</a>--> |
| | | <!-- </a-popconfirm>--> |
| | | <!-- </a-menu>--> |
| | | <!-- </a-dropdown>--> |
| | | <a-popconfirm title="确定响应吗?" @confirm="() =>responseData(record.id)"> |
| | | <a v-if="record.orderStatus === '1'" >响应</a> |
| | | </a-popconfirm> |
| | | <a v-if="record.orderStatus === '2'" @click.stop="handleSolve(record)">处理</a> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </a-table> |
| | | </div> |
| | | <!-- table区域-end --> |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import '@assets/less/TableExpand.less' |
| | | import AndonOrderModal from './modules/AndonOrderModal.vue' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import '@assets/less/TableExpand.less' |
| | | import AndonOrderModal from './modules/AndonOrderModal.vue' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { deleteAction, getAction, postAction } from '@api/manage' |
| | | |
| | | export default { |
| | | name: "AndonOrderList", |
| | | mixins:[JeecgListMixin], |
| | | components: { |
| | | AndonOrderModal |
| | | }, |
| | | data () { |
| | | return { |
| | | description: '安灯管理页面', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '设备编号', |
| | | align:"center", |
| | | dataIndex: 'equipmentId' |
| | | }, |
| | | { |
| | | title: '安灯类型', |
| | | align:"center", |
| | | dataIndex: 'andonType_dictText' |
| | | }, |
| | | { |
| | | title: '安灯人', |
| | | align:"center", |
| | | dataIndex: 'operator_dictText' |
| | | }, |
| | | { |
| | | title: '安灯时间', |
| | | align:"center", |
| | | dataIndex: 'operateTime' |
| | | }, |
| | | { |
| | | title: '呼叫原因', |
| | | align:"center", |
| | | dataIndex: 'callReason' |
| | | }, |
| | | { |
| | | title: '安灯状态', |
| | | align:"center", |
| | | dataIndex: 'orderStatus_dictText' |
| | | }, |
| | | { |
| | | title: '响应人', |
| | | align:"center", |
| | | dataIndex: 'responder_dictText' |
| | | }, |
| | | { |
| | | title: '响应时间', |
| | | align:"center", |
| | | dataIndex: 'responseTime' |
| | | }, |
| | | { |
| | | title: '处理人', |
| | | align:"center", |
| | | dataIndex: 'processor' |
| | | }, |
| | | { |
| | | title: '处理完成时间', |
| | | align:"center", |
| | | dataIndex: 'processTime' |
| | | }, |
| | | { |
| | | title: '问题描述', |
| | | align:"center", |
| | | dataIndex: 'problemDescreption' |
| | | }, |
| | | { |
| | | title: '处理结果描述', |
| | | align:"center", |
| | | dataIndex: 'resolutionDescreption' |
| | | }, |
| | | { |
| | | title: '处理结果图片', |
| | | align:"center", |
| | | dataIndex: 'imageFiles' |
| | | }, |
| | | // { |
| | | // title: '所属厂房', |
| | | // align:"center", |
| | | // dataIndex: 'plantName' |
| | | // }, |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | scopedSlots: { customRender: 'action' }, |
| | | export default { |
| | | name: 'AndonOrderList', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | AndonOrderModal |
| | | }, |
| | | data() { |
| | | return { |
| | | description: '安灯管理页面', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/mdc/andonOrder/list", |
| | | delete: "/mdc/andonOrder/delete", |
| | | deleteBatch: "/mdc/andonOrder/deleteBatch", |
| | | exportXlsUrl: "mdc/andonOrder/exportXls", |
| | | importExcelUrl: "mdc/andonOrder/importExcel", |
| | | }, |
| | | }, |
| | | { |
| | | title: '设备编号', |
| | | align: 'center', |
| | | dataIndex: 'equipmentId' |
| | | }, |
| | | { |
| | | title: '安灯类型', |
| | | align: 'center', |
| | | dataIndex: 'andonType_dictText' |
| | | }, |
| | | { |
| | | title: '安灯人', |
| | | align: 'center', |
| | | dataIndex: 'operator_dictText' |
| | | }, |
| | | { |
| | | title: '安灯时间', |
| | | align: 'center', |
| | | dataIndex: 'operateTime' |
| | | }, |
| | | { |
| | | title: '问题描述', |
| | | align: 'center', |
| | | dataIndex: 'callReason' |
| | | }, |
| | | { |
| | | title: '安灯状态', |
| | | align: 'center', |
| | | dataIndex: 'orderStatus_dictText' |
| | | }, |
| | | { |
| | | title: '响应人', |
| | | align: 'center', |
| | | dataIndex: 'responder_dictText' |
| | | }, |
| | | { |
| | | title: '响应时间', |
| | | align: 'center', |
| | | dataIndex: 'responseTime' |
| | | }, |
| | | { |
| | | title: '处理人', |
| | | align: 'center', |
| | | dataIndex: 'processor_dictText' |
| | | }, |
| | | { |
| | | title: '处理完成时间', |
| | | align: 'center', |
| | | dataIndex: 'processTime' |
| | | }, |
| | | { |
| | | title: '处理结果描述', |
| | | align: 'center', |
| | | dataIndex: 'resolutionDescreption' |
| | | }, |
| | | { |
| | | title: '处理结果图片', |
| | | align: 'center', |
| | | dataIndex: 'imageFiles', |
| | | scopedSlots: { customRender: 'imageFiles' } |
| | | }, |
| | | // { |
| | | // title: '所属厂房', |
| | | // align:"center", |
| | | // dataIndex: 'plantName' |
| | | // }, |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | width: 150, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/mdc/andonOrder/list', |
| | | responseData: '/mdc/andonOrder/responseData', |
| | | delete: '/mdc/andonOrder/delete', |
| | | deleteBatch: '/mdc/andonOrder/deleteBatch', |
| | | exportXlsUrl: 'mdc/andonOrder/exportXls', |
| | | importExcelUrl: 'mdc/andonOrder/importExcel' |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | importExcelUrl: function() { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}` |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | methods: { |
| | | responseData(id){ |
| | | if(!this.url.responseData){ |
| | | this.$message.error("请设置url.responseData属性!") |
| | | return |
| | | } |
| | | var that = this; |
| | | getAction(that.url.responseData, {id: id}).then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | that.loadData(); |
| | | } else { |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | handleSolve(record) { |
| | | this.$refs.modalForm.dealWith(record); |
| | | this.$refs.modalForm.title = '处理' |
| | | this.$refs.modalForm.disabledEdit = true |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | @import '~@assets/less/common.less'; |
| | | </style> |