¶Ô±ÈÐÂÎļþ |
| | |
| | | <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="æ¥ä¿®ID"> |
| | | <a-input placeholder="请è¾å
¥æ¥ä¿®ID" v-model="queryParam.reportId"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="设å¤ID"> |
| | | <a-input placeholder="请è¾å
¥è®¾å¤ID" v-model="queryParam.equipmentId"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="æä½å·¥"> |
| | | <a-input placeholder="请è¾å
¥æä½å·¥" v-model="queryParam.confirmer"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="æä½å·¥ç¡®è®¤æ¶é´"> |
| | | <a-input placeholder="请è¾å
¥æä½å·¥ç¡®è®¤æ¶é´" v-model="queryParam.confirmTime"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="产åæå¤±æ
åµ;æ¯ å¦"> |
| | | <a-input placeholder="请è¾å
¥äº§åæå¤±æ
åµ;æ¯ å¦" v-model="queryParam.productLoss"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | </template> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">æ¥è¯¢</a-button> |
| | | <a-button type="info" @click="searchReset" icon="reload" style="margin-left: 8px">éç½®</a-button> |
| | | <a @click="handleToggleSearch" style="margin-left: 8px"> |
| | | {{ toggleSearchStatus ? 'æ¶èµ·' : 'å±å¼' }} |
| | | <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/> |
| | | </a> |
| | | </span> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <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-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" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | @change="handleTableChange"> |
| | | |
| | | <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-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | <!-- tableåºå-end --> |
| | | |
| | | <!-- 表ååºå --> |
| | | <eamReportProductHazards-modal ref="modalForm" @ok="modalFormOk"></eamReportProductHazards-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import '@/assets/less/TableExpand.less' |
| | | import EamReportProductHazardsModal from './modules/EamReportProductHazardsModal' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | | export default { |
| | | name: "EamReportProductHazardsList", |
| | | mixins:[JeecgListMixin], |
| | | components: { |
| | | EamReportProductHazardsModal |
| | | }, |
| | | data () { |
| | | return { |
| | | description: '产åå®å
¨éæ£ç¡®è®¤ç®¡ç页é¢', |
| | | // 表头 |
| | | 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' |
| | | }, |
| | | { |
| | | 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: { |
| | | list: "/eam/eamReportProductHazards/list", |
| | | delete: "/eam/eamReportProductHazards/delete", |
| | | deleteBatch: "/eam/eamReportProductHazards/deleteBatch", |
| | | exportXlsUrl: "eam/eamReportProductHazards/exportXls", |
| | | importExcelUrl: "eam/eamReportProductHazards/importExcel", |
| | | }, |
| | | } |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |