|
|
|
|
@ -94,7 +94,7 @@
|
|
|
|
|
<ul class="proxyInfo">
|
|
|
|
|
<li>报名时间: {{ item.createTime }}</li>
|
|
|
|
|
<li>工单号: {{ item.orderNum }}</li>
|
|
|
|
|
<li>{{ item.agencyName ?item.agencyName + (item.applyUserName ? ('@' + item.applyUserName) : '') : '-' + (item.applyUserName ? ('@' + item.applyUserName) : '')}}</li>
|
|
|
|
|
<li>{{ item.agencyName ? item.agencyName + (item.applyUserName ? "@" + item.applyUserName : "") : "-" + (item.applyUserName ? "@" + item.applyUserName : "") }}</li>
|
|
|
|
|
<li>
|
|
|
|
|
更新时间: {{ item.updateTime }}
|
|
|
|
|
<span style="display: inline-block">({{ item.diffTime }})</span>
|
|
|
|
|
@ -103,9 +103,13 @@
|
|
|
|
|
<ul class="billInfo" style>
|
|
|
|
|
<li style="border-radius: 0 0 0 6px">
|
|
|
|
|
<div class="serial">{{ index + 1 }}</div>
|
|
|
|
|
<i class="iconfont icon-shenfenzheng" :style="{
|
|
|
|
|
<i
|
|
|
|
|
class="iconfont icon-shenfenzheng"
|
|
|
|
|
:style="{
|
|
|
|
|
color: item.idCardImageUrl !== '' ? '#ff4400cc' : '#666',
|
|
|
|
|
}" @click.stop="showdiymodal(item)"></i>
|
|
|
|
|
}"
|
|
|
|
|
@click.stop="showdiymodal(item)"
|
|
|
|
|
></i>
|
|
|
|
|
<span>{{ item.userName }}/{{ item.sex }}/{{ item.age }}</span>
|
|
|
|
|
<span>{{ item.tel }}</span>
|
|
|
|
|
</li>
|
|
|
|
|
@ -116,11 +120,11 @@
|
|
|
|
|
<p>
|
|
|
|
|
员工薪资:
|
|
|
|
|
<br />
|
|
|
|
|
{{ item.employeeSalary || '-' }}
|
|
|
|
|
{{ item.employeeSalary || "-" }}
|
|
|
|
|
<br />
|
|
|
|
|
<br />代理政策:
|
|
|
|
|
<br />
|
|
|
|
|
{{ item.policy || '-' }}
|
|
|
|
|
{{ item.policy || "-" }}
|
|
|
|
|
</p>
|
|
|
|
|
<div v-show="item.isunfold" class="policyControl" @click="changeStatus(item, index)" :ref="'Control' + index">
|
|
|
|
|
<span v-show="item.controlUnfold">展开</span>
|
|
|
|
|
@ -176,39 +180,17 @@
|
|
|
|
|
<img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/shz.svg" alt />
|
|
|
|
|
报名审核中
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '2'">
|
|
|
|
|
<img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/bmcg.svg" alt />报名成功
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '3'">
|
|
|
|
|
<img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/mstg.svg" alt />待入职
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '4'">
|
|
|
|
|
<img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/rzcg.svg" alt />在职中
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '5'">
|
|
|
|
|
<img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/ylz.svg" alt />已离职
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '6'">
|
|
|
|
|
<img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/bmcg.svg" alt />已完成
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '9'">
|
|
|
|
|
<img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/yylz.svg" alt />约离职
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '11'">
|
|
|
|
|
<img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/wei.svg" alt />报名失败
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '12'">
|
|
|
|
|
<img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/yjd.svg" alt />已接到
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '13'">
|
|
|
|
|
<img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/wei.svg" alt />未接到
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '14'">
|
|
|
|
|
<img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/wei.svg" alt />面试未通过
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '15'">
|
|
|
|
|
<img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/wei.svg" alt />未入职
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '2'"><img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/bmcg.svg" alt />报名成功</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '3'"><img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/mstg.svg" alt />待入职</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '4'"><img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/rzcg.svg" alt />在职中</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '5'"><img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/ylz.svg" alt />已离职</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '6'"><img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/bmcg.svg" alt />已完成</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '9'"><img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/yylz.svg" alt />约离职</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '11'"><img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/wei.svg" alt />报名失败</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '12'"><img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/yjd.svg" alt />已接到</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '13'"><img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/wei.svg" alt />未接到</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '14'"><img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/wei.svg" alt />面试未通过</div>
|
|
|
|
|
<div v-if="spliceStr(key) == '15'"><img src="http://matripeweb.oss-cn-hangzhou.aliyuncs.com/imgs/wei.svg" alt />未入职</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-for="(item, index) in group" class="ui-step-one">
|
|
|
|
|
<div class="cb-cricle"></div>
|
|
|
|
|
@ -305,12 +287,12 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { userBillApi, userBillNumberApi, userBillDetailApi } from '../../../../api/userinfo'
|
|
|
|
|
import { getUserApplyOrderStatusByIdToBill, isEmptyCheck, formatDateYMDHM, formatDateYMD } from '../../../../utils/commonUtil'
|
|
|
|
|
import { userBillApi, userBillNumberApi, userBillDetailApi } from "../../../../api/userinfo";
|
|
|
|
|
import { getUserApplyOrderStatusByIdToBill, isEmptyCheck, formatDateYMDHM, formatDateYMD } from "../../../../utils/commonUtil";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
// 组件名称
|
|
|
|
|
name: 'mybillcontainer',
|
|
|
|
|
name: "mybillcontainer",
|
|
|
|
|
// 局部注册的组件
|
|
|
|
|
components: {},
|
|
|
|
|
// 组件参数 接收来自父组件的数据
|
|
|
|
|
@ -319,11 +301,11 @@ export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
isspinning: false,
|
|
|
|
|
idcardimg: '', // 回显的身份证图片url
|
|
|
|
|
idcardimg: "", // 回显的身份证图片url
|
|
|
|
|
isdiymodalshow: false, // 控制身份证图片显示
|
|
|
|
|
scaleNum: 1, // 身份证图片显示倍率
|
|
|
|
|
rotateNum: 0,
|
|
|
|
|
searchvalue: '', // 搜索框检索信息
|
|
|
|
|
searchvalue: "", // 搜索框检索信息
|
|
|
|
|
filterStatus: 1, // 排序状态
|
|
|
|
|
saveBill: [], // 缓存的报名列表
|
|
|
|
|
billDetailVisible: false, // 工单详情显示
|
|
|
|
|
@ -335,70 +317,70 @@ export default {
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
total: null, //分页配置
|
|
|
|
|
status: -1,
|
|
|
|
|
keys: '',
|
|
|
|
|
keys: "",
|
|
|
|
|
},
|
|
|
|
|
statusValue: '',
|
|
|
|
|
statusValue: "",
|
|
|
|
|
orderStatus: [
|
|
|
|
|
{
|
|
|
|
|
id: '10',
|
|
|
|
|
name: '已报名,审核中',
|
|
|
|
|
value: '10',
|
|
|
|
|
text: '报名审核中',
|
|
|
|
|
id: "10",
|
|
|
|
|
name: "已报名,审核中",
|
|
|
|
|
value: "10",
|
|
|
|
|
text: "报名审核中",
|
|
|
|
|
num: 0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '20',
|
|
|
|
|
name: '报名成功,待面试',
|
|
|
|
|
value: '20',
|
|
|
|
|
text: '审核通过',
|
|
|
|
|
id: "20",
|
|
|
|
|
name: "报名成功,待面试",
|
|
|
|
|
value: "20",
|
|
|
|
|
text: "审核通过",
|
|
|
|
|
num: 0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '21',
|
|
|
|
|
name: '审核未通过,报名失败',
|
|
|
|
|
value: '21',
|
|
|
|
|
text: '审核未通过',
|
|
|
|
|
id: "21",
|
|
|
|
|
name: "审核未通过,报名失败",
|
|
|
|
|
value: "21",
|
|
|
|
|
text: "审核未通过",
|
|
|
|
|
num: 0,
|
|
|
|
|
},
|
|
|
|
|
{ id: '25', name: '已接到', value: '25', text: '已接到', num: 0 },
|
|
|
|
|
{ id: '26', name: '未接到', value: '26', text: '未接到', num: 0 },
|
|
|
|
|
{ id: "25", name: "已接到", value: "25", text: "已接到", num: 0 },
|
|
|
|
|
{ id: "26", name: "未接到", value: "26", text: "未接到", num: 0 },
|
|
|
|
|
{
|
|
|
|
|
id: '30',
|
|
|
|
|
name: '面试通过,待入职',
|
|
|
|
|
value: '30',
|
|
|
|
|
text: '面试通过',
|
|
|
|
|
id: "30",
|
|
|
|
|
name: "面试通过,待入职",
|
|
|
|
|
value: "30",
|
|
|
|
|
text: "面试通过",
|
|
|
|
|
num: 0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '35',
|
|
|
|
|
name: '面试未通过',
|
|
|
|
|
value: '35',
|
|
|
|
|
text: '面试未通过',
|
|
|
|
|
id: "35",
|
|
|
|
|
name: "面试未通过",
|
|
|
|
|
value: "35",
|
|
|
|
|
text: "面试未通过",
|
|
|
|
|
num: 0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '40',
|
|
|
|
|
name: '已入职,在职中',
|
|
|
|
|
value: '40',
|
|
|
|
|
text: '已入职',
|
|
|
|
|
id: "40",
|
|
|
|
|
name: "已入职,在职中",
|
|
|
|
|
value: "40",
|
|
|
|
|
text: "已入职",
|
|
|
|
|
num: 0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '45',
|
|
|
|
|
name: '面试通过,未入职',
|
|
|
|
|
value: '45',
|
|
|
|
|
text: '通过未入职',
|
|
|
|
|
id: "45",
|
|
|
|
|
name: "面试通过,未入职",
|
|
|
|
|
value: "45",
|
|
|
|
|
text: "通过未入职",
|
|
|
|
|
num: 0,
|
|
|
|
|
},
|
|
|
|
|
{ id: '50', name: '已离职', value: '50', text: '已离职', num: 0 },
|
|
|
|
|
{ id: "50", name: "已离职", value: "50", text: "已离职", num: 0 },
|
|
|
|
|
// { id: "60", name: "已完成", value: "60", text: "已完成", num: 0 }
|
|
|
|
|
],
|
|
|
|
|
billList: [],
|
|
|
|
|
isunfold: false,
|
|
|
|
|
statusTimeInfo: '', // 状态的时间类型
|
|
|
|
|
statusShowTime: '', // 状态时间
|
|
|
|
|
statusTimeInfo: "", // 状态的时间类型
|
|
|
|
|
statusShowTime: "", // 状态时间
|
|
|
|
|
billNumber: {},
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
// 计算属性
|
|
|
|
|
computed: {},
|
|
|
|
|
@ -409,8 +391,8 @@ export default {
|
|
|
|
|
* 组件实例创建完成,属性已绑定,但DOM还未生成,$ el属性还不存在
|
|
|
|
|
*/
|
|
|
|
|
created() {
|
|
|
|
|
this.getBill()
|
|
|
|
|
this.userBillNumber()
|
|
|
|
|
this.getBill();
|
|
|
|
|
this.userBillNumber();
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* el 被新创建的 vm.el 替换,并挂载到实例上去之后调用该钩子。
|
|
|
|
|
@ -420,137 +402,138 @@ export default {
|
|
|
|
|
// 组件方法
|
|
|
|
|
methods: {
|
|
|
|
|
onChange(e) {
|
|
|
|
|
this.pagination.pageNum = e
|
|
|
|
|
console.log(e)
|
|
|
|
|
this.getBill()
|
|
|
|
|
this.pagination.pageNum = e;
|
|
|
|
|
console.log(e);
|
|
|
|
|
this.getBill();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
dateChange(e) {
|
|
|
|
|
console.log('ischange')
|
|
|
|
|
console.log(e)
|
|
|
|
|
console.log("ischange");
|
|
|
|
|
console.log(e);
|
|
|
|
|
|
|
|
|
|
if (e.length != 0) {
|
|
|
|
|
let date1 = new Date(e[0]._d)
|
|
|
|
|
let date2 = new Date(e[1]._d)
|
|
|
|
|
this.pagination.startDate = formatDateYMD(date1)
|
|
|
|
|
this.pagination.endDate = formatDateYMD(date2)
|
|
|
|
|
let date1 = new Date(e[0]._d);
|
|
|
|
|
let date2 = new Date(e[1]._d);
|
|
|
|
|
this.pagination.startDate = formatDateYMD(date1);
|
|
|
|
|
this.pagination.endDate = formatDateYMD(date2);
|
|
|
|
|
} else {
|
|
|
|
|
this.pagination.startDate = ''
|
|
|
|
|
this.pagination.endDate = ''
|
|
|
|
|
this.pagination.startDate = "";
|
|
|
|
|
this.pagination.endDate = "";
|
|
|
|
|
}
|
|
|
|
|
this.getBill()
|
|
|
|
|
this.userBillNumber()
|
|
|
|
|
this.getBill();
|
|
|
|
|
this.userBillNumber();
|
|
|
|
|
},
|
|
|
|
|
inputpageChange(e) {
|
|
|
|
|
const pagenumcount = this.pagination.total / this.pagination.pageSize
|
|
|
|
|
console.log(pagenumcount)
|
|
|
|
|
const pagenumcount = this.pagination.total / this.pagination.pageSize;
|
|
|
|
|
console.log(pagenumcount);
|
|
|
|
|
if (e.target.value) {
|
|
|
|
|
if (e.target.value > pagenumcount) {
|
|
|
|
|
this.pagination.pageNum = Math.ceil(pagenumcount)
|
|
|
|
|
this.pagination.pageNum = Math.ceil(pagenumcount);
|
|
|
|
|
} else {
|
|
|
|
|
this.pagination.pageNum = e.target.value
|
|
|
|
|
this.pagination.pageNum = e.target.value;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.pagination.pageNum = 1
|
|
|
|
|
this.pagination.pageNum = 1;
|
|
|
|
|
}
|
|
|
|
|
// this.getJobList();
|
|
|
|
|
this.getBill()
|
|
|
|
|
console.log(e)
|
|
|
|
|
this.getBill();
|
|
|
|
|
console.log(e);
|
|
|
|
|
},
|
|
|
|
|
async userBillNumber() {
|
|
|
|
|
try {
|
|
|
|
|
const { data } = await userBillNumberApi(this.pagination)
|
|
|
|
|
const { data } = await userBillNumberApi(this.pagination);
|
|
|
|
|
if (data.status == 200) {
|
|
|
|
|
console.log(data.data)
|
|
|
|
|
this.billNumber = data.data
|
|
|
|
|
console.log(data.data);
|
|
|
|
|
this.billNumber = data.data;
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.log(error)
|
|
|
|
|
console.log(error);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async getBill() {
|
|
|
|
|
console.log('click')
|
|
|
|
|
console.log("click");
|
|
|
|
|
// let that = this;
|
|
|
|
|
console.log(this.pagination.status)
|
|
|
|
|
console.log(this.pagination.status);
|
|
|
|
|
try {
|
|
|
|
|
this.isspinning = true
|
|
|
|
|
const { data } = await userBillApi(this.pagination)
|
|
|
|
|
console.log(data)
|
|
|
|
|
this.isspinning = true;
|
|
|
|
|
const { data } = await userBillApi(this.pagination);
|
|
|
|
|
console.log(data);
|
|
|
|
|
if (data.status === 200) {
|
|
|
|
|
// console.log();
|
|
|
|
|
this.billList = data.data.recordList
|
|
|
|
|
this.billList = data.data.recordList;
|
|
|
|
|
|
|
|
|
|
console.log(this.billList)
|
|
|
|
|
console.log(this.billList);
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.billList.forEach((item, index) => {
|
|
|
|
|
let differenceTime = new Date().getTime() - new Date(item.updateTime).getTime()
|
|
|
|
|
var D = Math.floor(differenceTime / (24 * 60 * 60 * 1000))
|
|
|
|
|
var level1 = differenceTime % (24 * 3600 * 1000)
|
|
|
|
|
var H = Math.floor(level1 / (3600 * 1000))
|
|
|
|
|
var level2 = level1 % (3600 * 1000)
|
|
|
|
|
var M = Math.floor(level2 / (60 * 1000))
|
|
|
|
|
var level3 = level2 % (60 * 1000)
|
|
|
|
|
var S = Math.floor(level3 / 1000)
|
|
|
|
|
item.diffTime = null
|
|
|
|
|
let differenceTime = new Date().getTime() - new Date(item.updateTime).getTime();
|
|
|
|
|
var D = Math.floor(differenceTime / (24 * 60 * 60 * 1000));
|
|
|
|
|
var level1 = differenceTime % (24 * 3600 * 1000);
|
|
|
|
|
var H = Math.floor(level1 / (3600 * 1000));
|
|
|
|
|
var level2 = level1 % (3600 * 1000);
|
|
|
|
|
var M = Math.floor(level2 / (60 * 1000));
|
|
|
|
|
var level3 = level2 % (60 * 1000);
|
|
|
|
|
var S = Math.floor(level3 / 1000);
|
|
|
|
|
item.diffTime = null;
|
|
|
|
|
if (D > 0) {
|
|
|
|
|
item.diffTime = D + '天前'
|
|
|
|
|
item.diffTime = D + "天前";
|
|
|
|
|
} else if (H > 0) {
|
|
|
|
|
item.diffTime = H + '小时前'
|
|
|
|
|
item.diffTime = H + "小时前";
|
|
|
|
|
} else if (M > 0) {
|
|
|
|
|
item.diffTime = M + '分钟前'
|
|
|
|
|
item.diffTime = M + "分钟前";
|
|
|
|
|
} else {
|
|
|
|
|
item.diffTime = S + '秒前'
|
|
|
|
|
item.diffTime = S + "秒前";
|
|
|
|
|
}
|
|
|
|
|
// console.log(new Date(differenceTime).getDate());
|
|
|
|
|
// console.log(item.userName, D, H, M);
|
|
|
|
|
// console.log(item);
|
|
|
|
|
if (item.sex === 1) {
|
|
|
|
|
item.sex = '男'
|
|
|
|
|
item.sex = "男";
|
|
|
|
|
} else if (item.sex === 2) {
|
|
|
|
|
item.sex = '女'
|
|
|
|
|
item.sex = "女";
|
|
|
|
|
} else {
|
|
|
|
|
item.sex = '未知'
|
|
|
|
|
item.sex = "未知";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// if (index % 2 === 0) {
|
|
|
|
|
// item.status = 60;
|
|
|
|
|
// }
|
|
|
|
|
if (!isEmptyCheck(item.tel)) {
|
|
|
|
|
let first = item.tel.slice(0, 3)
|
|
|
|
|
let second = item.tel.slice(3, 7)
|
|
|
|
|
let thirdly = item.tel.slice(7, 12)
|
|
|
|
|
let first = item.tel.slice(0, 3);
|
|
|
|
|
let second = item.tel.slice(3, 7);
|
|
|
|
|
let thirdly = item.tel.slice(7, 12);
|
|
|
|
|
// console.log(first);
|
|
|
|
|
// console.log(second);
|
|
|
|
|
// console.log(thirdly);
|
|
|
|
|
item.tel = first + ' ' + second + ' ' + thirdly
|
|
|
|
|
item.tel = first + " " + second + " " + thirdly;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (item.status === 60 || item.status === 70) {
|
|
|
|
|
item.isDown = true
|
|
|
|
|
item.isDown = true;
|
|
|
|
|
} else {
|
|
|
|
|
item.isDown = false
|
|
|
|
|
item.isDown = false;
|
|
|
|
|
}
|
|
|
|
|
item.statusTag = getUserApplyOrderStatusByIdToBill(item.status)
|
|
|
|
|
item.interviewTime = formatDateYMDHM(item.interviewTime)
|
|
|
|
|
item.entryTime = formatDateYMDHM(item.entryTime)
|
|
|
|
|
item.leaveTime = formatDateYMDHM(item.leaveTime)
|
|
|
|
|
item.statusTag = getUserApplyOrderStatusByIdToBill(item.status);
|
|
|
|
|
item.interviewTime = formatDateYMDHM(item.interviewTime);
|
|
|
|
|
item.entryTime = formatDateYMDHM(item.entryTime);
|
|
|
|
|
item.leaveTime = formatDateYMDHM(item.leaveTime);
|
|
|
|
|
// item.updateTime = formatDateYMDHMS(item.updateTime);
|
|
|
|
|
// item.createTime = formatDateYMDHMS(item.createTime);
|
|
|
|
|
item.updateTime = isEmptyCheck(item.updateTime) ? '2022-03-16 14:19' : formatDateYMDHM(item.updateTime)
|
|
|
|
|
item.createTime = isEmptyCheck(item.createTime) ? '2022-03-16 14:19' : formatDateYMDHM(item.createTime)
|
|
|
|
|
item.index = index + 1
|
|
|
|
|
item.updateTime = isEmptyCheck(item.updateTime) ? "2022-03-16 14:19" : formatDateYMDHM(item.updateTime);
|
|
|
|
|
item.createTime = isEmptyCheck(item.createTime) ? "2022-03-16 14:19" : formatDateYMDHM(item.createTime);
|
|
|
|
|
item.index = index + 1;
|
|
|
|
|
|
|
|
|
|
// console.log(that.$refs["Control" + index][0]);
|
|
|
|
|
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
if (item.status == 10 || item.status == 20 || item.status == 21 || item.status == 25 || item.status == 26 || item.status == 30 || item.status == 35 || item.status == 45) {
|
|
|
|
|
item.statusTimeInfo = '面试时间'
|
|
|
|
|
item.statusShowTime = item.interviewTime
|
|
|
|
|
item.statusTimeInfo = "面试时间";
|
|
|
|
|
item.statusShowTime = item.interviewTime;
|
|
|
|
|
} else if (item.status == 40) {
|
|
|
|
|
item.statusTimeInfo = '入职时间'
|
|
|
|
|
item.statusShowTime = item.entryTime
|
|
|
|
|
item.statusTimeInfo = "入职时间";
|
|
|
|
|
item.statusShowTime = item.entryTime;
|
|
|
|
|
} else if (item.status == 50) {
|
|
|
|
|
item.statusTimeInfo = '离职时间'
|
|
|
|
|
item.statusShowTime = item.leaveTime
|
|
|
|
|
item.statusTimeInfo = "离职时间";
|
|
|
|
|
item.statusShowTime = item.leaveTime;
|
|
|
|
|
}
|
|
|
|
|
// console.log(item.statusShowTime);
|
|
|
|
|
// console.log(item.statusTimeInfo);
|
|
|
|
|
@ -558,38 +541,38 @@ export default {
|
|
|
|
|
// console.log("controlUnfold", item.controlUnfold);
|
|
|
|
|
// console.log("isunfold", item.isunfold);
|
|
|
|
|
// console.log(item);
|
|
|
|
|
})
|
|
|
|
|
this.showFlod(this.billList)
|
|
|
|
|
});
|
|
|
|
|
this.showFlod(this.billList);
|
|
|
|
|
|
|
|
|
|
this.saveBill = JSON.parse(JSON.stringify(this.billList))
|
|
|
|
|
}, 0)
|
|
|
|
|
this.saveBill = JSON.parse(JSON.stringify(this.billList));
|
|
|
|
|
}, 0);
|
|
|
|
|
|
|
|
|
|
this.pagination.total = data.data.recordCount
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
|
this.totop()
|
|
|
|
|
this.pagination.total = data.data.recordCount;
|
|
|
|
|
this.$forceUpdate();
|
|
|
|
|
this.totop();
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.log(error)
|
|
|
|
|
console.log(error);
|
|
|
|
|
}
|
|
|
|
|
;(this.statusValue = ''), (this.isspinning = false)
|
|
|
|
|
(this.statusValue = ""), (this.isspinning = false);
|
|
|
|
|
},
|
|
|
|
|
resetpag() {
|
|
|
|
|
// this.pagination.status = this.pagination.status
|
|
|
|
|
this.pagination.pageNum = 1
|
|
|
|
|
this.getBill()
|
|
|
|
|
this.userBillNumber()
|
|
|
|
|
this.pagination.pageNum = 1;
|
|
|
|
|
this.getBill();
|
|
|
|
|
this.userBillNumber();
|
|
|
|
|
},
|
|
|
|
|
customRendert(a) {
|
|
|
|
|
console.log(a)
|
|
|
|
|
this.$message.success(a.id)
|
|
|
|
|
console.log(a);
|
|
|
|
|
this.$message.success(a.id);
|
|
|
|
|
// console.log(c);
|
|
|
|
|
},
|
|
|
|
|
showdiymodal(info) {
|
|
|
|
|
// 显示 身份证图片弹出框
|
|
|
|
|
console.log(info)
|
|
|
|
|
this.isdiymodalshow = true
|
|
|
|
|
if (info.idCardImageUrl !== null && info.idCardImageUrl !== '') {
|
|
|
|
|
this.idcardimg = info.idCardImageUrl
|
|
|
|
|
console.log(info);
|
|
|
|
|
this.isdiymodalshow = true;
|
|
|
|
|
if (info.idCardImageUrl !== null && info.idCardImageUrl !== "") {
|
|
|
|
|
this.idcardimg = info.idCardImageUrl;
|
|
|
|
|
}
|
|
|
|
|
// this.$nextTick(() => {
|
|
|
|
|
|
|
|
|
|
@ -597,188 +580,188 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
movebox(e) {
|
|
|
|
|
// 移动身份证弹出框
|
|
|
|
|
let modalbox = document.querySelector('#diymodal')
|
|
|
|
|
var x = e.pageX - modalbox.offsetLeft
|
|
|
|
|
var y = e.pageY - modalbox.offsetTop
|
|
|
|
|
let modalbox = document.querySelector("#diymodal");
|
|
|
|
|
var x = e.pageX - modalbox.offsetLeft;
|
|
|
|
|
var y = e.pageY - modalbox.offsetTop;
|
|
|
|
|
var mousemove = function (e) {
|
|
|
|
|
modalbox.style.left = e.pageX - x + 'px' // e.pageX是鼠标在点击之后移动的时候实时传过来的坐标信息,而x是在点击的一瞬间就确定的坐标,
|
|
|
|
|
modalbox.style.top = e.pageY - y + 'px'
|
|
|
|
|
}
|
|
|
|
|
modalbox.addEventListener('mousemove', mousemove)
|
|
|
|
|
modalbox.style.left = e.pageX - x + "px"; // e.pageX是鼠标在点击之后移动的时候实时传过来的坐标信息,而x是在点击的一瞬间就确定的坐标,
|
|
|
|
|
modalbox.style.top = e.pageY - y + "px";
|
|
|
|
|
};
|
|
|
|
|
modalbox.addEventListener("mousemove", mousemove);
|
|
|
|
|
var mouseup = function () {
|
|
|
|
|
// modalbox.removeEventListener("mousedown", mousedown);
|
|
|
|
|
modalbox.removeEventListener('mousemove', mousemove)
|
|
|
|
|
}
|
|
|
|
|
modalbox.addEventListener('mouseup', mouseup)
|
|
|
|
|
modalbox.removeEventListener("mousemove", mousemove);
|
|
|
|
|
};
|
|
|
|
|
modalbox.addEventListener("mouseup", mouseup);
|
|
|
|
|
},
|
|
|
|
|
mousewhell(e) {
|
|
|
|
|
// 滚动鼠标缩放图片
|
|
|
|
|
let that = this
|
|
|
|
|
console.log(e)
|
|
|
|
|
console.log(that.scaleNum)
|
|
|
|
|
console.log(this.scaleNum)
|
|
|
|
|
var delta = 0
|
|
|
|
|
let imgbox = document.querySelector('.imgbox')
|
|
|
|
|
let that = this;
|
|
|
|
|
console.log(e);
|
|
|
|
|
console.log(that.scaleNum);
|
|
|
|
|
console.log(this.scaleNum);
|
|
|
|
|
var delta = 0;
|
|
|
|
|
let imgbox = document.querySelector(".imgbox");
|
|
|
|
|
// if (Math.abs(that.rotateNum / 90) % 2 !== 0) {
|
|
|
|
|
// imgbox.style.transformOrigin = `${e.offsetY}px ${e.offsetX}px`; // 设置图片的缩放中心,保证跟随鼠标的位置进行图片的缩放
|
|
|
|
|
// } else {
|
|
|
|
|
if (that.scaleNum < 1) {
|
|
|
|
|
imgbox.style.transformOrigin = `50% 50%` // 设置图片的缩放中心,保证跟随鼠标的位置进行图片的缩放
|
|
|
|
|
imgbox.style.transformOrigin = `50% 50%`; // 设置图片的缩放中心,保证跟随鼠标的位置进行图片的缩放
|
|
|
|
|
} else {
|
|
|
|
|
imgbox.style.transformOrigin = `${e.offsetX}px ${e.offsetY}px` // 设置图片的缩放中心,保证跟随鼠标的位置进行图片的缩放
|
|
|
|
|
imgbox.style.transformOrigin = `${e.offsetX}px ${e.offsetY}px`; // 设置图片的缩放中心,保证跟随鼠标的位置进行图片的缩放
|
|
|
|
|
}
|
|
|
|
|
// }
|
|
|
|
|
var handle = function (delta) {
|
|
|
|
|
// let
|
|
|
|
|
console.log('delta', delta)
|
|
|
|
|
console.log('scaleNum', that.scaleNum)
|
|
|
|
|
let scaleNum = (that.scaleNum += delta / 15)
|
|
|
|
|
console.log('scaleNum1', that.scaleNum)
|
|
|
|
|
console.log("delta", delta);
|
|
|
|
|
console.log("scaleNum", that.scaleNum);
|
|
|
|
|
let scaleNum = (that.scaleNum += delta / 15);
|
|
|
|
|
console.log("scaleNum1", that.scaleNum);
|
|
|
|
|
if (delta < 0) {
|
|
|
|
|
//向下滚动
|
|
|
|
|
console.log(that.scaleNum)
|
|
|
|
|
console.log(that.scaleNum);
|
|
|
|
|
if (scaleNum <= 0.5) {
|
|
|
|
|
that.scaleNum = 0.5
|
|
|
|
|
that.scaleNum = 0.5;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
//向上滚动
|
|
|
|
|
console.log(that.scaleNum)
|
|
|
|
|
console.log(that.scaleNum);
|
|
|
|
|
if (scaleNum >= 3) {
|
|
|
|
|
that.scaleNum = 3
|
|
|
|
|
that.scaleNum = 3;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
imgbox.style.transform = `scale(${that.scaleNum})`
|
|
|
|
|
}
|
|
|
|
|
if (!e) e = window.event
|
|
|
|
|
imgbox.style.transform = `scale(${that.scaleNum})`;
|
|
|
|
|
};
|
|
|
|
|
if (!e) e = window.event;
|
|
|
|
|
if (e.wheelDelta) {
|
|
|
|
|
//IE、chrome浏览器使用的是wheelDelta,并且值为“正负180”
|
|
|
|
|
delta = e.wheelDelta / 180
|
|
|
|
|
if (window.opera) delta = -delta //因为IE、chrome等向下滚动是负值,FF是正值,为了处理一致性,在此取反处理
|
|
|
|
|
delta = e.wheelDelta / 180;
|
|
|
|
|
if (window.opera) delta = -delta; //因为IE、chrome等向下滚动是负值,FF是正值,为了处理一致性,在此取反处理
|
|
|
|
|
} else if (e.detail) {
|
|
|
|
|
//FF浏览器使用的是detail,其值为“正负3”
|
|
|
|
|
delta = -e.detail / 3
|
|
|
|
|
delta = -e.detail / 3;
|
|
|
|
|
}
|
|
|
|
|
if (delta) {
|
|
|
|
|
handle(delta)
|
|
|
|
|
handle(delta);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
closemodal() {
|
|
|
|
|
this.isdiymodalshow = false
|
|
|
|
|
this.idcardimg = ''
|
|
|
|
|
this.scaleNum = 1
|
|
|
|
|
this.isdiymodalshow = false;
|
|
|
|
|
this.idcardimg = "";
|
|
|
|
|
this.scaleNum = 1;
|
|
|
|
|
},
|
|
|
|
|
rotate(e) {
|
|
|
|
|
let imgbox1 = document.querySelector('.imgbox1')
|
|
|
|
|
let imgbox = document.querySelector('.imgbox')
|
|
|
|
|
this.scaleNum = 1
|
|
|
|
|
console.log(this.scaleNum)
|
|
|
|
|
this.rotateNum += e
|
|
|
|
|
console.log(imgbox1.style)
|
|
|
|
|
console.log(this.rotateNum)
|
|
|
|
|
imgbox.style.transformOrigin = `50% 50%` // 设置图片的缩放中心,保证跟随鼠标的位置进行图片的缩放
|
|
|
|
|
let imgbox1 = document.querySelector(".imgbox1");
|
|
|
|
|
let imgbox = document.querySelector(".imgbox");
|
|
|
|
|
this.scaleNum = 1;
|
|
|
|
|
console.log(this.scaleNum);
|
|
|
|
|
this.rotateNum += e;
|
|
|
|
|
console.log(imgbox1.style);
|
|
|
|
|
console.log(this.rotateNum);
|
|
|
|
|
imgbox.style.transformOrigin = `50% 50%`; // 设置图片的缩放中心,保证跟随鼠标的位置进行图片的缩放
|
|
|
|
|
// imgbox.style.transformOrigin = `${e.offsetX}px ${e.offsetY}px`; // 设置图片的缩放中心,保证跟随鼠标的位置进行图片的缩放
|
|
|
|
|
|
|
|
|
|
imgbox1.style.transform = `rotate(${this.rotateNum}deg)`
|
|
|
|
|
this.mousewhell(e)
|
|
|
|
|
imgbox1.style.transform = `rotate(${this.rotateNum}deg)`;
|
|
|
|
|
this.mousewhell(e);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
resetsearch(e) {
|
|
|
|
|
console.log(e)
|
|
|
|
|
console.log(e);
|
|
|
|
|
if (e.target.value.length === 0) {
|
|
|
|
|
this.pagination.keys = ''
|
|
|
|
|
this.pagination.keys = "";
|
|
|
|
|
|
|
|
|
|
this.getBill()
|
|
|
|
|
this.userBillNumber()
|
|
|
|
|
this.getBill();
|
|
|
|
|
this.userBillNumber();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onSearch() {
|
|
|
|
|
this.pagination.pageNum = 1
|
|
|
|
|
this.pagination.pageSize = 10
|
|
|
|
|
this.pagination.status = -1
|
|
|
|
|
this.pagination.pageNum = 1;
|
|
|
|
|
this.pagination.pageSize = 10;
|
|
|
|
|
this.pagination.status = -1;
|
|
|
|
|
// console.log();
|
|
|
|
|
this.getBill()
|
|
|
|
|
this.userBillNumber()
|
|
|
|
|
this.getBill();
|
|
|
|
|
this.userBillNumber();
|
|
|
|
|
},
|
|
|
|
|
changepage(num) {
|
|
|
|
|
console.log(Math.ceil(this.pagination.total / this.pagination.pageSize))
|
|
|
|
|
console.log(Math.ceil(this.pagination.total / this.pagination.pageSize));
|
|
|
|
|
if ((this.pagination.pageNum === 1 && num === -1) || (this.pagination.pageNum === Math.ceil(this.pagination.total / this.pagination.pageSize) && num === 1)) {
|
|
|
|
|
if (num === -1) {
|
|
|
|
|
this.$message.warning('已经到第一页了')
|
|
|
|
|
this.$message.warning("已经到第一页了");
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.warning('已经到最后一页了')
|
|
|
|
|
this.$message.warning("已经到最后一页了");
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
return;
|
|
|
|
|
} else {
|
|
|
|
|
this.pagination.pageNum += num
|
|
|
|
|
this.pagination.pageNum += num;
|
|
|
|
|
}
|
|
|
|
|
this.getBill()
|
|
|
|
|
this.getBill();
|
|
|
|
|
},
|
|
|
|
|
totop() {
|
|
|
|
|
// 返回顶部
|
|
|
|
|
// console.log(window);
|
|
|
|
|
document.body.scrollTop = 0
|
|
|
|
|
document.documentElement.scrollTop = 0
|
|
|
|
|
document.body.scrollTop = 0;
|
|
|
|
|
document.documentElement.scrollTop = 0;
|
|
|
|
|
// window.body.scrollY = 0;
|
|
|
|
|
},
|
|
|
|
|
changeStatus(item, index) {
|
|
|
|
|
// 控制政策的展开
|
|
|
|
|
// console.log(item);
|
|
|
|
|
// console.log(index);
|
|
|
|
|
let parent = this.$refs['Control' + index][0].parentNode
|
|
|
|
|
let sibling = this.$refs['Control' + index][0].previousElementSibling
|
|
|
|
|
let parent = this.$refs["Control" + index][0].parentNode;
|
|
|
|
|
let sibling = this.$refs["Control" + index][0].previousElementSibling;
|
|
|
|
|
if (item.controlUnfold) {
|
|
|
|
|
parent.style.maxHeight = 'none'
|
|
|
|
|
sibling.style.height = '100%'
|
|
|
|
|
console.log(parent)
|
|
|
|
|
parent.style.maxHeight = "none";
|
|
|
|
|
sibling.style.height = "100%";
|
|
|
|
|
console.log(parent);
|
|
|
|
|
} else {
|
|
|
|
|
parent.style.maxHeight = '156px'
|
|
|
|
|
sibling.style.height = '146px'
|
|
|
|
|
sibling.style.overflow = 'hidden'
|
|
|
|
|
console.log(parent)
|
|
|
|
|
}
|
|
|
|
|
item.controlUnfold = !item.controlUnfold
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
|
console.log(item.controlUnfold)
|
|
|
|
|
parent.style.maxHeight = "156px";
|
|
|
|
|
sibling.style.height = "146px";
|
|
|
|
|
sibling.style.overflow = "hidden";
|
|
|
|
|
console.log(parent);
|
|
|
|
|
}
|
|
|
|
|
item.controlUnfold = !item.controlUnfold;
|
|
|
|
|
this.$forceUpdate();
|
|
|
|
|
console.log(item.controlUnfold);
|
|
|
|
|
},
|
|
|
|
|
statusFilter() {
|
|
|
|
|
// 状态筛选
|
|
|
|
|
let num = this.filterStatus % 3
|
|
|
|
|
let num = this.filterStatus % 3;
|
|
|
|
|
if (num == 1) {
|
|
|
|
|
this.billList.sort((a, b) => {
|
|
|
|
|
return a.status - b.status
|
|
|
|
|
})
|
|
|
|
|
return a.status - b.status;
|
|
|
|
|
});
|
|
|
|
|
} else if (num == 2) {
|
|
|
|
|
this.billList.sort((a, b) => {
|
|
|
|
|
return b.status - a.status
|
|
|
|
|
})
|
|
|
|
|
return b.status - a.status;
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.billList = JSON.parse(JSON.stringify(this.saveBill))
|
|
|
|
|
this.billList = JSON.parse(JSON.stringify(this.saveBill));
|
|
|
|
|
}
|
|
|
|
|
this.filterStatus++
|
|
|
|
|
this.filterStatus++;
|
|
|
|
|
},
|
|
|
|
|
showFlod(list) {
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
list.forEach((item, index) => {
|
|
|
|
|
// console.log('=======');
|
|
|
|
|
let parent = this.$refs['Control' + index][0].parentNode
|
|
|
|
|
let sibling = this.$refs['Control' + index][0].previousElementSibling
|
|
|
|
|
let parent = this.$refs["Control" + index][0].parentNode;
|
|
|
|
|
let sibling = this.$refs["Control" + index][0].previousElementSibling;
|
|
|
|
|
// console.log('parent ' + parenzt );
|
|
|
|
|
// console.log('sibling ' + sibling );
|
|
|
|
|
// console.log('sibling.offsetHeight' + sibling.offsetHeight );
|
|
|
|
|
// console.log('parent.offsetHeight' + parent.offsetHeight );
|
|
|
|
|
if (sibling.scrollHeight >= parent.scrollHeight) {
|
|
|
|
|
// sibling.style.height = "100%";
|
|
|
|
|
sibling.style.overflow = 'hidden'
|
|
|
|
|
parent.style.paddingBottom = '20px'
|
|
|
|
|
item.isunfold = true
|
|
|
|
|
item.controlUnfold = true
|
|
|
|
|
sibling.style.overflow = "hidden";
|
|
|
|
|
parent.style.paddingBottom = "20px";
|
|
|
|
|
item.isunfold = true;
|
|
|
|
|
item.controlUnfold = true;
|
|
|
|
|
} else {
|
|
|
|
|
item.isunfold = false
|
|
|
|
|
item.isunfold = false;
|
|
|
|
|
}
|
|
|
|
|
// console.log(item);
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
// }, 100);
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
|
this.$forceUpdate();
|
|
|
|
|
},
|
|
|
|
|
handleChange(e) {
|
|
|
|
|
// console.log(e);
|
|
|
|
|
@ -797,16 +780,16 @@ export default {
|
|
|
|
|
// });
|
|
|
|
|
// }, 0);
|
|
|
|
|
// console.log(e);
|
|
|
|
|
this.pagination.statusMin = e.id
|
|
|
|
|
this.getBill()
|
|
|
|
|
this.userBillNumber()
|
|
|
|
|
this.pagination.statusMin = e.id;
|
|
|
|
|
this.getBill();
|
|
|
|
|
this.userBillNumber();
|
|
|
|
|
},
|
|
|
|
|
resetStatus(e) {
|
|
|
|
|
console.log(e)
|
|
|
|
|
console.log(e);
|
|
|
|
|
if (e == undefined) {
|
|
|
|
|
this.pagination.statusMin = ''
|
|
|
|
|
this.userBillNumber()
|
|
|
|
|
this.getBill()
|
|
|
|
|
this.pagination.statusMin = "";
|
|
|
|
|
this.userBillNumber();
|
|
|
|
|
this.getBill();
|
|
|
|
|
// this.billList = JSON.parse(JSON.stringify(this.saveBill));
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
// this.showFlod(this.billList);
|
|
|
|
|
@ -819,45 +802,45 @@ export default {
|
|
|
|
|
*/
|
|
|
|
|
showDetail(item) {
|
|
|
|
|
userBillDetailApi(item.id).then((res) => {
|
|
|
|
|
let { data } = res
|
|
|
|
|
let { data } = res;
|
|
|
|
|
if (data.status == 200) {
|
|
|
|
|
console.log(res)
|
|
|
|
|
this.currentBillDetail = data.data.records
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.currentBillDetail = data.data.records;
|
|
|
|
|
} else {
|
|
|
|
|
this.currentBillDetail = {}
|
|
|
|
|
}
|
|
|
|
|
console.log(this.currentBillDetail)
|
|
|
|
|
console.log(this.currentBillDetail.length)
|
|
|
|
|
let test = {}
|
|
|
|
|
console.log(test[0])
|
|
|
|
|
console.log(toString(this.currentBillDetail) == '{}')
|
|
|
|
|
})
|
|
|
|
|
this.billDetailVisible = true
|
|
|
|
|
console.log(item)
|
|
|
|
|
this.currentBillDetail = {};
|
|
|
|
|
}
|
|
|
|
|
console.log(this.currentBillDetail);
|
|
|
|
|
console.log(this.currentBillDetail.length);
|
|
|
|
|
let test = {};
|
|
|
|
|
console.log(test[0]);
|
|
|
|
|
console.log(toString(this.currentBillDetail) == "{}");
|
|
|
|
|
});
|
|
|
|
|
this.billDetailVisible = true;
|
|
|
|
|
console.log(item);
|
|
|
|
|
},
|
|
|
|
|
/*
|
|
|
|
|
关闭工单跟进记录弹出框
|
|
|
|
|
*/
|
|
|
|
|
billDetailModalClose() {
|
|
|
|
|
this.billDetailVisible = false
|
|
|
|
|
this.billDetailVisible = false;
|
|
|
|
|
},
|
|
|
|
|
/*
|
|
|
|
|
关闭政策显示框
|
|
|
|
|
*/
|
|
|
|
|
policyModalCancel() {
|
|
|
|
|
this.zzvisible = false
|
|
|
|
|
this.zzvisible = false;
|
|
|
|
|
},
|
|
|
|
|
/*
|
|
|
|
|
截出跟进记录字符串
|
|
|
|
|
*/
|
|
|
|
|
spliceStr(str) {
|
|
|
|
|
return str.split('_')[1]
|
|
|
|
|
return str.split("_")[1];
|
|
|
|
|
},
|
|
|
|
|
/*
|
|
|
|
|
显示跟进记录详情弹出框
|
|
|
|
|
*/
|
|
|
|
|
showInfo2(record) {
|
|
|
|
|
this.currentBillInfo = JSON.parse(record)
|
|
|
|
|
this.currentBillInfo = JSON.parse(record);
|
|
|
|
|
// this.currentBillInfo = {
|
|
|
|
|
// userName: "李俊中",
|
|
|
|
|
// nation: "汉族",
|
|
|
|
|
@ -870,26 +853,26 @@ export default {
|
|
|
|
|
// policy:
|
|
|
|
|
// "●年龄性别:男 35-55;女 35-46 ●薪资明细:计件工资,多劳多得。不同岗位,计件工资约200-280元/天(出勤七天内,男170元/天,在职不满30天的保底工资按60%或按实际操作量计算工资)。入职会安全培训,上岗实习等,以上时间无工资 ●吃饭住宿:吃饭自理;住宿免费,水电均摊 ●代理利润:出勤15天利润400元;(具体政策以面试当天为准)",
|
|
|
|
|
// };
|
|
|
|
|
this.zzvisible = true
|
|
|
|
|
this.zzvisible = true;
|
|
|
|
|
},
|
|
|
|
|
/*
|
|
|
|
|
复制跟进记录详情文本
|
|
|
|
|
*/
|
|
|
|
|
handleCancel() {
|
|
|
|
|
var that = this
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
var text = '姓名:' + that.currentBillInfo.userName + '/' + (that.currentBillInfo.sex == 1 || that.currentBillInfo.sex == '男' ? '男' : '女') + '/' + that.currentBillInfo.age + '岁' + (that.currentBillInfo.nation == '族' ? '' : '/' + that.currentBillInfo.nation) + '\n电话:' + (that.currentBillInfo.tel == '' || that.currentBillInfo.tel == undefined || that.currentBillInfo.tel == null ? '-' : that.currentBillInfo.tel) + '\n身份证号:' + (that.currentBillInfo.idCard == '' ? '-' : that.currentBillInfo.idCard) + '\n家庭地址:' + (that.currentBillInfo.address == '' || that.currentBillInfo.address == undefined || that.currentBillInfo.address == null ? '-' : that.currentBillInfo.address) + '\n报名岗位:' + that.currentBillInfo.storeJobName + '\n政策:' + that.currentBillInfo.policy
|
|
|
|
|
var text = "姓名:" + that.currentBillInfo.userName + "/" + (that.currentBillInfo.sex == 1 || that.currentBillInfo.sex == "男" ? "男" : "女") + "/" + that.currentBillInfo.age + "岁" + (that.currentBillInfo.nation == "族" ? "" : "/" + that.currentBillInfo.nation) + "\n电话:" + (that.currentBillInfo.tel == "" || that.currentBillInfo.tel == undefined || that.currentBillInfo.tel == null ? "-" : that.currentBillInfo.tel) + "\n身份证号:" + (that.currentBillInfo.idCard == "" ? "-" : that.currentBillInfo.idCard) + "\n家庭地址:" + (that.currentBillInfo.address == "" || that.currentBillInfo.address == undefined || that.currentBillInfo.address == null ? "-" : that.currentBillInfo.address) + "\n报名岗位:" + that.currentBillInfo.storeJobName + "\n政策:" + that.currentBillInfo.policy;
|
|
|
|
|
|
|
|
|
|
this.zzvisible = false
|
|
|
|
|
this.zzvisible = false;
|
|
|
|
|
this.$copyText(text).then(
|
|
|
|
|
(e) => {
|
|
|
|
|
console.log('复制成功:', e)
|
|
|
|
|
that.$message.success('复制成功')
|
|
|
|
|
console.log("复制成功:", e);
|
|
|
|
|
that.$message.success("复制成功");
|
|
|
|
|
},
|
|
|
|
|
(e) => {
|
|
|
|
|
console.log('复制失败:', e)
|
|
|
|
|
console.log("复制失败:", e);
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
/*
|
|
|
|
|
关闭跟进详情弹出框
|
|
|
|
|
@ -898,10 +881,10 @@ export default {
|
|
|
|
|
// this.zzvisible = false;
|
|
|
|
|
// },
|
|
|
|
|
formatDateYMDHM(time) {
|
|
|
|
|
return formatDateYMDHM(time)
|
|
|
|
|
return formatDateYMDHM(time);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
|
|
@ -1056,7 +1039,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&::after {
|
|
|
|
|
content: '';
|
|
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
|
|
|
|
display: block;
|
|
|
|
|
width: 1px;
|
|
|
|
|
|