|
@@ -80,7 +80,7 @@
|
|
|
</template>
|
|
|
</tableLayout>
|
|
|
</div>
|
|
|
- <div style="height: 35px;margin-top: 20px">
|
|
|
+ <!-- <div style="height: 35px;margin-top: 20px">
|
|
|
<div v-if="$route.query.type != '框架'" style="float: left">金额(元):{{ data.signamount ? tool.formatAmount(data.signamount,2) : '0.00'}}</div>
|
|
|
<div style="float: right">
|
|
|
<el-pagination
|
|
@@ -93,7 +93,7 @@
|
|
|
layout="total,sizes, prev, pager, next, jumper"
|
|
|
:total="total">
|
|
|
</el-pagination>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
@@ -131,7 +131,7 @@ export default {
|
|
|
"content": {
|
|
|
"sa_contractid": this.$route.query.id,
|
|
|
"pageNumber": 1,
|
|
|
- "pageSize": 100,
|
|
|
+ "pageSize": 30,
|
|
|
"where": {
|
|
|
"condition": "",
|
|
|
}
|
|
@@ -148,6 +148,7 @@ export default {
|
|
|
tablecols:[],
|
|
|
tablecolsAdd:[],
|
|
|
total:0,
|
|
|
+ totalPage:0,
|
|
|
editIndex:''
|
|
|
};
|
|
|
},
|
|
@@ -173,12 +174,17 @@ export default {
|
|
|
res.data.forEach((e,index)=>{
|
|
|
res.data[index].discountrate = Math.round((e.discountrate * 100)*100)/100
|
|
|
})
|
|
|
- this.list = res.data
|
|
|
+ this.list = this.params.content.pageNumber == 1 ? res.data : this.list.concat(res.data)
|
|
|
+ console.log(this.list,res.data);
|
|
|
this.total = res.total
|
|
|
- this.$emit('priceChange')
|
|
|
+ this.totalPage = res.pageTotal
|
|
|
+ // this.$emit('priceChange')
|
|
|
},
|
|
|
tableLoad () {
|
|
|
-
|
|
|
+ if (this.params.content.pageNumber == this.totalPage) return
|
|
|
+ this.params.content.pageNumber += 1
|
|
|
+ this.listData()
|
|
|
+ console.log('触底');
|
|
|
},
|
|
|
qtyChange (num,index,data) {
|
|
|
data.qty = num
|