feature_0521
liuyang 5 years ago
parent e0c608c141
commit 8de62f1772

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

@ -5,10 +5,9 @@
<Row class="row-style"> <Row class="row-style">
<i-input placeholder="请输入推广员姓名或手机号" class="search-select" v-model="searchShop"/> <i-input placeholder="请输入推广员姓名或手机号" class="search-select" v-model="searchShop"/>
<span class="search-span">选择日期</span> <span class="search-span">选择日期</span>
<DatePicker v-model="date" class="left-15 date-picker" type="date" <DatePicker :value="selectDate" type="daterange" split-panels placeholder="请选择日期"
placement="bottom-start" @on-change="onChangeDateLister"
split-panels placeholder="请选择日期"> class="date-picker"></DatePicker>
</DatePicker>
<span class="search-span">零售公司</span> <span class="search-span">零售公司</span>
<Select v-model="companyId" filterable class="search-select" @on-change="companySelect"> <Select v-model="companyId" filterable class="search-select" @on-change="companySelect">
<Option v-for="(item,index) in companyList" :value="item.id" :key="index + item.id">{{ item.name }}</Option> <Option v-for="(item,index) in companyList" :value="item.id" :key="index + item.id">{{ item.name }}</Option>
@ -65,9 +64,11 @@
</template> </template>
<script> <script>
import recruitTable from "./recruitTable"; import recruitTable from "./recruitTable";
import zeroExtend from "../../services/customer/zeroExtend"; import zeroExtend from "../../services/customer/zeroExtend";
import staff from "../../services/staff/staff"; import staff from "../../services/staff/staff";
import { formatDate } from "../../utils/Common";
import bulletinService from '../../services/recruit/Bulletin'
export default { export default {
name: "", name: "",
components: { components: {
@ -79,15 +80,15 @@
userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId, userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId,
searchShop:null, searchShop:null,
date:"", date:"",
companyId:0, companyId:null,
isShow: false, isShow: false,
showStoreName: '', showStoreName: '',
showrecruit:false, showrecruit:false,
recruitSchedule:{}, recruitSchedule:{},
rowData:{}, rowData:{},
//list //list
companyList: [], companyList: [],
selectedStore: 0, selectedStore: null,
shopList: [], shopList: [],
loading:false, loading:false,
//list //list
@ -107,12 +108,18 @@
{ {
title: '推广员姓名', title: '推广员姓名',
key: 'shopName', key: 'shopName',
width:120 width:120,
render: (h, params) => {
return h('span', params.row.promoterInfo.name);
}
}, },
{ {
title: '推广员手机号', title: '推广员手机号',
key: 'shopPhone', key: 'shopPhone',
width:120 width:120,
render: (h, params) => {
return h('span', params.row.promoterInfo.phone);
}
}, },
{ {
title: '等级', title: '等级',
@ -142,28 +149,43 @@
{ {
title: '零售公司', title: '零售公司',
key: 'companyName', key: 'companyName',
width:150 width:150,
render: (h, params) => {
return h('span', params.row.organizational.name);
}
}, },
{ {
title: '店铺', title: '店铺',
key: 'storeName', key: 'storeName',
width:160 width:160,
render: (h, params) => {
return h('span', params.row.store.name);
}
}, },
{ {
title: '店铺编号', title: '店铺编号',
key: 'storeNO', key: 'storeNO',
width:80 width:80,
render: (h, params) => {
return h('span', params.row.store.code);
}
}, },
{ {
title: '发展人', title: '发展人',
key: 'fissionNum', key: 'fissionNum',
width:80 width:80,
render: (h, params) => {
return h('span', params.row.fissionUser.name);
}
}, },
{ {
title: '加入时间', title: '加入时间',
key: 'submitDate', key: 'submitDate',
width:120 width:120,
render: (h, params) => {
return h('span', formatDate(params.row.joinTime));
}
}, },
{ {
title: '操作', title: '操作',
@ -207,28 +229,21 @@
} }
], ],
data1:[ data1:[
{
shopName:'张继军', ],
shopPhone:'13819890111', selectDate: [],
level:'二级',
managerNumb:'12',
companyName:'上海零售公司',
extensionNumb:'60',
clientNumb:'20',
performance:'21',
storeName:'上海波司登',
storeNO:'1001',
fissionNum:'王超看',
submitDate:'2020/05/21'
}
],
} }
}, },
mounted: function () { mounted: function () {
this.getSelectList(); this.getSelectList();
this.downShopData(); this.downShopData();
this.getPromoterList();
}, },
methods: { methods: {
onChangeDateLister(date) {
console.log(date)
this.selectDate = date;
},
/**基础数据区域list、零售公司list、客户list*/ /**基础数据区域list、零售公司list、客户list*/
getSelectList: function () { getSelectList: function () {
let that = this; let that = this;
@ -311,21 +326,18 @@
this.pageNum = value; this.pageNum = value;
this.getCheckList(); this.getCheckList();
}, },
getCheckList() { getPromoterList() {
let that = this; let that = this;
this.loading = true; this.loading = true;
let request = { let request = {
userId: that.userId,
regionId: that.changeData(that.regionId),
companyId: that.changeData(that.companyId),
storeId: that.changeData(that.selectedStore),
pageNum: that.pageNum, pageNum: that.pageNum,
pageSize: that.pageSize, storeId:that.selectedStore,
code: that.searchShop 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) { bulletinService.promoterList(request, function (data) {
data = data.data;
that.loading = false; that.loading = false;
if (data.code == "0000") { if (data.code == "0000") {
that.data1 = []; that.data1 = [];
@ -339,7 +351,7 @@
if (datas.list == null) { if (datas.list == null) {
datas.list = []; datas.list = [];
} }
that.data1 = datas.list; that.data1 = datas.records;
} }
}, function (error) { }, function (error) {
that.loading = false; that.loading = false;
@ -370,6 +382,11 @@
}, },
} }
} }
// : /fission/promoter/list
// : /fission/promoter/detail
// : /fission/promoter/upgrade
//
</script> </script>
<style scoped> <style scoped>

@ -1,15 +1,41 @@
import http from '../CommonHttp' import http from '../CommonHttp'
import axios from 'axios' import axios from 'axios'
//招募令
export function getDetail(params, call) { export function getDetail(params, call) {
return http.get('/fission/detail', params).then(call) return http.get('/fission/detail', params).then(call)
} }
//招募令保存
export function dosave(params, call) { export function dosave(params, call) {
return http.post('/fission/save', params).then(call) return http.post('/fission/save', params).then(call)
} }
//招募审核列表
export function getRecruitList(params, call) {
return http.get('/fission/recruit/list', params).then(call)
}
// 招募审核保存
export function recruitSave(params, call) {
return http.post('/fission/recruit/save', params).then(call)
}
//推广员管理 列表
export function promoterList(params, call) {
return http.get('/fission/promoter/list', params).then(call)
}
//推广员管理 查看看上下级
export function promoterDetail(params, call) {
return http.post('/fission/promoter/detail', params).then(call)
}
//推广员管理 升级
export function promoterUpgrade(params, call) {
return http.post('/fission/promoter/upgrade', params).then(call)
}
export default { export default {
getDetail, getDetail,
dosave dosave,
getRecruitList,
recruitSave,
promoterList,
promoterDetail,
promoterUpgrade
} }

@ -30,7 +30,7 @@ module.exports = {
/* 使用代理 后台接口路径 */ /* 使用代理 后台接口路径 */
// proxy: 'http://192.168.1.123:8312/' // proxy: 'http://192.168.1.123:8312/'
// proxy: 'http://192.168.31.177:8312/' // proxy: 'http://192.168.31.177:8312/'
proxy: 'http://localhost:8312/', proxy: 'http://111.231.218.44:8080/',
// proxy: 'http://jdxdev.vipgz4.idcfengye.com/' // proxy: 'http://jdxdev.vipgz4.idcfengye.com/'
}, },
} }

Loading…
Cancel
Save