|
|
|
@ -106,7 +106,7 @@
|
|
|
|
|
<p>审核不通过原因</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<i-input type="textarea" :rows="4" placeholder="请填写审核不通过原因"></i-input>
|
|
|
|
|
<i-input v-model="remark" type="textarea" :rows="4" placeholder="请填写审核不通过原因"></i-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="margin-top:20px;text-align: center;">
|
|
|
|
|
<Button ghost type="primary" @click="refuse(rowData)">确定</Button>
|
|
|
|
@ -141,6 +141,9 @@
|
|
|
|
|
<script>
|
|
|
|
|
import zeroExtend from "../../services/customer/zeroExtend";
|
|
|
|
|
import staff from "../../services/staff/staff";
|
|
|
|
|
import { formatDate } from "../../utils/Common";
|
|
|
|
|
import bulletinService from '../../services/recruit/Bulletin'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "",
|
|
|
|
|
data() {
|
|
|
|
@ -149,7 +152,7 @@
|
|
|
|
|
userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId,
|
|
|
|
|
searchShop:null,
|
|
|
|
|
date:"",
|
|
|
|
|
companyId:0,
|
|
|
|
|
companyId:null,
|
|
|
|
|
refuseIsShow: false,
|
|
|
|
|
passIsShow:false,
|
|
|
|
|
showStoreName: '',
|
|
|
|
@ -158,7 +161,7 @@
|
|
|
|
|
companyList: [],
|
|
|
|
|
//所有组织list
|
|
|
|
|
organizationalList: [],
|
|
|
|
|
selectedStore: 0,
|
|
|
|
|
selectedStore: null,
|
|
|
|
|
shopList: [],
|
|
|
|
|
loading:false,
|
|
|
|
|
total: 0,
|
|
|
|
@ -175,49 +178,65 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '推广员姓名',
|
|
|
|
|
key: 'shopName',
|
|
|
|
|
width:120
|
|
|
|
|
width:120,
|
|
|
|
|
render: (h, params) => {
|
|
|
|
|
return h('span', params.row.promoterInfo.name);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '推广员手机号',
|
|
|
|
|
key: 'shopPhone',
|
|
|
|
|
width:120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '身份证号码',
|
|
|
|
|
key: 'shopCode',
|
|
|
|
|
width:160
|
|
|
|
|
width:120,
|
|
|
|
|
render: (h, params) => {
|
|
|
|
|
return h('span', params.row.promoterInfo.phone);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
title: '零售公司',
|
|
|
|
|
key: 'companyName',
|
|
|
|
|
width:150
|
|
|
|
|
width:150,
|
|
|
|
|
render: (h, params) => {
|
|
|
|
|
return h('span', params.row.organizational.name);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '零售公司编号',
|
|
|
|
|
key: 'companyCode',
|
|
|
|
|
width:80
|
|
|
|
|
width:80,
|
|
|
|
|
render: (h, params) => {
|
|
|
|
|
return h('span', params.row.organizational.code);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '店铺',
|
|
|
|
|
key: 'storeName',
|
|
|
|
|
width:160
|
|
|
|
|
width:160,
|
|
|
|
|
render: (h, params) => {
|
|
|
|
|
return h('span', params.row.store.name);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '店铺编号',
|
|
|
|
|
key: 'storeNO',
|
|
|
|
|
width:80
|
|
|
|
|
width:80,
|
|
|
|
|
render: (h, params) => {
|
|
|
|
|
return h('span', params.row.store.code);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '发展人',
|
|
|
|
|
key: 'fissionNum',
|
|
|
|
|
width:80
|
|
|
|
|
width:80,
|
|
|
|
|
render: (h, params) => {
|
|
|
|
|
return h('span', params.row.fissionUser.name);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '提交时间',
|
|
|
|
|
key: 'submitDate',
|
|
|
|
|
width:120
|
|
|
|
|
title: '加入时间',
|
|
|
|
|
key: 'joinTime',
|
|
|
|
|
width:120,
|
|
|
|
|
render: (h, params) => {
|
|
|
|
|
return h('span', formatDate(params.row.joinTime));
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '操作',
|
|
|
|
@ -226,18 +245,7 @@
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
data1:[
|
|
|
|
|
{
|
|
|
|
|
shopName:'张继军',
|
|
|
|
|
shopPhone:'13819890111',
|
|
|
|
|
shopCode:'110001199010018171',
|
|
|
|
|
bankCard:'62210199918822121',
|
|
|
|
|
companyName:'上海零售公司',
|
|
|
|
|
companyCode:'601',
|
|
|
|
|
storeName:'上海波司登',
|
|
|
|
|
storeNO:'1001',
|
|
|
|
|
fissionNum:'王超看',
|
|
|
|
|
submitDate:'2020/05/21'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
columns2: [
|
|
|
|
|
{
|
|
|
|
@ -398,18 +406,22 @@
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
selectDate: [],
|
|
|
|
|
store:null,
|
|
|
|
|
remark:null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted: function () {
|
|
|
|
|
let startDate = this.$moment().format("YYYY-MM-DD");
|
|
|
|
|
let endDate = this.$moment().format("YYYY-MM-DD");
|
|
|
|
|
this.selectDate.push(startDate);
|
|
|
|
|
this.selectDate.push(endDate);
|
|
|
|
|
// let startDate = this.$moment().format("YYYY-MM-DD");
|
|
|
|
|
// let endDate = this.$moment().format("YYYY-MM-DD");
|
|
|
|
|
// this.selectDate.push(startDate);
|
|
|
|
|
// this.selectDate.push(endDate);
|
|
|
|
|
this.getSelectList();
|
|
|
|
|
this.downShopData();
|
|
|
|
|
this.getRecruitList();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
onChangeDateLister(date) {
|
|
|
|
|
console.log(date)
|
|
|
|
|
this.selectDate = date;
|
|
|
|
|
},
|
|
|
|
|
/**基础数据:区域list、零售公司list、客户list*/
|
|
|
|
@ -483,7 +495,7 @@
|
|
|
|
|
},
|
|
|
|
|
searchCustomerDataBtnClick: function () {
|
|
|
|
|
this.pageNum = 1;
|
|
|
|
|
this.getCheckList();
|
|
|
|
|
this.getRecruitList();
|
|
|
|
|
},
|
|
|
|
|
// 双击row跳转详情页面
|
|
|
|
|
onDblClickRowLister: function (row) {
|
|
|
|
@ -492,27 +504,25 @@
|
|
|
|
|
//切页处理
|
|
|
|
|
handlePage: function (value) {
|
|
|
|
|
this.pageNum = value;
|
|
|
|
|
this.getCheckList();
|
|
|
|
|
this.getRecruitList();
|
|
|
|
|
},
|
|
|
|
|
getCheckList() {
|
|
|
|
|
getRecruitList() {
|
|
|
|
|
let that = this;
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
|
|
|
|
let request = {
|
|
|
|
|
userId: that.userId,
|
|
|
|
|
regionId: that.changeData(that.regionId),
|
|
|
|
|
companyId: that.changeData(that.companyId),
|
|
|
|
|
storeId: that.changeData(that.selectedStore),
|
|
|
|
|
status:that.tabIndex+2,
|
|
|
|
|
pageNum: that.pageNum,
|
|
|
|
|
pageSize: that.pageSize,
|
|
|
|
|
code: that.searchShop
|
|
|
|
|
storeId:that.selectedStore,
|
|
|
|
|
companyId: that.companyId,
|
|
|
|
|
store:that.searchShop,
|
|
|
|
|
start:that.selectDate[0] === ""||that.selectDate.length==0?null:that.selectDate[0],
|
|
|
|
|
end:that.selectDate[1] === ""||that.selectDate.length==0?null:that.selectDate[1],
|
|
|
|
|
};
|
|
|
|
|
http.checkList(request, function (data) {
|
|
|
|
|
data = data.data;
|
|
|
|
|
bulletinService.getRecruitList(request, function (data) {
|
|
|
|
|
that.loading = false;
|
|
|
|
|
if (data.code == "0000") {
|
|
|
|
|
if (data.data.code == "0000") {
|
|
|
|
|
that.data1 = [];
|
|
|
|
|
let datas = data.results;
|
|
|
|
|
let datas = data.data.results;
|
|
|
|
|
//总页数
|
|
|
|
|
if (datas.total == null) {
|
|
|
|
|
that.total = 0;
|
|
|
|
@ -522,7 +532,8 @@
|
|
|
|
|
if (datas.list == null) {
|
|
|
|
|
datas.list = [];
|
|
|
|
|
}
|
|
|
|
|
that.data1 = datas.list;
|
|
|
|
|
|
|
|
|
|
that.data1 = datas.records;
|
|
|
|
|
}
|
|
|
|
|
}, function (error) {
|
|
|
|
|
that.loading = false;
|
|
|
|
@ -530,14 +541,23 @@
|
|
|
|
|
},
|
|
|
|
|
onTabClick(e){
|
|
|
|
|
this.tabIndex = e;
|
|
|
|
|
console.log('tabIndex',this.tabIndex);
|
|
|
|
|
this.pageNum= 1;
|
|
|
|
|
this.storeId=null;
|
|
|
|
|
this.companyId= null;
|
|
|
|
|
this.searchShop=null;
|
|
|
|
|
this.selectDate=[];
|
|
|
|
|
},
|
|
|
|
|
ok() {
|
|
|
|
|
this.refuseIsShow = false;
|
|
|
|
|
},
|
|
|
|
|
// 拒绝审核
|
|
|
|
|
refuse(index) {
|
|
|
|
|
console.log(123);
|
|
|
|
|
refuse(rData) {
|
|
|
|
|
let param = {
|
|
|
|
|
fissionPromoterId:rData.id,
|
|
|
|
|
status:4,
|
|
|
|
|
remark:this.remark
|
|
|
|
|
}
|
|
|
|
|
this.doRecruitSave(param);
|
|
|
|
|
this.refuseIsShow = false;
|
|
|
|
|
},
|
|
|
|
|
refuseShow(index) {
|
|
|
|
@ -552,10 +572,28 @@
|
|
|
|
|
this.passIsShow = false;
|
|
|
|
|
},
|
|
|
|
|
//确认通过审核
|
|
|
|
|
confirm(index) {
|
|
|
|
|
console.log('确认通过审核');
|
|
|
|
|
confirm(rData) {
|
|
|
|
|
let param = {
|
|
|
|
|
fissionPromoterId:rData.id,
|
|
|
|
|
status:3
|
|
|
|
|
}
|
|
|
|
|
this.doRecruitSave(param);
|
|
|
|
|
this.passIsShow = false;
|
|
|
|
|
},
|
|
|
|
|
// 审核
|
|
|
|
|
doRecruitSave(request){
|
|
|
|
|
let that = this;
|
|
|
|
|
bulletinService.recruitSave(request, function (data) {
|
|
|
|
|
that.loading = false;
|
|
|
|
|
if (data.data.code == "0000") {
|
|
|
|
|
that.$Message.info("审核通过");
|
|
|
|
|
}else{
|
|
|
|
|
that.$Message.error("系统异常");
|
|
|
|
|
}
|
|
|
|
|
}, function (error) {
|
|
|
|
|
that.loading = false;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|