|
|
|
@ -1104,22 +1104,18 @@ const handle = () => {
|
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
// 是否可以查看完结信息 |
|
|
|
|
const Completionpermissions = computed(async () => { |
|
|
|
|
if (await localStorage.getItem('my_data')) { |
|
|
|
|
Mydata.value = await JSON.parse(localStorage.getItem('my_data')); //获取本地仓库信息 |
|
|
|
|
const Completionpermissions = computed(() => { |
|
|
|
|
const myDataStr = localStorage.getItem('my_data'); |
|
|
|
|
if (myDataStr) { |
|
|
|
|
Mydata.value = JSON.parse(myDataStr); |
|
|
|
|
} |
|
|
|
|
if (CompensationParty.value.length) { |
|
|
|
|
console.log(CompletedView.value, 'CompletedView.value'); |
|
|
|
|
if (CompensationParty.value && CompensationParty.value.length) { |
|
|
|
|
|
|
|
|
|
if (CompletedView.value.includes(Mydata.value.id) || UserPermissions.value != '仓库客服') { |
|
|
|
|
console.log( |
|
|
|
|
CompletedView.value.includes(Mydata.id), |
|
|
|
|
'CompletedView.value.includes(Mydata.id)' |
|
|
|
|
); |
|
|
|
|
return true; |
|
|
|
|
} else { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return false; |
|
|
|
|
}); |
|
|
|
|
const onLoad = async () => { |
|
|
|
|
pageState.value = true; //开启页面加载 |
|
|
|
|