|
@@ -25,7 +25,7 @@
|
|
|
<slot name="addProduct" :data="data"></slot>
|
|
|
</div>
|
|
|
<div style="margin-top: 15px">
|
|
|
- <tableLayout :layout="tablecols" :data="list" :opwidth="200" :custom="true" :width="false" :height="tableHieght" fixedName="operation">
|
|
|
+ <tableLayout :layout="tablecols" :data="list1" :opwidth="200" :custom="true" :width="false" :height="tableHieght" fixedName="operation">
|
|
|
<template v-slot:customcol="scope">
|
|
|
<!-- <div v-if="scope.column.columnname == 'amount'">
|
|
|
<el-input size="small" v-if="currentItem.sa_paybilldetailid == scope.column.data.sa_paybilldetailid" v-model="scope.column.data.amount"></el-input>
|
|
@@ -52,10 +52,10 @@
|
|
|
</div>
|
|
|
<div v-else-if="scope.column.columnname == 'islimit'">
|
|
|
<div v-if="currentProduct.sa_promotion_itemsid == scope.column.data.sa_promotion_itemsid">
|
|
|
- <el-checkbox v-model="scope.column.data.requard" :true-label="1" :false-label="0"></el-checkbox>
|
|
|
+ <el-checkbox v-model="scope.column.data.islimit" :true-label="1" :false-label="0"></el-checkbox>
|
|
|
</div>
|
|
|
<span v-else>
|
|
|
- <span v-if="scope.column.data.requard">是</span>
|
|
|
+ <span v-if="scope.column.data.islimit">是</span>
|
|
|
<span v-else>否</span>
|
|
|
</span>
|
|
|
</div>
|
|
@@ -108,7 +108,7 @@ export default {
|
|
|
drawer:false,
|
|
|
tableHieght:"calc(100vh - 380px)",
|
|
|
tablecols:[],
|
|
|
- list:[],
|
|
|
+ list1:[],
|
|
|
total:0,
|
|
|
currentProduct:{},
|
|
|
params:{
|
|
@@ -124,7 +124,7 @@ export default {
|
|
|
"condition":""
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
computed:{
|
|
@@ -136,9 +136,9 @@ export default {
|
|
|
this.params.content.sa_promotionid = this.$route.query.id
|
|
|
this.params.content.sa_promotion_itemgroupid = id ? id : this.data.sa_promotion_itemgroupid
|
|
|
const res = await this.$api.requested(this.params)
|
|
|
- this.list = res.data
|
|
|
+ this.list1 = res.data
|
|
|
this.total = res.total
|
|
|
- console.log(this.list,this.total)
|
|
|
+ console.log(this.list1,this.total)
|
|
|
},
|
|
|
async save (data) {
|
|
|
let res = await this.$api.requested({
|