|
@@ -1,9 +1,10 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
+ <!-- <el-button type="primary" size="small" @click="addBtn">添 加</el-button> -->
|
|
|
<el-button type="primary" size="small" :disabled="disabled" @click="addBtn">添 加</el-button>
|
|
|
<el-dialog title="报价单列表" append-to-body width="50%" :show-close="false" :visible.sync="drawer2">
|
|
|
<div class="inline-16" style="margin-bottom:10px">
|
|
|
- <el-input suffix-icon="el-icon-search" size="small" v-model="params2.content.where.condition" placeholder="产品名称,编号" @keyup.enter.native="getQuotationList(params2.content.pageNumber = 1)" @clear="getQuotationList(params2.content.pageNumber = 1)" clearable></el-input>
|
|
|
+ <el-input suffix-icon="el-icon-search" size="small" v-model="params2.content.where.condition" placeholder="产品名称,编号" @keyup.enter.native="getQuotationList(params2.content.pageNumber=1)" @clear="getQuotationList(params2.content.pageNumber = 1)" clearable></el-input>
|
|
|
</div>
|
|
|
<el-table
|
|
|
:data="ENlist"
|
|
@@ -80,8 +81,8 @@
|
|
|
@size-change="handleSizeChange"
|
|
|
@current-change="handleCurrentChange"
|
|
|
:current-page="params.content.pageNumber"
|
|
|
- :page-sizes="[20, 50, 100, 200]"
|
|
|
- layout="total, prev,sizes, pager, next, jumper"
|
|
|
+ :page-size="params.content.pageSize"
|
|
|
+ layout="total, prev, pager, next"
|
|
|
:total="total">
|
|
|
</el-pagination>
|
|
|
</div>
|
|
@@ -122,20 +123,31 @@ export default {
|
|
|
"content": {
|
|
|
"sa_contractid": '',
|
|
|
"pageNumber": 1,
|
|
|
- "pageSize": 20,
|
|
|
+ "pageSize": 1,
|
|
|
"nocache":true,
|
|
|
"where": {
|
|
|
"condition": ""
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
+ // params2: {
|
|
|
+ // "id": 20221123162902,
|
|
|
+ // "content": {
|
|
|
+ // "sa_contractid": '',
|
|
|
+ // "pageNumber": 1,
|
|
|
+ // "pageSize": 20,
|
|
|
+ // "nocache":true,
|
|
|
+ // "where": {
|
|
|
+ // "condition": ""
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // }
|
|
|
params2: {
|
|
|
- "id": 20221123162902,
|
|
|
+ "id": 20221222151302,
|
|
|
"content": {
|
|
|
- "sa_contractid": '',
|
|
|
+ "sa_projectid": '',
|
|
|
"pageNumber": 1,
|
|
|
- "pageSize": 20,
|
|
|
- "nocache":true,
|
|
|
+ "pageSize": 1,
|
|
|
"where": {
|
|
|
"condition": ""
|
|
|
}
|
|
@@ -330,37 +342,32 @@ export default {
|
|
|
this.selectProductLength = data.length
|
|
|
},
|
|
|
async getQuotationList () {
|
|
|
- let res = await this.$api.requested({
|
|
|
- "id": 20221222151302,
|
|
|
- "content": {
|
|
|
- "sa_projectid": this.data.sa_projectid,
|
|
|
- "pageNumber": 1,
|
|
|
- "pageSize": 20,
|
|
|
- "where": {
|
|
|
- "condition": ""
|
|
|
- }
|
|
|
- },
|
|
|
- })
|
|
|
+ this.params2.content.sa_projectid = this.data.sa_projectid
|
|
|
+ let res = await this.$api.requested(this.params2)
|
|
|
this.ENlist = res.data
|
|
|
this.total2 = res.total
|
|
|
- console.log(this.ENlist,'报价单数据');
|
|
|
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
|
// console.log(`每页 ${val} 条`);
|
|
|
this.params.content.pageSize = val
|
|
|
+ this.getProductList()
|
|
|
},
|
|
|
handleCurrentChange(val) {
|
|
|
// console.log(`当前页: ${val}`);
|
|
|
this.params.content.pageNumber = val
|
|
|
+ this.getProductList()
|
|
|
},
|
|
|
handleSizeChange2(val) {
|
|
|
// console.log(`每页 ${val} 条`);
|
|
|
this.params2.content.pageSize = val
|
|
|
+ this.getQuotationList()
|
|
|
+
|
|
|
},
|
|
|
handleCurrentChange2(val) {
|
|
|
// console.log(`当前页: ${val}`);
|
|
|
this.params2.content.pageNumber = val
|
|
|
+ this.getQuotationList()
|
|
|
},
|
|
|
},
|
|
|
};
|