|
@@ -6,8 +6,8 @@
|
|
<div class="formBatch">
|
|
<div class="formBatch">
|
|
<van-checkbox v-model="isAllChecked" @click="allChecked" shape="square" style="padding-left:3vw"></van-checkbox>
|
|
<van-checkbox v-model="isAllChecked" @click="allChecked" shape="square" style="padding-left:3vw"></van-checkbox>
|
|
<div style="padding:1vh 2vw">
|
|
<div style="padding:1vh 2vw">
|
|
- <van-button @click="batchAgree(true)" type="info" size="small">批量通过</van-button>
|
|
|
|
- <van-button @click="batchAgree(false)" type="danger" size="small" style="margin-left:2vw">批量驳回</van-button>
|
|
|
|
|
|
+ <van-button @click="batchAgree(true)" :disabled="!isCanAgree" type="info" size="small">批量通过</van-button>
|
|
|
|
+ <van-button @click="batchAgree(false)" :disabled="!isCanAgree" type="danger" size="small" style="margin-left:2vw">批量驳回</van-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<van-skeleton v-for="(item,index) in report" :key="index" title avatar :row="3" :loading="false">
|
|
<van-skeleton v-for="(item,index) in report" :key="index" title avatar :row="3" :loading="false">
|
|
@@ -130,7 +130,8 @@
|
|
nowTime: this.format(new Date(new Date()),"yyyy-MM-dd"),
|
|
nowTime: this.format(new Date(new Date()),"yyyy-MM-dd"),
|
|
showPicker: false,
|
|
showPicker: false,
|
|
report: [],
|
|
report: [],
|
|
- flg: false
|
|
|
|
|
|
+ flg: false,
|
|
|
|
+ isCanAgree: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -142,20 +143,26 @@
|
|
for(let i in this.report){
|
|
for(let i in this.report){
|
|
this.report[i].checked = true
|
|
this.report[i].checked = true
|
|
}
|
|
}
|
|
|
|
+ this.isCanAgree = true
|
|
}else{
|
|
}else{
|
|
for(let i in this.report){
|
|
for(let i in this.report){
|
|
this.report[i].checked = false
|
|
this.report[i].checked = false
|
|
}
|
|
}
|
|
|
|
+ this.isCanAgree = false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
itemChecked(){
|
|
itemChecked(){
|
|
let isall = true
|
|
let isall = true
|
|
|
|
+ let iscan = false
|
|
for(let i in this.report){
|
|
for(let i in this.report){
|
|
if(!this.report[i].checked){
|
|
if(!this.report[i].checked){
|
|
isall = false
|
|
isall = false
|
|
|
|
+ }else {
|
|
|
|
+ iscan = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.isAllChecked = isall
|
|
this.isAllChecked = isall
|
|
|
|
+ this.isCanAgree = iscan
|
|
},
|
|
},
|
|
batchAgree(bol){
|
|
batchAgree(bol){
|
|
const toast = this.$toast.loading({
|
|
const toast = this.$toast.loading({
|