feat(运营-金币代理): 新增“超级经销商”身份切换功能
This commit is contained in:
parent
dea4a9d936
commit
488f588a98
@ -1,634 +1,642 @@
|
|||||||
import request from '@/utils/request'
|
import request from "@/utils/request";
|
||||||
import { httpGetExport } from '@/utils/export-excel'
|
import { httpGetExport } from "@/utils/export-excel";
|
||||||
|
|
||||||
// 获取用户认证信息
|
// 获取用户认证信息
|
||||||
export function getNotExpiredSubscriptionName(userId) {
|
export function getNotExpiredSubscriptionName(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/subscription/balance/${userId}/name`,
|
url: `/user/subscription/balance/${userId}/name`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取用户认证信息
|
// 获取用户认证信息
|
||||||
export function getUserAuthType(userId) {
|
export function getUserAuthType(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/auth/type/${userId}`,
|
url: `/user/auth/type/${userId}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 登录令牌查看
|
// 登录令牌查看
|
||||||
export function getLoginToken(userId) {
|
export function getLoginToken(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/auth/type/longin/token',
|
url: "/user/auth/type/longin/token",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params: { userId }
|
params: { userId }
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除登录令牌
|
// 删除登录令牌
|
||||||
export function delLoginToken(userId) {
|
export function delLoginToken(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/auth/type/longin/token',
|
url: "/user/auth/type/longin/token",
|
||||||
method: 'delete',
|
method: "delete",
|
||||||
params: { userId }
|
params: { userId }
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取用户糖果
|
// 获取用户糖果
|
||||||
export function getUserCandyBalance(userId) {
|
export function getUserCandyBalance(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/candy/balance/${userId}`,
|
url: `/user/candy/balance/${userId}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取用户余额top表
|
// 获取用户余额top表
|
||||||
export function listUserCandyTop(params) {
|
export function listUserCandyTop(params) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/candy/balance/top`,
|
url: `/user/candy/balance/top`,
|
||||||
method: 'get',
|
method: "get",
|
||||||
params
|
params
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取用户游戏券
|
// 获取用户游戏券
|
||||||
export function getUserGameCouponBalance(userId) {
|
export function getUserGameCouponBalance(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/game/coupon/balance/${userId}`,
|
url: `/user/game/coupon/balance/${userId}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取用户注册信息
|
// 获取用户注册信息
|
||||||
export function getUserRegister(userId) {
|
export function getUserRegister(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/register/info/${userId}`,
|
url: `/user/register/info/${userId}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取用户正常照片墙
|
// 获取用户正常照片墙
|
||||||
export function getUserPhotoWallNormal(userId) {
|
export function getUserPhotoWallNormal(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/photo/wall/normal/${userId}`,
|
url: `/user/photo/wall/normal/${userId}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取用户所有照片墙
|
// 获取用户所有照片墙
|
||||||
export function getUserPhotoWallAll(userId) {
|
export function getUserPhotoWallAll(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/photo/wall/all/${userId}`,
|
url: `/user/photo/wall/all/${userId}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// app用户列表
|
// app用户列表
|
||||||
export function getUserTable(data) {
|
export function getUserTable(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/base/info/page',
|
url: "/user/base/info/page",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改用户基本信息
|
// 修改用户基本信息
|
||||||
export function updateBaseInfo(data) {
|
export function updateBaseInfo(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/base/info',
|
url: "/user/base/info",
|
||||||
method: 'put',
|
method: "put",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 用户基本信息
|
// 用户基本信息
|
||||||
export function getUserBaseInfo(id) {
|
export function getUserBaseInfo(id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/base/info/${id}`,
|
url: `/user/base/info/${id}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 用户基本信息
|
// 用户基本信息
|
||||||
export function getUserBaseInfoByAccount(id) {
|
export function getUserBaseInfoByAccount(id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/base/info/account/${id}`,
|
url: `/user/base/info/account/${id}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 用户基本信息
|
// 用户基本信息
|
||||||
export function getUserBaseInfoBySysOriginAccount(sysOrigin, id) {
|
export function getUserBaseInfoBySysOriginAccount(sysOrigin, id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/base/info/${sysOrigin}/account/${id}`,
|
url: `/user/base/info/${sysOrigin}/account/${id}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 所有照片墙
|
// 所有照片墙
|
||||||
export function getPotoWallTable(params) {
|
export function getPotoWallTable(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/photo/wall/page',
|
url: "/user/photo/wall/page",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params
|
params
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除照片墙
|
// 删除照片墙
|
||||||
export function deletePhotoWall(id) {
|
export function deletePhotoWall(id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/photo/wall/del/${id}`,
|
url: `/user/photo/wall/del/${id}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 所有照片墙按条件筛选
|
// 所有照片墙按条件筛选
|
||||||
export function getPotoWallTableSeach(params) {
|
export function getPotoWallTableSeach(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/photo/wall/page/all',
|
url: "/user/photo/wall/page/all",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params
|
params
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改用户等级
|
// 修改用户等级
|
||||||
export function updateLevelScore(data) {
|
export function updateLevelScore(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/level/score',
|
url: "/user/level/score",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 用户积分
|
// 用户积分
|
||||||
export function getUserLevel(id) {
|
export function getUserLevel(id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/base/info/level/${id}`,
|
url: `/user/base/info/level/${id}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 在线女性用户分页列表
|
// 在线女性用户分页列表
|
||||||
export function getOnlineUserTable(params) {
|
export function getOnlineUserTable(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/real/time/status/online/female/page',
|
url: "/user/real/time/status/online/female/page",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params
|
params
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 在线女性用户总数
|
// 在线女性用户总数
|
||||||
export function getOnlineTotal() {
|
export function getOnlineTotal() {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/real/time/status/online/female/total',
|
url: "/user/real/time/status/online/female/total",
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 在线男性用户分页列表
|
// 在线男性用户分页列表
|
||||||
export function getOnlineMaleUserTable(params) {
|
export function getOnlineMaleUserTable(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/real/time/status/online/male/page',
|
url: "/user/real/time/status/online/male/page",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params
|
params
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 在线男性用户总数
|
// 在线男性用户总数
|
||||||
export function getOnlineMaleTotal() {
|
export function getOnlineMaleTotal() {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/real/time/status/online/male/total',
|
url: "/user/real/time/status/online/male/total",
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取男性用户等级
|
// 获取男性用户等级
|
||||||
export function getUserMaleLevel(id) {
|
export function getUserMaleLevel(id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/base/info/male/level/${id}`,
|
url: `/user/base/info/male/level/${id}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改男性用户等级
|
// 修改男性用户等级
|
||||||
export function updateMaleLevelScore(data) {
|
export function updateMaleLevelScore(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/male/level/score',
|
url: "/user/male/level/score",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改ai用户基本信息
|
// 修改ai用户基本信息
|
||||||
export function updateVestBaseInfo(data) {
|
export function updateVestBaseInfo(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/base/info/vest',
|
url: "/user/base/info/vest",
|
||||||
method: 'put',
|
method: "put",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取用户当前账号状态
|
// 获取用户当前账号状态
|
||||||
export function getAccountStatus(userId) {
|
export function getAccountStatus(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/base/info/account/status/${userId}`,
|
url: `/user/base/info/account/status/${userId}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取礼物墙
|
// 获取礼物墙
|
||||||
export function getGiftWall(userId) {
|
export function getGiftWall(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/gift/wall/${userId}`,
|
url: `/user/gift/wall/${userId}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 用户游戏券奖励
|
// 用户游戏券奖励
|
||||||
export function rewardGameCoupon(userId, coupon, remarks, rewardType) {
|
export function rewardGameCoupon(userId, coupon, remarks, rewardType) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/game/coupon/income/expenditure/reward/coupon`,
|
url: `/user/game/coupon/income/expenditure/reward/coupon`,
|
||||||
method: 'post',
|
method: "post",
|
||||||
params: { userId, coupon, remarks, rewardType }
|
params: { userId, coupon, remarks, rewardType }
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 用户游戏券扣除
|
// 用户游戏券扣除
|
||||||
export function deductGameCoupon(userId, coupon, remarks) {
|
export function deductGameCoupon(userId, coupon, remarks) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/game/coupon/income/expenditure/deduct/coupon`,
|
url: `/user/game/coupon/income/expenditure/deduct/coupon`,
|
||||||
method: 'post',
|
method: "post",
|
||||||
params: { userId, coupon, remarks }
|
params: { userId, coupon, remarks }
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 发送金币
|
// 发送金币
|
||||||
export function sendGold(data) {
|
export function sendGold(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user-wallet/send-gold',
|
url: "/user-wallet/send-gold",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 用户金币扣除
|
// 用户金币扣除
|
||||||
export function deductGold(data) {
|
export function deductGold(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user-wallet/deduct-gold',
|
url: "/user-wallet/deduct-gold",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
// 发送钻石
|
// 发送钻石
|
||||||
export function sendDiamond(data) {
|
export function sendDiamond(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user-wallet/send-diamond',
|
url: "/user-wallet/send-diamond",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 用户钻石扣除
|
// 用户钻石扣除
|
||||||
export function deductDiamond(data) {
|
export function deductDiamond(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user-wallet/deduct-diamond',
|
url: "/user-wallet/deduct-diamond",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// APP管理员分页列表
|
// APP管理员分页列表
|
||||||
export function getAdministratorTable(params) {
|
export function getAdministratorTable(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sys/administrator/page',
|
url: "/sys/administrator/page",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params
|
params
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 禁用/启用APP管理员
|
// 禁用/启用APP管理员
|
||||||
export function changeStatusAdministrator(data) {
|
export function changeStatusAdministrator(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sys/administrator',
|
url: "/sys/administrator",
|
||||||
method: 'put',
|
method: "put",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 改变角色
|
// 改变角色
|
||||||
export function changeSysAdministratorRoles(params) {
|
export function changeSysAdministratorRoles(params) {
|
||||||
return request({
|
return request({
|
||||||
url: `/sys/administrator/change_roles/${params.id}/${params.roles}`,
|
url: `/sys/administrator/change_roles/${params.id}/${params.roles}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// APP权限列表
|
// APP权限列表
|
||||||
export function getAdministratorAuthTable() {
|
export function getAdministratorAuthTable() {
|
||||||
return request({
|
return request({
|
||||||
url: '/sys/administrator/auth/resource',
|
url: "/sys/administrator/auth/resource",
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function deleteAdministratorAuth(id) {
|
export function deleteAdministratorAuth(id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/sys/administrator/auth/resource/delete/${id}`,
|
url: `/sys/administrator/auth/resource/delete/${id}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function updateAdministratorAuth(data) {
|
export function updateAdministratorAuth(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sys/administrator/auth/resource',
|
url: "/sys/administrator/auth/resource",
|
||||||
method: 'put',
|
method: "put",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function addAdministratorAuth(data) {
|
export function addAdministratorAuth(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sys/administrator/auth/resource',
|
url: "/sys/administrator/auth/resource",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取用户选中的权限信息
|
// 获取用户选中的权限信息
|
||||||
export function getSysAdministratorAuthResourceByUserId(userId) {
|
export function getSysAdministratorAuthResourceByUserId(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/sys/administrator/auth/resource/select/${userId}`,
|
url: `/sys/administrator/auth/resource/select/${userId}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改权限
|
// 修改权限
|
||||||
export function deleteAndAddAdministratorAuth(data) {
|
export function deleteAndAddAdministratorAuth(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sys/administrator/auth',
|
url: "/sys/administrator/auth",
|
||||||
method: 'put',
|
method: "put",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取用户的设备信息
|
// 获取用户的设备信息
|
||||||
export function getUserImei(id) {
|
export function getUserImei(id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/base/info/user/imei/${id}`,
|
url: `/user/base/info/user/imei/${id}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取用户的最新设备信息
|
// 获取用户的最新设备信息
|
||||||
export function getDeviceByUserId(userId) {
|
export function getDeviceByUserId(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/base/info/device/${userId}`,
|
url: `/user/base/info/device/${userId}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 用户最新设备列表
|
// 用户最新设备列表
|
||||||
export function getUserDeviceTable(params) {
|
export function getUserDeviceTable(params) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/latest/mobile/device/page`,
|
url: `/user/latest/mobile/device/page`,
|
||||||
method: 'get',
|
method: "get",
|
||||||
params
|
params
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 货运代理账户分页列表
|
// 货运代理账户分页列表
|
||||||
export function pageFreight(params) {
|
export function pageFreight(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/freight/page',
|
url: "/freight/page",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params
|
params
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 发货给代理账户
|
// 发货给代理账户
|
||||||
export function shipFreight(data) {
|
export function shipFreight(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/freight/ship',
|
url: "/freight/ship",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 代理账户扣除货款
|
// 代理账户扣除货款
|
||||||
export function deductionFreight(data) {
|
export function deductionFreight(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/freight/deduction',
|
url: "/freight/deduction",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 货运流水列表
|
// 货运流水列表
|
||||||
export function pageRunningWater(params) {
|
export function pageRunningWater(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/freight/running-water-page',
|
url: "/freight/running-water-page",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params
|
params
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 货运流水列表-导出
|
// 货运流水列表-导出
|
||||||
export function exportFreightWaters(params, excelName) {
|
export function exportFreightWaters(params, excelName) {
|
||||||
return httpGetExport('/freight/running-water/export', params, excelName)
|
return httpGetExport("/freight/running-water/export", params, excelName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 货运流水列表
|
// 货运流水列表
|
||||||
export function pageFreightSellerRunningWater(params) {
|
export function pageFreightSellerRunningWater(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/freight/freight-seller-running-water-page',
|
url: "/freight/freight-seller-running-water-page",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params
|
params
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 切换关闭账号状态
|
// 切换关闭账号状态
|
||||||
export function switchStatusFreight(id, status) {
|
export function switchStatusFreight(id, status) {
|
||||||
return request({
|
return request({
|
||||||
url: `/freight/switch-status/${id}/${status}`,
|
url: `/freight/switch-status/${id}/${status}`,
|
||||||
method: 'post'
|
method: "post"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 切换显示/不显示,在H5页面显示账号信息
|
// 切换显示/不显示,在H5页面显示账号信息
|
||||||
export function showStatusFreight(id, status) {
|
export function showStatusFreight(id, status) {
|
||||||
return request({
|
return request({
|
||||||
url: `/freight/show-status/${id}/${status}`,
|
url: `/freight/show-status/${id}/${status}`,
|
||||||
method: 'post'
|
method: "post"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 是否经销商切换
|
// 是否经销商切换
|
||||||
export function switchStatusDealer(id, status) {
|
export function switchStatusDealer(id, status) {
|
||||||
return request({
|
return request({
|
||||||
url: `/freight/switch-dealer-status/${id}/${status}`,
|
url: `/freight/switch-dealer-status/${id}/${status}`,
|
||||||
method: 'post'
|
method: "post"
|
||||||
})
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 是否超级经销商切换
|
||||||
|
export function switchStatusSuperDealer(id, status) {
|
||||||
|
return request({
|
||||||
|
url: `/freight/switch-superdealer-status/${id}/${status}`,
|
||||||
|
method: "post"
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 经销商卖家列表
|
// 经销商卖家列表
|
||||||
export function pageFreightSeller(params) {
|
export function pageFreightSeller(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/freight-seller/page',
|
url: "/freight-seller/page",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params
|
params
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改经销商卖家数量
|
// 修改经销商卖家数量
|
||||||
export function updateSellerQuantity(data) {
|
export function updateSellerQuantity(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/freight/update-seller-quantity',
|
url: "/freight/update-seller-quantity",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除经销商卖家
|
// 删除经销商卖家
|
||||||
export function removeFreightSeller(id) {
|
export function removeFreightSeller(id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/freight-seller/delete/${id}`,
|
url: `/freight-seller/delete/${id}`,
|
||||||
method: 'delete'
|
method: "delete"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取指定用户运行资料
|
// 获取指定用户运行资料
|
||||||
export function getUserRunProfileById(userId) {
|
export function getUserRunProfileById(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user-run-profile/${userId}`,
|
url: `/user-run-profile/${userId}`,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 移除用户运行资料
|
// 移除用户运行资料
|
||||||
export function removeUserRunProfileById(userId) {
|
export function removeUserRunProfileById(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user-run-profile/${userId}`,
|
url: `/user-run-profile/${userId}`,
|
||||||
method: 'delete'
|
method: "delete"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取扩展信息
|
// 获取扩展信息
|
||||||
export function getUserExpend(userId) {
|
export function getUserExpend(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/expand',
|
url: "/user/expand",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params: { userId }
|
params: { userId }
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获得认证详情
|
// 获得认证详情
|
||||||
export function getUserAuthTypeDetails(userId) {
|
export function getUserAuthTypeDetails(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/auth/type/details/' + userId,
|
url: "/user/auth/type/details/" + userId,
|
||||||
method: 'get',
|
method: "get",
|
||||||
params: { userId }
|
params: { userId }
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改绑定手机认证信息
|
// 修改绑定手机认证信息
|
||||||
export function editUserMobileAuth(data) {
|
export function editUserMobileAuth(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/auth/type/edit/mobile-auth',
|
url: "/user/auth/type/edit/mobile-auth",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除绑定手机认证信息
|
// 删除绑定手机认证信息
|
||||||
export function deleteUserMobileAuth(userId) {
|
export function deleteUserMobileAuth(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/auth/type/delete/mobile-auth/' + userId,
|
url: "/user/auth/type/delete/mobile-auth/" + userId,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 重置用户账号密码登录信息
|
// 重置用户账号密码登录信息
|
||||||
export function initUserAccountLogin(userId) {
|
export function initUserAccountLogin(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/auth/type/init/account-auth/' + userId,
|
url: "/user/auth/type/init/account-auth/" + userId,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
// 删除用户账号密码登录信息
|
// 删除用户账号密码登录信息
|
||||||
export function deleteUserAccountLogin(userId) {
|
export function deleteUserAccountLogin(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/auth/type/delete/account-auth/' + userId,
|
url: "/user/auth/type/delete/account-auth/" + userId,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 重置用户支付密码
|
// 重置用户支付密码
|
||||||
export function initUserPayAuth(userId) {
|
export function initUserPayAuth(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/auth/type/init/pay-auth/' + userId,
|
url: "/user/auth/type/init/pay-auth/" + userId,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
// 删除用户支付密码
|
// 删除用户支付密码
|
||||||
export function deleteUserPayAuth(userId) {
|
export function deleteUserPayAuth(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/auth/type/delete/pay-auth/' + userId,
|
url: "/user/auth/type/delete/pay-auth/" + userId,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
// 获取用户vip实际权益信息
|
// 获取用户vip实际权益信息
|
||||||
export function getUserVipEquity(userId) {
|
export function getUserVipEquity(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/base/info/user/vip/equity/' + userId,
|
url: "/user/base/info/user/vip/equity/" + userId,
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 用户身份信息
|
// 用户身份信息
|
||||||
export function getUserIdentity(userId) {
|
export function getUserIdentity(userId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/base/info/' + userId + '/identity',
|
url: "/user/base/info/" + userId + "/identity",
|
||||||
method: 'get'
|
method: "get"
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 用户认证身份信息
|
// 用户认证身份信息
|
||||||
export function getUserBankIdentityInfo(params) {
|
export function getUserBankIdentityInfo(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/bank-identity-info/page',
|
url: "/user/bank-identity-info/page",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params
|
params
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
// 用户认证身份信息审核
|
// 用户认证身份信息审核
|
||||||
export function auditUserBankIdentityInfo(data) {
|
export function auditUserBankIdentityInfo(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/bank-identity-info',
|
url: "/user/bank-identity-info",
|
||||||
method: 'put',
|
method: "put",
|
||||||
data
|
data
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 用户认证身份信息-导出
|
// 用户认证身份信息-导出
|
||||||
export function exportUserBankIdentityInfo(params, excelName) {
|
export function exportUserBankIdentityInfo(params, excelName) {
|
||||||
return httpGetExport('/user/bank-identity-info/export', params, excelName)
|
return httpGetExport("/user/bank-identity-info/export", params, excelName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 用户钻石流水列表
|
// 用户钻石流水列表
|
||||||
export function pageUserDiamondRunWater(params) {
|
export function pageUserDiamondRunWater(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/diamond/run/water/page',
|
url: "/user/diamond/run/water/page",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params
|
params
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 用户钻石余额列表
|
// 用户钻石余额列表
|
||||||
export function pageUserDiamondBalance(params) {
|
export function pageUserDiamondBalance(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/diamond/balance/page',
|
url: "/user/diamond/balance/page",
|
||||||
method: 'get',
|
method: "get",
|
||||||
params
|
params
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,10 +15,8 @@
|
|||||||
:value="item.value"
|
:value="item.value"
|
||||||
>
|
>
|
||||||
<span style="float: left;">
|
<span style="float: left;">
|
||||||
<sys-origin-icon
|
<sys-origin-icon :icon="item.value" :desc="item.value"
|
||||||
:icon="item.value"
|
/></span>
|
||||||
:desc="item.value"
|
|
||||||
/></span>
|
|
||||||
<span style="float: left;margin-left:10px">{{ item.label }}</span>
|
<span style="float: left;margin-left:10px">{{ item.label }}</span>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
@ -162,7 +160,12 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column width="200" label="经销商" align="center" min-width="100">
|
<el-table-column
|
||||||
|
width="200"
|
||||||
|
label="经销商"
|
||||||
|
align="center"
|
||||||
|
min-width="100"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="scope.row.dealer"
|
v-model="scope.row.dealer"
|
||||||
@ -172,12 +175,41 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="sellerQuantity" width="200" label="授权卖家数量" align="center" min-width="100">
|
<el-table-column
|
||||||
|
width="200"
|
||||||
|
label="超级经销商"
|
||||||
|
align="center"
|
||||||
|
min-width="100"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="text" @click="showSellerInfo(scope.row)"> {{ scope.row.sellerQuantity }}</el-button>
|
<el-switch
|
||||||
|
v-model="scope.row.superDealer"
|
||||||
|
:active-value="true"
|
||||||
|
:inactive-value="false"
|
||||||
|
@change="switchChangeSuperDealer(scope.row)"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="realSellerQuantity" width="200" label="已授权卖家数量" align="center" min-width="100">
|
<el-table-column
|
||||||
|
prop="sellerQuantity"
|
||||||
|
width="200"
|
||||||
|
label="授权卖家数量"
|
||||||
|
align="center"
|
||||||
|
min-width="100"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button type="text" @click="showSellerInfo(scope.row)">
|
||||||
|
{{ scope.row.sellerQuantity }}</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="realSellerQuantity"
|
||||||
|
width="200"
|
||||||
|
label="已授权卖家数量"
|
||||||
|
align="center"
|
||||||
|
min-width="100"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.realSellerQuantity }}
|
{{ scope.row.realSellerQuantity }}
|
||||||
</template>
|
</template>
|
||||||
@ -205,18 +237,15 @@
|
|||||||
<el-table-column fixed="right" label="操作" align="center" width="140">
|
<el-table-column fixed="right" label="操作" align="center" width="140">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- <el-button type="text" @click="clickChip(scope.row)">发货</el-button> -->
|
<!-- <el-button type="text" @click="clickChip(scope.row)">发货</el-button> -->
|
||||||
<el-button
|
<el-button type="text" @click="showGoldInputBox(scope.row, true)"
|
||||||
type="text"
|
>发货</el-button
|
||||||
@click="showGoldInputBox(scope.row, true)"
|
>
|
||||||
>发货</el-button>
|
<el-button type="text" @click="showGoldInputBox(scope.row, false)"
|
||||||
<el-button
|
>扣款</el-button
|
||||||
type="text"
|
>
|
||||||
@click="showGoldInputBox(scope.row, false)"
|
<el-button type="text" @click="runningWaterVisible = true"
|
||||||
>扣款</el-button>
|
>流水</el-button
|
||||||
<el-button
|
>
|
||||||
type="text"
|
|
||||||
@click="runningWaterVisible = true"
|
|
||||||
>流水</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -268,13 +297,14 @@
|
|||||||
:placeholder="'请输入' + (type ? '发货' : '扣款') + '金币数量'"
|
:placeholder="'请输入' + (type ? '发货' : '扣款') + '金币数量'"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="type==true" label="金额" prop="amount">
|
<el-form-item v-if="type == true" label="金额" prop="amount">
|
||||||
<el-input
|
<el-input v-model.trim="formData.amount" placeholder="请输入金额" />
|
||||||
v-model.trim="formData.amount"
|
|
||||||
placeholder="请输入金额"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="type==true" label="充值类型" prop="rechargeType">
|
<el-form-item
|
||||||
|
v-if="type == true"
|
||||||
|
label="充值类型"
|
||||||
|
prop="rechargeType"
|
||||||
|
>
|
||||||
<el-select
|
<el-select
|
||||||
v-model.trim="formData.rechargeType"
|
v-model.trim="formData.rechargeType"
|
||||||
placeholder="充值类型"
|
placeholder="充值类型"
|
||||||
@ -319,21 +349,22 @@ import {
|
|||||||
deductionFreight,
|
deductionFreight,
|
||||||
switchStatusFreight,
|
switchStatusFreight,
|
||||||
showStatusFreight,
|
showStatusFreight,
|
||||||
switchStatusDealer
|
switchStatusDealer,
|
||||||
} from '@/api/app-user'
|
switchStatusSuperDealer
|
||||||
import Pagination from '@/components/Pagination'
|
} from "@/api/app-user";
|
||||||
import FormEdit from './form-edit'
|
import Pagination from "@/components/Pagination";
|
||||||
import RunningWater from './running-water'
|
import FormEdit from "./form-edit";
|
||||||
import SellerInfo from './seller-info'
|
import RunningWater from "./running-water";
|
||||||
import { mapGetters } from 'vuex'
|
import SellerInfo from "./seller-info";
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'UserPropsTable',
|
name: "UserPropsTable",
|
||||||
components: { Pagination, FormEdit, RunningWater, SellerInfo },
|
components: { Pagination, FormEdit, RunningWater, SellerInfo },
|
||||||
data() {
|
data() {
|
||||||
const commonRules = [
|
const commonRules = [
|
||||||
{ required: true, message: '必填字段', trigger: 'blur' }
|
{ required: true, message: "必填字段", trigger: "blur" }
|
||||||
]
|
];
|
||||||
|
|
||||||
return {
|
return {
|
||||||
runningWaterVisible: false,
|
runningWaterVisible: false,
|
||||||
@ -345,31 +376,31 @@ export default {
|
|||||||
goldInputBoxVisible: false,
|
goldInputBoxVisible: false,
|
||||||
// true:发货 false:扣除
|
// true:发货 false:扣除
|
||||||
type: false,
|
type: false,
|
||||||
thatSelectedUserId: '',
|
thatSelectedUserId: "",
|
||||||
list: [],
|
list: [],
|
||||||
total: 0,
|
total: 0,
|
||||||
listQuery: {
|
listQuery: {
|
||||||
cursor: 1,
|
cursor: 1,
|
||||||
limit: 20,
|
limit: 20,
|
||||||
close: false,
|
close: false,
|
||||||
dealer: '',
|
dealer: "",
|
||||||
startTime: '',
|
startTime: "",
|
||||||
endTime: ''
|
endTime: ""
|
||||||
},
|
},
|
||||||
formData: {
|
formData: {
|
||||||
userId: '',
|
userId: "",
|
||||||
earnPoints: '',
|
earnPoints: "",
|
||||||
sysOrigin: '',
|
sysOrigin: "",
|
||||||
amount: '',
|
amount: "",
|
||||||
rechargeType: '',
|
rechargeType: "",
|
||||||
remark: ''
|
remark: ""
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
userId: commonRules,
|
userId: commonRules,
|
||||||
earnPoints: {
|
earnPoints: {
|
||||||
required: true,
|
required: true,
|
||||||
message: '必填字段不可为空',
|
message: "必填字段不可为空",
|
||||||
trigger: 'blur'
|
trigger: "blur"
|
||||||
},
|
},
|
||||||
amount: commonRules,
|
amount: commonRules,
|
||||||
rechargeType: commonRules,
|
rechargeType: commonRules,
|
||||||
@ -377,147 +408,155 @@ export default {
|
|||||||
},
|
},
|
||||||
listLoading: true,
|
listLoading: true,
|
||||||
formEditVisable: false
|
formEditVisable: false
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['permissionsSysOriginPlatforms'])
|
...mapGetters(["permissionsSysOriginPlatforms"])
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
const that = this
|
const that = this;
|
||||||
const querySystem = this.permissionsSysOriginPlatforms[0]
|
const querySystem = this.permissionsSysOriginPlatforms[0];
|
||||||
if (!querySystem) {
|
if (!querySystem) {
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
that.listQuery.sysOrigin = querySystem.value
|
that.listQuery.sysOrigin = querySystem.value;
|
||||||
that.renderData()
|
that.renderData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleImageUrl(row) {
|
handleImageUrl(row) {
|
||||||
return row.propsCover ? row.propsCover : ''
|
return row.propsCover ? row.propsCover : "";
|
||||||
},
|
},
|
||||||
renderData(isReset) {
|
renderData(isReset) {
|
||||||
const that = this
|
const that = this;
|
||||||
if (isReset === true) {
|
if (isReset === true) {
|
||||||
that.listQuery.cursor = 1
|
that.listQuery.cursor = 1;
|
||||||
}
|
}
|
||||||
that.listLoading = true
|
that.listLoading = true;
|
||||||
pageFreight(that.listQuery)
|
pageFreight(that.listQuery)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
const { body } = res
|
const { body } = res;
|
||||||
that.total = body.total || 0
|
that.total = body.total || 0;
|
||||||
that.list = body.records
|
that.list = body.records;
|
||||||
that.listLoading = false
|
that.listLoading = false;
|
||||||
})
|
})
|
||||||
.catch(er => {
|
.catch(er => {
|
||||||
that.listLoading = false
|
that.listLoading = false;
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
handleSearch() {
|
handleSearch() {
|
||||||
this.renderData(true)
|
this.renderData(true);
|
||||||
},
|
},
|
||||||
handleCreate() {
|
handleCreate() {
|
||||||
this.thatRow = null
|
this.thatRow = null;
|
||||||
this.formEditVisable = true
|
this.formEditVisable = true;
|
||||||
},
|
},
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.$emit('close')
|
this.$emit("close");
|
||||||
},
|
},
|
||||||
handleMouseEnter(row) {
|
handleMouseEnter(row) {
|
||||||
this.thatRow = row
|
this.thatRow = row;
|
||||||
},
|
},
|
||||||
formEditClose() {
|
formEditClose() {
|
||||||
this.formEditVisable = false
|
this.formEditVisable = false;
|
||||||
},
|
},
|
||||||
formEditSuccess() {
|
formEditSuccess() {
|
||||||
this.formEditVisable = false
|
this.formEditVisable = false;
|
||||||
this.renderData()
|
this.renderData();
|
||||||
},
|
},
|
||||||
handleSwitchChange(row) {
|
handleSwitchChange(row) {
|
||||||
switchStatusFreight(row.id, row.close)
|
switchStatusFreight(row.id, row.close)
|
||||||
.then(res => {})
|
.then(res => {})
|
||||||
.catch(er => {
|
.catch(er => {
|
||||||
row.close = !row.close
|
row.close = !row.close;
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
showSwitchChange(row) {
|
showSwitchChange(row) {
|
||||||
showStatusFreight(row.id, row.display)
|
showStatusFreight(row.id, row.display)
|
||||||
.then(res => {})
|
.then(res => {})
|
||||||
.catch(er => {
|
.catch(er => {
|
||||||
row.display = !row.display
|
row.display = !row.display;
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
switchChangeDealer(row) {
|
switchChangeDealer(row) {
|
||||||
switchStatusDealer(row.id, row.dealer)
|
switchStatusDealer(row.id, row.dealer)
|
||||||
.then(res => {})
|
.then(res => {})
|
||||||
.catch(er => {
|
.catch(er => {
|
||||||
row.dealer = !row.dealer
|
row.dealer = !row.dealer;
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
|
switchChangeSuperDealer(row) {
|
||||||
|
switchStatusSuperDealer(row.id, row.superDealer)
|
||||||
|
.then(res => {})
|
||||||
|
.catch(er => {
|
||||||
|
row.superDealer = !row.superDealer;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
showSellerInfo(row) {
|
showSellerInfo(row) {
|
||||||
const that = this
|
const that = this;
|
||||||
console.log('---->')
|
console.log("---->");
|
||||||
that.showSellerInfoVisable = true
|
that.showSellerInfoVisable = true;
|
||||||
this.sellerInfoEditParam = row
|
this.sellerInfoEditParam = row;
|
||||||
},
|
},
|
||||||
sellerInfoClose() {
|
sellerInfoClose() {
|
||||||
this.showSellerInfoVisable = false
|
this.showSellerInfoVisable = false;
|
||||||
this.renderData()
|
this.renderData();
|
||||||
},
|
},
|
||||||
showGoldInputBox(row, type) {
|
showGoldInputBox(row, type) {
|
||||||
const that = this
|
const that = this;
|
||||||
that.type = type
|
that.type = type;
|
||||||
|
|
||||||
that.formData = {
|
that.formData = {
|
||||||
userId: row.userId,
|
userId: row.userId,
|
||||||
earnPoints: '',
|
earnPoints: "",
|
||||||
sysOrigin: row.sysOrigin,
|
sysOrigin: row.sysOrigin,
|
||||||
remark: ''
|
remark: ""
|
||||||
}
|
};
|
||||||
that.goldInputBoxVisible = true
|
that.goldInputBoxVisible = true;
|
||||||
},
|
},
|
||||||
hideGoldInputBox() {
|
hideGoldInputBox() {
|
||||||
const that = this
|
const that = this;
|
||||||
that.goldInputBoxVisible = false
|
that.goldInputBoxVisible = false;
|
||||||
},
|
},
|
||||||
goldSubmit() {
|
goldSubmit() {
|
||||||
const that = this
|
const that = this;
|
||||||
|
|
||||||
that.$refs.form.validate(valid => {
|
that.$refs.form.validate(valid => {
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
console.error('error submit!!')
|
console.error("error submit!!");
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
that.listLoading = true
|
that.listLoading = true;
|
||||||
if (that.type) {
|
if (that.type) {
|
||||||
shipFreight(that.formData)
|
shipFreight(that.formData)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
that.$opsMessage.success()
|
that.$opsMessage.success();
|
||||||
that.goldInputBoxVisible = false
|
that.goldInputBoxVisible = false;
|
||||||
that.listLoading = false
|
that.listLoading = false;
|
||||||
that.renderData()
|
that.renderData();
|
||||||
})
|
})
|
||||||
.catch(er => {
|
.catch(er => {
|
||||||
that.listLoading = false
|
that.listLoading = false;
|
||||||
that.$opsMessage.success()
|
that.$opsMessage.success();
|
||||||
console.error(er)
|
console.error(er);
|
||||||
})
|
});
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
deductionFreight(that.formData)
|
deductionFreight(that.formData)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
that.$opsMessage.success()
|
that.$opsMessage.success();
|
||||||
that.goldInputBoxVisible = false
|
that.goldInputBoxVisible = false;
|
||||||
that.listLoading = false
|
that.listLoading = false;
|
||||||
that.renderData()
|
that.renderData();
|
||||||
})
|
})
|
||||||
.catch(er => {
|
.catch(er => {
|
||||||
that.listLoading = false
|
that.listLoading = false;
|
||||||
that.$opsMessage.success()
|
that.$opsMessage.success();
|
||||||
console.error(er)
|
console.error(er);
|
||||||
})
|
});
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user