|
@@ -72,7 +72,7 @@
|
|
<van-checkbox v-model="isAllChecked" :disabled="distributionList.length == 0" @click="allChecked" shape="square" style="padding-left:3vw"></van-checkbox>
|
|
<van-checkbox v-model="isAllChecked" :disabled="distributionList.length == 0" @click="allChecked" shape="square" style="padding-left:3vw"></van-checkbox>
|
|
<div style="padding:1vh 2vw">
|
|
<div style="padding:1vh 2vw">
|
|
<van-button @click="batchReceive()" :disabled="!isCanAgree || distributionList.length == 0" type="info" size="small">批量接收</van-button>
|
|
<van-button @click="batchReceive()" :disabled="!isCanAgree || distributionList.length == 0" type="info" size="small">批量接收</van-button>
|
|
- <van-button @click="cancellationReceiveBatch()" :disabled="!isCanAgree || distributionList.length == 0" type="info" size="small">批量取消接收</van-button>
|
|
|
|
|
|
+ <!-- <van-button @click="cancellationReceiveBatch()" :disabled="!isCanAgree || distributionList.length == 0" type="info" size="small">批量取消接收</van-button> -->
|
|
<!-- <van-button @click="batchAgree(false)" :disabled="!isCanAgree || distributionList.length == 0" type="danger" size="small" style="margin-left:2vw">批量驳回</van-button> -->
|
|
<!-- <van-button @click="batchAgree(false)" :disabled="!isCanAgree || distributionList.length == 0" type="danger" size="small" style="margin-left:2vw">批量驳回</van-button> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -303,10 +303,9 @@ export default {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
res.data.forEach(item => { item.flg = false })
|
|
res.data.forEach(item => { item.flg = false })
|
|
let arr = res.data
|
|
let arr = res.data
|
|
- // checkboxDisabled
|
|
|
|
for(var i in arr) {
|
|
for(var i in arr) {
|
|
arr[i].checkboxDisabled = true
|
|
arr[i].checkboxDisabled = true
|
|
- if(arr[i].prodProcedureTeamList.length > 0) {
|
|
|
|
|
|
+ if(arr[i].prodProcedureTeamList&&arr[i].prodProcedureTeamList.length > 0) {
|
|
let arrList = arr[i].prodProcedureTeamList.filter(item => item.status == 0 && item.userId==this.user.id)
|
|
let arrList = arr[i].prodProcedureTeamList.filter(item => item.status == 0 && item.userId==this.user.id)
|
|
console.log(arrList, 'arrList')
|
|
console.log(arrList, 'arrList')
|
|
if(arrList.length > 0) {
|
|
if(arrList.length > 0) {
|
|
@@ -315,7 +314,6 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// this.distributionList = res.data
|
|
// this.distributionList = res.data
|
|
- console.log(arr,'')
|
|
|
|
this.distributionList = arr
|
|
this.distributionList = arr
|
|
} else {
|
|
} else {
|
|
this.$toast.clear();
|
|
this.$toast.clear();
|