|
@@ -108,25 +108,30 @@
|
|
|
</ion-select>
|
|
|
<!-- <ion-note slot="error">企业状态不能为空</ion-note>-->
|
|
|
</div>
|
|
|
- <div class="form-select">
|
|
|
- <ion-label>是否缺工<span class="danger">*</span></ion-label>
|
|
|
- <ion-select id="isShortAge" name="isShortAge" cancel-text="取消" v-model="dataModel.isShortage"
|
|
|
- interface="action-sheet" placeholder="请选择是否缺工" style="width: 100%;text-align: left;">
|
|
|
- <ion-select-option v-for="(record,key) in shortAgeTypeList" :key="key"
|
|
|
- v-model:value="record.value">
|
|
|
- {{ record.name }}
|
|
|
- </ion-select-option>
|
|
|
- </ion-select>
|
|
|
-<!-- <ion-note slot="error">是否缺工不能为空</ion-note>-->
|
|
|
+ <div class="form-input">
|
|
|
+ <ion-label>用工情况(人,含临时人员)<span class="danger">*</span></ion-label>
|
|
|
+ <ion-input type="number" placeholder="请输入用工人数" label-placement="stacked" :clear-input="true"
|
|
|
+ v-model="dataModel.workSituation" class="custom" @ionBlur="workSituationBlur">
|
|
|
+ </ion-input>
|
|
|
</div>
|
|
|
<div class="form-title">
|
|
|
- 其他信息
|
|
|
+ 扩展信息
|
|
|
<div style="float:right;">
|
|
|
<ion-label style="color: red;font-size: 14px;" @click="isShow=!isShow">{{isShow?"收起":"展开"}}</ion-label>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div v-show="isShow" >
|
|
|
+ <div class="form-select">
|
|
|
+ <ion-label>是否缺工</ion-label>
|
|
|
+ <ion-select id="isShortAge" name="isShortAge" cancel-text="取消" v-model="dataModel.isShortage"
|
|
|
+ interface="action-sheet" placeholder="请选择是否缺工" style="width: 100%;text-align: left;">
|
|
|
+ <ion-select-option v-for="(record,key) in shortAgeTypeList" :key="key"
|
|
|
+ v-model:value="record.value">
|
|
|
+ {{ record.name }}
|
|
|
+ </ion-select-option>
|
|
|
+ </ion-select>
|
|
|
+ </div>
|
|
|
<div class="form-input">
|
|
|
<ion-label>法定代表人(负责人)</ion-label>
|
|
|
<ion-input placeholder="请输入法定代表人" label-placement="stacked" :clear-input="true"
|
|
@@ -264,12 +269,6 @@
|
|
|
</ion-select>
|
|
|
</div>
|
|
|
<div class="form-input">
|
|
|
- <ion-label>用工情况(人)</ion-label>
|
|
|
- <ion-input type="number" placeholder="请输入用工人数" label-placement="stacked" :clear-input="true"
|
|
|
- v-model="dataModel.workSituation" class="custom" @ionBlur="workSituationBlur">
|
|
|
- </ion-input>
|
|
|
- </div>
|
|
|
- <div class="form-input">
|
|
|
<ion-label>参保人数(人)</ion-label>
|
|
|
<ion-input type="number" placeholder="请输入参保人数" label-placement="stacked" :clear-input="true"
|
|
|
v-model="dataModel.insuredCount" class="custom" @ionBlur="insuredCountBlur">
|
|
@@ -413,7 +412,7 @@ export default defineComponent({
|
|
|
estateCategoryID: "",
|
|
|
tagID:null,
|
|
|
website:null,
|
|
|
- companyModel: null,
|
|
|
+ companyModel: "",
|
|
|
regionCode: null,
|
|
|
streetCode: null,
|
|
|
workSituation: null,
|
|
@@ -526,6 +525,28 @@ export default defineComponent({
|
|
|
if(!isStringInteger(formState.dataModel.workSituation)||formState.dataModel.workSituation<1){
|
|
|
presentAlert("用工情况必须为一个正整数!");
|
|
|
inputValid.value = false;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // 匹配企业规模
|
|
|
+ const workSituationRanges = [
|
|
|
+ {max: 19, model: 1},
|
|
|
+ {min: 20, max: 99, model: 2},
|
|
|
+ {min: 100, max: 299, model: 3},
|
|
|
+ {min: 300, max: 499, model: 4},
|
|
|
+ {min: 500, max: 999, model: 5},
|
|
|
+ {min: 1000, max: 9999, model: 6},
|
|
|
+ {min: 10000, model: 7}
|
|
|
+ ];
|
|
|
+ const workSituation = formState.dataModel.workSituation;
|
|
|
+ formState.dataModel.companyModel = ""; // 默认值,如果所有范围都不匹配
|
|
|
+ for (const range of workSituationRanges) {
|
|
|
+ if (
|
|
|
+ (range.min === undefined || workSituation >= range.min) &&
|
|
|
+ (range.max === undefined || workSituation <= range.max)
|
|
|
+ ) {
|
|
|
+ formState.dataModel.companyModel = range.model + "";
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -550,7 +571,7 @@ export default defineComponent({
|
|
|
userName: {required},
|
|
|
userMobile: {required},
|
|
|
recordStatus: {required},
|
|
|
- isShortage: {required},
|
|
|
+ workSituation: {required},
|
|
|
}
|
|
|
}
|
|
|
});
|