|
@@ -14,7 +14,7 @@
|
|
<div class="distribution_con contentRoll">
|
|
<div class="distribution_con contentRoll">
|
|
<div class="distribution_box" v-for="item,index in distributionList" :key="index">
|
|
<div class="distribution_box" v-for="item,index in distributionList" :key="index">
|
|
<div class="distribution_ItemBom">
|
|
<div class="distribution_ItemBom">
|
|
- <van-checkbox v-if="todayAndTomorrow" :disabled="item.checkboxDisabled || item.teamNames.indexOf(user.name) == -1" v-model="item.prodProcedure.isSelected" @click="itemChecked" shape="square">
|
|
|
|
|
|
+ <van-checkbox v-if="todayAndTomorrow" :disabled="item.checkboxDisabled || (item.teamNames&&item.teamNames.indexOf(user.name) == -1)" v-model="item.prodProcedure.isSelected" @click="itemChecked" shape="square">
|
|
</van-checkbox>
|
|
</van-checkbox>
|
|
<div class="PlanItem">
|
|
<div class="PlanItem">
|
|
<span>{{item.prodProcedure.seq}}. {{ item.prodProcedure.name }}</span>
|
|
<span>{{item.prodProcedure.seq}}. {{ item.prodProcedure.name }}</span>
|
|
@@ -153,7 +153,7 @@ export default {
|
|
let resArr= this.distributionList.map(item=>{
|
|
let resArr= this.distributionList.map(item=>{
|
|
if(item.prodProcedure.isSelected){
|
|
if(item.prodProcedure.isSelected){
|
|
if(item.prodProcedureTeamList.filter(i=>i.userId==this.user.id).length>0){
|
|
if(item.prodProcedureTeamList.filter(i=>i.userId==this.user.id).length>0){
|
|
- return item.prodProcedureTeamList.filter(i=>i.userId==this.user.id)[0].planProcedureId
|
|
|
|
|
|
+ return item.prodProcedureTeamList.filter(i=>i.userId==this.user.id)[0].id
|
|
}else{
|
|
}else{
|
|
return "-1"
|
|
return "-1"
|
|
}
|
|
}
|
|
@@ -357,7 +357,7 @@ export default {
|
|
for(var i in arr) {
|
|
for(var i in arr) {
|
|
arr[i].checkboxDisabled = true
|
|
arr[i].checkboxDisabled = true
|
|
if(arr[i].prodProcedureTeamList&&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.status == 1) && item.userId==this.user.id)
|
|
console.log(arrList, 'arrList')
|
|
console.log(arrList, 'arrList')
|
|
if(arrList.length > 0) {
|
|
if(arrList.length > 0) {
|
|
arr[i].checkboxDisabled = false
|
|
arr[i].checkboxDisabled = false
|