|
@@ -89,6 +89,7 @@
|
|
|
ref="multipleTable"
|
|
|
:data="list"
|
|
|
style="width: 100%"
|
|
|
+ height="calc(100vh - 370px)"
|
|
|
:header-cell-style="{height:'50px',color:'#606266',fontWeight:'400'}"
|
|
|
:cell-style="{height:'50px',color:'#666666',fontWeight:'400'}"
|
|
|
@selection-change="selectionChange">
|
|
@@ -141,12 +142,12 @@
|
|
|
<div style="margin-top:16px;text-align:right">
|
|
|
<el-pagination
|
|
|
background
|
|
|
- small
|
|
|
@size-change="handleSizeChange"
|
|
|
@current-change="handleCurrentChange"
|
|
|
- :current-page="currentPage"
|
|
|
- :page-size="params.content.pageSize"
|
|
|
- layout="total, prev, pager, next, jumper"
|
|
|
+ :current-page="params.content.pageNumber"
|
|
|
+ :page-sizes="[20, 50, 100, 200]"
|
|
|
+ :page-size="100"
|
|
|
+ layout="total,sizes, prev, pager, next, jumper"
|
|
|
:total="total">
|
|
|
</el-pagination>
|
|
|
</div>
|
|
@@ -186,7 +187,7 @@ export default {
|
|
|
"sa_contractid": this.$route.query.id,
|
|
|
"sa_quotedpriceid":'',
|
|
|
"pageNumber": 1,
|
|
|
- "pageSize": 20,
|
|
|
+ "pageSize": 100,
|
|
|
"where": {
|
|
|
"condition": ""
|
|
|
}
|
|
@@ -216,7 +217,7 @@ export default {
|
|
|
async listData(){
|
|
|
const res = await this.$api.requested(this.params)
|
|
|
this.list = res.data
|
|
|
- console.log(this.list,'list')
|
|
|
+
|
|
|
this.total = res.total
|
|
|
},
|
|
|
debounce (fn, wait) {
|
|
@@ -271,9 +272,9 @@ export default {
|
|
|
"itemclassids":[data.itemclassid]
|
|
|
},
|
|
|
})
|
|
|
- console.log(res,'是否重复')
|
|
|
+
|
|
|
if (!res.data){
|
|
|
- console.log(data,'不重复的数据')
|
|
|
+
|
|
|
this.onSelect(data)
|
|
|
}else {
|
|
|
this.checkItem(data)
|
|
@@ -281,7 +282,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
onSelect(val){
|
|
|
- console.log(val,"选择的商品")
|
|
|
+
|
|
|
this.tableSelectData = []
|
|
|
this.tableSelectData[0] = val
|
|
|
let obj = this.tableSelectData.map(e=>{
|
|
@@ -295,7 +296,7 @@ export default {
|
|
|
/*this.$nextTick(()=>{
|
|
|
this.onSubmit()
|
|
|
})*/
|
|
|
- console.log(this.selectData,"selectData")
|
|
|
+
|
|
|
this.debounce(this.onSubmit,300)()
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
@@ -311,7 +312,7 @@ export default {
|
|
|
selectionChange(val){
|
|
|
this.tableSelectData = []
|
|
|
this.tableSelectData = val
|
|
|
- console.log(this.tableSelectData,"tableSelectData")
|
|
|
+
|
|
|
let obj = this.tableSelectData.map(e=>{
|
|
|
return {
|
|
|
"sa_contract_itemsaleclassid":0,
|
|
@@ -320,7 +321,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
this.selectData = obj
|
|
|
- console.log(this.selectData,"selectData")
|
|
|
+
|
|
|
},
|
|
|
onColes(){
|
|
|
|
|
@@ -333,12 +334,12 @@ export default {
|
|
|
"sa_contractid":this.$route.query.id //sat_notice_classid<=0时 为新增
|
|
|
}
|
|
|
})
|
|
|
- console.log(res,"已选产品123456")
|
|
|
+
|
|
|
this.selectTotal = res.total
|
|
|
- console.log(res.total,"已选产品数量")
|
|
|
+
|
|
|
},
|
|
|
async priceList(){
|
|
|
- console.log(this.data)
|
|
|
+
|
|
|
this.params2.content.sa_projectid = this.data.sa_projectid
|
|
|
const res = await this.$api.requested(this.params2)
|
|
|
this.priceData = res.data
|