Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
47c1418d2a |
@@ -33,13 +33,8 @@ export async function uploadFile(file) {
|
|||||||
'Authorization': `Basic ${Base64.encode(`${website.clientId}:${website.clientSecret}`)}`,
|
'Authorization': `Basic ${Base64.encode(`${website.clientId}:${website.clientSecret}`)}`,
|
||||||
}
|
}
|
||||||
header[website.tokenName] = "bearer " + token
|
header[website.tokenName] = "bearer " + token
|
||||||
// 馆陶替换url
|
|
||||||
let url = `/api/jobslink-api/resource/file/save?bussinessType=5`
|
|
||||||
if (url.startsWith('/api')) {
|
|
||||||
url = url.replace(/^\/api/, '/api/gt');
|
|
||||||
}
|
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: baseUrl + url,
|
url: `${baseUrl}/api/jobslink-api/resource/file/save?bussinessType=5`,
|
||||||
header,
|
header,
|
||||||
filePath: file.url,
|
filePath: file.url,
|
||||||
// formData: formdata,
|
// formData: formdata,
|
||||||
|
|||||||
@@ -367,41 +367,69 @@ const workwageUnitCategoryState = [
|
|||||||
|
|
||||||
const addressColumn = [
|
const addressColumn = [
|
||||||
[{
|
[{
|
||||||
|
value: '1500',
|
||||||
|
label: "五道岗乡"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '700',
|
||||||
|
label: "土龙山镇"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '1400',
|
||||||
|
label: "大八浪乡"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '800',
|
||||||
|
label: "孟家岗镇"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '1300',
|
||||||
|
label: "明义乡"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '1700',
|
||||||
|
label: "曙光农场"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '1000',
|
||||||
|
label: "柳毛河镇"
|
||||||
|
},
|
||||||
|
{
|
||||||
value: '4',
|
value: '4',
|
||||||
label: "馆陶县"
|
label: "桦南县"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '5',
|
value: '1600',
|
||||||
label: "馆陶镇"
|
label: "桦南林业局"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '6',
|
value: '1800',
|
||||||
label: "房寨镇"
|
label: "桦南种畜场"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '7',
|
value: '600',
|
||||||
label: "魏僧寨镇"
|
label: "桦南镇"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '8',
|
value: '1200',
|
||||||
label: "柴堡镇"
|
label: "梨树乡"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '9',
|
value: '500',
|
||||||
label: "寿山寺"
|
label: "石头河子镇"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '10',
|
value: '1100',
|
||||||
label: " 王桥乡"
|
label: "金沙乡"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '11',
|
value: '900',
|
||||||
label: "路桥乡"
|
label: "阎家镇"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '12',
|
value: '400',
|
||||||
label: "南徐村乡"
|
label: "驼腰子镇"
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
"versionName": "1.0.0",
|
"versionName": "1.0.0",
|
||||||
"versionCode": "100",
|
"versionCode": "100",
|
||||||
"transformPx": false,
|
"transformPx": false,
|
||||||
"sassImplementationName": "node-sass",
|
|
||||||
"app-plus": {
|
"app-plus": {
|
||||||
"usingComponents": true,
|
"usingComponents": true,
|
||||||
"compilerVersion": 3,
|
"compilerVersion": 3,
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/project/newProject",
|
"path": "pages/project/newProject",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "宜昌市灵活就业平台",
|
"navigationBarTitleText": "华楠县灵活就业平台",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF",
|
"navigationBarBackgroundColor": "#FFFFFF",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -268,7 +268,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="homeFooter">
|
<view class="homeFooter">
|
||||||
<view class="atBottom">宜昌市人力资源和社会保障局主办</view>
|
<view class="atBottom">华楠县人力资源和社会保障局主办</view>
|
||||||
<!-- <image src="../../static/img/index/seeMore.png" mode="" @click="goMore()"></image> -->
|
<!-- <image src="../../static/img/index/seeMore.png" mode="" @click="goMore()"></image> -->
|
||||||
</view>
|
</view>
|
||||||
<policy-content ref="pContent"></policy-content>
|
<policy-content ref="pContent"></policy-content>
|
||||||
@@ -624,7 +624,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.home_logo {
|
.home_logo {
|
||||||
background: url(@/static/img/index/inLogo3.png) no-repeat center center;
|
background: url(@/static/img/index/inLogo.png) no-repeat center center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
height: 76rpx;
|
height: 76rpx;
|
||||||
width: 560rpx;
|
width: 560rpx;
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="conatiner_card">
|
<view class="conatiner_card">
|
||||||
<view class="row blod fs_34">宜昌市智慧就业市场</view>
|
<view class="row blod fs_34">华楠县智慧就业市场</view>
|
||||||
<view class="row color_666 fs_30 marT_30">
|
<view class="row color_666 fs_30 marT_30">
|
||||||
<u-icon style="margin-right: 10rpx" name="calendar" color="#666666" size="16"></u-icon>
|
<u-icon style="margin-right: 10rpx" name="calendar" color="#666666" size="16"></u-icon>
|
||||||
营业时间
|
营业时间
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="navPosition" @click="navTo('/pages/project/map')">
|
<view class="navPosition" @click="navTo('/pages/project/map')">
|
||||||
<u-icon name="map" color="#2979ff" size="16"></u-icon>
|
<u-icon name="map" color="#2979ff" size="16"></u-icon>
|
||||||
<view class="positionText">宜昌市地图服务</view>
|
<view class="positionText">华楠县地图服务</view>
|
||||||
<u-icon name="arrow-right" color="#666666" size="14"></u-icon>
|
<u-icon name="arrow-right" color="#666666" size="14"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
|
|||||||
@@ -16,84 +16,33 @@
|
|||||||
<u-form-item label="法人身份证号" labelWidth="100" prop="masterIdentity" borderBottom ref="item1">
|
<u-form-item label="法人身份证号" labelWidth="100" prop="masterIdentity" borderBottom ref="item1">
|
||||||
<u--input v-model="formData.masterIdentity" placeholder="请输入法人身份证号"></u--input>
|
<u--input v-model="formData.masterIdentity" placeholder="请输入法人身份证号"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item
|
<u-form-item label="所在地区" labelWidth="100" prop="cityId" borderBottom ref="item1"
|
||||||
label="所属机构"
|
@click="showAddress = true; hideKeyboard()">
|
||||||
labelWidth="100"
|
<PickerList placeholder="请选择所在地区" :columns="dic.addressColumn" :visibel="showAddress"
|
||||||
prop="cityId"
|
v-model="formData.cityId" @cancel="showAddress = false">
|
||||||
borderBottom
|
</PickerList>
|
||||||
ref="item1"
|
|
||||||
@click="
|
|
||||||
showAddress = true;
|
|
||||||
hideKeyboard();
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<PickerList
|
|
||||||
placeholder="请选择所属机构"
|
|
||||||
:columns="dic.addressColumn"
|
|
||||||
:visibel="showAddress"
|
|
||||||
v-model="formData.cityId"
|
|
||||||
@cancel="showAddress = false"
|
|
||||||
></PickerList>
|
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="详细地址" labelWidth="100" prop="companyAddress" borderBottom ref="item1">
|
<u-form-item label="详细地址" labelWidth="100" prop="companyAddress" borderBottom ref="item1">
|
||||||
<u--input v-model="formData.companyAddress" placeholder="请输入详细地址"></u--input>
|
<u--input v-model="formData.companyAddress" placeholder="请输入详细地址"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item
|
<u-form-item label="用工单位性质" labelWidth="100" prop="nature" borderBottom ref="item1"
|
||||||
label="用工单位性质"
|
@click="showJobCompanyNature = true; hideKeyboard()">
|
||||||
labelWidth="100"
|
<PickerList placeholder="请选择企业性质" :columns="[xzDic]" :visibel="showJobCompanyNature"
|
||||||
prop="nature"
|
labelName="dictValue" valueName="dictKey" v-model="formData.nature"
|
||||||
borderBottom
|
@cancel="showJobCompanyNature = false">
|
||||||
ref="item1"
|
</PickerList>
|
||||||
@click="
|
|
||||||
showJobCompanyNature = true;
|
|
||||||
hideKeyboard();
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<PickerList
|
|
||||||
placeholder="请选择企业性质"
|
|
||||||
:columns="[xzDic]"
|
|
||||||
:visibel="showJobCompanyNature"
|
|
||||||
labelName="dictValue"
|
|
||||||
valueName="dictKey"
|
|
||||||
v-model="formData.nature"
|
|
||||||
@cancel="showJobCompanyNature = false"
|
|
||||||
></PickerList>
|
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item
|
<u-form-item label="所属行业" labelWidth="100" prop="tradeId" borderBottom ref="item1"
|
||||||
label="所属行业"
|
@click="showjobCompanyIndustry = true; hideKeyboard()">
|
||||||
labelWidth="100"
|
<PickerList placeholder="请选择所属行业" :columns="dic.tradeArr" labelName="name" valueName="id"
|
||||||
prop="tradeId"
|
:visibel="showjobCompanyIndustry" v-model="formData.tradeId"
|
||||||
borderBottom
|
@cancel="showjobCompanyIndustry = false">
|
||||||
ref="item1"
|
</PickerList>
|
||||||
@click="
|
|
||||||
showjobCompanyIndustry = true;
|
|
||||||
hideKeyboard();
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<PickerList
|
|
||||||
placeholder="请选择所属行业"
|
|
||||||
:columns="dic.tradeArr"
|
|
||||||
labelName="name"
|
|
||||||
valueName="id"
|
|
||||||
:visibel="showjobCompanyIndustry"
|
|
||||||
v-model="formData.tradeId"
|
|
||||||
@cancel="showjobCompanyIndustry = false"
|
|
||||||
></PickerList>
|
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item
|
<u-form-item label="用工单位介绍" labelWidth="100" labelPosition="top" prop="companyDesc" borderBottom
|
||||||
label="用工单位介绍"
|
ref="item1">
|
||||||
labelWidth="100"
|
<u--textarea v-model="formData.companyDesc" placeholder="请输入用工单位介绍" count
|
||||||
labelPosition="top"
|
maxlength="200"></u--textarea>
|
||||||
prop="companyDesc"
|
|
||||||
borderBottom
|
|
||||||
ref="item1"
|
|
||||||
>
|
|
||||||
<u--textarea
|
|
||||||
v-model="formData.companyDesc"
|
|
||||||
placeholder="请输入用工单位介绍"
|
|
||||||
count
|
|
||||||
maxlength="200"
|
|
||||||
></u--textarea>
|
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
</view>
|
</view>
|
||||||
<view class="card">
|
<view class="card">
|
||||||
@@ -110,23 +59,17 @@
|
|||||||
<view class="card_title">证件资料</view>
|
<view class="card_title">证件资料</view>
|
||||||
<view class="card_content">
|
<view class="card_content">
|
||||||
<u-form-item labelWidth="100" prop="identityUrl4Id">
|
<u-form-item labelWidth="100" prop="identityUrl4Id">
|
||||||
<UploadIdNumber
|
<UploadIdNumber v-model="formData.identityUrl4Id" contentStyle="marginTop: 30rpx"
|
||||||
v-model="formData.identityUrl4Id"
|
backImg="/static/img/idcard.png">
|
||||||
contentStyle="marginTop: 30rpx"
|
</UploadIdNumber>
|
||||||
backImg="/static/img/idcard.png"
|
|
||||||
></UploadIdNumber>
|
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item labelWidth="100" prop="identityUrl5Id">
|
<u-form-item labelWidth="100" prop="identityUrl5Id">
|
||||||
<UploadIdNumber
|
<UploadIdNumber v-model="formData.identityUrl5Id" backImg="/static/img/backidcard1.png">
|
||||||
v-model="formData.identityUrl5Id"
|
</UploadIdNumber>
|
||||||
backImg="/static/img/backidcard1.png"
|
|
||||||
></UploadIdNumber>
|
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item labelWidth="100" prop="authUrlId">
|
<u-form-item labelWidth="100" prop="authUrlId">
|
||||||
<UploadIdNumber
|
<UploadIdNumber v-model="formData.authUrlId" backImg="/static/img/businessLicense.jpg">
|
||||||
v-model="formData.authUrlId"
|
</UploadIdNumber>
|
||||||
backImg="/static/img/businessLicense.jpg"
|
|
||||||
></UploadIdNumber>
|
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -141,149 +84,153 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import UploadIdNumber from './uploadIdNumber.vue';
|
import UploadIdNumber from './uploadIdNumber.vue';
|
||||||
import dic from '@/common/dic.js';
|
import dic from '@/common/dic.js'
|
||||||
import PickerList from './pickerList.vue';
|
import PickerList from './pickerList.vue';
|
||||||
import { addInviteCompanyAuth, getInviteCompanyAuthInfo, getDictionary2 } from '@/api/userrecruit.js';
|
import {
|
||||||
import { mapState } from 'vuex';
|
addInviteCompanyAuth,
|
||||||
const rules = {
|
getInviteCompanyAuthInfo,
|
||||||
comname: {
|
getDictionary2
|
||||||
type: 'string',
|
} from '@/api/userrecruit.js'
|
||||||
required: true,
|
import {
|
||||||
message: '请输入用工单位',
|
mapState
|
||||||
trigger: ['change'],
|
} from 'vuex'
|
||||||
},
|
const rules = {
|
||||||
companyTid: {
|
comname: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
required: true,
|
required: true,
|
||||||
max: 18,
|
message: '请输入用工单位',
|
||||||
min: 18,
|
trigger: ['change']
|
||||||
message: '请输入18位统一信用代码',
|
|
||||||
trigger: ['change'],
|
|
||||||
},
|
|
||||||
masterName: {
|
|
||||||
type: 'string',
|
|
||||||
required: true,
|
|
||||||
message: '请输入法人姓名',
|
|
||||||
trigger: ['change'],
|
|
||||||
},
|
|
||||||
masterIdentity: {
|
|
||||||
type: 'string',
|
|
||||||
required: true,
|
|
||||||
pattern: /^[1-9]\d{5}(19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[Xx\d]$/,
|
|
||||||
message: '请输入法人身份证号',
|
|
||||||
trigger: ['change'],
|
|
||||||
},
|
|
||||||
cityId: {
|
|
||||||
type: 'string',
|
|
||||||
required: true,
|
|
||||||
message: '请选择所在地区',
|
|
||||||
trigger: ['change'],
|
|
||||||
},
|
|
||||||
companyAddress: {
|
|
||||||
type: 'string',
|
|
||||||
required: true,
|
|
||||||
message: '请输入详细地址',
|
|
||||||
trigger: ['change'],
|
|
||||||
},
|
|
||||||
nature: {
|
|
||||||
type: 'string',
|
|
||||||
required: true,
|
|
||||||
message: '请选择企业性质',
|
|
||||||
trigger: ['change'],
|
|
||||||
},
|
|
||||||
tradeId: {
|
|
||||||
type: 'string',
|
|
||||||
required: true,
|
|
||||||
message: '请选择行业',
|
|
||||||
trigger: ['change'],
|
|
||||||
},
|
|
||||||
companyDesc: {
|
|
||||||
type: 'string',
|
|
||||||
min: 20,
|
|
||||||
required: true,
|
|
||||||
message: '请输入企业介绍(最少20个字符)',
|
|
||||||
trigger: ['change'],
|
|
||||||
},
|
|
||||||
manager: {
|
|
||||||
type: 'string',
|
|
||||||
required: true,
|
|
||||||
message: '请输入联系人',
|
|
||||||
trigger: ['change'],
|
|
||||||
},
|
|
||||||
telphone: {
|
|
||||||
type: 'string',
|
|
||||||
required: true,
|
|
||||||
pattern: /^1[3-9]{1}[0-9]{9}$/,
|
|
||||||
message: '请输入手机号码',
|
|
||||||
trigger: ['change'],
|
|
||||||
},
|
|
||||||
identityUrl4Id: {
|
|
||||||
type: 'string',
|
|
||||||
required: true,
|
|
||||||
message: '请上传法人身份证(人像)',
|
|
||||||
trigger: ['change'],
|
|
||||||
},
|
|
||||||
identityUrl5Id: {
|
|
||||||
type: 'string',
|
|
||||||
required: true,
|
|
||||||
message: '请上传法人身份证(国徽)',
|
|
||||||
trigger: ['change'],
|
|
||||||
},
|
|
||||||
authUrlId: {
|
|
||||||
type: 'string',
|
|
||||||
required: true,
|
|
||||||
message: '请上传企业营业执照',
|
|
||||||
trigger: ['change'],
|
|
||||||
},
|
|
||||||
};
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
UploadIdNumber,
|
|
||||||
PickerList,
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
showAddress: false,
|
|
||||||
showJobCompanyNature: false,
|
|
||||||
showjobCompanyIndustry: false,
|
|
||||||
dic,
|
|
||||||
xzDic: [],
|
|
||||||
formData: {},
|
|
||||||
rules,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
onLoad(options) {
|
|
||||||
if (options.reviewStatus === '9') {
|
|
||||||
this.getInfo();
|
|
||||||
}
|
|
||||||
this.getDictInfo();
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
...mapState({
|
|
||||||
authInfo: (state) => state.auth.authInfo,
|
|
||||||
userInfo: (state) => state.user.userInfo,
|
|
||||||
}),
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.formData.manager = this.authInfo.realName;
|
|
||||||
this.formData.idNumber = this.authInfo.idNumber;
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
hideKeyboard() {
|
|
||||||
uni.hideKeyboard();
|
|
||||||
},
|
},
|
||||||
async submit() {
|
companyTid: {
|
||||||
let params = {
|
type: 'string',
|
||||||
...this.formData,
|
required: true,
|
||||||
nature: Number(this.formData.nature),
|
max: 18,
|
||||||
cityId: Number(this.formData.cityId),
|
min: 18,
|
||||||
tradeId: Number(this.formData.tradeId),
|
message: '请输入18位统一信用代码',
|
||||||
|
trigger: ['change']
|
||||||
|
},
|
||||||
|
masterName: {
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
message: '请输入法人姓名',
|
||||||
|
trigger: ['change']
|
||||||
|
},
|
||||||
|
masterIdentity: {
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
pattern: /^[1-9]\d{5}(19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[Xx\d]$/,
|
||||||
|
message: '请输入法人身份证号',
|
||||||
|
trigger: ['change']
|
||||||
|
},
|
||||||
|
cityId: {
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
message: '请选择所在地区',
|
||||||
|
trigger: ['change']
|
||||||
|
},
|
||||||
|
companyAddress: {
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
message: '请输入详细地址',
|
||||||
|
trigger: ['change']
|
||||||
|
},
|
||||||
|
nature: {
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
message: '请选择企业性质',
|
||||||
|
trigger: ['change']
|
||||||
|
},
|
||||||
|
tradeId: {
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
message: '请选择行业',
|
||||||
|
trigger: ['change']
|
||||||
|
},
|
||||||
|
companyDesc: {
|
||||||
|
type: 'string',
|
||||||
|
min: 20,
|
||||||
|
required: true,
|
||||||
|
message: '请输入企业介绍(最少20个字符)',
|
||||||
|
trigger: ['change']
|
||||||
|
},
|
||||||
|
manager: {
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
message: '请输入联系人',
|
||||||
|
trigger: ['change']
|
||||||
|
},
|
||||||
|
telphone: {
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
pattern: /^1[3-9]{1}[0-9]{9}$/,
|
||||||
|
message: '请输入手机号码',
|
||||||
|
trigger: ['change']
|
||||||
|
},
|
||||||
|
identityUrl4Id: {
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
message: '请上传法人身份证(人像)',
|
||||||
|
trigger: ['change']
|
||||||
|
},
|
||||||
|
identityUrl5Id: {
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
message: '请上传法人身份证(国徽)',
|
||||||
|
trigger: ['change']
|
||||||
|
},
|
||||||
|
authUrlId: {
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
message: '请上传企业营业执照',
|
||||||
|
trigger: ['change']
|
||||||
|
},
|
||||||
|
}
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
UploadIdNumber,
|
||||||
|
PickerList
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
showAddress: false,
|
||||||
|
showJobCompanyNature: false,
|
||||||
|
showjobCompanyIndustry: false,
|
||||||
|
dic,
|
||||||
|
xzDic: [],
|
||||||
|
formData: {},
|
||||||
|
rules
|
||||||
};
|
};
|
||||||
const _this = this;
|
},
|
||||||
this.$refs.formOne
|
onLoad(options) {
|
||||||
.validate()
|
if (options.reviewStatus === '9') {
|
||||||
.then(async (res) => {
|
this.getInfo()
|
||||||
|
}
|
||||||
|
this.getDictInfo()
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState({
|
||||||
|
authInfo: (state) => state.auth.authInfo,
|
||||||
|
userInfo: (state) => state.user.userInfo
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.formData.manager = this.authInfo.realName
|
||||||
|
this.formData.idNumber = this.authInfo.idNumber
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
hideKeyboard() {
|
||||||
|
uni.hideKeyboard()
|
||||||
|
},
|
||||||
|
async submit() {
|
||||||
|
let params = {
|
||||||
|
...this.formData,
|
||||||
|
nature: Number(this.formData.nature),
|
||||||
|
cityId: Number(this.formData.cityId),
|
||||||
|
tradeId: Number(this.formData.tradeId),
|
||||||
|
}
|
||||||
|
const _this = this
|
||||||
|
this.$refs.formOne.validate().then(async (res) => {
|
||||||
let params = {
|
let params = {
|
||||||
..._this.formData,
|
..._this.formData,
|
||||||
nature: Number(_this.formData.nature),
|
nature: Number(_this.formData.nature),
|
||||||
@@ -291,74 +238,73 @@ export default {
|
|||||||
tradeId: Number(_this.formData.tradeId),
|
tradeId: Number(_this.formData.tradeId),
|
||||||
manager: _this.authInfo.realName,
|
manager: _this.authInfo.realName,
|
||||||
idNumber: _this.authInfo.idNumber,
|
idNumber: _this.authInfo.idNumber,
|
||||||
companyName: dic.addressColumn[0].filter((item) => item.value == _this.formData.cityId)[0]
|
companyName: dic.addressColumn[0].filter((item) => item.value == _this
|
||||||
.label,
|
.formData.cityId)[0].label
|
||||||
};
|
}
|
||||||
console.log(params);
|
console.log(params)
|
||||||
let resData = await addInviteCompanyAuth(params);
|
let resData = await addInviteCompanyAuth(params)
|
||||||
if (resData.data.code === 200) {
|
if (resData.data.code === 200) {
|
||||||
uni.navigateBack(1);
|
uni.navigateBack(1)
|
||||||
_this.$api.sleep(1000).then(() => {
|
_this.$api.sleep(1000).then(() => {
|
||||||
_this.$api.msg('已完成企业信息认证');
|
_this.$api.msg('已完成企业信息认证')
|
||||||
});
|
})
|
||||||
|
}
|
||||||
|
}).catch(errors => {
|
||||||
|
if (/[\u4e00-\u9fff]/.test(errors.message)) {
|
||||||
|
_this.$api.msg(errors.message)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((errors) => {
|
},
|
||||||
if (/[\u4e00-\u9fff]/.test(errors.message)) {
|
async getInfo() {
|
||||||
_this.$api.msg(errors.message);
|
let params = {
|
||||||
|
idNumber: this.authInfo.idNumber
|
||||||
|
}
|
||||||
|
let resData = await getInviteCompanyAuthInfo(params)
|
||||||
|
if (resData.data.code === 200) {
|
||||||
|
console.log(resData.data.data)
|
||||||
|
this.formData = {
|
||||||
|
...resData.data.data,
|
||||||
|
nature: String(resData.data.data.nature),
|
||||||
|
cityId: String(resData.data.data.cityId),
|
||||||
|
tradeId: String(resData.data.data.tradeId),
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
},
|
},
|
||||||
async getInfo() {
|
reset() {
|
||||||
let params = {
|
const _this = this
|
||||||
idNumber: this.authInfo.idNumber,
|
uni.showModal({
|
||||||
};
|
content: '重置将清空表单,确定重置吗?',
|
||||||
let resData = await getInviteCompanyAuthInfo(params);
|
success() {
|
||||||
if (resData.data.code === 200) {
|
_this.formData = {}
|
||||||
console.log(resData.data.data);
|
},
|
||||||
this.formData = {
|
})
|
||||||
...resData.data.data,
|
},
|
||||||
nature: String(resData.data.data.nature),
|
async getDictInfo() {
|
||||||
cityId: String(resData.data.data.cityId),
|
let resData = await getDictionary2()
|
||||||
tradeId: String(resData.data.data.tradeId),
|
if (resData.data.code === 200) {
|
||||||
};
|
this.xzDic = resData.data.data
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
reset() {
|
}
|
||||||
const _this = this;
|
|
||||||
uni.showModal({
|
|
||||||
content: '重置将清空表单,确定重置吗?',
|
|
||||||
success() {
|
|
||||||
_this.formData = {};
|
|
||||||
},
|
|
||||||
});
|
|
||||||
},
|
|
||||||
async getDictInfo() {
|
|
||||||
let resData = await getDictionary2();
|
|
||||||
if (resData.data.code === 200) {
|
|
||||||
this.xzDic = resData.data.data;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.content {
|
.content {
|
||||||
padding: 24rpx;
|
padding: 24rpx;
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
.card_title {
|
.card_title {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card_content {
|
.card_content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
@@ -1,86 +1,77 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="content_upload" :style="contentStyle">
|
<view class="content_upload" :style="contentStyle">
|
||||||
<u-upload
|
<u-upload :fileList="ImgUrl" @afterRead="afterRead" :deletable="true" @delete="deletePic" name="6" :maxCount="1"
|
||||||
:fileList="ImgUrl"
|
:width="width" :height="height">
|
||||||
@afterRead="afterRead"
|
<image :src="backImg" :style="`width: ${width}px;height: ${height}px;`"></image>
|
||||||
:deletable="true"
|
<image class="iconimg" src="/static/img/Takingpictures.png"
|
||||||
@delete="deletePic"
|
:style="`width: ${width/4}px;height: ${width/4}px;`"></image>
|
||||||
name="6"
|
|
||||||
:maxCount="1"
|
|
||||||
:width="width"
|
|
||||||
:height="height"
|
|
||||||
>
|
|
||||||
<image :src="backImg" :style="{ width: width + 'px', height: height + 'px' }"></image>
|
|
||||||
<image
|
|
||||||
class="iconimg"
|
|
||||||
src="/static/img/Takingpictures.png"
|
|
||||||
:style="{ width: width / 4 + 'px', height: height / 4 + 'px' }"
|
|
||||||
></image>
|
|
||||||
</u-upload>
|
</u-upload>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { uploadFile } from '@/api/upload.js';
|
import {
|
||||||
export default {
|
uploadFile
|
||||||
name: 'UploadIdNumber',
|
} from '@/api/upload.js'
|
||||||
props: {
|
export default {
|
||||||
backImg: {
|
name: 'UploadIdNumber',
|
||||||
type: String,
|
props: {
|
||||||
require: true,
|
backImg: {
|
||||||
|
type: String,
|
||||||
|
require: true,
|
||||||
|
},
|
||||||
|
value: {
|
||||||
|
type: String,
|
||||||
|
default: null
|
||||||
|
},
|
||||||
|
width: {
|
||||||
|
type: Number,
|
||||||
|
default: 280
|
||||||
|
},
|
||||||
|
height: {
|
||||||
|
type: Number,
|
||||||
|
default: 150
|
||||||
|
},
|
||||||
|
contentStyle: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
},
|
},
|
||||||
value: {
|
computed: {
|
||||||
type: String,
|
ImgUrl(val) {
|
||||||
default: null,
|
return this.value ? [{
|
||||||
|
name: 'img.jpg',
|
||||||
|
url: this.value
|
||||||
|
}] : []
|
||||||
|
}
|
||||||
},
|
},
|
||||||
width: {
|
methods: {
|
||||||
type: Number,
|
afterRead({
|
||||||
default: 280,
|
file,
|
||||||
},
|
index,
|
||||||
height: {
|
name
|
||||||
type: Number,
|
}) {
|
||||||
default: 150,
|
// this.$emit("input", file);
|
||||||
},
|
uploadFile(file).then((url) => {
|
||||||
contentStyle: {
|
this.$emit("input", url);
|
||||||
type: String,
|
})
|
||||||
default: '',
|
},
|
||||||
},
|
deletePic() {
|
||||||
},
|
this.$emit("input", null);
|
||||||
computed: {
|
},
|
||||||
ImgUrl(val) {
|
}
|
||||||
return this.value
|
}
|
||||||
? [
|
|
||||||
{
|
|
||||||
name: 'img.jpg',
|
|
||||||
url: this.value,
|
|
||||||
},
|
|
||||||
]
|
|
||||||
: [];
|
|
||||||
},
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
afterRead({ file, index, name }) {
|
|
||||||
// this.$emit("input", file);
|
|
||||||
uploadFile(file).then((url) => {
|
|
||||||
this.$emit('input', url);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
deletePic() {
|
|
||||||
this.$emit('input', null);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.content_upload {
|
.content_upload {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.iconimg {
|
.iconimg {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -308,7 +308,7 @@
|
|||||||
<view
|
<view
|
||||||
class="addressinfo"
|
class="addressinfo"
|
||||||
@click="selectMap"
|
@click="selectMap"
|
||||||
:style="{ fontSize: '15px', color: info.address ? '#333333' : '#c0c4cc' }"
|
:style="`fontSize: 15px;color: ${info.address ? '#333333' : '#c0c4cc'}`"
|
||||||
>
|
>
|
||||||
{{ info.address || '请选择' }}
|
{{ info.address || '请选择' }}
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
@@ -10,7 +10,7 @@ export default {
|
|||||||
}) !== false,
|
}) !== false,
|
||||||
homeTitle: getStore({
|
homeTitle: getStore({
|
||||||
name: 'homeTitle'
|
name: 'homeTitle'
|
||||||
}) || '管陶县智慧就业服务平台'
|
}) || '华楠县智慧就业服务平台'
|
||||||
},
|
},
|
||||||
actions: {},
|
actions: {},
|
||||||
mutations: {
|
mutations: {
|
||||||
|
|||||||
@@ -86,10 +86,6 @@ async function DoAjax(options, config = {}) {
|
|||||||
if (baseUrl) {
|
if (baseUrl) {
|
||||||
options.url = baseUrl + options.url
|
options.url = baseUrl + options.url
|
||||||
}
|
}
|
||||||
// 馆陶替换url
|
|
||||||
if (options.url.startsWith('/api')) {
|
|
||||||
options.url = options.url.replace(/^\/api/, '/api/gt');
|
|
||||||
}
|
|
||||||
options = Object.assign({}, options, {
|
options = Object.assign({}, options, {
|
||||||
header
|
header
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -7,12 +7,11 @@ module.exports = {
|
|||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
// target: 'http://192.168.1.115:8000',
|
// target: 'http://192.168.1.115:8000',
|
||||||
// target: 'http://39.98.184.58:8000',
|
target: 'http://39.98.184.58:88',
|
||||||
target: 'http://39.98.44.136:80',
|
|
||||||
ws: true,
|
ws: true,
|
||||||
pathRewrite: {
|
// pathRewrite: {
|
||||||
'^/api': '/api'
|
// '^/api': '/'
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
'/qq/map': {
|
'/qq/map': {
|
||||||
//本地服务接口地址
|
//本地服务接口地址
|
||||||
|
|||||||
Reference in New Issue
Block a user