|
@@ -410,7 +410,7 @@ export default defineComponent({
|
|
|
companyType: null,
|
|
|
industryID:null,
|
|
|
industryName:null,
|
|
|
- estateCategoryID:null,
|
|
|
+ estateCategoryID: "",
|
|
|
tagID:null,
|
|
|
website:null,
|
|
|
companyModel: null,
|
|
@@ -668,6 +668,20 @@ export default defineComponent({
|
|
|
const onSetIndustryID = (data: any)=>{
|
|
|
formState.dataModel.industryID = data.value;
|
|
|
formState.dataModel.industryName = data.text;
|
|
|
+ const text = data.text.split("-")[0] as string;
|
|
|
+ // 所属产业判断
|
|
|
+ const categoryMap: { [key: string]: any } = {
|
|
|
+ '农、林、牧、渔业': 1,
|
|
|
+ '采矿业': 2,
|
|
|
+ '制造业': 2,
|
|
|
+ '电力、热力、燃气及水生产和供应业': 2,
|
|
|
+ '建筑业': 2
|
|
|
+ };
|
|
|
+ if (text) {
|
|
|
+ formState.dataModel.estateCategoryID = categoryMap[text] || 3;
|
|
|
+ } else {
|
|
|
+ formState.dataModel.estateCategoryID = "3";
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
const inputValid = ref(true);
|