Commit 3f56b1840acf773d86be5fc6950d344799b8270a
1 parent
ab1ddf0b
1
Showing
1 changed file
with
33 additions
and
26 deletions
lvdao-miniapp/pages/propertyPay/propertyPayList/propertyPayList.vue
| @@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
| 24 | <view class="list"> | 24 | <view class="list"> |
| 25 | <u-checkbox @change="e=>quanxuanitem(e,index)" v-model="item.isshowxz" shape="circle" | 25 | <u-checkbox @change="e=>quanxuanitem(e,index)" v-model="item.isshowxz" shape="circle" |
| 26 | :label-disabled="false" /> | 26 | :label-disabled="false" /> |
| 27 | - <view class="list-item"> | 27 | + <view class="list-item" @click="changeisxl(index)" > |
| 28 | <view class="list-info"> | 28 | <view class="list-info"> |
| 29 | <view class="img"> | 29 | <view class="img"> |
| 30 | <image v-if="item.itemName == '物业费'" src="@/static/icon/icon11.png" | 30 | <image v-if="item.itemName == '物业费'" src="@/static/icon/icon11.png" |
| @@ -54,18 +54,18 @@ | @@ -54,18 +54,18 @@ | ||
| 54 | </view> | 54 | </view> |
| 55 | </view> | 55 | </view> |
| 56 | <view v-if="item.itemDetailsVOList&& item.itemDetailsVOList.length>0 && item.isxl"> | 56 | <view v-if="item.itemDetailsVOList&& item.itemDetailsVOList.length>0 && item.isxl"> |
| 57 | - <view class="list" v-for="(item1,index1) in item.itemDetailsVOList"> | 57 | + <view class="list" v-for="(item1,index1) in item.itemDetailsVOList" > |
| 58 | <view style="display: flex;align-items: center;"> | 58 | <view style="display: flex;align-items: center;"> |
| 59 | <u-checkbox v-model="item1.isshowxz" shape="circle" :label-disabled="false" /> | 59 | <u-checkbox v-model="item1.isshowxz" shape="circle" :label-disabled="false" /> |
| 60 | - <view class=""> | 60 | + <view class="" @click="changeitemisshowxz(index,index1)"> |
| 61 | <view class="info-item">周期:{{item1.startDate}} - {{item1.endDate}}</view> | 61 | <view class="info-item">周期:{{item1.startDate}} - {{item1.endDate}}</view> |
| 62 | <view class="info-item" style="margin-top: 6rpx;"> | 62 | <view class="info-item" style="margin-top: 6rpx;"> |
| 63 | <text style="margin-right: 20rpx;">数量:{{item1.number}}{{item1.itemUnit}}</text> | 63 | <text style="margin-right: 20rpx;">数量:{{item1.number}}{{item1.itemUnit}}</text> |
| 64 | - <text>门店号:A5646</text> | 64 | + <text>门店号:{{item1.storeCode}}</text> |
| 65 | </view> | 65 | </view> |
| 66 | </view> | 66 | </view> |
| 67 | </view> | 67 | </view> |
| 68 | - <view class=""> | 68 | + <view class="" @click="changeitemisshowxz(index,index1)"> |
| 69 | <text class="price"><u-icon name="rmb" | 69 | <text class="price"><u-icon name="rmb" |
| 70 | style="font-size: 24rpx;" />¥{{item1.payPrice}}</text> | 70 | style="font-size: 24rpx;" />¥{{item1.payPrice}}</text> |
| 71 | </view> | 71 | </view> |
| @@ -129,25 +129,27 @@ | @@ -129,25 +129,27 @@ | ||
| 129 | show: false, | 129 | show: false, |
| 130 | joinShow: false, | 130 | joinShow: false, |
| 131 | value: '', | 131 | value: '', |
| 132 | - list1: [{ | ||
| 133 | - value: '0', | ||
| 134 | - label: '全部' | ||
| 135 | - }, { | ||
| 136 | - value: '1', | ||
| 137 | - label: '物业费' | ||
| 138 | - }, { | ||
| 139 | - value: '2', | ||
| 140 | - label: '水费' | ||
| 141 | - }, { | ||
| 142 | - value: '3', | ||
| 143 | - label: '卫生费' | ||
| 144 | - }, { | ||
| 145 | - value: '4', | ||
| 146 | - label: '燃气费' | ||
| 147 | - }, { | ||
| 148 | - value: '5', | ||
| 149 | - label: '电费' | ||
| 150 | - }], | 132 | + list1: [ |
| 133 | + // { | ||
| 134 | + // value: '0', | ||
| 135 | + // label: '全部' | ||
| 136 | + // }, { | ||
| 137 | + // value: '1', | ||
| 138 | + // label: '物业费' | ||
| 139 | + // }, { | ||
| 140 | + // value: '2', | ||
| 141 | + // label: '水费' | ||
| 142 | + // }, { | ||
| 143 | + // value: '3', | ||
| 144 | + // label: '卫生费' | ||
| 145 | + // }, { | ||
| 146 | + // value: '4', | ||
| 147 | + // label: '燃气费' | ||
| 148 | + // }, { | ||
| 149 | + // value: '5', | ||
| 150 | + // label: '电费' | ||
| 151 | + // }, | ||
| 152 | + ], | ||
| 151 | recordList: [], | 153 | recordList: [], |
| 152 | list: [{ | 154 | list: [{ |
| 153 | name: 'H5支付', | 155 | name: 'H5支付', |
| @@ -174,7 +176,7 @@ | @@ -174,7 +176,7 @@ | ||
| 174 | // num = num + Number(e[n].payPrice) | 176 | // num = num + Number(e[n].payPrice) |
| 175 | // } | 177 | // } |
| 176 | } | 178 | } |
| 177 | - return num | 179 | + return num.toFixed(2) |
| 178 | } | 180 | } |
| 179 | }, | 181 | }, |
| 180 | computed: { | 182 | computed: { |
| @@ -245,7 +247,12 @@ | @@ -245,7 +247,12 @@ | ||
| 245 | 247 | ||
| 246 | }, | 248 | }, |
| 247 | methods: { | 249 | methods: { |
| 248 | - | 250 | + changeitemisshowxz(index,index1) { |
| 251 | + console.error(index,index1) | ||
| 252 | + console.error(this.recordList[index].itemDetailsVOList[index1].isshowxz) | ||
| 253 | + this.recordList[index].itemDetailsVOList[index1].isshowxz = !this.recordList[index].itemDetailsVOList[index1].isshowxz | ||
| 254 | + this.$forceUpdate() | ||
| 255 | + }, | ||
| 249 | changeisxl(e) { | 256 | changeisxl(e) { |
| 250 | this.recordList[e].isxl = !this.recordList[e].isxl | 257 | this.recordList[e].isxl = !this.recordList[e].isxl |
| 251 | }, | 258 | }, |