取消applyStatus/whetherSetSignPwd两个接口
This commit is contained in:
@@ -1,136 +1,128 @@
|
|||||||
import request from '@/router/axios';
|
import request from "@/router/axios";
|
||||||
import { getToken } from '@/util/auth'
|
import { getToken } from "@/util/auth";
|
||||||
//申请开通电子签章
|
//申请开通电子签章
|
||||||
export const apply =
|
export const apply = (data) => {
|
||||||
(data) => {
|
|
||||||
return request({
|
return request({
|
||||||
|
|
||||||
url: `jobslink-api/doc/docCompanySeal/signseal/apply`,
|
url: `jobslink-api/doc/docCompanySeal/signseal/apply`,
|
||||||
method: 'post',
|
method: "post",
|
||||||
data:data
|
data: data,
|
||||||
})
|
});
|
||||||
}
|
};
|
||||||
//电子合同状态
|
//电子合同状态
|
||||||
export const applyStatus =
|
export const applyStatus = () => {
|
||||||
() => {
|
|
||||||
return request({
|
return request({
|
||||||
url: '/api/jobslink-api/doc/company/cert/company/status',
|
url: "/api/jobslink-api/doc/company/cert/company/status",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params: {}
|
params: {},
|
||||||
})
|
});
|
||||||
}
|
};
|
||||||
//电子合同管理列表
|
//电子合同管理列表
|
||||||
export const tenantList =
|
export const tenantList = (current, size, params) =>
|
||||||
(current, size, params) =>request({
|
request({
|
||||||
url: '/api/jobslink-api/doc/contract/tenant/list',
|
url: "/api/jobslink-api/doc/contract/tenant/list",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params: {
|
params: {
|
||||||
...params,
|
...params,
|
||||||
current,
|
current,
|
||||||
size,
|
size,
|
||||||
},
|
},
|
||||||
headers:{
|
headers: {
|
||||||
'content-type':'application/pdf'
|
"content-type": "application/pdf",
|
||||||
}
|
},
|
||||||
})
|
});
|
||||||
|
|
||||||
//企业-录用人员-已录用中查看合同
|
//企业-录用人员-已录用中查看合同
|
||||||
export const viewContractImg =
|
export const viewContractImg = (userId, missionsNo) => {
|
||||||
(userId,missionsNo) => {
|
|
||||||
return request({
|
return request({
|
||||||
url: '/api/jobslink-api/doc/contract/mission/viewContract',
|
url: "/api/jobslink-api/doc/contract/mission/viewContract",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params: {
|
params: {
|
||||||
userId:userId,
|
userId: userId,
|
||||||
missionsNo:missionsNo
|
missionsNo: missionsNo,
|
||||||
}
|
},
|
||||||
})
|
});
|
||||||
}
|
};
|
||||||
//企业-录用人员-已录用中是否显示查看合同
|
//企业-录用人员-已录用中是否显示查看合同
|
||||||
export const isGenerateContract =
|
export const isGenerateContract = (userId, missionsNo) => {
|
||||||
(userId,missionsNo) => {
|
|
||||||
return request({
|
return request({
|
||||||
url: '/api/jobslink-api/doc/contract/isGenerateContract',
|
url: "/api/jobslink-api/doc/contract/isGenerateContract",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params: {
|
params: {
|
||||||
userId:userId,
|
userId: userId,
|
||||||
missionsNo:missionsNo
|
missionsNo: missionsNo,
|
||||||
}
|
},
|
||||||
})
|
});
|
||||||
}
|
};
|
||||||
//企业端校验印章密码是否正确
|
//企业端校验印章密码是否正确
|
||||||
export const certCheckPass =
|
export const certCheckPass = (pass) => {
|
||||||
(pass) => {
|
|
||||||
return request({
|
return request({
|
||||||
url: '/api/jobslink-api/doc/company/cert/checkPass',
|
url: "/api/jobslink-api/doc/company/cert/checkPass",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params: {
|
params: {
|
||||||
pass:pass
|
pass: pass,
|
||||||
}
|
},
|
||||||
})
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
//获取手机短信验证码
|
//获取手机短信验证码
|
||||||
export const getCode=(mobile)=>{
|
export const getCode = (mobile) => {
|
||||||
return request({
|
return request({
|
||||||
url:'/api/jobslink-api/doc/company/cert/resetPass/sendValidate',
|
url: "/api/jobslink-api/doc/company/cert/resetPass/sendValidate",
|
||||||
method:'get',
|
method: "get",
|
||||||
params:{mobile}
|
params: { mobile },
|
||||||
})
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
//重置密码
|
//重置密码
|
||||||
export const resetPwd=(mobile,password,code)=>{
|
export const resetPwd = (mobile, password, code) => {
|
||||||
return request({
|
return request({
|
||||||
headers: {'SCaptcha-Key': mobile, 'SCaptcha-Code': code},
|
headers: { "SCaptcha-Key": mobile, "SCaptcha-Code": code },
|
||||||
url:'/api/jobslink-api/doc/company/cert/resetPass',
|
url: "/api/jobslink-api/doc/company/cert/resetPass",
|
||||||
method:'post',
|
method: "post",
|
||||||
params:{mobile,password,code}
|
params: { mobile, password, code },
|
||||||
})
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
//查看签章图片
|
//查看签章图片
|
||||||
export const viewSignature=()=>{
|
export const viewSignature = () => {
|
||||||
return request({
|
return request({
|
||||||
url:'/api/jobslink-api/doc/docCompanySeal/company/details',
|
url: "/api/jobslink-api/doc/docCompanySeal/company/details",
|
||||||
method:'get',
|
method: "get",
|
||||||
})
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
//查看电子合同
|
//查看电子合同
|
||||||
export const viewLetter=(userId,missionsNo)=>{
|
export const viewLetter = (userId, missionsNo) => {
|
||||||
return request({
|
return request({
|
||||||
url:'/api/jobslink-api/doc/contract/mission/viewContract',
|
url: "/api/jobslink-api/doc/contract/mission/viewContract",
|
||||||
method:'get',
|
method: "get",
|
||||||
params:{userId,missionsNo}
|
params: { userId, missionsNo },
|
||||||
})
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
//下载电子合同
|
//下载电子合同
|
||||||
export const downLetter =
|
export const downLetter = (id) => {
|
||||||
(id) => {
|
return `jobslink-api/doc/contract/download/${id}?Jobslink-Auth=${getToken()}`;
|
||||||
return `jobslink-api/doc/contract/download/${id}?Jobslink-Auth=${getToken()}`
|
};
|
||||||
}
|
|
||||||
|
|
||||||
//判断企业是否设置签章密码
|
//判断企业是否设置签章密码
|
||||||
export const whetherSetSignPwd=()=>{
|
export const whetherSetSignPwd = () => {
|
||||||
return request({
|
return request({
|
||||||
url:'/api/jobslink-api/doc/company/cert/hasPass',
|
url: "/api/jobslink-api/doc/company/cert/hasPass",
|
||||||
method:'get'
|
method: "get",
|
||||||
})
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
//查看pdf
|
//查看pdf
|
||||||
export const viewPdf=(url)=>{
|
export const viewPdf = (url) => {
|
||||||
console.log(url)
|
console.log(url);
|
||||||
return request({
|
return request({
|
||||||
url:url,
|
url: url,
|
||||||
method:'get'
|
method: "get",
|
||||||
})
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
//批量下载合同
|
//批量下载合同
|
||||||
export const mutiDownPdf=(ids)=> {
|
export const mutiDownPdf = (ids) => {
|
||||||
return `jobslink-api/doc/contract/contract/bulkDownload?ids=${ids}&Jobslink-Auth=${getToken()}`
|
return `jobslink-api/doc/contract/contract/bulkDownload?ids=${ids}&Jobslink-Auth=${getToken()}`;
|
||||||
}
|
};
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.init();
|
this.init();
|
||||||
this.getSignatureStatus();//获取企业是否设置了签章密码
|
// this.getSignatureStatus();//获取企业是否设置了签章密码
|
||||||
},
|
},
|
||||||
activated() { },
|
activated() { },
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@@ -91,6 +91,7 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
getList,
|
getList,
|
||||||
|
|||||||
@@ -5,13 +5,14 @@
|
|||||||
<!--<li>
|
<!--<li>
|
||||||
<h3>电子签章管理</h3>
|
<h3>电子签章管理</h3>
|
||||||
</li>-->
|
</li>-->
|
||||||
<li v-if="econtractStatus.sealOn ==0">电子签章未开通,请申请开通电子签章 <el-button type="primary"
|
<li v-if="econtractStatus.sealOn == 0">电子签章未开通,请申请开通电子签章 <el-button type="primary"
|
||||||
@click="handelEnableSignature">申请开通电子签章</el-button>
|
@click="handelEnableSignature">申请开通电子签章</el-button>
|
||||||
</li>
|
</li>
|
||||||
<li v-else-if="econtractStatus.sealOn == 1">电子签章已申请,正在审核中...</li>
|
<li v-else-if="econtractStatus.sealOn == 1">电子签章已申请,正在审核中...</li>
|
||||||
<li v-else-if="econtractStatus.sealOn == 2">电子合同状态:<span v-if="econtractStatus.contractOn">启用</span><span
|
<li v-else-if="econtractStatus.sealOn == 2">电子合同状态:<span v-if="econtractStatus.contractOn">启用</span><span
|
||||||
v-else>未启用</span></li>
|
v-else>未启用</span></li>
|
||||||
<li v-show="econtractStatus.contractOn">电子签章:<el-button @click="handelViewSignature" type="primary">查 看</el-button><el-button @click="handelResetPwd">重置密码</el-button></li>
|
<li v-show="econtractStatus.contractOn">电子签章:<el-button @click="handelViewSignature" type="primary">查
|
||||||
|
看</el-button><el-button @click="handelResetPwd">重置密码</el-button></li>
|
||||||
</ul>
|
</ul>
|
||||||
</basic-container>
|
</basic-container>
|
||||||
|
|
||||||
@@ -23,8 +24,7 @@
|
|||||||
<el-form :model="applyEcontractForm" ref="applyEcontractForm" label-width="100px" class="demo-ruleForm"
|
<el-form :model="applyEcontractForm" ref="applyEcontractForm" label-width="100px" class="demo-ruleForm"
|
||||||
:rules="ruleValidate">
|
:rules="ruleValidate">
|
||||||
<el-form-item label="上传《电子签章申请表》:" prop="authUrlId" :label-position="labelPosition" label-width="210px">
|
<el-form-item label="上传《电子签章申请表》:" prop="authUrlId" :label-position="labelPosition" label-width="210px">
|
||||||
<el-upload :show-file-list="false" :on-progress="
|
<el-upload :show-file-list="false" :on-progress="() => {
|
||||||
() => {
|
|
||||||
uploading = true;
|
uploading = true;
|
||||||
}
|
}
|
||||||
" :on-success="handleAvatarSuccess" :before-upload="beforeAvatarUpload" :http-request="httpRequest">
|
" :on-success="handleAvatarSuccess" :before-upload="beforeAvatarUpload" :http-request="httpRequest">
|
||||||
@@ -33,19 +33,23 @@
|
|||||||
</div>
|
</div>
|
||||||
<div slot="tip" class="el-upload__tip">*请上传高清扫描文件</div>
|
<div slot="tip" class="el-upload__tip">*请上传高清扫描文件</div>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<div class="uploadEcontractBtn" @click="handleDownload"><i class="el-icon-download" style="color: #409EFF;"></i>下载《电子签章申请表》模板</div>
|
<div class="uploadEcontractBtn" @click="handleDownload"><i class="el-icon-download"
|
||||||
|
style="color: #409EFF;"></i>下载《电子签章申请表》模板</div>
|
||||||
<!-- <p class="uploadImgP">上传图片大小限制5M以内</p> -->
|
<!-- <p class="uploadImgP">上传图片大小限制5M以内</p> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="请设置签章密码:" prop="pwd" :label-position="labelPosition" label-width="210px">
|
<el-form-item label="请设置签章密码:" prop="pwd" :label-position="labelPosition" label-width="210px">
|
||||||
<el-col :span="16">
|
<el-col :span="16">
|
||||||
<el-input type="number" maxlength="6" onKeypress="return(/^[0-9]*$/.test(String.fromCharCode(event.keyCode)))" v-model="applyEcontractForm.pwd" show-password placeholder="请输入六位数字密码">
|
<el-input type="number" maxlength="6"
|
||||||
|
onKeypress="return(/^[0-9]*$/.test(String.fromCharCode(event.keyCode)))"
|
||||||
|
v-model="applyEcontractForm.pwd" show-password placeholder="请输入六位数字密码">
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="请再次输入签章密码:" prop="confirmpwd" :label-position="labelPosition" label-width="210px">
|
<el-form-item label="请再次输入签章密码:" prop="confirmpwd" :label-position="labelPosition" label-width="210px">
|
||||||
<el-col :span="16">
|
<el-col :span="16">
|
||||||
<el-input type="number" maxlength="6" onKeypress="return(/^[0-9]*$/.test(String.fromCharCode(event.keyCode)))" v-model="applyEcontractForm.confirmpwd" show-password
|
<el-input type="number" maxlength="6"
|
||||||
placeholder="请再次输入六位数字密码"></el-input>
|
onKeypress="return(/^[0-9]*$/.test(String.fromCharCode(event.keyCode)))"
|
||||||
|
v-model="applyEcontractForm.confirmpwd" show-password placeholder="请再次输入六位数字密码"></el-input>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--
|
<!--
|
||||||
@@ -67,19 +71,24 @@
|
|||||||
|
|
||||||
<!--重置密码dialog-->
|
<!--重置密码dialog-->
|
||||||
<el-dialog title="重置密码" :visible.sync="resetPwdDialogVisible" append-to-body width="30%">
|
<el-dialog title="重置密码" :visible.sync="resetPwdDialogVisible" append-to-body width="30%">
|
||||||
<el-form class="econtract-resetForm" label-position="right" :model="resetPwdForm" :rules="resetPwdRules" ref="resetPwdForm">
|
<el-form class="econtract-resetForm" label-position="right" :model="resetPwdForm" :rules="resetPwdRules"
|
||||||
<el-form-item label="手机号码:" :label-width="formLabelWidth" prop="account" >
|
ref="resetPwdForm">
|
||||||
<span>{{phone}}</span>
|
<el-form-item label="手机号码:" :label-width="formLabelWidth" prop="account">
|
||||||
|
<span>{{ phone }}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="请输入验证码:" :label-width="formLabelWidth" prop="code">
|
<el-form-item label="请输入验证码:" :label-width="formLabelWidth" prop="code">
|
||||||
<el-input v-model="resetPwdForm.code" autocomplete="off" style="width: 50%;"></el-input>
|
<el-input v-model="resetPwdForm.code" autocomplete="off" style="width: 50%;"></el-input>
|
||||||
<el-button :disabled="msgKey" type="primary" @click="getCode">{{msgText}}</el-button>
|
<el-button :disabled="msgKey" type="primary" @click="getCode">{{ msgText }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="请设置新密码:" :label-width="formLabelWidth" prop="pwd">
|
<el-form-item label="请设置新密码:" :label-width="formLabelWidth" prop="pwd">
|
||||||
<el-input type="number" maxlength="6" onKeypress="return(/^[0-9]*$/.test(String.fromCharCode(event.keyCode)))" v-model="resetPwdForm.pwd" autocomplete="off" show-password placeholder="请输入六位数字密码"></el-input>
|
<el-input type="number" maxlength="6"
|
||||||
|
onKeypress="return(/^[0-9]*$/.test(String.fromCharCode(event.keyCode)))" v-model="resetPwdForm.pwd"
|
||||||
|
autocomplete="off" show-password placeholder="请输入六位数字密码"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="请再次输入新密码:" :label-width="formLabelWidth" prop="pwd2">
|
<el-form-item label="请再次输入新密码:" :label-width="formLabelWidth" prop="pwd2">
|
||||||
<el-input type="number" maxlength="6" onKeypress="return(/^[0-9]*$/.test(String.fromCharCode(event.keyCode)))" v-model="resetPwdForm.pwd2" autocomplete="off" show-password placeholder="请再次输入六位数字密码"></el-input>
|
<el-input type="number" maxlength="6"
|
||||||
|
onKeypress="return(/^[0-9]*$/.test(String.fromCharCode(event.keyCode)))" v-model="resetPwdForm.pwd2"
|
||||||
|
autocomplete="off" show-password placeholder="请再次输入六位数字密码"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
@@ -89,19 +98,12 @@
|
|||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- /查看签章dialog -->
|
<!-- /查看签章dialog -->
|
||||||
<el-dialog
|
<el-dialog title="查看" :visible.sync="calibrationDialog" width="500px" :modal="false"
|
||||||
title="查看"
|
|
||||||
:visible.sync="calibrationDialog"
|
|
||||||
width="500px"
|
|
||||||
:modal="false"
|
|
||||||
class="calibrationForm excelBox checkForm">
|
class="calibrationForm excelBox checkForm">
|
||||||
<el-form :model="viewSignatureForm" :rules="rules">
|
<el-form :model="viewSignatureForm" :rules="rules">
|
||||||
<el-form-item label="公章:" prop="authUrlId" >
|
<el-form-item label="公章:" prop="authUrlId">
|
||||||
<div v-loading="uploading">
|
<div v-loading="uploading">
|
||||||
<img
|
<img class="companyInfo-upload-image" :src="'data:image/png;base64,' + viewSignatureForm.imgStr" />
|
||||||
class="companyInfo-upload-image"
|
|
||||||
:src="'data:image/png;base64,'+viewSignatureForm.imgStr"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@@ -138,7 +140,8 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-date-picker v-model="monthData" type="daterange" range-separator="至" start-placeholder="请选择开始日期"
|
<el-date-picker v-model="monthData" type="daterange" range-separator="至" start-placeholder="请选择开始日期"
|
||||||
end-placeholder="请选择结束日期" value-format="yyyy-MM-dd hh:mm:ss" format="yyyy-MM-dd" @change="getDateValueStime">
|
end-placeholder="请选择结束日期" value-format="yyyy-MM-dd hh:mm:ss" format="yyyy-MM-dd"
|
||||||
|
@change="getDateValueStime">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<tool-tip></tool-tip>
|
<tool-tip></tool-tip>
|
||||||
@@ -150,22 +153,22 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
<content-index ref="waiting" @refresh="handleClear"></content-index>
|
<content-index ref="waiting" @refresh="handleClear"></content-index>
|
||||||
</basic-container>
|
</basic-container>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import contentIndex from './contentIndex'//待签发
|
import contentIndex from './contentIndex'//待签发
|
||||||
import {
|
import {
|
||||||
apply,
|
apply,
|
||||||
applyStatus,
|
applyStatus,
|
||||||
getCode,
|
getCode,
|
||||||
resetPwd,
|
resetPwd,
|
||||||
viewSignature,
|
viewSignature,
|
||||||
|
|
||||||
} from "@/api/manage/econtract";
|
} from "@/api/manage/econtract";
|
||||||
import { getTemplate } from "@/api/resource/template";
|
import { getTemplate } from "@/api/resource/template";
|
||||||
import httpRequest from "./httpRequest";
|
import httpRequest from "./httpRequest";
|
||||||
import {mapGetters} from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
contentIndex,
|
contentIndex,
|
||||||
},
|
},
|
||||||
@@ -178,19 +181,19 @@
|
|||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const validPwdNums=(rule,value,callback)=>{
|
const validPwdNums = (rule, value, callback) => {
|
||||||
if(value.length!=6 || isNaN(Number(value))){
|
if (value.length != 6 || isNaN(Number(value))) {
|
||||||
callback(new Error('请输入6位数的数字密码'));
|
callback(new Error('请输入6位数的数字密码'));
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const apply_validPwdNums=(rule,value,callback)=>{
|
const apply_validPwdNums = (rule, value, callback) => {
|
||||||
if(value.length!=6 || isNaN(Number(value))){
|
if (value.length != 6 || isNaN(Number(value))) {
|
||||||
callback(new Error('请输入6位数的数字密码'));
|
callback(new Error('请输入6位数的数字密码'));
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -212,21 +215,21 @@
|
|||||||
}*/
|
}*/
|
||||||
return {
|
return {
|
||||||
//申请签章校验
|
//申请签章校验
|
||||||
ruleValidate:{
|
ruleValidate: {
|
||||||
authUrlId:[
|
authUrlId: [
|
||||||
{
|
{
|
||||||
required: true, message: '请上传电子签章申请表', trigger: 'blur'
|
required: true, message: '请上传电子签章申请表', trigger: 'blur'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
pwd:[
|
pwd: [
|
||||||
{
|
{
|
||||||
required: true, message: '请输入密码', trigger: 'blur'
|
required: true, message: '请输入密码', trigger: 'blur'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
validator:apply_validPwdNums, trigger: 'blur'
|
validator: apply_validPwdNums, trigger: 'blur'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
confirmpwd:[
|
confirmpwd: [
|
||||||
{
|
{
|
||||||
required: true, message: '请输入确认密码', trigger: 'blur'
|
required: true, message: '请输入确认密码', trigger: 'blur'
|
||||||
},
|
},
|
||||||
@@ -265,16 +268,16 @@
|
|||||||
]
|
]
|
||||||
|
|
||||||
},
|
},
|
||||||
phone:'',
|
phone: '',
|
||||||
formLabelWidth:'150px',
|
formLabelWidth: '150px',
|
||||||
search: {
|
search: {
|
||||||
// status:''
|
// status:''
|
||||||
},
|
},
|
||||||
msgTime:120,
|
msgTime: 120,
|
||||||
resetPwdDialogVisible: false,
|
resetPwdDialogVisible: false,
|
||||||
resetPwdForm: {},
|
resetPwdForm: {},
|
||||||
viewSignatureForm:{},
|
viewSignatureForm: {},
|
||||||
calibrationDialog:false,
|
calibrationDialog: false,
|
||||||
msgKey: false,
|
msgKey: false,
|
||||||
msgText: '获取验证码',
|
msgText: '获取验证码',
|
||||||
page: {
|
page: {
|
||||||
@@ -282,8 +285,8 @@
|
|||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
total: 0
|
total: 0
|
||||||
},
|
},
|
||||||
monthData:'',
|
monthData: '',
|
||||||
monthDataEtime:'',
|
monthDataEtime: '',
|
||||||
rules: {
|
rules: {
|
||||||
authUrlId: [
|
authUrlId: [
|
||||||
{
|
{
|
||||||
@@ -307,22 +310,22 @@
|
|||||||
dialogImageUrl: '',
|
dialogImageUrl: '',
|
||||||
dialogVisible1: false,
|
dialogVisible1: false,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
searchTypeList:[
|
searchTypeList: [
|
||||||
{
|
{
|
||||||
label:'员工签署日期',
|
label: '员工签署日期',
|
||||||
value:0
|
value: 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label:'企业签署日期',
|
label: '企业签署日期',
|
||||||
value:1
|
value: 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label:'合同生效日期',
|
label: '合同生效日期',
|
||||||
value:2
|
value: 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label:'合同失效日期',
|
label: '合同失效日期',
|
||||||
value:3
|
value: 3
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@@ -330,17 +333,18 @@
|
|||||||
methods: {
|
methods: {
|
||||||
//页面加载执行
|
//页面加载执行
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
this.econtractStatus.sealOn = 0;//电子合同是否启用,0=未启用
|
||||||
//applyStatus
|
//applyStatus
|
||||||
applyStatus().then((res) => {
|
// applyStatus().then((res) => {
|
||||||
this.econtractStatus = res.data.data;
|
// this.econtractStatus = res.data.data;
|
||||||
//this.econtractStatus.sealOn = 1
|
// //this.econtractStatus.sealOn = 1
|
||||||
});
|
// });
|
||||||
},
|
},
|
||||||
/**上传图片**/
|
/**上传图片**/
|
||||||
httpRequest,
|
httpRequest,
|
||||||
handleAvatarSuccess(res, file) {
|
handleAvatarSuccess(res, file) {
|
||||||
this.imageUrl = URL.createObjectURL(file.raw);
|
this.imageUrl = URL.createObjectURL(file.raw);
|
||||||
this.applyEcontractForm.authUrlId=URL.createObjectURL(file.raw);
|
this.applyEcontractForm.authUrlId = URL.createObjectURL(file.raw);
|
||||||
this.uploading = false;
|
this.uploading = false;
|
||||||
},
|
},
|
||||||
beforeAvatarUpload(file) {
|
beforeAvatarUpload(file) {
|
||||||
@@ -454,9 +458,9 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
handelResetPwd() {
|
handelResetPwd() {
|
||||||
this.phone=this.userInfo.account;
|
this.phone = this.userInfo.account;
|
||||||
var pat=/(\d{3})\d*(\d{4})/;
|
var pat = /(\d{3})\d*(\d{4})/;
|
||||||
this.phone=this.phone.replace(pat,'$1****$2');
|
this.phone = this.phone.replace(pat, '$1****$2');
|
||||||
this.resetPwdDialogVisible = true;
|
this.resetPwdDialogVisible = true;
|
||||||
this.resetPwdForm = {};
|
this.resetPwdForm = {};
|
||||||
},
|
},
|
||||||
@@ -491,31 +495,31 @@
|
|||||||
submitResetPwd() {
|
submitResetPwd() {
|
||||||
this.$refs.resetPwdForm.validate(valid => {
|
this.$refs.resetPwdForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
resetPwd(this.userInfo.account,this.resetPwdForm.pwd,this.resetPwdForm.code).then(()=>{
|
resetPwd(this.userInfo.account, this.resetPwdForm.pwd, this.resetPwdForm.code).then(() => {
|
||||||
this.$message.success('密码重置成功');
|
this.$message.success('密码重置成功');
|
||||||
this.resetPwdDialogVisible=false;
|
this.resetPwdDialogVisible = false;
|
||||||
})
|
})
|
||||||
.catch((err)=>{
|
.catch((err) => {
|
||||||
this.$message.error(err);
|
this.$message.error(err);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//查看签章
|
//查看签章
|
||||||
handelViewSignature(){
|
handelViewSignature() {
|
||||||
viewSignature().then(res=>{
|
viewSignature().then(res => {
|
||||||
this.viewSignatureForm.imgStr=res.data.data;
|
this.viewSignatureForm.imgStr = res.data.data;
|
||||||
this.calibrationDialog=true;
|
this.calibrationDialog = true;
|
||||||
})
|
})
|
||||||
// window.open('http://jlfiles.oss-cn-zhangjiakou.aliyuncs.com/upload/20210320/b89d611d7f371c8f08d08edc79cfd4b2.pdf')
|
// window.open('http://jlfiles.oss-cn-zhangjiakou.aliyuncs.com/upload/20210320/b89d611d7f371c8f08d08edc79cfd4b2.pdf')
|
||||||
},
|
},
|
||||||
//
|
//
|
||||||
handelEnableSignature(){
|
handelEnableSignature() {
|
||||||
this.applyEcontractForm={}
|
this.applyEcontractForm = {}
|
||||||
this.imageUrl="/manage/img/idcard-h.png"
|
this.imageUrl = "/manage/img/idcard-h.png"
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true;
|
||||||
},
|
},
|
||||||
getDateValueStime(val){
|
getDateValueStime(val) {
|
||||||
this.search.stime = val[0];
|
this.search.stime = val[0];
|
||||||
this.search.etime = val[1];
|
this.search.etime = val[1];
|
||||||
},
|
},
|
||||||
@@ -523,91 +527,101 @@
|
|||||||
created() {
|
created() {
|
||||||
this.onLoad();
|
this.onLoad();
|
||||||
},
|
},
|
||||||
computed:{
|
computed: {
|
||||||
...mapGetters(['userInfo','permission'])
|
...mapGetters(['userInfo', 'permission'])
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
* {
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.el-form--inline .el-form-item{
|
|
||||||
|
.el-form--inline .el-form-item {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
.companyInfo-upload-image {
|
|
||||||
|
.companyInfo-upload-image {
|
||||||
height: 200px;
|
height: 200px;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
}
|
}
|
||||||
.contract-signature-image{
|
|
||||||
|
.contract-signature-image {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
}
|
}
|
||||||
.econtract {
|
|
||||||
|
.econtract {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
.econtract-header{
|
|
||||||
|
.econtract-header {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
.econtract-header /deep/ .el-card__body{
|
|
||||||
padding: 5px 16px!important;
|
.econtract-header /deep/ .el-card__body {
|
||||||
}
|
padding: 5px 16px !important;
|
||||||
.header {
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
clear: both;
|
clear: both;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header li {
|
.header li {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 50px;
|
margin-right: 50px;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header li h3 {
|
.header li h3 {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header li a {
|
.header li a {
|
||||||
color: #409EFF;
|
color: #409EFF;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-button {
|
.el-button {
|
||||||
padding: 8px 10px;
|
padding: 8px 10px;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.applyEcontract /deep/ .el-input__inner {
|
.applyEcontract /deep/ .el-input__inner {
|
||||||
width: 210px;
|
width: 210px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uploadEcontractBtn {
|
.uploadEcontractBtn {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uploadEcontractBtn:hover {
|
.uploadEcontractBtn:hover {
|
||||||
color: #409EFF;
|
color: #409EFF;
|
||||||
}
|
}
|
||||||
.econtract-resetForm /deep/ .el-form-item__content{
|
|
||||||
|
.econtract-resetForm /deep/ .el-form-item__content {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
.searchBtn{
|
|
||||||
|
.searchBtn {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
.econtract-resetForm .el-form-item {
|
|
||||||
margin-bottom: 30px!important;
|
.econtract-resetForm .el-form-item {
|
||||||
}
|
margin-bottom: 30px !important;
|
||||||
.demo-ruleForm .el-form-item{
|
}
|
||||||
margin-bottom: 20px!important;
|
|
||||||
}
|
.demo-ruleForm .el-form-item {
|
||||||
</style>
|
margin-bottom: 20px !important;
|
||||||
|
}</style>
|
||||||
|
|||||||
@@ -1,48 +1,34 @@
|
|||||||
<template>
|
<template>
|
||||||
<basic-container>
|
<basic-container>
|
||||||
<el-drawer
|
<el-drawer title="录用人员" append-to-body :visible.sync="drawer" size="80%" class="drawer" :before-close="drawerClose">
|
||||||
title="录用人员"
|
|
||||||
append-to-body
|
|
||||||
:visible.sync="drawer"
|
|
||||||
size="80%"
|
|
||||||
class="drawer"
|
|
||||||
:before-close="drawerClose"
|
|
||||||
>
|
|
||||||
<!-- <div class="tipsWrap" v-show="getUserConfig.insuranceOn == 1">录用人员说明:不在保期的人员,不可以录用,请先到 “商保管理" 模块申请投保</div> -->
|
<!-- <div class="tipsWrap" v-show="getUserConfig.insuranceOn == 1">录用人员说明:不在保期的人员,不可以录用,请先到 “商保管理" 模块申请投保</div> -->
|
||||||
<div class="tipsWrap1" v-show="getUserConfig.insuranceOn == 1 && employState == 1">说明:录用成功后,平台自动计算保期,任务开始前一天自动投保,确保录用人员任务期内均有商保。</div>
|
<div class="tipsWrap1" v-show="getUserConfig.insuranceOn == 1 && employState == 1">
|
||||||
<div class="tipsWrap2" v-show="getUserConfig.insuranceOn == 1 && employState == 2">说明:录用人员取消后,投保可自动取消(任务开始前一天20:00以后,不再支持取消操作)。</div>
|
说明:录用成功后,平台自动计算保期,任务开始前一天自动投保,确保录用人员任务期内均有商保。</div>
|
||||||
<avue-crud
|
<div class="tipsWrap2" v-show="getUserConfig.insuranceOn == 1 && employState == 2">
|
||||||
:option="option"
|
说明:录用人员取消后,投保可自动取消(任务开始前一天20:00以后,不再支持取消操作)。</div>
|
||||||
:table-loading="loading"
|
<avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" v-model="obj"
|
||||||
:data="data"
|
:permission="permissionList" @search-change="searchChange" @search-reset="searchReset"
|
||||||
:page.sync="page"
|
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
|
||||||
ref="crud"
|
@refresh-change="refreshChange" class="customPage" @on-load="onLoad">
|
||||||
v-model="obj"
|
|
||||||
:permission="permissionList"
|
|
||||||
@search-change="searchChange"
|
|
||||||
@search-reset="searchReset"
|
|
||||||
@selection-change="selectionChange"
|
|
||||||
@current-change="currentChange"
|
|
||||||
@size-change="sizeChange"
|
|
||||||
@refresh-change="refreshChange"
|
|
||||||
class="customPage"
|
|
||||||
@on-load="onLoad"
|
|
||||||
>
|
|
||||||
<!--自定义列-->
|
<!--自定义列-->
|
||||||
<template slot="period" slot-scope="{row}">
|
<template slot="period" slot-scope="{row}">
|
||||||
<span v-if="row.startTime && row.endTime">
|
<span v-if="row.startTime && row.endTime">
|
||||||
<el-tag type="warning" v-if="row.serviceStatus==0">{{dateFormat(row.startTime)}}-{{dateFormat(row.endTime)}}</el-tag>
|
<el-tag type="warning"
|
||||||
<el-tag type="success" v-if="row.serviceStatus==1">{{dateFormat(row.startTime)}}-{{dateFormat(row.endTime)}}</el-tag>
|
v-if="row.serviceStatus == 0">{{ dateFormat(row.startTime) }}-{{ dateFormat(row.endTime) }}</el-tag>
|
||||||
<el-tag type="danger" v-if="row.serviceStatus==2">{{dateFormat(row.startTime)}}-{{dateFormat(row.endTime)}}</el-tag>
|
<el-tag type="success"
|
||||||
<el-tag type="info" v-if="row.serviceStatus==3">{{dateFormat(row.startTime)}}-{{dateFormat(row.endTime)}}</el-tag>
|
v-if="row.serviceStatus == 1">{{ dateFormat(row.startTime) }}-{{ dateFormat(row.endTime) }}</el-tag>
|
||||||
|
<el-tag type="danger"
|
||||||
|
v-if="row.serviceStatus == 2">{{ dateFormat(row.startTime) }}-{{ dateFormat(row.endTime) }}</el-tag>
|
||||||
|
<el-tag type="info"
|
||||||
|
v-if="row.serviceStatus == 3">{{ dateFormat(row.startTime) }}-{{ dateFormat(row.endTime) }}</el-tag>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
<template slot="serviceStatus" slot-scope="{row}" >
|
<template slot="serviceStatus" slot-scope="{row}">
|
||||||
<span>
|
<span>
|
||||||
<el-tag type="warning" v-if="row.serviceStatus==0">未生效</el-tag>
|
<el-tag type="warning" v-if="row.serviceStatus == 0">未生效</el-tag>
|
||||||
<el-tag type="success" v-if="row.serviceStatus==1">生效中</el-tag>
|
<el-tag type="success" v-if="row.serviceStatus == 1">生效中</el-tag>
|
||||||
<el-tag type="danger" v-if="row.serviceStatus==2">即将失效</el-tag>
|
<el-tag type="danger" v-if="row.serviceStatus == 2">即将失效</el-tag>
|
||||||
<el-tag type="info" v-if="row.serviceStatus==3">已失效</el-tag>
|
<el-tag type="info" v-if="row.serviceStatus == 3">已失效</el-tag>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
@@ -51,13 +37,8 @@
|
|||||||
</template>
|
</template>
|
||||||
<template slot="resume" slot-scope="{ row }">
|
<template slot="resume" slot-scope="{ row }">
|
||||||
<div>
|
<div>
|
||||||
<el-button
|
<el-button type="text" size="mini" @click="$refs.resume.openDialog(row)"
|
||||||
type="text"
|
v-if="row.userId && row.userId !== '0'">查看简历</el-button>
|
||||||
size="mini"
|
|
||||||
@click="$refs.resume.openDialog(row)"
|
|
||||||
v-if="row.userId && row.userId !== '0'"
|
|
||||||
>查看简历</el-button
|
|
||||||
>
|
|
||||||
<div v-else>暂无简历</div>
|
<div v-else>暂无简历</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -78,24 +59,14 @@
|
|||||||
></el-option>
|
></el-option>
|
||||||
</el-select>-->
|
</el-select>-->
|
||||||
<el-radio-group v-model="query.status" @change="radioButtonChange()">
|
<el-radio-group v-model="query.status" @change="radioButtonChange()">
|
||||||
<el-radio-button
|
<el-radio-button v-for="(item, key, index) in personType" :key="index" :label="item.value"
|
||||||
v-for="(item, key, index) in personType"
|
:disabled="personTypeDisabledFlag">{{ item.label }}</el-radio-button>
|
||||||
:key="index"
|
|
||||||
:label="item.value"
|
|
||||||
:disabled="personTypeDisabledFlag"
|
|
||||||
>{{ item.label }}</el-radio-button
|
|
||||||
>
|
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</template>
|
</template>
|
||||||
<!--/自定义搜索-->
|
<!--/自定义搜索-->
|
||||||
<div slot="menu" slot-scope="{ row }">
|
<div slot="menu" slot-scope="{ row }">
|
||||||
<el-button
|
<el-button type="text" size="mini" @click="rowEmploy(row)"
|
||||||
type="text"
|
v-show="employState === 1 && status === 1">录用</el-button>
|
||||||
size="mini"
|
|
||||||
@click="rowEmploy(row)"
|
|
||||||
v-show="employState === 1 && status === 1"
|
|
||||||
>录用</el-button
|
|
||||||
>
|
|
||||||
<!-- <el-popover v-show="employState === 1 && status === 1 && row.effect"
|
<!-- <el-popover v-show="employState === 1 && status === 1 && row.effect"
|
||||||
placement="top-start"
|
placement="top-start"
|
||||||
title="提示:"
|
title="提示:"
|
||||||
@@ -106,20 +77,10 @@
|
|||||||
>
|
>
|
||||||
<el-button type="text" size="mini" slot="reference" class="selectBtn">录用</el-button>
|
<el-button type="text" size="mini" slot="reference" class="selectBtn">录用</el-button>
|
||||||
</el-popover> -->
|
</el-popover> -->
|
||||||
<el-button
|
<el-button type="text" size="mini" @click="rowDel(row)"
|
||||||
type="text"
|
v-show="employState === 2 && status === 1">取消</el-button>
|
||||||
size="mini"
|
<el-button type="text" size="mini" @click="rowCheck(row)"
|
||||||
@click="rowDel(row)"
|
v-show="employState === 2 && status === 1 && companyContractOn == 1">查看合同</el-button>
|
||||||
v-show="employState === 2 && status === 1"
|
|
||||||
>取消</el-button
|
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
type="text"
|
|
||||||
size="mini"
|
|
||||||
@click="rowCheck(row)"
|
|
||||||
v-show="employState === 2 && status === 1 && companyContractOn==1"
|
|
||||||
>查看合同</el-button
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- <div slot="menu" slot-scope="{ row }" v-else-if="getUserConfig.insuranceOn == 0">
|
<!-- <div slot="menu" slot-scope="{ row }" v-else-if="getUserConfig.insuranceOn == 0">
|
||||||
<el-button
|
<el-button
|
||||||
@@ -147,15 +108,8 @@
|
|||||||
<!--/自定义操作栏-->
|
<!--/自定义操作栏-->
|
||||||
<!--自定义按钮-->
|
<!--自定义按钮-->
|
||||||
<template slot="menuLeft">
|
<template slot="menuLeft">
|
||||||
<el-button
|
<el-button type="primary" size="small" :disabled="!selectionList.length" icon="el-icon-plus"
|
||||||
type="primary"
|
@click="handleEmploy" v-show="employState === 1 && status === 1">批量录用</el-button>
|
||||||
size="small"
|
|
||||||
:disabled="!selectionList.length"
|
|
||||||
icon="el-icon-plus"
|
|
||||||
@click="handleEmploy"
|
|
||||||
v-show="employState === 1 && status === 1"
|
|
||||||
>批量录用</el-button
|
|
||||||
>
|
|
||||||
<!-- <el-button
|
<!-- <el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
size="small"
|
size="small"
|
||||||
@@ -166,43 +120,30 @@
|
|||||||
>批量取消</el-button
|
>批量取消</el-button
|
||||||
> -->
|
> -->
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:cardNumber="{row}">
|
<template v-slot:cardNumber="{ row }">
|
||||||
<span>{{idNumberDDesensitization(row.cardNumber)}}</span>
|
<span>{{ idNumberDDesensitization(row.cardNumber) }}</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</avue-crud>
|
</avue-crud>
|
||||||
<el-dialog
|
<el-dialog title="" :visible.sync="dialogVisible" width="35%" :modal=false>
|
||||||
title=""
|
|
||||||
:visible.sync="dialogVisible"
|
|
||||||
width="35%"
|
|
||||||
:modal=false
|
|
||||||
>
|
|
||||||
<div>
|
<div>
|
||||||
<img class="" :src="'data:image/png;base64,'+imgStr" width="100%"/>
|
<img class="" :src="'data:image/png;base64,' + imgStr" width="100%" />
|
||||||
</div>
|
</div>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||||
<el-button type="primary" @click="downLoadContract">下载合同</el-button>
|
<el-button type="primary" @click="downLoadContract">下载合同</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<el-dialog
|
<el-dialog title="" :visible.sync="dialogVisible1" width="30%" :modal=false>
|
||||||
title=""
|
|
||||||
:visible.sync="dialogVisible1"
|
|
||||||
width="30%"
|
|
||||||
:modal=false
|
|
||||||
>
|
|
||||||
<div>
|
<div>
|
||||||
<p style="text-align:center; font-size:16px">您选择<span class="employ-employNum-count">{{employNum}}</span>人准备录用,请输入密码并确定录用</p>
|
<p style="text-align:center; font-size:16px">您选择<span
|
||||||
|
class="employ-employNum-count">{{ employNum }}</span>人准备录用,请输入密码并确定录用</p>
|
||||||
<el-form :model="pwdForm" ref="pwdForm" :rules="pwdFormRules">
|
<el-form :model="pwdForm" ref="pwdForm" :rules="pwdFormRules">
|
||||||
<el-form-item
|
<el-form-item label="输入密码:" prop="pwd" :label-position="labelPosition" label-width="100px">
|
||||||
label="输入密码:"
|
|
||||||
prop="pwd"
|
|
||||||
:label-position="labelPosition"
|
|
||||||
label-width="100px"
|
|
||||||
|
|
||||||
>
|
|
||||||
<el-col :span="16">
|
<el-col :span="16">
|
||||||
<el-input type="number" v-model="pwdForm.pwd" maxlength="6" onKeypress="return(/^[0-9]*$/.test(String.fromCharCode(event.keyCode)))" show-password placeholder="请输入六位数字密码"></el-input>
|
<el-input type="number" v-model="pwdForm.pwd" maxlength="6"
|
||||||
|
onKeypress="return(/^[0-9]*$/.test(String.fromCharCode(event.keyCode)))" show-password
|
||||||
|
placeholder="请输入六位数字密码"></el-input>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="employ-forgetPwd">
|
<el-form-item class="employ-forgetPwd">
|
||||||
@@ -211,26 +152,31 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="PWDOk" :loading="loadingbut">{{loadingbuttext}}</el-button>
|
<el-button type="primary" @click="PWDOk" :loading="loadingbut">{{ loadingbuttext }}</el-button>
|
||||||
<el-button @click="dialogVisible1 = false">取 消</el-button>
|
<el-button @click="dialogVisible1 = false">取 消</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!--忘记密码dialog-->
|
<!--忘记密码dialog-->
|
||||||
<el-dialog title="重置密码" :visible.sync="resetPwdDialogVisible" append-to-body width="30%">
|
<el-dialog title="重置密码" :visible.sync="resetPwdDialogVisible" append-to-body width="30%">
|
||||||
<el-form class="econtract-resetForm" label-position="right" :model="resetPwdForm" :rules="resetPwdRules" ref="resetPwdForm">
|
<el-form class="econtract-resetForm" label-position="right" :model="resetPwdForm" :rules="resetPwdRules"
|
||||||
<el-form-item label="手机号码:" :label-width="formLabelWidth" prop="account" >
|
ref="resetPwdForm">
|
||||||
<span>{{phone}}</span>
|
<el-form-item label="手机号码:" :label-width="formLabelWidth" prop="account">
|
||||||
|
<span>{{ phone }}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="请输入验证码:" :label-width="formLabelWidth" prop="code">
|
<el-form-item label="请输入验证码:" :label-width="formLabelWidth" prop="code">
|
||||||
<el-input v-model="resetPwdForm.code" autocomplete="off" style="width: 50%;"></el-input>
|
<el-input v-model="resetPwdForm.code" autocomplete="off" style="width: 50%;"></el-input>
|
||||||
<el-button :disabled="msgKey" style="margin-left: 15px;" type="primary" @click="getCode">{{msgText}}</el-button>
|
<el-button :disabled="msgKey" style="margin-left: 15px;" type="primary"
|
||||||
|
@click="getCode">{{ msgText }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="请设置新密码:" :label-width="formLabelWidth" prop="pwd">
|
<el-form-item label="请设置新密码:" :label-width="formLabelWidth" prop="pwd">
|
||||||
<el-input type="number" v-model="resetPwdForm.pwd" maxlength="6" onKeypress="return(/^[0-9]*$/.test(String.fromCharCode(event.keyCode)))" autocomplete="off" show-password placeholder="请输入六位数字密码"></el-input>
|
<el-input type="number" v-model="resetPwdForm.pwd" maxlength="6"
|
||||||
|
onKeypress="return(/^[0-9]*$/.test(String.fromCharCode(event.keyCode)))" autocomplete="off" show-password
|
||||||
|
placeholder="请输入六位数字密码"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="请再次输入新密码:" :label-width="formLabelWidth" prop="pwd2">
|
<el-form-item label="请再次输入新密码:" :label-width="formLabelWidth" prop="pwd2">
|
||||||
<el-input type="number" maxlength="6" onKeypress="return(/^[0-9]*$/.test(String.fromCharCode(event.keyCode)))" v-model="resetPwdForm.pwd2" autocomplete="off" show-password placeholder="请再次输入六位数字密码"></el-input>
|
<el-input type="number" maxlength="6" onKeypress="return(/^[0-9]*$/.test(String.fromCharCode(event.keyCode)))"
|
||||||
|
v-model="resetPwdForm.pwd2" autocomplete="off" show-password placeholder="请再次输入六位数字密码"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
@@ -241,28 +187,22 @@
|
|||||||
|
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
<Resume ref="resume"></Resume>
|
<Resume ref="resume"></Resume>
|
||||||
<employ-information
|
<employ-information ref="order" :checkDisplayVisible="checkDisplayVisible" :fpData="fpData" :fpTitleId='fpTitleId'
|
||||||
ref="order"
|
:usersInfo="userInfo" @checkDisplayVisibleClose="checkDisplayVisibleClose"
|
||||||
:checkDisplayVisible="checkDisplayVisible"
|
@refresh="refreshChange"></employ-information>
|
||||||
:fpData="fpData"
|
|
||||||
:fpTitleId='fpTitleId'
|
|
||||||
:usersInfo = "userInfo"
|
|
||||||
@checkDisplayVisibleClose = "checkDisplayVisibleClose"
|
|
||||||
@refresh="refreshChange"
|
|
||||||
></employ-information>
|
|
||||||
</basic-container>
|
</basic-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { employList, cancelEmploy, employ } from "@/api/tenant/mission";
|
import { employList, cancelEmploy, employ } from "@/api/tenant/mission";
|
||||||
import {viewContractImg,certCheckPass,getCode,resetPwd} from "@/api/manage/econtract.js";//api
|
import { viewContractImg, certCheckPass, getCode, resetPwd } from "@/api/manage/econtract.js";//api
|
||||||
import {contractDownload} from "@/api/manage/esignature.js";//api
|
import { contractDownload } from "@/api/manage/esignature.js";//api
|
||||||
import Resume from "@/components/resume/index";
|
import Resume from "@/components/resume/index";
|
||||||
import { idNumberDDesensitization } from "@/util/util";
|
import { idNumberDDesensitization } from "@/util/util";
|
||||||
import {applyStatus} from '@/api/manage/econtract'
|
import { applyStatus } from '@/api/manage/econtract'
|
||||||
import {mapGetters} from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import { dateFormat } from "@/util/date";
|
import { dateFormat } from "@/util/date";
|
||||||
import {getConfig} from '@/api/tenant/config'
|
import { getConfig } from '@/api/tenant/config'
|
||||||
import EmployInformation from "./EmployInformation";
|
import EmployInformation from "./EmployInformation";
|
||||||
import { validatenull } from "@/util/validate";
|
import { validatenull } from "@/util/validate";
|
||||||
import { getFpDetail, getAddressAll } from "@/api/tenant/fp";
|
import { getFpDetail, getAddressAll } from "@/api/tenant/fp";
|
||||||
@@ -277,11 +217,11 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
const validatePwdLength=(rule,value,callback)=>{
|
const validatePwdLength = (rule, value, callback) => {
|
||||||
if(value.length!=6 || isNaN(Number(value))){
|
if (value.length != 6 || isNaN(Number(value))) {
|
||||||
callback(new Error('请输入6位数的数字密码'));
|
callback(new Error('请输入6位数的数字密码'));
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -294,42 +234,42 @@ export default {
|
|||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const validPwdNums=(rule,value,callback)=>{
|
const validPwdNums = (rule, value, callback) => {
|
||||||
if(value.length!=6 || isNaN(Number(value))){
|
if (value.length != 6 || isNaN(Number(value))) {
|
||||||
callback(new Error('请输入6位数的数字密码'));
|
callback(new Error('请输入6位数的数字密码'));
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
selectTaskInfo:{},
|
selectTaskInfo: {},
|
||||||
getUserConfig:{},
|
getUserConfig: {},
|
||||||
checkDisplayVisible: false,
|
checkDisplayVisible: false,
|
||||||
fpTitleId:'',
|
fpTitleId: '',
|
||||||
fpData: {},
|
fpData: {},
|
||||||
pwdFormRules:{
|
pwdFormRules: {
|
||||||
pwd:[
|
pwd: [
|
||||||
{
|
{
|
||||||
required:true,message:'请输入密码',trigger:'blur'
|
required: true, message: '请输入密码', trigger: 'blur'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
validator:validatePwdLength,trigger:'blur'
|
validator: validatePwdLength, trigger: 'blur'
|
||||||
},
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
companyContractOn:'',//电子合同状态
|
companyContractOn: '',//电子合同状态
|
||||||
conpanySealOn:'',//签章状态
|
conpanySealOn: '',//签章状态
|
||||||
selectionFlag:true,
|
selectionFlag: true,
|
||||||
/*忘记密码*/
|
/*忘记密码*/
|
||||||
resetPwdDialogVisible:false,
|
resetPwdDialogVisible: false,
|
||||||
resetPwdForm:{},
|
resetPwdForm: {},
|
||||||
formLabelWidth:'150px',
|
formLabelWidth: '150px',
|
||||||
msgText: '获取验证码',
|
msgText: '获取验证码',
|
||||||
msgTime:120,
|
msgTime: 120,
|
||||||
cancel:'',
|
cancel: '',
|
||||||
//重置密码校验
|
//重置密码校验
|
||||||
resetPwdRules: {
|
resetPwdRules: {
|
||||||
code: [
|
code: [
|
||||||
@@ -356,13 +296,13 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
loadingbut:false,
|
loadingbut: false,
|
||||||
loadingbuttext:'确定',
|
loadingbuttext: '确定',
|
||||||
downLoadRow:{},
|
downLoadRow: {},
|
||||||
dataCurClick:{},
|
dataCurClick: {},
|
||||||
employDataIds:1,
|
employDataIds: 1,
|
||||||
employNum:1,
|
employNum: 1,
|
||||||
imgStr:'',
|
imgStr: '',
|
||||||
isIndeterminate: false,
|
isIndeterminate: false,
|
||||||
checkAll: false,
|
checkAll: false,
|
||||||
checked: false,
|
checked: false,
|
||||||
@@ -371,7 +311,7 @@ export default {
|
|||||||
selectionList: [],
|
selectionList: [],
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
dialogVisible1: false,
|
dialogVisible1: false,
|
||||||
contractId:'',
|
contractId: '',
|
||||||
labelPosition: 'right',
|
labelPosition: 'right',
|
||||||
pwdForm: {
|
pwdForm: {
|
||||||
pwd: ''
|
pwd: ''
|
||||||
@@ -396,7 +336,7 @@ export default {
|
|||||||
],
|
],
|
||||||
drawer: false,
|
drawer: false,
|
||||||
data: [],
|
data: [],
|
||||||
personTypeDisabledFlag:true,
|
personTypeDisabledFlag: true,
|
||||||
obj: {},
|
obj: {},
|
||||||
|
|
||||||
};
|
};
|
||||||
@@ -458,13 +398,13 @@ export default {
|
|||||||
prop: "realName",
|
prop: "realName",
|
||||||
search: true,
|
search: true,
|
||||||
searchSpan: 4,
|
searchSpan: 4,
|
||||||
width:70,
|
width: 70,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "性别",
|
label: "性别",
|
||||||
prop: "sex",
|
prop: "sex",
|
||||||
search: false,
|
search: false,
|
||||||
width:50,
|
width: 50,
|
||||||
dicData: [
|
dicData: [
|
||||||
{
|
{
|
||||||
label: "男",
|
label: "男",
|
||||||
@@ -480,28 +420,28 @@ export default {
|
|||||||
label: "年龄",
|
label: "年龄",
|
||||||
prop: "age",
|
prop: "age",
|
||||||
search: false,
|
search: false,
|
||||||
width:50,
|
width: 50,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "手机号",
|
label: "手机号",
|
||||||
prop: "telphone",
|
prop: "telphone",
|
||||||
search: false,
|
search: false,
|
||||||
width:100,
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "身份证",
|
label: "身份证",
|
||||||
prop: "cardNumber",
|
prop: "cardNumber",
|
||||||
search: false,
|
search: false,
|
||||||
slot: true,
|
slot: true,
|
||||||
width:110
|
width: 110
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "最新保期",
|
label: "最新保期",
|
||||||
prop: "period",
|
prop: "period",
|
||||||
searchSpan: 5,
|
searchSpan: 5,
|
||||||
display: false,
|
display: false,
|
||||||
slot:true,
|
slot: true,
|
||||||
width:190
|
width: 190
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "商保状态",
|
label: "商保状态",
|
||||||
@@ -527,7 +467,7 @@ export default {
|
|||||||
value: 3
|
value: 3
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
slot:true,
|
slot: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "工种",
|
label: "工种",
|
||||||
@@ -537,7 +477,7 @@ export default {
|
|||||||
label: "来源",
|
label: "来源",
|
||||||
prop: "src",
|
prop: "src",
|
||||||
search: false,
|
search: false,
|
||||||
width:70,
|
width: 70,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "人才库",
|
label: "人才库",
|
||||||
@@ -563,9 +503,9 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
"query.status": function (val, oldVal) {
|
"query.status": function (val, oldVal) {
|
||||||
if(val == 1){
|
if (val == 1) {
|
||||||
this.selectionFlag = true;
|
this.selectionFlag = true;
|
||||||
}else{
|
} else {
|
||||||
this.selectionFlag = false;
|
this.selectionFlag = false;
|
||||||
}
|
}
|
||||||
this.query.realName = '';
|
this.query.realName = '';
|
||||||
@@ -577,11 +517,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted() {
|
||||||
this.checkStatus();
|
this.checkStatus();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkDisplayVisibleClose(){
|
checkDisplayVisibleClose() {
|
||||||
this.checkDisplayVisible = false;
|
this.checkDisplayVisible = false;
|
||||||
},
|
},
|
||||||
/*获取发票数据*/
|
/*获取发票数据*/
|
||||||
@@ -607,39 +547,41 @@ export default {
|
|||||||
self.$message.warning("请完善您的发票收件地址");
|
self.$message.warning("请完善您的发票收件地址");
|
||||||
} else {
|
} else {
|
||||||
self.checkDisplayVisible = true;
|
self.checkDisplayVisible = true;
|
||||||
self.$refs.order.openDialog(this.selectTaskInfo,this.employDataIds,this.selectionList);
|
self.$refs.order.openDialog(this.selectTaskInfo, this.employDataIds, this.selectionList);
|
||||||
self.$refs.order.getData(self.addresses);
|
self.$refs.order.getData(self.addresses);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
rowEmployDisabled(){
|
rowEmployDisabled() {
|
||||||
},
|
},
|
||||||
dateFormat(date){
|
dateFormat(date) {
|
||||||
return dateFormat(new Date(date),'yyyy/MM/dd')
|
return dateFormat(new Date(date), 'yyyy/MM/dd')
|
||||||
},
|
},
|
||||||
checkStatus(){
|
checkStatus() {
|
||||||
applyStatus().then(res=>{
|
this.companyContractOn = 0;//电子合同是否启用,0=未启用
|
||||||
this.companyContractOn=res.data.data.contractOn;//电子合同是否启用,0=未启用
|
this.conpanySealOn = 0;//电子签章是否设置,0=未设置,1=等待审核,2=已设置
|
||||||
this.conpanySealOn=res.data.data.sealOn;//电子签章是否设置,0=未设置,1=等待审核,2=已设置
|
// applyStatus().then(res=>{
|
||||||
})
|
// this.companyContractOn=res.data.data.contractOn;//电子合同是否启用,0=未启用
|
||||||
|
// this.conpanySealOn=res.data.data.sealOn;//电子签章是否设置,0=未设置,1=等待审核,2=已设置
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
idNumberDDesensitization,
|
idNumberDDesensitization,
|
||||||
//输入密码点击确定
|
//输入密码点击确定
|
||||||
PWDOk(){
|
PWDOk() {
|
||||||
this.$refs.pwdForm.validate(valid=>{
|
this.$refs.pwdForm.validate(valid => {
|
||||||
if(valid){
|
if (valid) {
|
||||||
this.loadingbut = true;
|
this.loadingbut = true;
|
||||||
this.loadingbuttext = '提交中...';
|
this.loadingbuttext = '提交中...';
|
||||||
certCheckPass(this.pwdForm.pwd).then((res)=>{
|
certCheckPass(this.pwdForm.pwd).then((res) => {
|
||||||
if(res.data.data == true){//输入签章密码正确走录用流程
|
if (res.data.data == true) {//输入签章密码正确走录用流程
|
||||||
this.employApi(this.employDataIds);
|
this.employApi(this.employDataIds);
|
||||||
}else{
|
} else {
|
||||||
this.$message.closeAll();
|
this.$message.closeAll();
|
||||||
this.$message({
|
this.$message({
|
||||||
type: "error",
|
type: "error",
|
||||||
message: "密码输入错误!",
|
message: "密码输入错误!",
|
||||||
});
|
});
|
||||||
this.loadingbut=false;
|
this.loadingbut = false;
|
||||||
this.loadingbuttext='确定';
|
this.loadingbuttext = '确定';
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -653,35 +595,35 @@ export default {
|
|||||||
this.employDataIds = row.id;
|
this.employDataIds = row.id;
|
||||||
this.employNum = 1;
|
this.employNum = 1;
|
||||||
this.pwdForm.pwd = '';
|
this.pwdForm.pwd = '';
|
||||||
if(this.getUserConfig.insuranceOn == 1){
|
if (this.getUserConfig.insuranceOn == 1) {
|
||||||
this.getData();
|
this.getData();
|
||||||
}else{
|
} else {
|
||||||
|
|
||||||
if(this.companyContractOn!=0){
|
if (this.companyContractOn != 0) {
|
||||||
this.dialogVisible1 = true;
|
this.dialogVisible1 = true;
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
this.employApi(this.employDataIds);
|
this.employApi(this.employDataIds);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
drawerClose(){
|
drawerClose() {
|
||||||
this.$emit('refresh');
|
this.$emit('refresh');
|
||||||
this.drawer = false;
|
this.drawer = false;
|
||||||
},
|
},
|
||||||
radioButtonChange(){
|
radioButtonChange() {
|
||||||
this.query.realName = '';
|
this.query.realName = '';
|
||||||
this.query.groupId = '';
|
this.query.groupId = '';
|
||||||
this.personTypeDisabledFlag = true;
|
this.personTypeDisabledFlag = true;
|
||||||
this.page.total = 0;
|
this.page.total = 0;
|
||||||
this.data = [];
|
this.data = [];
|
||||||
if(this.query.status == 2){
|
if (this.query.status == 2) {
|
||||||
this.selectionFlag = false;
|
this.selectionFlag = false;
|
||||||
this.data = this.employedData;
|
this.data = this.employedData;
|
||||||
|
|
||||||
}else{
|
} else {
|
||||||
this.selectionFlag = true;
|
this.selectionFlag = true;
|
||||||
this.data = this.waitEmployedData;
|
this.data = this.waitEmployedData;
|
||||||
}
|
}
|
||||||
@@ -701,17 +643,17 @@ export default {
|
|||||||
this.drawer = true;
|
this.drawer = true;
|
||||||
},
|
},
|
||||||
//查看合同
|
//查看合同
|
||||||
rowCheck(row){
|
rowCheck(row) {
|
||||||
this.downLoadRow = row;
|
this.downLoadRow = row;
|
||||||
if(row.contractStatus==true){
|
if (row.contractStatus == true) {
|
||||||
viewContractImg(row.userId,row.missionNo).then((res) => {
|
viewContractImg(row.userId, row.missionNo).then((res) => {
|
||||||
window.open(res.data.data.url)
|
window.open(res.data.data.url)
|
||||||
// this.imgStr = res.data.data.url;
|
// this.imgStr = res.data.data.url;
|
||||||
// this.contractId = res.data.data.id;
|
// this.contractId = res.data.data.id;
|
||||||
// this.dialogVisible = true;
|
// this.dialogVisible = true;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
this.$message.closeAll();
|
this.$message.closeAll();
|
||||||
this.$message.warning('合同生成中,请稍后查看');
|
this.$message.warning('合同生成中,请稍后查看');
|
||||||
}
|
}
|
||||||
@@ -719,7 +661,7 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
//下载合同
|
//下载合同
|
||||||
downLoadContract(){
|
downLoadContract() {
|
||||||
window.open(contractDownload(this.contractId))
|
window.open(contractDownload(this.contractId))
|
||||||
},
|
},
|
||||||
/*单行取消*/
|
/*单行取消*/
|
||||||
@@ -813,14 +755,14 @@ export default {
|
|||||||
this.pwdForm.pwd = '';
|
this.pwdForm.pwd = '';
|
||||||
//未开通合同,不显示输入密码框
|
//未开通合同,不显示输入密码框
|
||||||
this.employDataIds = this.ids;
|
this.employDataIds = this.ids;
|
||||||
if(this.getUserConfig.insuranceOn == 1){
|
if (this.getUserConfig.insuranceOn == 1) {
|
||||||
this.getData();
|
this.getData();
|
||||||
}else{
|
} else {
|
||||||
|
|
||||||
if(this.companyContractOn!=0){
|
if (this.companyContractOn != 0) {
|
||||||
this.dialogVisible1 = true;
|
this.dialogVisible1 = true;
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
this.employApi(this.employDataIds);
|
this.employApi(this.employDataIds);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -828,8 +770,8 @@ export default {
|
|||||||
.catch(() => {
|
.catch(() => {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
employApi(ids){
|
employApi(ids) {
|
||||||
employ(this.missionId, ids,0,0).then(
|
employ(this.missionId, ids, 0, 0).then(
|
||||||
() => {
|
() => {
|
||||||
this.loadingbut = false;
|
this.loadingbut = false;
|
||||||
this.loadingbuttext = '确定';
|
this.loadingbuttext = '确定';
|
||||||
@@ -940,7 +882,7 @@ export default {
|
|||||||
/*加载数据*/
|
/*加载数据*/
|
||||||
onLoad(page, params) {
|
onLoad(page, params) {
|
||||||
this.data = [];
|
this.data = [];
|
||||||
getConfig().then((res)=>{
|
getConfig().then((res) => {
|
||||||
this.getUserConfig = res.data.data;
|
this.getUserConfig = res.data.data;
|
||||||
});
|
});
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
@@ -994,12 +936,12 @@ export default {
|
|||||||
backIndex() {
|
backIndex() {
|
||||||
this.$emit("refresh");
|
this.$emit("refresh");
|
||||||
},
|
},
|
||||||
forgetPwd(){
|
forgetPwd() {
|
||||||
this.phone=this.userInfo.account;
|
this.phone = this.userInfo.account;
|
||||||
var pat=/(\d{3})\d*(\d{4})/;
|
var pat = /(\d{3})\d*(\d{4})/;
|
||||||
this.phone=this.phone.replace(pat,'$1****$2');
|
this.phone = this.phone.replace(pat, '$1****$2');
|
||||||
this.resetPwdDialogVisible=true;
|
this.resetPwdDialogVisible = true;
|
||||||
this.resetPwdForm={};
|
this.resetPwdForm = {};
|
||||||
},
|
},
|
||||||
/*获取验证码*/
|
/*获取验证码*/
|
||||||
getCode() {
|
getCode() {
|
||||||
@@ -1030,11 +972,11 @@ export default {
|
|||||||
submitResetPwd() {
|
submitResetPwd() {
|
||||||
this.$refs.resetPwdForm.validate(valid => {
|
this.$refs.resetPwdForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
resetPwd(this.userInfo.account,this.resetPwdForm.pwd,this.resetPwdForm.code).then(()=>{
|
resetPwd(this.userInfo.account, this.resetPwdForm.pwd, this.resetPwdForm.code).then(() => {
|
||||||
this.$message.success('密码重置成功');
|
this.$message.success('密码重置成功');
|
||||||
this.resetPwdDialogVisible=false;
|
this.resetPwdDialogVisible = false;
|
||||||
})
|
})
|
||||||
.catch((err)=>{
|
.catch((err) => {
|
||||||
this.$message.error(err);
|
this.$message.error(err);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -1045,13 +987,15 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.selectBtn{
|
.selectBtn {
|
||||||
color: #787879 !important;
|
color: #787879 !important;
|
||||||
}
|
}
|
||||||
.selectBtn:hover{
|
|
||||||
|
.selectBtn:hover {
|
||||||
color: #787879 !important;
|
color: #787879 !important;
|
||||||
}
|
}
|
||||||
.tipsWrap1{
|
|
||||||
|
.tipsWrap1 {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #ff0000;
|
color: #ff0000;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -1060,18 +1004,21 @@ export default {
|
|||||||
/* top: 165px;
|
/* top: 165px;
|
||||||
left: 130px; */
|
left: 130px; */
|
||||||
}
|
}
|
||||||
.tipsWrap2{
|
|
||||||
|
.tipsWrap2 {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #ff0000;
|
color: #ff0000;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-top: 75px;
|
margin-top: 75px;
|
||||||
margin-left: 30px;
|
margin-left: 30px;
|
||||||
}
|
}
|
||||||
.employ-employNum-count{
|
|
||||||
|
.employ-employNum-count {
|
||||||
color: #2098ee;
|
color: #2098ee;
|
||||||
}
|
}
|
||||||
.employ-forgetPwd{
|
|
||||||
|
.employ-forgetPwd {
|
||||||
float: right;
|
float: right;
|
||||||
margin-top: -33px;
|
margin-top: -33px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -335,10 +335,12 @@ export default {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
checkStatus(){
|
checkStatus(){
|
||||||
applyStatus().then(res=>{
|
this.companyContractOn = 0;//电子合同是否启用,0=未启用
|
||||||
this.companyContractOn=res.data.data.contractOn;//电子合同是否启用,0=未启用 1=已启用
|
this.conpanySealOn = 0;//电子签章是否设置,0=未设置,1=等待审核,2=已设置
|
||||||
this.conpanySealOn=res.data.data.sealOn;//电子签章是否设置,0=未设置,1=等待审核,2=已设置
|
// applyStatus().then(res=>{
|
||||||
})
|
// this.companyContractOn=res.data.data.contractOn;//电子合同是否启用,0=未启用 1=已启用
|
||||||
|
// this.conpanySealOn=res.data.data.sealOn;//电子签章是否设置,0=未设置,1=等待审核,2=已设置
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
drawerClose(){
|
drawerClose(){
|
||||||
this.$emit('refresh');
|
this.$emit('refresh');
|
||||||
|
|||||||
@@ -617,10 +617,12 @@ export default {
|
|||||||
return dateFormat(new Date(date),'yyyy/MM/dd')
|
return dateFormat(new Date(date),'yyyy/MM/dd')
|
||||||
},
|
},
|
||||||
checkStatus(){
|
checkStatus(){
|
||||||
applyStatus().then(res=>{
|
this.companyContractOn = 0;//电子合同是否启用,0=未启用
|
||||||
this.companyContractOn=res.data.data.contractOn;//电子合同是否启用,0=未启用
|
this.conpanySealOn = 0;//电子签章是否设置,0=未设置,1=等待审核,2=已设置
|
||||||
this.conpanySealOn=res.data.data.sealOn;//电子签章是否设置,0=未设置,1=等待审核,2=已设置
|
// applyStatus().then(res=>{
|
||||||
})
|
// this.companyContractOn=res.data.data.contractOn;//电子合同是否启用,0=未启用
|
||||||
|
// this.conpanySealOn=res.data.data.sealOn;//电子签章是否设置,0=未设置,1=等待审核,2=已设置
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
idNumberDDesensitization,
|
idNumberDDesensitization,
|
||||||
//输入密码点击确定
|
//输入密码点击确定
|
||||||
|
|||||||
@@ -335,10 +335,12 @@ export default {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
checkStatus(){
|
checkStatus(){
|
||||||
applyStatus().then(res=>{
|
this.companyContractOn = 0;//电子合同是否启用,0=未启用
|
||||||
this.companyContractOn=res.data.data.contractOn;//电子合同是否启用,0=未启用 1=已启用
|
this.conpanySealOn = 0;//电子签章是否设置,0=未设置,1=等待审核,2=已设置
|
||||||
this.conpanySealOn=res.data.data.sealOn;//电子签章是否设置,0=未设置,1=等待审核,2=已设置
|
// applyStatus().then(res=>{
|
||||||
})
|
// this.companyContractOn=res.data.data.contractOn;//电子合同是否启用,0=未启用 1=已启用
|
||||||
|
// this.conpanySealOn=res.data.data.sealOn;//电子签章是否设置,0=未设置,1=等待审核,2=已设置
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
drawerClose(){
|
drawerClose(){
|
||||||
this.$emit('refresh');
|
this.$emit('refresh');
|
||||||
|
|||||||
Reference in New Issue
Block a user