| | |
| | | |
| | | <!-- 操作按钮区域 --> |
| | | <div class="table-operator"> |
| | | <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> |
| | | <!-- <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>--> |
| | | <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> |
| | |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | :scroll="{x:'max-content'}" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | @change="handleTableChange"> |
| | | |
| | |
| | | components: { |
| | | EamReportProductHazardsModal |
| | | }, |
| | | props: { |
| | | isDisplayOperation: { |
| | | type: Boolean, |
| | | default: true |
| | | }, |
| | | propsQueryParam: { |
| | | type: Object |
| | | } |
| | | }, |
| | | data () { |
| | | return { |
| | | description: '产品安全隐患确认管理页面', |
| | | disableMixinCreated: true, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title: '报修ID', |
| | | align:"center", |
| | | dataIndex: 'reportId' |
| | | }, |
| | | { |
| | | title: '设备ID', |
| | | align:"center", |
| | | dataIndex: 'equipmentId' |
| | | }, |
| | | { |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | }, |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '统一编码', |
| | | align: 'center', |
| | | dataIndex: 'equipmentCode', |
| | | fixed: 'left', |
| | | scopedSlots: { customRender: 'equipmentCode' } |
| | | }, |
| | | { |
| | | title: '设备名称', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '设备型号', |
| | | align: 'center', |
| | | dataIndex: 'equipmentModel', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '操作工', |
| | | align:"center", |
| | | dataIndex: 'confirmer' |
| | | }, |
| | | { |
| | | { |
| | | title: '操作工确认时间', |
| | | align:"center", |
| | | dataIndex: 'confirmTime' |
| | | }, |
| | | { |
| | | { |
| | | title: '产品损失情况;是 否', |
| | | align:"center", |
| | | dataIndex: 'productLoss' |
| | | }, |
| | | { |
| | | { |
| | | title: '产品损失质量影响分析', |
| | | align:"center", |
| | | dataIndex: 'qualityAnalysis' |
| | | }, |
| | | { |
| | | { |
| | | title: '主管工艺', |
| | | align:"center", |
| | | dataIndex: 'technologist' |
| | | }, |
| | | { |
| | | { |
| | | title: '主管工艺确认时间', |
| | | align:"center", |
| | | dataIndex: 'technologistTime' |
| | | }, |
| | | { |
| | | { |
| | | title: '主管工艺确认意见', |
| | | align:"center", |
| | | dataIndex: 'technologistComment' |
| | | }, |
| | | { |
| | | { |
| | | title: '部级领导', |
| | | align:"center", |
| | | dataIndex: 'deputyDepartment' |
| | | }, |
| | | { |
| | | { |
| | | title: '部级领导确认时间', |
| | | align:"center", |
| | | dataIndex: 'deputyDepartmentTime' |
| | | }, |
| | | { |
| | | { |
| | | title: '部级领导确认意见', |
| | | align:"center", |
| | | dataIndex: 'deputyDepartmentComment' |
| | | }, |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | scopedSlots: { customRender: 'action' }, |
| | | } |
| | | ], |
| | | url: { |
| | | selectRepairOrderData: {}, |
| | | url: { |
| | | list: "/eam/eamReportProductHazards/list", |
| | | delete: "/eam/eamReportProductHazards/delete", |
| | | deleteBatch: "/eam/eamReportProductHazards/deleteBatch", |
| | |
| | | }, |
| | | } |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | created() { |
| | | if (!this.isDisplayOperation) this.queryParam = Object.assign({}, this.propsQueryParam) |
| | | else { |
| | | const operationColumn = { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'action' }, |
| | | width: 200, |
| | | fixed: 'right' |
| | | } |
| | | this.columns = [...this.columns, operationColumn] |
| | | } |
| | | this.loadData(1) |
| | | }, |
| | | methods: { |
| | | |
| | | |
| | | } |
| | | } |
| | | </script> |