| | |
| | | <template> |
| | | <!--支持全屏缩放--> |
| | | <a-modal :visible='visible' :title='title' switchFullscreen @ok='handleSubmit' @cancel='close' style='top:50px' |
| | | cancelText='关闭' :width='1800'> |
| | | <a-card :bordered='false'> |
| | | <div class='table-page-search-wrapper'> |
| | | <a-form layout='inline' @keyup.enter.native='searchQuery'> |
| | | <a-row :gutter='24'> |
| | | <a-col :md='6' :sm='4'> |
| | | <a-form-item label='备件编码'> |
| | | <a-input placeholder='请输入备件编码' v-model='queryParam.num'/> |
| | | <a-modal :visible="visible" :title="title" switchFullscreen @ok="handleSubmit" @cancel="close" style="top:50px" |
| | | cancelText="关闭" :width="1800"> |
| | | <a-card :bordered="false"> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :md="6" :sm="4"> |
| | | <a-form-item label="备件编码"> |
| | | <a-input placeholder="请输入备件编码" v-model="queryParam.num" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md='6' :sm='4'> |
| | | <a-form-item label='备件名称'> |
| | | <a-input placeholder='请输入备件名称' v-model='queryParam.name'/> |
| | | <a-col :md="6" :sm="4"> |
| | | <a-form-item label="备件名称"> |
| | | <a-input placeholder="请输入备件名称" v-model="queryParam.name" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <!-- <a-col :md='6' :sm='4'> |
| | |
| | | dictCode='tooling_category_flag' placeholder='请选择存货分类' /> |
| | | </a-form-item> |
| | | </a-col> --> |
| | | <a-col :md='3'> |
| | | <span style='float: left;overflow: hidden;' class='table-page-search-submitButtons'> |
| | | <a-button type='primary' @click='searchQuery' icon='search'>查询</a-button> |
| | | <a-button @click='searchReset' icon='reload' style='margin-left: 10px'>重置</a-button> |
| | | <a-col :md="3"> |
| | | <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
| | | <a-button @click="searchReset" icon="reload" style="margin-left: 10px">重置</a-button> |
| | | </span> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <a-row :gutter='24'> |
| | | <a-col :md='24' :sm='12'> |
| | | <a-table ref='table' |
| | | :scroll='{ x: true }' |
| | | size='middle' rowKey='id' |
| | | <a-row :gutter="24"> |
| | | <a-col :md="24" :sm="12"> |
| | | <a-table ref="table" |
| | | :scroll="{ x: true }" |
| | | size="middle" rowKey="id" |
| | | bordered |
| | | :columns='columns' |
| | | :dataSource='dataSource' |
| | | :pagination='ipagination' |
| | | :rowSelection='rowSelection' |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :rowSelection="rowSelection" |
| | | |
| | | :loading='loading' |
| | | @change='handleTableChange'> |
| | | :loading="loading" |
| | | @change="handleTableChange"> |
| | | </a-table> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | align: 'center', |
| | | fixed: 'left', |
| | | dataIndex: 'spareNum', |
| | | width: 150, |
| | | ellipsis: true |
| | | }, |
| | | { |
| | | title: '备件名称', |
| | | align: 'center', |
| | | fixed: 'left', |
| | | dataIndex: 'spareName', |
| | | width: 150, |
| | | dataIndex: 'spareName' |
| | | |
| | | }, |
| | | { |
| | | title: '规格', |
| | | align: 'center', |
| | | dataIndex: 'specification', |
| | | width: 150, |
| | | dataIndex: 'specification' |
| | | |
| | | }, |
| | | { |
| | | title: '型号', |
| | | align: 'center', |
| | | dataIndex: 'model', |
| | | width: 150 |
| | | dataIndex: 'model' |
| | | |
| | | }, |
| | | { |
| | | title: '批次号', |
| | | align: 'center', |
| | | |
| | | dataIndex: 'batchNum', |
| | | width: 150, |
| | | dataIndex: 'batchNum' |
| | | |
| | | }, |
| | | { |
| | | title: '制造商', |
| | | align: 'center', |
| | | dataIndex: 'constructorName', |
| | | width: 150, |
| | | dataIndex: 'constructorName' |
| | | |
| | | }, |
| | | |
| | | { |
| | | title: '出厂日期', |
| | | align: 'center', |
| | | dataIndex: 'manufactureDate', |
| | | width: 150, |
| | | }, |
| | | { title: '有效期', |
| | | align: 'center', |
| | | dataIndex: 'validityPeriod', |
| | | width: 150, |
| | | dataIndex: 'manufactureDate' |
| | | |
| | | }, |
| | | { title: '单位', |
| | | { |
| | | title: '有效期', |
| | | align: 'center', |
| | | dataIndex: 'mainUnitId_dictText', |
| | | width: 150, |
| | | dataIndex: 'validityPeriod' |
| | | |
| | | }, |
| | | /* { title: '辅单位', |
| | | { |
| | | title: '单位', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryUnitId_dictText', |
| | | width: 150 |
| | | |
| | | }, */ |
| | | { title: '库存数量', |
| | | align: 'center', |
| | | dataIndex: 'mainQuantity', |
| | | width: 150 |
| | | dataIndex: 'mainUnitId_dictText' |
| | | |
| | | }, |
| | | /* { title: '库存辅数量', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryQuantity', |
| | | width: 150 |
| | | /* { title: '辅单位', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryUnitId_dictText', |
| | | width: 150 |
| | | |
| | | }, */ |
| | | /* { |
| | | title: '换算比例', |
| | | }, */ |
| | | { |
| | | title: '库存数量', |
| | | align: 'center', |
| | | dataIndex: 'conversionRatio' |
| | | } */ |
| | | dataIndex: 'mainQuantity' |
| | | |
| | | } |
| | | /* { title: '库存辅数量', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryQuantity', |
| | | width: 150 |
| | | |
| | | }, */ |
| | | /* { |
| | | title: '换算比例', |
| | | align: 'center', |
| | | dataIndex: 'conversionRatio' |
| | | } */ |
| | | ], |
| | | selectedRowKeys: [], |
| | | oldSelectRows: [], |
| | |
| | | loading: false, |
| | | url: { |
| | | list: '/spare/sparePartScrap/getSpareList' |
| | | }, |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | }, |
| | | searchQuery() { |
| | | this.loadData(1) |
| | | }, |
| | | } |
| | | |
| | | } |
| | | } |