|
@@ -4,14 +4,14 @@
|
|
|
<div style="padding: 10px 0 20px;">找到{{ goods.length }}个属于"{{ goods[0].recipient
|
|
|
}}"&部门"{{ goods[0].departmentId }}"&座位号:"{{ goods[0].sendSeat }}"的快件:</div>
|
|
|
|
|
|
- <van-checkbox :disabled="allCheckedDisable" style="margin-bottom: 10px;" v-model="isAllChecked"
|
|
|
+ <van-checkbox style="margin-bottom: 10px;" v-model="isAllChecked"
|
|
|
shape="square">全选</van-checkbox>
|
|
|
|
|
|
<van-form @submit="onSubmit">
|
|
|
<van-field name="checkboxGroup">
|
|
|
<template #input>
|
|
|
<van-checkbox-group v-model="checkedGoods">
|
|
|
- <van-checkbox style="margin-bottom: 10px;" :disabled="checkDisabled(good)"
|
|
|
+ <van-checkbox style="margin-bottom: 10px;"
|
|
|
:checked="good.checked" v-for="good in goods" :name="good.id" :key="good.id"
|
|
|
shape="square">
|
|
|
{{ good.expressNo }} & {{ good.expressType }} & {{ good.expressQuantity }}件 &{{
|
|
@@ -82,15 +82,8 @@ export default {
|
|
|
this.isCombine = value
|
|
|
},
|
|
|
|
|
|
- checkDisabled(good) {
|
|
|
- return good.expressStatus !== "1" && good.expressStatus !== "4"
|
|
|
- }
|
|
|
-
|
|
|
},
|
|
|
computed: {
|
|
|
- allCheckedDisable() {
|
|
|
- return this.goods.filter((good) => !this.checkDisabled(good)).length === 0
|
|
|
- },
|
|
|
isAllChecked: {
|
|
|
// 计算是否全选
|
|
|
get() {
|