From 6cf8799ca9a1a8a66ceab9fee4a845f0917d118e Mon Sep 17 00:00:00 2001
From: “linengliang” <vanSuperEnergy@163.com>
Date: 星期三, 22 十一月 2023 19:49:18 +0800
Subject: [PATCH] 小修改
---
src/views/spare/modules/sparePartScrap/SpareSelectList.vue | 143 ++++++++++++++++++++++-------------------------
1 files changed, 68 insertions(+), 75 deletions(-)
diff --git a/src/views/spare/modules/sparePartScrap/SpareSelectList.vue b/src/views/spare/modules/sparePartScrap/SpareSelectList.vue
index 4e79c7a..dc28da4 100644
--- a/src/views/spare/modules/sparePartScrap/SpareSelectList.vue
+++ b/src/views/spare/modules/sparePartScrap/SpareSelectList.vue
@@ -1,19 +1,19 @@
<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'>
@@ -22,28 +22,28 @@
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>
@@ -79,87 +79,80 @@
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,
-
- },
- { title: '涓诲崟浣�',
- align: 'center',
- dataIndex: 'mainUnitId_dictText',
- width: 150,
-
- },
- { title: '杈呭崟浣�',
- align: 'center',
- dataIndex: 'auxiliaryUnitId_dictText',
- width: 150
-
- },
- { title: '搴撳瓨涓绘暟閲�',
- align: 'center',
- dataIndex: 'mainQuantity',
- width: 150
-
- },
- { title: '搴撳瓨杈呮暟閲�',
- align: 'center',
- dataIndex: 'auxiliaryQuantity',
- width: 150
+ dataIndex: 'manufactureDate'
},
{
- title: '鎹㈢畻姣斾緥',
+ title: '鏈夋晥鏈�',
align: 'center',
- dataIndex: 'conversionRatio'
+ dataIndex: 'validityPeriod'
+
+ },
+ {
+ title: '鍗曚綅',
+ align: 'center',
+ dataIndex: 'mainUnitId_dictText'
+
+ },
+ /* { title: '杈呭崟浣�',
+ align: 'center',
+ dataIndex: 'auxiliaryUnitId_dictText',
+ width: 150
+
+ }, */
+ {
+ title: '搴撳瓨鏁伴噺',
+ align: 'center',
+ dataIndex: 'mainQuantity'
+
}
+ /* { title: '搴撳瓨杈呮暟閲�',
+ align: 'center',
+ dataIndex: 'auxiliaryQuantity',
+ width: 150
+
+ }, */
+ /* {
+ title: '鎹㈢畻姣斾緥',
+ align: 'center',
+ dataIndex: 'conversionRatio'
+ } */
],
selectedRowKeys: [],
oldSelectRows: [],
@@ -187,7 +180,7 @@
loading: false,
url: {
list: '/spare/sparePartScrap/getSpareList'
- },
+ }
}
},
computed: {
@@ -287,7 +280,7 @@
},
searchQuery() {
this.loadData(1)
- },
+ }
}
}
--
Gitblit v1.9.3