| | |
| | | <a-row :gutter="24"> |
| | | <a-col :md="4" :sm="4"> |
| | | <a-form-item label="车间"> |
| | | <a-input v-model="queryParam.productionName" allowClear></a-input> |
| | | <a-input v-model="queryParam.productionName" allowClear placeholder="请输入车间"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="4" :sm="4"> |
| | | <a-form-item label="工段"> |
| | | <a-input v-model="queryParam.sectionName" allowClear></a-input> |
| | | <a-input v-model="queryParam.sectionName" allowClear placeholder="请输入工段"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="4" :sm="4"> |
| | | <a-form-item label="设备编号"> |
| | | <a-input v-model="queryParam.equipmentId" allowClear></a-input> |
| | | <a-input v-model="queryParam.equipmentId" allowClear placeholder="请输入设备编号"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="4" :sm="4"> |
| | | <a-form-item label="设备名称"> |
| | | <a-input v-model="queryParam.equipmentName" allowClear></a-input> |
| | | <a-input v-model="queryParam.equipmentName" allowClear placeholder="请输入设备名称"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :lg="5" :md="5" :sm="5" :xs="5"> |
| | |
| | | </a-dropdown> |
| | | </div> |
| | | |
| | | <a-table :columns="columns" :data-source="dataList" bordered :pagination="false" :scroll="{x:'max-content'}" |
| | | :expandRowByClick="true" |
| | | <a-table :columns="columns" :data-source="dataList" bordered :pagination="ipagination" :scroll="{x:'max-content'}" |
| | | :expandRowByClick="true" @change="handleTableChange" |
| | | rowKey="id" @expand="handleExpandChange" :loading="outerDataLoading" |
| | | > |
| | | <span slot="isMdcInstall" slot-scope="text">{{text | formatIsInstallAndStatus}}</span> |
| | |
| | | this.loadData() |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function () { |
| | | return `${window._CONFIG['domianURL']}${this.url.importExcelUrl}`; |
| | | }, |
| | | importExcelUrl: function() { |
| | | return `${window._CONFIG['domianURL']}${this.url.importExcelUrl}` |
| | | } |
| | | }, |
| | | filters: { |
| | | numFilter(value) { |
| | |
| | | loadData() { |
| | | this.outerDataLoading = true |
| | | this.dataList = [] |
| | | getAction(this.url.mdcImplementLedgersList, this.queryParam).then(res => { |
| | | const params = this.getQueryParams() |
| | | getAction(this.url.mdcImplementLedgersList, params).then(res => { |
| | | if (res.success) { |
| | | this.dataList = res.result.records |
| | | this.hasRequestAlarmCodeList = [] |
| | | if (res.result.total) this.ipagination.total = res.result.total |
| | | else this.ipagination.total = 0 |
| | | } |
| | | }).finally(() => { |
| | | this.outerDataLoading = false |