|
@@ -502,6 +502,9 @@ const curFormConfig = computed(() => {
|
|
|
value: user.userId,
|
|
|
};
|
|
|
});
|
|
|
+ if (field.options.length == 1) {
|
|
|
+ field.value = field.options[0].value;
|
|
|
+ }
|
|
|
}
|
|
|
// 助理工程师
|
|
|
if (field.formId.startsWith('assistant_engineer_user')) {
|
|
@@ -511,6 +514,9 @@ const curFormConfig = computed(() => {
|
|
|
value: user.userId,
|
|
|
};
|
|
|
});
|
|
|
+ if (!field.options.length) {
|
|
|
+ field.writable = false;
|
|
|
+ }
|
|
|
}
|
|
|
if (field.formId.startsWith('week_people_day')) {
|
|
|
field.value = crmInfo.value.peoperDay;
|