| | |
| | | </el-row> |
| | | <el-row> |
| | | <el-tabs v-model="activeName" > |
| | | <el-tab-pane label="分销员管理" name="first"> |
| | | <el-row style="display:flex;align-items: center;"> |
| | | <el-form ref="form" :model="form" inline > |
| | | <el-form-item prop="userName"> |
| | | <el-input v-model="form.userName" placeholder="请输入会员姓名"></el-input> |
| | | </el-form-item> |
| | | <el-tab-pane label="绑定客户" name="first"> |
| | | <el-row style="display:flex;align-items: center;text-align: right;"> |
| | | <el-col> |
| | | <el-form ref="form" :model="form" inline > |
| | | <el-form-item prop="userName" > |
| | | <el-input v-model="form.userName" placeholder="请输入会员姓名"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-button type="primary" @click="search" >搜索</el-button> |
| | | <el-button @click="resetForm('form')">重置</el-button> |
| | | </el-form> |
| | | <el-button type="primary" @click="search" >搜索</el-button> |
| | | <el-button @click="resetForm('form')">重置</el-button> |
| | | </el-form> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row class="table-style" > |
| | | <el-table id="proj" :data="fxyList.rows" :height="height" stripe:true @sort-change="sortChange"> |
| | |
| | | label="客户"> |
| | | <template slot-scope="scope"> |
| | | <img :src="scope.row.avatarUrl" width="40" height="40" class="head_pic"/> |
| | | {{scope.row.nickName}} |
| | | {{scope.row.nickname}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | <el-table-column label="操作" width="240"> |
| | | <template slot-scope="scope"> |
| | | <el-row style="display:flex;"> |
| | | <el-button type="primary" size="mini" @click="openExaminesaleMan(scope.row)">解绑</el-button> |
| | | <el-button type="primary" size="mini" @click="openExamineSaleMan(scope.row)">解绑</el-button> |
| | | </el-row> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </el-tab-pane> |
| | | |
| | | <el-tab-pane label="邀请下级" name="second"> |
| | | <el-row style="display:flex;align-items: center;"> |
| | | <el-form ref="formlow" :model="formlow" inline > |
| | | <el-form-item prop="userName"> |
| | | <el-input v-model="formlow.userName" placeholder="请输入会员姓名"></el-input> |
| | | </el-form-item> |
| | | <el-row style="display:flex;align-items: center;text-align: right;"> |
| | | <el-col> |
| | | <el-form ref="formlow" :model="formlow" inline > |
| | | <el-form-item prop="userName"> |
| | | <el-input v-model="formlow.userName" placeholder="请输入会员姓名"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-button type="primary" @click="searchlow" >搜索</el-button> |
| | | <el-button @click="resetFormlow('formlow')">重置</el-button> |
| | | </el-form> |
| | | <el-button type="primary" @click="searchlow" >搜索</el-button> |
| | | <el-button @click="resetFormlow('formlow')">重置</el-button> |
| | | </el-form> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row class="table-style" > |
| | | <el-table id="proj" :data="lowLevelList.rows" :height="height" stripe:true @sort-change="sortChange"> |
| | |
| | | label="客户"> |
| | | <template slot-scope="scope"> |
| | | <img :src="scope.row.avatarUrl" width="40" height="40" class="head_pic"/> |
| | | {{scope.row.nickName}} |
| | | {{scope.row.nickname}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | <el-table-column label="操作" width="240"> |
| | | <template slot-scope="scope"> |
| | | <el-row style="display:flex;"> |
| | | <el-button type="primary" size="mini" @click="openExaminesaleMan(scope.row)">解绑</el-button> |
| | | <el-button type="primary" size="mini" @click="openExamineSaleMan(scope.row)">解绑</el-button> |
| | | </el-row> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </el-tab-pane> |
| | | |
| | | <el-tab-pane label="收益订单" name="third"> |
| | | <el-row style="display:flex;align-items: center;"> |
| | | <el-form ref="formOrder" :model="formOrder" inline > |
| | | <el-form-item label="结算状态" prop="orderType"> |
| | | <el-select v-model="formOrder.orderType" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in orderTypeList" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item prop="userName"> |
| | | <el-input v-model="formOrder.userName" placeholder="请输入会员姓名"></el-input> |
| | | </el-form-item> |
| | | <el-button type="primary" @click="searchFormOrder" >搜索</el-button> |
| | | <el-button @click="resetFormOrder('formOrder')">重置</el-button> |
| | | </el-form> |
| | | <el-row style="display:flex;align-items: center;text-align: right;"> |
| | | <el-col> |
| | | <el-form ref="formOrder" :model="formOrder" inline > |
| | | <el-form-item label="结算状态" prop="orderType"> |
| | | <el-select v-model="formOrder.orderType" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in orderTypeList" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item prop="userName"> |
| | | <el-input v-model="formOrder.userName" placeholder="请输入会员姓名"></el-input> |
| | | </el-form-item> |
| | | <el-button type="primary" @click="searchFormOrder" >搜索</el-button> |
| | | <el-button @click="resetFormOrder('formOrder')">重置</el-button> |
| | | </el-form> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row class="table-style" > |
| | | <el-table id="proj" :data="orderLevelList.rows" :height="height" stripe:true @sort-change="sortChange"> |
| | |
| | | <el-table-column |
| | | prop="orderMoney" |
| | | label="实付金额"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="订单状态"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.orderState == 1">待付款</span> |
| | | <span v-if="scope.row.orderState == 2">待配送</span> |
| | | <span v-if="scope.row.orderState == 3">待收货</span> |
| | | <span v-if="scope.row.orderState == 4">待评价</span> |
| | | <span v-if="scope.row.orderState == 5">已评价</span> |
| | | <span v-if="scope.row.orderState == 6">申请退款</span> |
| | | <span v-if="scope.row.orderState == 7">退款成功</span> |
| | | <span v-if="scope.row.orderState == 8">退款拒绝</span> |
| | | <span v-if="scope.row.orderState == 9">已取消</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="storeName" |
| | |
| | | //加载分类 |
| | | loadInfo() { |
| | | let _this = this; |
| | | _this.loadParamSettingBasic(); |
| | | _this.loadParamSetting(); |
| | | _this.loadParamSettinglow(); |
| | | _this.loadParamSettingOrder(); |
| | |
| | | } |
| | | }); |
| | | }, |
| | | //加载基本数据信息 |
| | | loadParamSettingBasic() { |
| | | let _this = this; |
| | | let data={ |
| | | userId:userId, |
| | | applyId:applyId, |
| | | }; |
| | | AjaxProxy.requst({ |
| | | app: _this, |
| | | data:data, |
| | | url: basePath + '/fenXiao/fenXiaoUser/loadParamSettingBasic', |
| | | callback: function (data) { |
| | | _this.basicdetail = data.mapInfo.basicdetail; |
| | | } |
| | | }); |
| | | }, |
| | | //绑定客户 |
| | | loadParamSetting() { |
| | | let _this = this; |
| | |
| | | AjaxProxy.requst({ |
| | | app: _this, |
| | | data:data, |
| | | url: basePath + '/fenXiao/fenXiaoUser/findShopSalesmanDetail', |
| | | url: basePath + '/fenXiao/fenXiaoUser/loadParamSetting', |
| | | callback: function (data) { |
| | | _this.basicdetail = data.mapInfo.basicdetail; |
| | | _this.fxyList.rows = data.mapInfo.customDetailRecords; |
| | | _this.fxyList.total = data.mapInfo.customDetailTotal; |
| | | _this.loadParamSettingBasic(); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | AjaxProxy.requst({ |
| | | app: _this, |
| | | data:data, |
| | | url: basePath + '/fenXiao/fenXiaoUser/findShopSalesmanDetail', |
| | | url: basePath + '/fenXiao/fenXiaoUser/loadParamSettinglow', |
| | | callback: function (data) { |
| | | _this.basicdetail = data.mapInfo.basicdetail; |
| | | _this.lowLevelList.rows = data.mapInfo.customLowRecords; |
| | | _this.lowLevelList.total = data.mapInfo.customLowTotal; |
| | | _this.loadParamSettingBasic(); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | AjaxProxy.requst({ |
| | | app: _this, |
| | | data:data, |
| | | url: basePath + '/fenXiao/fenXiaoUser/findShopSalesmanDetail', |
| | | url: basePath + '/fenXiao/fenXiaoUser/loadParamSettingOrder', |
| | | callback: function (data) { |
| | | _this.orderLevelList.rows = data.mapInfo.orderRecords; |
| | | _this.orderLevelList.total = data.mapInfo.orderTotal; |
| | | _this.loadParamSettingBasic(); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | }, |
| | | //解绑 |
| | | openExamineSaleMan(row) { |
| | | alert(this.activeName); |
| | | this.$confirm('是否解绑?', '解绑', { |
| | | distinguishCancelAndClose: true,//设置关闭按钮和不通过按钮的区别 |
| | | confirmButtonText: '同意', |
| | |
| | | url: basePath + '/fenXiao/fenXiaoUser/unbundlingSaleMan', |
| | | callback: function (data) { |
| | | _this.$message.success(data.info); |
| | | this.loadInfo(); |
| | | if(this.activeName == 'first'){ |
| | | _this.loadParamSetting(); |
| | | } |
| | | if(this.activeName == 'second'){ |
| | | _this.loadParamSettinglow(); |
| | | } |
| | | _this.loadParamSettingBasic(); |
| | | } |
| | | }); |
| | | }, |