Commit 57abcef1 authored by 黄奎's avatar 黄奎

1

parent ba9fbe8f
<template>
<div class="customerTransfer flexOne">
<div class="query-box" style="border: none;">
<ul style="overflow: initial!important">
<ul>
<li>
<span>
<em>{{$t('visaT.sale')}}</em>
</span>
<el-select v-model="msg.CreateBy" class="h34 w150" filterable remote reserve-keyword
:placeholder="$t('pub.PleaseKeyWords')" :remote-method="GetClientAccountListByKeyWord">
<el-option :label="$t('pub.unlimitedSel')" value="-1"></el-option>
<el-option v-for="item in employeeList" :label="item.name" :value="item.empId" :key="item.empId">
<div>
<span>{{`${item.name}`}}</span>
<span style="margin-left: 15px;">
<el-tag size="mini" v-if="item.isLeave==1">{{$t('pub.noJobSel')}}</el-tag>
</span>
</div>
</el-option>
</el-select>
</li>
<li>
<span>
<em>{{$t('salesModule.keyWords')}}</em>
</span>
<el-input class="h34" v-model="msg.CustomerName" :placeholder="$t('salesModule.InputPhone')"></el-input>
</li>
<li>
<span>
<em>{{$t('salesModule.Belongbrand')}}</em>
</span>
<el-select filterable class='h34 multiple_input' v-model='msg.Brand' :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value="-1"></el-option>
<el-option v-for='item in CustomerBrandList' :label='item.name' :value='item.id' :key='item.id'>
</el-option>
</el-select>
</li>
<li>
<span>
<em>{{$t('objFill.v101.Rest.guanlianztai')}}</em>
</span>
<el-select filterable class='h34 multiple_input' v-model='msg.OperationStatus'
:placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" value=""></el-option>
<el-option :label="$t('pub.normalSel')" :value="1"></el-option>
<el-option :label="$t('objFill.v102.shifang')" :value="2"></el-option>
</el-select>
</li>
<li>
<span>
<em>{{$t('salesModule.CustomerStatus')}}</em>
</span>
<el-select filterable class='h34 multiple_input' v-model='msg.CustomerStatus'
:placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" value=""></el-option>
<el-option :label="$t('fnc.a_wshenhe')" :value="1"></el-option>
<el-option :label="$t('fnc.a_yshenhe')" :value="2"></el-option>
<el-option :label="$t('salesModule.HasRefused')" :value="3"></el-option>
<el-option :label="$t('objFill.v101.activity.heimindan')" :value="4"></el-option>
</el-select>
</li>
<li>
<span>
<em>{{$t('objFill.v101.Rest.shifouyichan')}}</em>
</span>
<el-select filterable class='h34 multiple_input' v-model='msg.ExceptionCount'
:placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value="0"></el-option>
<el-option :label="$t('pub.yes')" :value="1"></el-option>
<el-option :label="$t('pub.no')" :value="2"></el-option>
</el-select>
</li>
<li>
<span>
<em class="fl" style="margin-top: 10px !important">{{$t('admin.admin_Department')}}</em>
<treeselect class="w200 fl" :options="departmentList" @select="getEmployeeList" v-model="DepartmentId"
style="height: 25px;" :placeholder="$t('pub.unlimitedSel')" :normalizer="normalizer" />
</span>
</li>
<li>
<span>
<em>
{{$t('objFill.v101.Rest.tehuizankehu')}}
</em>
</span>
<el-select filterable class='h34 multiple_input' v-model='msg.fanYong' :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value="-1"></el-option>
<el-option :label="$t('pub.yes')" :value="1"></el-option>
<el-option :label="$t('pub.no')" :value="2"></el-option>
</el-select>
</li>
<li>
<span>
<em>
{{$t('scen.sc_ftTime')}}
</em>
</span>
<el-date-picker class="h34 w250" v-model="missionDate" @change="timeAdd()" type="daterange"
value-format="yyyy-MM-dd">
</el-date-picker>
</li>
<li>
<span>
<em>
{{ $t('objFill.v102.nurushijian') }}
</em>
</span>
<el-date-picker class="h34 w250" v-model="EnterTime" @change="timeAdd(2)" type="daterange"
value-format="yyyy-MM-dd">
</el-date-picker>
</li>
<li style="margin-left: 10px">
<span>
<em>{{$t('objFill.v102.appjihuozhuant')}}</em>
<el-select class="h34 w120" :placeholder="$t('pub.pleaseSel')" filterable v-model="msg.OpenIdStatus">
<el-option v-for="item in OpenStatusList" :label="item.Name" :value="item.Id" :key="item.Id"></el-option>
</el-select>
</span>
</li>
<li style="margin-left: 40px">
<span>
<em>
激活时间
</em>
</span>
<el-date-picker class="h34 w220" v-model="activationTime" @change="timeAdd(3)" type="daterange"
value-format="yyyy-MM-dd">
</el-date-picker>
<el-form label-width="100px" style="padding-top:8px;">
<el-row :gutter="24">
<template v-if="userInfo.RB_Branch_id==0||userInfo.RB_Branch_id==49||userInfo.EmployeeId==718">
<el-col :span="6">
<el-form-item :label="$t('system.table_company')">
<el-select filterable v-model="msg.RB_Branch_id"
@change="msg.RB_Department_Id=null,msg.CreateBy='',getDepartment" class>
<template v-if="userInfo.RB_Branch_id==0||userInfo.RB_Branch_id==49">
<el-option :value="-1" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for="item in CompanyList" :label="item.BName" :value="item.Id" :key="item.Id">
</el-option>
</template>
<template v-else>
<el-option v-for="item in CompanyList" v-if="item.Id==36||item.Id==1214" :label="item.BName"
:value="item.Id" :key="item.Id">
</el-option>
</template>
</el-select>
</el-form-item>
</el-col>
</template>
<el-col :span="6">
<!--class="h34 w150"-->
<el-form-item :label="$t('admin.admin_Department')">
<treeselect class="w200 fl" style="height:34px !important;margin-top: 5px !important"
:options="departmentList" v-model="msg.RB_Department_Id" :label="$t('pub.unlimitedSel')"
:normalizer="normalizer" @select="changeDepart" />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('visaT.sale')">
<el-select v-model="msg.CreateBy" filterable :placeholder="$t('pub.PleaseKeyWords')" clearable>
<el-option :label="$t('pub.unlimitedSel')" value="-1"></el-option>
<el-option v-for="item in employeeList" :label="item.name" :value="item.empId" :key="item.empId">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('salesModule.keyWords')">
<el-input v-model="msg.CustomerName" :placeholder="$t('salesModule.InputPhone')" style="width:215px;">
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('salesModule.Belongbrand')">
<el-select filterable class='h34 multiple_input' v-model='msg.Brand'
:placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value="-1"></el-option>
<el-option v-for='item in CustomerBrandList' :label='item.name' :value='item.id' :key='item.id'>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('objFill.v101.Rest.guanlianztai')">
<el-select filterable class='h34 multiple_input' v-model='msg.OperationStatus'
:placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" value=""></el-option>
<el-option :label="$t('pub.normalSel')" :value="1"></el-option>
<el-option :label="$t('objFill.v102.shifang')" :value="2"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('salesModule.CustomerStatus')">
<el-select filterable class='h34 multiple_input' v-model='msg.CustomerStatus'
:placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" value=""></el-option>
<el-option :label="$t('fnc.a_wshenhe')" :value="1"></el-option>
<el-option :label="$t('fnc.a_yshenhe')" :value="2"></el-option>
<el-option :label="$t('salesModule.HasRefused')" :value="3"></el-option>
<el-option :label="$t('objFill.v101.activity.heimindan')" :value="4"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('objFill.v101.Rest.shifouyichan')">
<el-select filterable class='h34 multiple_input' v-model='msg.ExceptionCount'
:placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value="0"></el-option>
<el-option :label="$t('pub.yes')" :value="1"></el-option>
<el-option :label="$t('pub.no')" :value="2"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('objFill.v101.Rest.tehuizankehu')">
<el-select filterable class='h34 multiple_input' v-model='msg.fanYong'
:placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value="-1"></el-option>
<el-option :label="$t('pub.yes')" :value="1"></el-option>
<el-option :label="$t('pub.no')" :value="2"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('scen.sc_ftTime')">
<el-date-picker class="h34 w250" v-model="missionDate" @change="timeAdd()" type="daterange"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('objFill.v102.nurushijian')">
<el-date-picker class="h34 w250" v-model="EnterTime" @change="timeAdd(2)" type="daterange"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('objFill.v102.appjihuozhuant')">
<el-select class="h34 w120" :placeholder="$t('pub.pleaseSel')" filterable v-model="msg.OpenIdStatus">
<el-option v-for="item in OpenStatusList" :label="item.Name" :value="item.Id" :key="item.Id">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="激活时间">
<el-date-picker class="h34 w220" v-model="activationTime" @change="timeAdd(3)" type="daterange"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
</el-form>
</li>
<li>
<input type="button" class="hollowFixedBtn" :value="$t('ground.kehuditu')" @click="getMap()">
......@@ -180,7 +186,7 @@
<th width="7%">{{$t('salesModule.belongUnion')}}</th>
<th width="8%">{{$t('salesModule.SuoSales')}}</th>
<th width="8%">{{$t('salesModule.CustomerStatus')}}</th>
<th width="5%" class="cursorpointer" @click="changeSort(1, 'TradeMoney')">
<th width="7%" class="cursorpointer" @click="changeSort(1, 'TradeMoney')">
<div class="sort-th">
<div>
{{$t('fnc.jiaoyie')}}
......@@ -206,8 +212,8 @@
</th>
<th width="5%">{{$t('salesModule.HappinessPassbook')}}</th>
<th width="4%">{{$t('active.ad_yhq')}}</th>
<th width="8%">{{$t('pub.pubRemark')}}</th>
<th width="14%">{{$t('system.table_operation')}}</th>
<!-- <th width="8%">{{$t('pub.pubRemark')}}</th> -->
<th width="12%">{{$t('system.table_operation')}}</th>
</tr>
<tr>
<td colspan="13" align="center" v-show="list.length==0">{{$t('system.content_noData')}}</td>
......@@ -259,9 +265,7 @@
{{item.CouponNum}}
</span>
</td>
<td>{{item.Remark}}</td>
<!-- <td>{{item.Remark}}</td> -->
<td>
<el-button-group>
<el-tooltip effect="dark" :content="$t('fnc.zhuanjiao')" placement="top-start">
......@@ -271,12 +275,6 @@
<p class="fz12 fbold mt10 color333">{{$t('fnc.zhuanjiao')}}</p>
<p class="fz12 mt30 color666">
<span>{{$t('salesModule.Recipient')}}</span>&nbsp;
<!-- <el-select
filterable
class="w180"
v-model="RecipientMsg.NewEmployeeId"
:placeholder="$t('pub.pleaseSel')"
> -->
<el-select v-model="RecipientMsg.NewEmployeeId" class="w150" filterable remote reserve-keyword
:placeholder="$t('pub.PleaseKeyWords')" :remote-method="GetClientAccountListByKeyWord1">
<el-option v-for="item in employeeList1" :label="item.name" :value="item.empId"
......@@ -384,17 +382,6 @@
</el-col>
</el-row>
<el-row :gutter="20">
<!--<el-col :span="6">-->
<!--<el-form-item label="所属品牌:" prop="brandIds">-->
<!--<el-select filterable class='multiple_input' multiple v-model='addMsg.brandIds' :placeholder="$t('pub.pleaseSel')">-->
<!--<el-option v-for='item in CustomerBrandList'-->
<!--:label='item.name'-->
<!--:value='item.id'-->
<!--:key='item.id'>-->
<!--</el-option>-->
<!--</el-select>-->
<!--</el-form-item>-->
<!--</el-col>-->
<el-col :span="6">
<el-form-item :label="$t('visaT.post')" prop="Duty">
<el-select filterable v-model="addMsg.Duty" :placeholder="$t('pub.pleaseSel')">
......@@ -474,26 +461,29 @@
data() {
return {
normalizer(node) {
return {
id: node.DepartmentId,
var obj = {
id: node.DepartmentID,
label: node.DepartmentName,
children: node.ChildList
};
if (node.ChildList != null && node.ChildList.length > 0) {
obj.children = node.ChildList;
}
return obj;
},
CustomerException: [],
datainfo: {},
CustomerBrandList: [],
missionDate: [],
EnterTime: [],
DepartmentId: null,
isSelLayer: false,
layerShow: false,
msg: {
pageIndex: 1,
pageSize: 14,
RB_Branch_id: -1,
CustomerName: "",
CreateBy: "-1",
DepartmentId: "-1",
DepartmentId: null,
Brand: -1,
allDepartment: 0,
CustomerStatus: 2,
......@@ -656,34 +646,89 @@
Id: 2
},
],
activationTime: []
activationTime: [],
CompanyList: [], //公司列表
getCompanyMsg: {
// 公司
RB_Group_Id: "0",
Status: "0",
},
userInfo: {},
};
},
watch: {
'$route': {
handler(val, oldVal) {
console.log(this.$route.query, '-------')
if (this.$route.query.EnterTime) {
this.EnterTime = this.$route.query.EnterTime
this.msg.StartCreate = this.EnterTime[0];
this.msg.EndCreate = this.EnterTime[1];
}
if (this.$route.query.activationTime) {
this.activationTime = this.$route.query.activationTime
this.msg.ActivateStartDate = this.activationTime[0];
this.msg.ActivateEndDate = this.activationTime[1];
}
if (this.$route.query.activation) {
this.msg.OpenIdStatus = this.$route.query.activation
}
this.getList();
// console.log(this.$route.query, '-------')
// this.getList();
},
deep: true,
immediate: true
},
},
created() {
this.userInfo = this.getLocalStorage();
this.getCompanyMsg.RB_Group_Id = this.userInfo.RB_Group_id;
this.getCompanyList();
if (this.$route.query.EnterTime) {
this.EnterTime = this.$route.query.EnterTime
this.msg.StartCreate = this.EnterTime[0];
this.msg.EndCreate = this.EnterTime[1];
}
if (this.$route.query.activationTime) {
this.activationTime = this.$route.query.activationTime
this.msg.ActivateStartDate = this.activationTime[0];
this.msg.ActivateEndDate = this.activationTime[1];
}
if (this.$route.query.activation) {
this.msg.OpenIdStatus = Number(this.$route.query.activation);
}
if (this.$route.query.RB_Branch_Id) {
this.msg.RB_Branch_id = Number(this.$route.query.RB_Branch_Id);
} else {
if (this.userInfo.RB_Branch_id != 0 && this.userInfo.RB_Branch_id != 49) {
this.msg.RB_Branch_id = Number(this.userInfo.RB_Branch_id);
}
}
if (this.$route.query.RB_Department_Id && Number(this.$route.query.RB_Department_Id) > 0) {
this.msg.RB_Department_Id = Number(this.$route.query.RB_Department_Id);
this.getEmployee();
}
if (this.$route.query.EnterID && Number(this.$route.query.EnterID) > 0) {
this.msg.CreateBy = Number(this.$route.query.EnterID);
}
},
mounted() {
let ActionMenuCode = this.userInfo.ActionMenuCode;
if (ActionMenuCode.indexOf('Select_AllCustomer') != -1) {
this.departState = true;
}
this.bossID = this.userInfo.EmployeeId;
this.departmentMsg.RB_Group_Id = this.userInfo.RB_Group_id; //集团
this.getDepartment();
this.getList();
this.getCreateByInfoList();
this.getProvince();
this.getJycs();
this.getZw();
this.getKhly();
this.getCustomerBrandList();
},
methods: {
getCompanyList() {
//获取公司列表
this.apipost(
"admin_get_BranchGetList",
this.getCompanyMsg,
(res) => {
if (res.data.resultCode == 1) {
this.CompanyList = res.data.data;
}
},
(err) => {}
);
},
timeAdd(t) { // 日期格式
if (t == 2) {
if (!this.EnterTime) {
......@@ -1191,15 +1236,16 @@
);
},
getDepartment() {
let msg = {};
if (this.departState) {
msg = {
allDepartment: 1
};
this.msg.allDepartment = 1
}
let deparMsg = {
RB_Group_Id: this.userInfo.RB_Group_id,
RB_Branch_Id: -1,
Status: 0,
ParentId: -1,
Tier: 0,
};
deparMsg.RB_Branch_Id = this.msg.RB_Branch_id;
this.apipost(
"Advertising_get_GetNowDepartmentAndSubordinate", msg,
"admin_get_DepartmentGetList", deparMsg,
res => {
if (res.data.resultCode == 1) {
this.departmentList = res.data.data;
......@@ -1210,21 +1256,18 @@
err => {}
);
},
getEmployeeList(node, id) {
this.isSelLayer = false;
this.msg.CreateBy = "-1";
this.msg.DepartmentId = this.employeeMsg.departmentId = node.DepartmentId;
changeDepart(node, id) {
console.log(node, "changeDepart")
this.msg.CreateBy = "";
this.msg.DepartmentId = node.DepartmentID;
this.employeeMsg.departmentId = node.DepartmentID;
this.getEmployee();
},
getEmployee() {
this.employeeMsg.departmentId = 0;
this.employeeMsg.RB_Group_id = this.getLocalStorage().RB_Group_id;
this.employeeMsg.RB_Branch_id = -1;
this.employeeMsg.RB_Group_id = this.userInfo.RB_Group_id;
this.employeeMsg.RB_Branch_id = this.msg.RB_Branch_id;
this.employeeList2 = [];
this.employeeMsg.IsLeave = -1;
if (this.employeeMsg.KeyWord == '') {
return
}
this.apipost(
"app_get_company_employee",
this.employeeMsg,
......@@ -1388,25 +1431,6 @@
});
}
}
},
mounted() {
let userInfo = this.getLocalStorage();
let ActionMenuCode = userInfo.ActionMenuCode;
if (ActionMenuCode.indexOf('Select_AllCustomer') != -1) {
this.departState = true;
}
this.bossID = userInfo.EmployeeId;
this.departmentMsg.RB_Group_Id = userInfo.RB_Group_id; //集团
this.getDepartment();
// this.getEmployee();
this.getList();
this.getCreateByInfoList();
this.getProvince();
this.getJycs();
this.getZw();
this.getKhly();
this.getCustomerBrandList();
}
};
......
......@@ -237,12 +237,18 @@
if (type == 1) {
query = {
blank: "y",
RB_Branch_Id: this.msg.RB_Branch_Id,
RB_Department_Id: this.msg.RB_Department_Id,
EnterID: this.msg.EnterID,
}
}
//今日新增
else if (type == 2) {
query = {
EnterTime: Time,
RB_Branch_Id: this.msg.RB_Branch_Id,
RB_Department_Id: this.msg.RB_Department_Id,
EnterID: this.msg.EnterID,
blank: "y",
}
}
......@@ -250,6 +256,9 @@
else if (type == 3) {
query = {
activation: 1,
RB_Branch_Id: this.msg.RB_Branch_Id,
RB_Department_Id: this.msg.RB_Department_Id,
EnterID: this.msg.EnterID,
blank: "y",
}
}
......@@ -258,6 +267,9 @@
query = {
activationTime: Time,
activation: 1,
RB_Branch_Id: this.msg.RB_Branch_Id,
RB_Department_Id: this.msg.RB_Department_Id,
EnterID: this.msg.EnterID,
blank: "y",
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment