|
|
@@ -576,24 +576,33 @@
|
|
|
<el-table-column prop="Remark" label="描述" show-overflow-tooltip></el-table-column>
|
|
|
</el-table>
|
|
|
</el-card>
|
|
|
- <el-card class="box-card" style="margin-top: 10px;">
|
|
|
+ <el-card class="box-card" style="margin-top: 10px; margin-bottom: 10px">
|
|
|
<div slot="header">
|
|
|
<span><i class="icon icon-table2"></i> 准入范围</span>
|
|
|
+ <div style="float:right; margin-right: -45px">
|
|
|
+ <el-input size="mini" v-model="addAccessCodeSearch" style="width:50%;" clearable placeholder="准入编码"></el-input>
|
|
|
+
|
|
|
+ <el-button type="primary" size="mini" @click="getSortList()" >查询</el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <el-table :data="entityList" size="mini" border style="width: 100%" @sort-change="orderby">
|
|
|
+ <el-table :data="entityList" size="mini" border stripe highlight-current-row max-height="calc(100vh - 528px)" style="width: 100%; min-height: 200px" @sort-change="orderby">
|
|
|
<el-table-column prop="SortFlag" label="分类标记" v-if="1==2" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column
|
|
|
label="是否为制造商" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-tag type="info" v-if="scope.row.IsManufacturer == 2">非制造商</el-tag>
|
|
|
- <el-tag type="success" v-else-if="scope.row.IsManufacturer == 1">制造商</el-tag>
|
|
|
+ <el-tag type="info" size="small" v-if="scope.row.IsManufacturer == 2">非制造商</el-tag>
|
|
|
+ <el-tag type="success" size="small" v-else-if="scope.row.IsManufacturer == 1">制造商</el-tag>
|
|
|
<span v-else>——</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
|
|
|
</el-table>
|
|
|
+ <el-pagination style="float: right" :pager-count="5" @size-change="handleSizeChangeForAddAccess" @current-change="handleCurrentChangeForAddAccess"
|
|
|
+ :current-page="currentPageAddAccess" :page-sizes="[10, 50, 100, 200, 500]" :page-size="sizeAddAccess"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper" :total="currentItemCountAddAccess">
|
|
|
+ </el-pagination>
|
|
|
</el-card>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
@@ -874,6 +883,11 @@
|
|
|
}
|
|
|
}
|
|
|
return {
|
|
|
+ // 新增准入范围分页参数
|
|
|
+ currentPageAddAccess: 1,
|
|
|
+ sizeAddAccess: 10,
|
|
|
+ currentItemCountAddAccess: 0,
|
|
|
+ addAccessCodeSearch: '', // 新增准入范围查询参数
|
|
|
dialogVisibleBack: false,
|
|
|
firOptions: [],
|
|
|
btnloading: false,
|
|
|
@@ -1332,8 +1346,9 @@
|
|
|
getSortList () {
|
|
|
// 分页及列表条件
|
|
|
let params = {
|
|
|
- // _currentPage: this.currentPage,
|
|
|
- // _size: this.size,
|
|
|
+ _currentPage: this.currentPageAddAccess,
|
|
|
+ _size: this.sizeAddAccess,
|
|
|
+ searchCode: this.addAccessCodeSearch,
|
|
|
// Order: this.Column.Order,
|
|
|
// Prop: this.Column.Prop,
|
|
|
SupplierCertAppendId: this.dialogFormData.SupplierCertAppendId,
|
|
|
@@ -1342,8 +1357,8 @@
|
|
|
}
|
|
|
// 访问接口
|
|
|
api.getListAppend(params, this.$axios).then(res => {
|
|
|
- this.entityList = res.data.item
|
|
|
- // this.currentItemCount = res.data.currentItemCount
|
|
|
+ this.entityList = res.data.items
|
|
|
+ this.currentItemCountAddAccess = res.data.currentItemCount
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
@@ -2437,6 +2452,16 @@
|
|
|
val = val.replace('T', ' ')
|
|
|
return val.substring(0, 10)
|
|
|
}
|
|
|
+ },
|
|
|
+ // 新增准入范围分页
|
|
|
+ handleSizeChangeForAddAccess (value) {
|
|
|
+ this.sizeAddAccess = value
|
|
|
+ this.currentPageAddAccess = 1
|
|
|
+ this.getSortList()
|
|
|
+ },
|
|
|
+ handleCurrentChangeForAddAccess (value) {
|
|
|
+ this.currentPageAddAccess = value
|
|
|
+ this.getSortList()
|
|
|
}
|
|
|
}
|
|
|
}
|