595 lines
23 KiB
Vue
595 lines
23 KiB
Vue
<template>
|
||
<view>
|
||
<!-- 顶部操作条 -->
|
||
<cu-custom :bgColor="'bg-main-color'" :isBack="true">
|
||
<block slot="backText">返回</block>
|
||
<block slot="content">实名认证</block>
|
||
</cu-custom>
|
||
<!-- 步骤条 -->
|
||
<view class="bg-white padding">
|
||
<view class="cu-steps">
|
||
<view class="cu-item" :class="index>curStep?'':'text-main-color'" v-for="(stepName, index) in stepList">
|
||
<text class='cuIcon-radioboxfill'></text> {{stepName}}
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<!-- 未认证的展示认证填写页面 -->
|
||
<view v-if="curUserInfo && curUserInfo.status === 1">
|
||
<form v-if="curStep === 0">
|
||
<view class="margin-bottom-with-bar">
|
||
<view class="bg-white margin-top-sm">
|
||
<view class="cu-bar padding-lr solid-bottom">
|
||
<view class="text-lg">
|
||
<text class="text-main-color"><text class="cuIcon-titles"></text></text>
|
||
<text>个人认证信息<text class="text-red">(必填)</text></text>
|
||
</view>
|
||
</view>
|
||
<view class="cu-bar bg-white solid-top">
|
||
<view class="action">
|
||
身份证上传(正反面)
|
||
</view>
|
||
</view>
|
||
<view class="cu-form-group">
|
||
<view class="grid col-4 grid-square flex-sub">
|
||
<view class="bg-img" v-for="(item,index) in realNameInfo.idCardImgList" :key="index"
|
||
@tap="viewImage($event, realNameInfo.idCardImgList)" :data-url="item">
|
||
<image :src="item" mode="aspectFill"></image>
|
||
<view class="cu-tag bg-red" @tap.stop="delImg($event, realNameInfo.idCardImgList)" :data-index="index">
|
||
<text class='cuIcon-close'></text>
|
||
</view>
|
||
</view>
|
||
<view class="solids" @tap="chooseImage($event, realNameInfo.idCardImgList)" v-if="realNameInfo.idCardImgList.length<2">
|
||
<text class='cuIcon-cameraadd'></text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="cu-form-group">
|
||
<view class="title">姓名</view>
|
||
<input name="name" v-model="realNameInfo.name" placeholder="请输入真实姓名"></input>
|
||
</view>
|
||
<view class="cu-form-group">
|
||
<view class="title">身份证号</view>
|
||
<input name="idCardNum" type="idcard" v-model="realNameInfo.idCardNum" placeholder="请输入你的身份证号"></input>
|
||
</view>
|
||
</view>
|
||
<view class="bg-white margin-top-sm padding-bottom-sm">
|
||
<view class="cu-bar padding-lr solid-bottom">
|
||
<view class="text-lg">
|
||
<text class="text-main-color"><text class="cuIcon-titles"></text></text>
|
||
<text>公司认证信息(选填)</text>
|
||
</view>
|
||
</view>
|
||
<radio-group class="flex justify-around padding-tb-sm">
|
||
<view class="padding-sm option-card" :class="realNameInfo.companySize === 0 ? 'border-main-color' : ''" @click="chooseCompanySize(0)">
|
||
<view class="text-black text-lg margin-tb-xs">社区服务</view>
|
||
<view class="text-gray option-content margin-tb-xs">个体或公司经营执照认证,服务团队1-3人</view>
|
||
<radio style="transform:scale(1)" class="main-color flex justify-end" :checked="realNameInfo.companySize === 0"></radio>
|
||
</view>
|
||
<view class="padding-sm option-card" :class="realNameInfo.companySize === 1 ? 'border-main-color' : ''" @click="chooseCompanySize(1)">
|
||
<view class="text-black text-lg margin-tb-xs">区域服务</view>
|
||
<view class="text-gray option-content margin-tb-xs">个体或公司经营执照认证,服务团队3-10人</view>
|
||
<radio style="transform:scale(1)" class="main-color flex justify-end" :checked="realNameInfo.companySize === 1"></radio>
|
||
</view>
|
||
<view class="padding-sm option-card" :class="realNameInfo.companySize === 2 ? 'border-main-color' : ''" @click="chooseCompanySize(2)">
|
||
<view class="text-black text-lg margin-tb-xs">城市服务</view>
|
||
<view class="text-gray option-content margin-tb-xs">个体或公司经营执照认证,服务团队10-50人</view>
|
||
<radio style="transform:scale(1)" class="main-color flex justify-end" :checked="realNameInfo.companySize === 2"></radio>
|
||
</view>
|
||
</radio-group>
|
||
<view class="cu-form-group">
|
||
<view class="title">品牌名称</view>
|
||
<input name="bandName" v-model="realNameInfo.bandName" maxlength="7" placeholder="请填写你的品牌/主体名简称(限7字)"></input>
|
||
</view>
|
||
<view class="cu-bar bg-white solid-top">
|
||
<view class="action">
|
||
公司营业执照、公司账户
|
||
</view>
|
||
</view>
|
||
<view class="cu-form-group">
|
||
<view class="grid col-4 grid-square flex-sub">
|
||
<view class="bg-img" v-for="(item,index) in realNameInfo.licenseImgList" :key="index"
|
||
@tap="viewImage($event, realNameInfo.licenseImgList)" :data-url="item">
|
||
<image :src="item" mode="aspectFill"></image>
|
||
<view class="cu-tag bg-red" @tap.stop="delImg($event, realNameInfo.licenseImgList)" :data-index="index">
|
||
<text class='cuIcon-close'></text>
|
||
</view>
|
||
</view>
|
||
<view class="solids" @tap="chooseImage($event, realNameInfo.licenseImgList)" v-if="realNameInfo.licenseImgList.length<1">
|
||
<text class='cuIcon-cameraadd'></text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="cu-form-group">
|
||
<view class="title">公司名称</view>
|
||
<input name="companyName" v-model="realNameInfo.companyName" placeholder="请输入公司名称"></input>
|
||
</view>
|
||
<view class="cu-form-group">
|
||
<view class="title">执照号码</view>
|
||
<input name="businessLicenseNum" v-model="realNameInfo.businessLicenseNum" placeholder="请输入公司执照号码"></input>
|
||
</view>
|
||
<view class="cu-form-group">
|
||
<view class="title">公司地址</view>
|
||
<view class="flex-column-between flex-view">
|
||
<picker :mode="'multiSelector'" @change="regionChange" @columnchange="regionColChange" :value="multiIndex" :range-key="'areaName'" :range="areaList">
|
||
<view class="picker">
|
||
{{realNameInfo.companyArea && realNameInfo.companyArea.length ? realNameInfo.companyArea[0].areaName + '-' + realNameInfo.companyArea[1].areaName + '-' + realNameInfo.companyArea[2].areaName : '请选择'}}
|
||
</view>
|
||
</picker>
|
||
<!-- <view><input name="companyAddress" v-model="realNameInfo.companyAddress" placeholder="请输入营业执照地址/经营地址/服务网点"></input></view> -->
|
||
<textarea name="companyAddress" class="solid padding-sm" maxlength="-1" v-model="realNameInfo.companyAddress" placeholder="请输入营业执照地址/经营地址/服务网点" />
|
||
</view>
|
||
</view>
|
||
<view class="cu-form-group">
|
||
<view class="title">法人/负责人</view>
|
||
<input name="legalPersonName" v-model="realNameInfo.legalPersonName" placeholder="请输入法人名称"></input>
|
||
</view>
|
||
<view class="cu-form-group">
|
||
<view class="title">联系电话</view>
|
||
<input name="legalPersonPhoneNum" v-model="realNameInfo.legalPersonPhoneNum" placeholder="请输入联系人电话"></input>
|
||
</view>
|
||
<view class="cu-form-group">
|
||
<view class="title">其他服务</view>
|
||
<checkbox-group class="radio-view" @change="changeAdditionalServId">
|
||
<label class="margin-right-sm" v-for="(item, index) in additionalServ">
|
||
<checkbox style="transform:scale(0.7)" class="round main-color" :value="item.id"/>
|
||
<text class="margin-left-xs">{{item.name}}</text>
|
||
</label>
|
||
</checkbox-group>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<!-- 下一步 -->
|
||
<view class="cu-bar tabbar border shop fixed-bottom-bar bg-back">
|
||
<button class="bg-main-color long-btn margin-lr" @click="nextStep">下一步</button>
|
||
</view>
|
||
</form>
|
||
<view v-else-if="curStep === 1" class="margin-top-sm">
|
||
<view class="margin-bottom-with-bar">
|
||
<view class="bg-white margin-top-sm" v-for="(item, index) in specialSkill">
|
||
<view class="cu-bar padding-lr solid-bottom">
|
||
<view class="text-lg">
|
||
<text class="text-main-color"><text class="cuIcon-titles"></text></text>
|
||
<text>特殊技能{{index + 1}}(特殊工种如空调安装等请上传)</text>
|
||
</view>
|
||
<view @click="delSpecialSkill(index)">
|
||
<text class="text-main-color">删除</text>
|
||
</view>
|
||
</view>
|
||
<view class="padding">
|
||
<view>
|
||
<text>特殊技能:</text>
|
||
<view>
|
||
<view class="flex align-center margin-bottom-xs">
|
||
<my-uni-combox class="flex-sub margin-right-xs" :candidates="specialTypeList"
|
||
:showField="'goodsCategoryName'" placeholder="请选择"
|
||
v-model="specialSkill[index].specialTypeObj" @input="chooseSpecialSkill($event, 0, index)">
|
||
</my-uni-combox>
|
||
<my-uni-combox class="flex-sub margin-right-xs"
|
||
:candidates="specialSkill[index].specialSubTypeList" :showField="'goodsCategoryName'"
|
||
placeholder="请选择" v-model="specialSkill[index].specialSubTypeObj"
|
||
@input="chooseSpecialSkill($event, 1, index)"></my-uni-combox>
|
||
<my-uni-combox class="flex-sub" :candidates="specialSkill[index].specialSubSubTypeList"
|
||
:showField="'goodsCategoryName'" placeholder="请选择"
|
||
v-model="specialSkill[index].specialSubSubTypeObj"
|
||
@input="chooseSpecialSkill($event, 2, index)"></my-uni-combox>
|
||
</view>
|
||
<my-uni-combox :candidates="specialSkill[index].specialSkillList"
|
||
:showField="'specialSkillName'" placeholder="请选择"
|
||
v-model="specialSkill[index].specialSkillObj"
|
||
@input="chooseSpecialSkill($event, 3, index)"></my-uni-combox>
|
||
</view>
|
||
</view>
|
||
<view class="flex justify-start align-center margin-top-sm">
|
||
<view>技能证书:</view>
|
||
<view class="grid col-1 upload-pic-grid grid-square flex-sub">
|
||
<view class="bg-img" v-for="(url, index0) in specialSkill[index].skillCert" :key="index0"
|
||
@tap="viewImage($event, specialSkill[index].skillCert)" :data-url="url">
|
||
<image :src="url" mode="aspectFill"></image>
|
||
<view class="cu-tag bg-red" @tap.stop="delImg($event, specialSkill[index].skillCert)" :data-index="index0">
|
||
<text class='cuIcon-close'></text>
|
||
</view>
|
||
</view>
|
||
<view class="solids" @tap="chooseImage($event, specialSkill[index].skillCert)" v-if="specialSkill[index].skillCert.length < 1">
|
||
<text class='cuIcon-cameraadd'></text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="flex justify-start align-center margin-top-sm">
|
||
<view>保险证明:</view>
|
||
<view class="grid col-1 upload-pic-grid grid-square flex-sub">
|
||
<view class="bg-img" v-for="(url, index0) in specialSkill[index].insurCert" :key="index0"
|
||
@tap="viewImage($event, specialSkill[index].insurCert)" :data-url="url">
|
||
<image :src="url" mode="aspectFill"></image>
|
||
<view class="cu-tag bg-red" @tap.stop="delImg($event, specialSkill[index].insurCert)" :data-index="index0">
|
||
<text class='cuIcon-close'></text>
|
||
</view>
|
||
</view>
|
||
<view class="solids" @tap="chooseImage($event, specialSkill[index].insurCert)" v-if="specialSkill[index].insurCert.length < 1">
|
||
<text class='cuIcon-cameraadd'></text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="flex justify-start align-center">
|
||
<view>保险日期:</view>
|
||
<uni-datetime-picker style="width: 75%;"
|
||
:value="[specialSkill[index].insurStartDate, specialSkill[index].insurEndDate]"
|
||
type="datetimerange" rangeSeparator="~" @change="changeInsurDate($event, index)" />
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="text-center margin-top">
|
||
<button class="cu-btn bg-main-color light" @click="addSpecialSkill">
|
||
<text class="margin-right-xs"><text class="cuIcon-add"></text></text>
|
||
<text>继续添加特殊技能</text>
|
||
</button>
|
||
</view>
|
||
</view>
|
||
<!-- 下一步 -->
|
||
<view class="cu-bar tabbar border shop fixed-bottom-bar bg-back">
|
||
<button class="bg-white long-btn margin-lr" @click="preStep">上一步</button>
|
||
<button class="bg-main-color long-btn margin-lr" @click="submit">提交</button>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<!-- 认证过的展示认证内容及结果 -->
|
||
<view v-else>
|
||
<view class="margin-lr-sm margin-top shadow-warp">
|
||
<view class="padding bg-white" v-if="servSpecialSkills && servSpecialSkills.length">
|
||
<view class="text-black text-bold">特殊技能:</view>
|
||
<view class="solid margin-top-sm padding-sm" v-for="(item,index) in servSpecialSkills">
|
||
<view class="margin-bottom-xs">类目:{{item.specialSkillName}}</view>
|
||
<view class="margin-bottom-xs">是否危险技能:{{item.dangerous === 0 ? '否' : '是'}}</view>
|
||
<view class="margin-bottom-xs">
|
||
<view class="margin-bottom-xs">技能证书:</view>
|
||
<image style="width: 200px; height: 200px; background-color: #eeeeee;" mode="aspectFit"
|
||
:src="item.credential" :data-url="item.credential"
|
||
@click="viewImage($event, [item.credential])"></image>
|
||
</view>
|
||
<view v-if="item.dangerous == 1" class="margin-bottom-xs">
|
||
<view class="margin-bottom-xs">保险证明:</view>
|
||
<image style="width: 200px; height: 200px; background-color: #eeeeee;" mode="aspectFit"
|
||
:src="item.insurance" :data-url="item.insurance"
|
||
@click="viewImage($event, [item.insurance])"></image>
|
||
</view>
|
||
<view>保险生效时期:{{item.insuranceStart}} ~ {{item.insuranceEnd}}</view>
|
||
</view>
|
||
</view>
|
||
<view class="padding">
|
||
<text class="text-black text-bold">审核状态:</text>
|
||
<text v-if="curUserInfo.status === 0" class="text-green">审核通过</text>
|
||
<text v-else-if="curUserInfo.status === 3" class="text-yellow">审核中</text>
|
||
<text v-else-if="curUserInfo.status === 4" class="text-red">审核未通过</text>
|
||
<button class="cu-btn bg-main-color margin-left-sm shadow-blur" v-if="curUserInfo.status === 4"
|
||
@click="navigate2ApplySettled">重新填写入驻信息</button>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
import myUniCombox from '@/components/uni-combox/my-uni-combox.vue';
|
||
|
||
export default {
|
||
components: {
|
||
myUniCombox
|
||
},
|
||
data() {
|
||
return {
|
||
curUserInfo: null,
|
||
curStep: 0,
|
||
stepList: ['经营主体', '特殊技能'],
|
||
additionalServ: [{
|
||
id: 1,
|
||
name: '货拉拉/速运'
|
||
}, {
|
||
id: 2,
|
||
name: '提供搬货'
|
||
}, {
|
||
id: 3,
|
||
name: '本地跑腿'
|
||
}],
|
||
areaList: [],
|
||
multiIndex: [0, 0, 0],
|
||
realNameInfo: {
|
||
companySize: null,
|
||
idCardImgList: [],
|
||
licenseImgList: []
|
||
},
|
||
specialTypeList: [],
|
||
specialSkill: [{
|
||
specialSubTypeList: [],
|
||
specialSubSubTypeList: [],
|
||
specialTypeObj: {},
|
||
specialSubTypeObj: {},
|
||
specialSubSubTypeObj: {},
|
||
specialSkillList: [],
|
||
specialSkillObj: {},
|
||
skillCert: [],
|
||
insurCert: [],
|
||
insurStartDate: '',
|
||
insurEndDate: ''
|
||
}]
|
||
}
|
||
},
|
||
onLoad() {
|
||
this.loadData();
|
||
},
|
||
onShow() {
|
||
},
|
||
methods: {
|
||
async loadData() {
|
||
this.curUserInfo = this.$request.getCurUserInfo();
|
||
if (this.curUserInfo.status === 1) {
|
||
this.loadAreaList();
|
||
this.loadSpecialSkillType();
|
||
} else {
|
||
this.loadSpecialSkills();
|
||
}
|
||
},
|
||
async reloadData() {
|
||
this.curUserInfo = this.$request.getCurUserInfo();
|
||
if (this.curUserInfo.status === 1) {
|
||
this.loadAreaList();
|
||
this.loadSpecialSkillType();
|
||
} else {
|
||
this.loadSpecialSkills();
|
||
}
|
||
},
|
||
preStep() {
|
||
this.curStep = this.curStep === 0 ? 0 : --this.curStep;
|
||
},
|
||
nextStep() {
|
||
this.curStep = this.curStep === this.stepList.length - 1 ? this.curStep : ++this.curStep;
|
||
},
|
||
/* 经营主体 start */
|
||
chooseCompanySize(sizeType) {
|
||
if (sizeType === this.realNameInfo.companySize) {
|
||
// 重复点击同一个选项则清除选中状态
|
||
this.realNameInfo.companySize = null;
|
||
} else {
|
||
this.realNameInfo.companySize = sizeType;
|
||
}
|
||
},
|
||
changeAdditionalServId(e) {
|
||
this.realNameInfo.otherServ = e.detail.value;
|
||
},
|
||
async loadAreaList(idArr) {
|
||
let areaList = await this.$request.areaListByStep();
|
||
areaList = areaList.data;
|
||
let col1Code = idArr ? idArr[0] : areaList[0].areaCode;
|
||
let subAreaList = await this.$request.areaListByStep({ parentCode: col1Code });
|
||
subAreaList = subAreaList.data;
|
||
let col2Code = idArr ? idArr[1] : subAreaList[0].areaCode;
|
||
let subSubAreaList = await this.$request.areaListByStep({ parentCode: col2Code });
|
||
subSubAreaList = subSubAreaList.data;
|
||
this.areaList.push(areaList);
|
||
this.areaList.push(subAreaList);
|
||
this.areaList.push(subSubAreaList);
|
||
},
|
||
regionChange(e) {
|
||
this.multiIndex = e.detail.value;
|
||
let chosenArea = [];
|
||
for(let i = 0; i < this.areaList.length; i++) {
|
||
chosenArea.push(this.areaList[i][this.multiIndex[i]]);
|
||
}
|
||
this.realNameInfo.companyArea = chosenArea;
|
||
},
|
||
async regionColChange(e) {
|
||
let colObj = e.detail;
|
||
if (colObj.column == 0) {
|
||
let subSubAreaList = [];
|
||
// 通过一级查询二级,通过二级查三级
|
||
let subAreaList = await this.$request.areaListByStep({parentCode: this.areaList[0][colObj.value].areaCode});
|
||
subAreaList = subAreaList.data;
|
||
if (subAreaList && subAreaList.length) {
|
||
subSubAreaList = await this.$request.areaListByStep({parentCode: subAreaList[0].areaCode});
|
||
subSubAreaList = subSubAreaList.data;
|
||
}
|
||
this.areaList.pop();
|
||
this.areaList.pop();
|
||
this.areaList.push(subAreaList);
|
||
this.areaList.push(subSubAreaList);
|
||
this.multiIndex = [colObj.value, 0, 0];
|
||
} else if (colObj.column == 1) {
|
||
// 通过二级查三级
|
||
let subSubAreaList = await this.$request.areaListByStep({parentCode: this.areaList[1][colObj.value].areaCode});
|
||
subSubAreaList = subSubAreaList.data;
|
||
this.areaList.pop();
|
||
this.areaList.push(subSubAreaList);
|
||
this.multiIndex = [this.multiIndex[0], colObj.value, 0];
|
||
}
|
||
},
|
||
/* 经营主体 end */
|
||
/* 特殊技能 start */
|
||
async loadSpecialSkills() {
|
||
let res = await this.$request.getWorkerSpecialSkill({
|
||
workerId: this.curUserInfo.workerId
|
||
});
|
||
this.servSpecialSkills = res.data;
|
||
},
|
||
async loadSpecialSkillType() {
|
||
let res = await this.$request.listByStep();
|
||
this.specialTypeList = res.data;
|
||
},
|
||
async chooseSpecialSkill(e, type, index) {
|
||
let funName = "listByStep";
|
||
if (type === 2) {
|
||
funName = "qrySpecialSkillList";
|
||
}
|
||
let res = await this.$request[funName]({
|
||
goodsCategoryId: e.goodsCategoryId
|
||
});
|
||
if (res.code == 0) {
|
||
switch (type) {
|
||
case 0: {
|
||
this.specialSkill[index].specialSubTypeList = res.data;
|
||
this.specialSkill[index].specialSubSubTypeList = [];
|
||
this.specialSkill[index].specialSubTypeObj = {};
|
||
this.specialSkill[index].specialSubSubTypeObj = {};
|
||
}
|
||
break;
|
||
case 1: {
|
||
this.specialSkill[index].specialSubSubTypeList = res.data;
|
||
this.specialSkill[index].specialSubSubTypeObj = {};
|
||
}
|
||
case 2: {
|
||
this.specialSkill[index].specialSkillList = res.data;
|
||
this.specialSkill[index].specialSkillObj = {};
|
||
}
|
||
break;
|
||
default:
|
||
break;
|
||
}
|
||
}
|
||
},
|
||
addSpecialSkill() {
|
||
this.specialSkill.push({
|
||
specialSubTypeList: [],
|
||
specialSubSubTypeList: [],
|
||
specialTypeObj: {},
|
||
specialSubTypeObj: {},
|
||
specialSubSubTypeObj: {},
|
||
skillCert: [],
|
||
insurCert: [],
|
||
insurStartDate: '',
|
||
insurEndDate: ''
|
||
});
|
||
},
|
||
delSpecialSkill(index) {
|
||
this.specialSkill.splice(index, 1);
|
||
},
|
||
changeInsurDate(e, index) {
|
||
this.specialSkill[index].insurStartDate = e[0];
|
||
this.specialSkill[index].insurEndDate = e[1];
|
||
},
|
||
async chooseImage(e, imgList) {
|
||
uni.chooseImage({
|
||
count: 1, //默认9
|
||
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
||
sourceType: ['album'], //从相册选择
|
||
success: (res) => {
|
||
// 上传图片
|
||
res.tempFilePaths.forEach((tmpPath) => {
|
||
this.$request.uploadFile(tmpPath).then((url) => {
|
||
// 存入缓存
|
||
imgList.push(url);
|
||
});
|
||
})
|
||
}
|
||
});
|
||
},
|
||
viewImage(e, imgList) {
|
||
uni.previewImage({
|
||
urls: imgList,
|
||
current: e.currentTarget.dataset.url
|
||
});
|
||
},
|
||
delImg(e, imgList) {
|
||
uni.showModal({
|
||
title: '',
|
||
content: '确定要删除这张图片吗?',
|
||
cancelText: '取消',
|
||
confirmText: '确定',
|
||
success: res => {
|
||
if (res.confirm) {
|
||
imgList.splice(e.currentTarget.dataset.index, 1)
|
||
}
|
||
}
|
||
})
|
||
},
|
||
/* 特殊技能 end */
|
||
submit() {
|
||
if (!this.realNameInfo.name || !this.realNameInfo.idCardNum || !this.realNameInfo.idCardImgList || !this.realNameInfo.idCardImgList.length) {
|
||
uni.showToast({
|
||
title: '请完成必填项的填写',
|
||
icon: 'none'
|
||
})
|
||
return;
|
||
}
|
||
|
||
let workerId = this.curUserInfo.workerId;
|
||
let specialSkills = [];
|
||
// 特殊技能参数
|
||
this.specialSkill.forEach((item) => {
|
||
if (item.specialSkillObj && item.specialSkillObj.specialSkillId) {
|
||
specialSkills.push({
|
||
workerId: workerId,
|
||
specialSkillId: item.specialSkillObj.specialSkillId,
|
||
credential: item.skillCert[0],
|
||
insurance: item.insurCert[0],
|
||
insuranceStart: item.insurStartDate,
|
||
insuranceEnd: item.insurEndDate
|
||
});
|
||
}
|
||
});
|
||
// 加上经营主体参数
|
||
let params = {
|
||
...this.realNameInfo,
|
||
idCardUrl1: this.realNameInfo.idCardImgList && this.realNameInfo.idCardImgList.length > 0 ? this.realNameInfo.idCardImgList[0]: null,
|
||
idCardUrl2: this.realNameInfo.idCardImgList && this.realNameInfo.idCardImgList.length > 1 ? this.realNameInfo.idCardImgList[1]: null,
|
||
businessLicenseUrl: this.realNameInfo.licenseImgList && this.realNameInfo.licenseImgList.length > 0 ? this.realNameInfo.licenseImgList[0] : null,
|
||
companyProvinceId: this.realNameInfo.companyArea && this.realNameInfo.companyArea.length > 2 ? this.realNameInfo.companyArea[0].areaId : null,
|
||
companyCityId: this.realNameInfo.companyArea && this.realNameInfo.companyArea.length > 2 ? this.realNameInfo.companyArea[1].areaId : null,
|
||
companyCountryId: this.realNameInfo.companyArea && this.realNameInfo.companyArea.length > 2 ? this.realNameInfo.companyArea[2].areaId : null,
|
||
workerId: workerId,
|
||
specialSkills: specialSkills
|
||
}
|
||
|
||
console.log(params)
|
||
// let res = await this.$request.workerSettled(params);
|
||
// if (res.code === 0) {
|
||
// this.reloadData();
|
||
// uni.showToast({
|
||
// icon: 'success',
|
||
// title: '提交成功'
|
||
// })
|
||
// }
|
||
}
|
||
},
|
||
}
|
||
</script>
|
||
|
||
<style scoped>
|
||
/deep/ .uni-combox__selector {
|
||
z-index: 99 !important;
|
||
}
|
||
|
||
.grid.col-1.grid-square.upload-pic-grid>view {
|
||
padding-bottom: 35%;
|
||
height: 0;
|
||
margin-right: 20rpx;
|
||
}
|
||
|
||
.grid.col-1.upload-pic-grid>view {
|
||
width: 35%;
|
||
}
|
||
|
||
/deep/ .uni-date__x-input {
|
||
height: 36px;
|
||
}
|
||
|
||
.cu-form-group .title {
|
||
flex-basis: unset;
|
||
}
|
||
|
||
.cu-form-group .flex-view {
|
||
flex-basis: 78%;
|
||
height: 250rpx;
|
||
}
|
||
|
||
.cu-form-group .radio-view {
|
||
flex-basis: 78%;
|
||
}
|
||
|
||
.option-card {
|
||
border-radius: 50rpx;
|
||
width: 30%;
|
||
border: 1rpx solid rgba(0, 0, 0, 0.1);
|
||
}
|
||
|
||
.option-content {
|
||
min-height: 155rpx;
|
||
}
|
||
</style>
|