|
|
@@ -23,7 +23,7 @@
|
|
|
v-for="(item, index) in detailsList"
|
|
|
:key="index"
|
|
|
:info="item"
|
|
|
- :isEdit="isBatch"
|
|
|
+ :isEdit="true"
|
|
|
:isCheck="item.checked"
|
|
|
@click="checkItemEvent"
|
|
|
></DetailsItem>
|
|
|
@@ -33,27 +33,29 @@
|
|
|
</block>
|
|
|
</scroll-view>
|
|
|
<view class="bar-view">
|
|
|
- <template v-if="!isBatch">
|
|
|
- <view class="info-view">
|
|
|
- 共 <text class="price">{{ num }}</text> 笔
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
+ <template>
|
|
|
<view class="info-view">
|
|
|
+ <view
|
|
|
+ class="details-select"
|
|
|
+ @click="allCheck"
|
|
|
+ >
|
|
|
+ <text
|
|
|
+ class="iconfont iconxuanzhong"
|
|
|
+ v-if="isAllCheck"
|
|
|
+ > </text>
|
|
|
+ <text
|
|
|
+ class="iconfont iconweixuanzhong"
|
|
|
+ v-else
|
|
|
+ > </text>
|
|
|
+ </view>
|
|
|
已选 <text class="price">{{ selectList.length }}</text> 笔,
|
|
|
<text class="unit">¥</text>
|
|
|
<text class="price">{{ selectTotalAmount }}</text>
|
|
|
</view>
|
|
|
</template>
|
|
|
- <view class="btn-view" v-if="isBatch">
|
|
|
- <button :class="['admin-button-com', 'disable']" @click="isBatch = false"> 取消</button>
|
|
|
+ <view class="btn-view">
|
|
|
<button :class="['admin-button-com', 'blue']" @click="batchEvent" >收款</button>
|
|
|
</view>
|
|
|
- <view class="btn-view" v-else>
|
|
|
- <button class="admin-button-com blue" @click="isBatch = true">
|
|
|
- 批量收款
|
|
|
- </button>
|
|
|
- </view>
|
|
|
</view>
|
|
|
<kd-entrance></kd-entrance>
|
|
|
</view>
|
|
|
@@ -68,7 +70,6 @@ export default {
|
|
|
components: { AppWrapperEmpty, DetailsItem },
|
|
|
data() {
|
|
|
return {
|
|
|
- isBatch: false,
|
|
|
customInfo: "",
|
|
|
totalAmount: "",
|
|
|
num: "",
|
|
|
@@ -149,7 +150,7 @@ export default {
|
|
|
batchEvent() {
|
|
|
try {
|
|
|
if (this.$util.isEmpty(this.selectList)) {
|
|
|
- this.$msg("请还款选择订单");
|
|
|
+ this.$msg("请选择还款订单");
|
|
|
return;
|
|
|
}
|
|
|
let ids = this.selectList.map(ele => {
|