Commit 3a1996a4 by 陈浩建

分销员(未完成,暂隐藏)

parent 6b45b599
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
<a-col :md="6" :sm="12"> <a-col :md="6" :sm="12">
<a-form-item label="月份"> <a-form-item label="月份">
<a-range-picker <a-range-picker
style="width: 260px"
showTime showTime
:placeholder="['开始月份', '结束月份']" :placeholder="['开始月份', '结束月份']"
format="YYYYMM" format="YYYYMM"
...@@ -280,4 +281,4 @@ ...@@ -280,4 +281,4 @@
<style scoped> <style scoped>
</style> </style>
\ No newline at end of file
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
<a-col :md="6" :sm="12"> <a-col :md="6" :sm="12">
<a-form-item label="月份"> <a-form-item label="月份">
<a-range-picker <a-range-picker
style="width: 260px"
showTime showTime
:placeholder="['开始月份', '结束月份']" :placeholder="['开始月份', '结束月份']"
format="YYYYMM" format="YYYYMM"
...@@ -346,4 +347,4 @@ ...@@ -346,4 +347,4 @@
<style scoped> <style scoped>
</style> </style>
\ No newline at end of file
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</a-col> </a-col>
<a-col :md="5" :sm="10"> <a-col :md="5" :sm="10">
<a-form-item label="学校"> <a-form-item label="学校">
<a-select v-model="queryParam.school" style="width: 15rem;"> <a-select v-model="queryParam.school" style="width: 13rem;">
<a-select-option key="">--全部--</a-select-option> <a-select-option key="">--全部--</a-select-option>
<a-select-option v-for="d in schoolNames" :key="d.value" :value="d.value">{{d.text}}</a-select-option> <a-select-option v-for="d in schoolNames" :key="d.value" :value="d.value">{{d.text}}</a-select-option>
</a-select> </a-select>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<a-col :md="3" :sm="6"> <a-col :md="3" :sm="6">
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="活跃状态"> <a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="活跃状态">
<a-select showSearch placeholder="请选择" v-model="queryParam.isActive" > <a-select showSearch placeholder="请选择" v-model="queryParam.isActive" style="width: 6rem;">
<a-select-option key="">请选择</a-select-option> <a-select-option key="">请选择</a-select-option>
<a-select-option key="1">活跃</a-select-option> <a-select-option key="1">活跃</a-select-option>
<a-select-option key="0">不活跃</a-select-option> <a-select-option key="0">不活跃</a-select-option>
...@@ -97,12 +97,13 @@ ...@@ -97,12 +97,13 @@
<span v-else></span> <span v-else></span>
</template> </template>
<template slot="operation" slot-scope="text,record"> <template slot="operation" slot-scope="text,record">
<a @click="modifyfunction(record)">编辑</a> <a @click="modifyfunction(record)">编辑</a>
<a-divider type="vertical"/> <a-divider type="vertical"/>
<!-- <a @click="modifyfunction(record)">分销员</a>-->
<!-- <a-divider type="vertical"/>-->
<a-popconfirm title="是否要删除此行?" @confirm="deleteUser(record.id)"> <a-popconfirm title="是否要删除此行?" @confirm="deleteUser(record.id)">
<a>删除</a> <a>删除</a>
</a-popconfirm> </a-popconfirm>
<a-divider type="vertical"/>
</template> </template>
</s-table> </s-table>
...@@ -232,6 +233,7 @@ ...@@ -232,6 +233,7 @@
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="县分"> <a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="县分">
<a-select placeholder="请选择" @change="changeSubst(2)" v-model="modifyForm.subName" > <a-select placeholder="请选择" @change="changeSubst(2)" v-model="modifyForm.subName" >
<a-select-option key="">请选择</a-select-option> <a-select-option key="">请选择</a-select-option>
<a-select-option key="">请选择</a-select-option>
<a-select-option v-for="d in subNames" :key="d.value" :value="d.value">{{d.text}}</a-select-option> <a-select-option v-for="d in subNames" :key="d.value" :value="d.value">{{d.text}}</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
...@@ -374,6 +376,10 @@ ...@@ -374,6 +376,10 @@
position:'', position:'',
parentId:'', parentId:'',
}, },
modifyFormFXY:{
id:"",
fxs:"",
},
autoCompleteResult:[], autoCompleteResult:[],
subNameList: [], subNameList: [],
substList: [], substList: [],
...@@ -386,19 +392,19 @@ ...@@ -386,19 +392,19 @@
addSubName:'', addSubName:'',
columns: [ columns: [
{dataIndex: 'id', width:100, title: '合伙人id', align: 'center'}, {dataIndex: 'id', width:100, title: '合伙人id', align: 'center'},
{dataIndex: 'name', width: 100, title: '姓名 ', align: "center"}, {dataIndex: 'name', width: 100, title: '姓名', align: "center"},
{dataIndex: 'phone', width: 200, title: '电话', align: "center"}, {dataIndex: 'phone', width: 200, title: '电话', align: "center"},
{dataIndex: 'school', width: 200, title: '学校 ', align: "center"}, {dataIndex: 'school', width: 200, title: '学校', align: "center"},
{dataIndex: 'idCard', width: 200, title: '身份证 ', align: "center"}, {dataIndex: 'idCard', width: 200, title: '身份证', align: "center"},
{dataIndex: 'account', width: 200, title: '账号 ', align: "center"}, {dataIndex: 'account', width: 200, title: '账号', align: "center"},
{dataIndex: 'substName', width: 100, title: '县分 ', align: "center"}, {dataIndex: 'substName', width: 100, title: '县分', align: "center"},
{dataIndex: 'roleName', width: 200, title: '角色 ', align: "center"}, {dataIndex: 'roleName', width: 200, title: '角色', align: "center"},
{ dataIndex: 'status',width:100,fixed: 'right', sort: true, title: '状态', scopedSlots: { customRender: 'statusRender' } }, {dataIndex: 'sex', width: 100, title: '性别', align: "center",scopedSlots: {customRender: 'genderoperation'},},
{dataIndex: 'isActive', width: 200, title: '活跃状态', align: "center",scopedSlots: {customRender: 'activeRender'},}, {dataIndex: 'isActive', width: 200, title: '活跃状态', align: "center",scopedSlots: {customRender: 'activeRender'},},
{dataIndex: 'sex', width: 100, title: '性别 ', align: "center",scopedSlots: {customRender: 'genderoperation'},}, {dataIndex: 'status',width:100,fixed: 'right', sort: true, title: '状态', scopedSlots: { customRender: 'statusRender' },},
{ {
dataIndex: 'operation', dataIndex: 'operation',
width: 100, width: 150,
title: '操作', title: '操作',
align: "center", align: "center",
scopedSlots: {customRender: 'operation'}, scopedSlots: {customRender: 'operation'},
...@@ -496,6 +502,43 @@ ...@@ -496,6 +502,43 @@
} }
}) })
}, },
// 调整分销员
modifyFXY(data) {
this.modifyForm.id = data.id
this.titleName = "编辑"
this.modifyvisible = true
setTimeout(() => {
this.Formtable.setFieldsValue({
phone: data.phone,
schoolId: data.schoolId,
name: data.name,
account: data.account,
idCard: data.idCard,
sex: data.sex,
grade: data.grade,
ysm: data.ysm,
})
if (data.schools == undefined) {
this.treeModelValue = [];
}else{
this.treeModelValue = data.schools.split(",");
}
this.modifyForm.subName = data.substName;
this.modifyForm.roleId = data.roleid;
this.modifyForm.position = data.position;
this.modifyForm.parentId = "";
this.modifyForm.parentIds = "";
this.recordId = data.parentId;
this.changeSchool(data.schoolId);
this.changePosition(2);
this.$refs.tree2.setValue2(data.roleid);
}, 500)
getlistysm().then(res => {
if (res.state == "success") {
this.autoCompleteResult = res.data
}
})
},
//提交表单 //提交表单
createfunctionOk(){ createfunctionOk(){
this.Formtable.validateFields(["account",'phone','name',"idCard", 'password', 'parentId', 'sex','schoolId', 'roleid','ysm'], {force: true}, (err, values)=>{ this.Formtable.validateFields(["account",'phone','name',"idCard", 'password', 'parentId', 'sex','schoolId', 'roleid','ysm'], {force: true}, (err, values)=>{
...@@ -943,4 +986,4 @@ ...@@ -943,4 +986,4 @@
<style scoped> <style scoped>
</style> </style>
\ No newline at end of file
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