|
@@ -535,40 +535,40 @@ const curFormConfig = computed(() => {
|
|
|
// engineer_user_id_1 实施工程师
|
|
|
// assistant_engineer_user_id_1 助理工程师
|
|
|
formProperty.forEach((field) => {
|
|
|
- // 区域协调人
|
|
|
- if (field.formId.startsWith('region_user')) {
|
|
|
- field.value = crmInfo.value.regionCoordinatorId;
|
|
|
- field.options = [
|
|
|
- {
|
|
|
- label: crmInfo.value.regionCoordinatorName,
|
|
|
- value: crmInfo.value.regionCoordinatorId,
|
|
|
- },
|
|
|
- ];
|
|
|
- }
|
|
|
- // 实施工程师
|
|
|
- if (field.formId.startsWith('engineer_user')) {
|
|
|
- field.options = crmInfo.value.effectEngineerList.map((user) => {
|
|
|
- return {
|
|
|
- label: user.name,
|
|
|
- value: user.userId,
|
|
|
- };
|
|
|
- });
|
|
|
- if (field.options.length == 1) {
|
|
|
- field.value = field.options[0].value;
|
|
|
- }
|
|
|
- }
|
|
|
- // 助理工程师
|
|
|
- if (field.formId.startsWith('assistant_engineer_user')) {
|
|
|
- field.options = crmInfo.value.assistantEngineerList.map((user) => {
|
|
|
- return {
|
|
|
- label: user.name,
|
|
|
- value: user.userId,
|
|
|
- };
|
|
|
- });
|
|
|
- if (!field.options.length) {
|
|
|
- field.writable = false;
|
|
|
- }
|
|
|
- }
|
|
|
+ // // 区域协调人
|
|
|
+ // if (field.formId.startsWith('region_user')) {
|
|
|
+ // field.value = crmInfo.value.regionCoordinatorId;
|
|
|
+ // field.options = [
|
|
|
+ // {
|
|
|
+ // label: crmInfo.value.regionCoordinatorName,
|
|
|
+ // value: crmInfo.value.regionCoordinatorId,
|
|
|
+ // },
|
|
|
+ // ];
|
|
|
+ // }
|
|
|
+ // // 实施工程师
|
|
|
+ // if (field.formId.startsWith('engineer_user')) {
|
|
|
+ // field.options = crmInfo.value.effectEngineerList.map((user) => {
|
|
|
+ // return {
|
|
|
+ // label: user.name,
|
|
|
+ // value: user.userId,
|
|
|
+ // };
|
|
|
+ // });
|
|
|
+ // if (field.options.length == 1) {
|
|
|
+ // field.value = field.options[0].value;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // // 助理工程师
|
|
|
+ // if (field.formId.startsWith('assistant_engineer_user')) {
|
|
|
+ // field.options = crmInfo.value.assistantEngineerList.map((user) => {
|
|
|
+ // return {
|
|
|
+ // label: user.name,
|
|
|
+ // value: user.userId,
|
|
|
+ // };
|
|
|
+ // });
|
|
|
+ // if (!field.options.length) {
|
|
|
+ // field.writable = false;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
if (field.formId.startsWith('week_people_day') && !field.value) {
|
|
|
field.value = crmInfo.value.peoperDay;
|
|
|
}
|