|
@@ -410,12 +410,12 @@ const setdutyUser=async()=>{
|
|
|
contractId: treecontractId.value,
|
|
|
})
|
|
|
if (!error && code === 200) {
|
|
|
- if(contractType===1){
|
|
|
- dutyUser.value=data?.contractorUnitName||''
|
|
|
- }else if(contractType===2){
|
|
|
- dutyUser.value=data?.constructionUnitName||''
|
|
|
- }else if(contractType===3){
|
|
|
+ if(data?.contractType===1){
|
|
|
+ dutyUser.value=data?.constructionUnitName||''
|
|
|
+ }else if(data?.ontractType===2){
|
|
|
dutyUser.value=data?.supervisionUnitName||''
|
|
|
+ }else if(data?.contractType===3){
|
|
|
+ dutyUser.value=data?.contractorUnitName||''
|
|
|
}
|
|
|
}
|
|
|
|