From dc36257ff892391a6ad32f151340ec0760e78496 Mon Sep 17 00:00:00 2001
From: 吴文康 <2926542760@qq.com>
Date: Sat, 19 Feb 2022 19:26:09 +0800
Subject: [PATCH] 后端页面
---
src/api/Partner.js | 9 ++++++++-
src/api/ReservationSettings.js | 8 ++++++++
src/api/RobotReservation.js | 8 ++++++++
src/api/incomeDetails.js | 11 +++++++++++
src/api/user.js | 35 ++++++++++++++++++++++++++++++++++-
src/components/Breadcrumb/index.vue | 4 ++--
src/icons/logo.jpg | Bin 0 -> 15834 bytes
src/layout/components/Navbar.vue | 18 ++++++++++--------
src/layout/components/Sidebar/Logo.vue | 2 +-
src/router/index.js | 125 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------
src/views/AdminManage/AdminManage.vue | 2 +-
src/views/appointment/appointment.vue | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------
src/views/comment/comment.vue | 1 +
src/views/externalInfo/externalInfo.vue | 70 +++++++++++++++++++++++++++++++++++++++++++++++-----------------------
src/views/login/index.vue | 9 ++++-----
src/views/moneys/moneys.vue | 128 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------
src/views/partner/partner.vue | 65 ++++++++++++++++++++++++++++++++++++++++++++++-------------------
src/views/proportion/proportion.vue | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
src/views/record/record.vue | 34 +++++++++++++++++++---------------
src/views/system/calendar.vue | 53 ++++++++++++++++++++++++++++++++++++++++++++++-------
src/views/system/missionNum.vue | 4 ++--
src/views/system/robot.vue | 18 ++++++++++--------
src/views/system/updpassword.vue | 2 +-
src/views/user/index.vue | 538 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------
src/views/user/managerTable.vue | 14 ++++++++++++--
25 files changed, 1091 insertions(+), 264 deletions(-)
create mode 100644 src/api/incomeDetails.js
create mode 100644 src/icons/logo.jpg
create mode 100644 src/views/proportion/proportion.vue
diff --git a/src/api/Partner.js b/src/api/Partner.js
index 2715364..6b83f4b 100644
--- a/src/api/Partner.js
+++ b/src/api/Partner.js
@@ -1,7 +1,14 @@
import request from '@/utils/request'
import utils from '../utils/utils.js'
-
+//修改合伙人状态
+export function UpdatePartner(data){
+ return request({
+ url:'/Partner/UpdatePartner',
+ method:'post',
+ data
+ })
+}
//根据ID查询合伙人信息
export function GetPartnerById(data) {
return request({
diff --git a/src/api/ReservationSettings.js b/src/api/ReservationSettings.js
index b481613..5c3bb2d 100644
--- a/src/api/ReservationSettings.js
+++ b/src/api/ReservationSettings.js
@@ -1,5 +1,13 @@
import request from '@/utils/request'
+//移除时间段的时间
+export function RemoveDateSection(data){
+ return request({
+ url:'/ReservationSettings/RemoveDateSection',
+ method:'post',
+ data
+ })
+}
// 设置可预约信息
export function SettingReservation(params) {
return request({
diff --git a/src/api/RobotReservation.js b/src/api/RobotReservation.js
index 71f1468..d351b22 100644
--- a/src/api/RobotReservation.js
+++ b/src/api/RobotReservation.js
@@ -45,4 +45,12 @@ export function CreateRobot(data){
method:'post',
data
})
+}
+//修改滚屏预约状态
+export function UpdReservationStatus(data){
+ return request({
+ url:'/RobotReservation/UpdReservationStatus',
+ method:'post',
+ data
+ })
}
\ No newline at end of file
diff --git a/src/api/incomeDetails.js b/src/api/incomeDetails.js
new file mode 100644
index 0000000..45cc47a
--- /dev/null
+++ b/src/api/incomeDetails.js
@@ -0,0 +1,11 @@
+import request from '@/utils/request'
+import utils from '../utils/utils.js'
+// 查询所有分成数据
+export function GetListIncomeDetails(data){
+ return request({
+ url:'/IncomeDetails/GetListIncomeDetails',
+ method:'post',
+ data
+ })
+}
+
diff --git a/src/api/user.js b/src/api/user.js
index 92b8778..708cfc5 100644
--- a/src/api/user.js
+++ b/src/api/user.js
@@ -1,7 +1,31 @@
import request from '@/utils/request'
import utils from '../utils/utils.js'
+//根据userid修改VIP特权次数
+export function UpdVipNum(data){
+ return request({
+ url:`/Users/UpdVipNum?${utils.ObjectToQureyParams(data)}`,
+ method:'post',
+ data
+ })
+}
+//查询用户数据包含车辆信息
+export function GetUserByCar(data){
+ return request({
+ url:'/Users/GetUserByCar',
+ method:'post',
+ data
+ })
+}
+//根据用户ID查询下级数据
+export function GetUserListByInviteeUserId(data){
+ return request({
+ url:'/Users/GetUserList',
+ method:'post',
+ data
+ })
+}
//修改密码
@@ -38,9 +62,18 @@ export function DelAdmin(data){
}
-// 最新修改固定单量 经理专员
+// 预约结算修改单量
export function UpdateNum(data){
return request({
+ url:'/Users/UpdateNum',
+ method:'post',
+ data
+ })
+}
+
+// 设置经理专员单量
+export function UpdateNumS(data){
+ return request({
url:'/Num/UpdateNum',
method:'post',
data
diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue
index 29f9a04..9263198 100644
--- a/src/components/Breadcrumb/index.vue
+++ b/src/components/Breadcrumb/index.vue
@@ -33,7 +33,7 @@ export default {
const first = matched[0]
if (!this.isDashboard(first)) {
- matched = [{ path: '/dashboard', meta: { title: 'Dashboard' }}].concat(matched)
+ matched = [{ path: '/dashboard', meta: { title: '首页' }}].concat(matched)
}
this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)
@@ -43,7 +43,7 @@ export default {
if (!name) {
return false
}
- return name.trim().toLocaleLowerCase() === 'Dashboard'.toLocaleLowerCase()
+ return name.trim().toLocaleLowerCase() === '首页'.toLocaleLowerCase()
},
pathCompile(path) {
// To solve this problem https://github.com/PanJiaChen/vue-element-admin/issues/561
diff --git a/src/icons/logo.jpg b/src/icons/logo.jpg
new file mode 100644
index 0000000..ee890af
Binary files /dev/null and b/src/icons/logo.jpg differ
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 0ca5cf6..dc78710 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -7,23 +7,23 @@
diff --git a/src/views/appointment/appointment.vue b/src/views/appointment/appointment.vue
index 32e1e11..56611ac 100644
--- a/src/views/appointment/appointment.vue
+++ b/src/views/appointment/appointment.vue
@@ -2,8 +2,8 @@
-
-
+
+
@@ -55,6 +55,16 @@
{{scope.row.UserPhone}}
+
+
+ {{scope.row.BeiYongPhone}}
+
+
+
+
+ {{scope.row.Full_Name}}
+
+
@@ -122,9 +132,9 @@
编辑
-
+
- 删除
+ 删除
预约结算
@@ -134,7 +144,7 @@
修改状态
-->
-
+
预约结算
@@ -218,7 +228,11 @@
import {
UpdnowNum,
SendPaymentAppointment,
+ UpdVipNum
} from '../../api/user.js'
+ import {
+ UpdReservationStatus
+ } from '../../api/RobotReservation.js'
import utils from '../../utils/utils.js'
import {
ReservationAreaList
@@ -226,7 +240,6 @@
export default {
data() {
return {
-
form: {
"id": 0,
"ReservationId": 0,
@@ -252,13 +265,14 @@
ids: 0
},
model: {
+ "UserId": 0,
"State": '-1',
"startdate": "",
"enddate": "",
"KeyWord": "",
"TotalCount": 0,
"PageIndex": 1,
- "PageSize": 10,
+ "PageSize": 20,
"Sort": [{
"Field": "MakeTime",
"Type": 1
@@ -272,6 +286,18 @@
paramModel: {
"param": "",
"mobile": ""
+ },
+ // 修改滚屏预约状态
+ UpdRobot: {
+ "userName": "",
+ "ReservationStatus": ""
+ },
+ // 导出Excel参数
+ ExcelModel: {
+ "startdate": "",
+ "enddate": "",
+ "UserId": 0,
+ "State": -1
}
}
},
@@ -281,7 +307,11 @@
methods: {
//导出
onSubmit() {
- deriveExcel(null).then(res => {
+ this.ExcelModel.startdate=this.model.startdate
+ this.ExcelModel.enddate=this.model.enddate
+ this.ExcelModel.State=this.model.State
+ this.ExcelModel.UserId=this.model.UserId
+ deriveExcel(this.ExcelModel).then(res => {
console.log('导出数据', res)
if (res.data.code == 200) {
this.$message.success('导出成功')
@@ -305,9 +335,11 @@
document.body.removeChild(a); // 删除 a 标签
},
// 完成预约线下收款
- async Results(item) {
+ async Results(item) {
+ console.log('预约结算数据', item)
Collection(item.id).then(res => {
this.$message.success(res.data.message)
+ this.UpdRobotReservation(item)
// 完成单数
UpdnowNum(item.UserId).then(res => {
console.log('修改后的数据单量', res)
@@ -317,6 +349,17 @@
console.log('单量完成失败')
}
})
+ // 修改VIP
+ let models = {
+ UserId: item.UserId
+ }
+ UpdVipNum(models).then(res => {
+ if (res.data.code == 200) {
+ console.log('特权次数已用')
+ } else {
+ console.log('特权次数未用')
+ }
+ })
// 付款时间
UpdResultTime(item.id).then(res => {
if (res.data.code == 200) {
@@ -326,7 +369,7 @@
}
})
// 发送短信
- this.paramModel.mobile=item.UserPhone
+ this.paramModel.mobile = item.UserPhone
SendPaymentAppointment(this.paramModel).then(res => {
console.log('付款数据啊', res)
if (res.data.data.code == '000000') {
@@ -335,11 +378,24 @@
console.log('发送短信失败')
}
})
- console.log('付款参数',this.paramModel)
+ console.log('付款参数', this.paramModel)
this.ShowRecord()
})
},
+ // // 添加滚动设置
+ UpdRobotReservation(item) {
+ this.UpdRobot.userName = item.UserName
+ this.UpdRobot.ReservationStatus = '已完成'
+ UpdReservationStatus(this.UpdRobot).then(res => {
+ console.log('数据', res)
+ if (res.data.code == 200) {
+ console.log('修改完毕')
+ } else {
+ console.log('修改失败')
+ }
+ })
+ },
EidtRecord(item) {
this.dialogVisible = true
console.log('item', item)
@@ -374,20 +430,20 @@
ShowRecord() {
GetAppointmentRecord(this.model).then(res => {
console.log(res)
- if(res.data.data.total>0){
+ if (res.data.data.total > 0) {
this.$message.success('查询成功')
res.data.data.rows.forEach((item, index) => {
item.AddTime = utils.formatTime(item.AddTime, "yyyy-MM-dd")
item.UpdateTime = utils.formatTime(item.UpdateTime, "yyyy-MM-dd")
item.MakeTime = utils.formatTime(item.MakeTime, "yyyy-MM-dd")
})
-
+
this.tableData = res.data.data.rows
this.model.TotalCount = res.data.data.total
- }else{
+ } else {
this.$message.error('暂无数据')
}
-
+
})
},
// 状态查询预约情况
diff --git a/src/views/comment/comment.vue b/src/views/comment/comment.vue
index 9fe3678..178555d 100644
--- a/src/views/comment/comment.vue
+++ b/src/views/comment/comment.vue
@@ -381,6 +381,7 @@
diff --git a/src/views/record/record.vue b/src/views/record/record.vue
index 94f2c6a..ae1bb75 100644
--- a/src/views/record/record.vue
+++ b/src/views/record/record.vue
@@ -12,37 +12,38 @@
-
+
{{scope.row.id}}
-
+
- {{scope.row.getUser}}
+ {{scope.row.remark}}
-
+
- {{scope.row.getNum}}
+ {{scope.row.getUser}}
-
+
- {{scope.row.remark}}
+ {{scope.row.getNum}}
-
+
+
{{scope.row.add_time}}
-
+
{{scope.row.update_time}}
-
+
{{scope.row.status==0?'正常':'未知'}}
@@ -63,16 +64,19 @@
+ :total="recordmodel.TotalCount" @current-change="Pages" style="text-align: right;margin-top: 10px;">
-
+
+
+
@@ -106,7 +110,7 @@
rulerecord: {
getUser: [{
required: true,
- message: '请选择用户',
+ message: '请输入用户ID',
trigger: 'blur'
}],
getNum: [{
@@ -198,11 +202,11 @@
AddOrUpdateRecord(this.recordAddUpdModel).then(res=>{
console.log('res返沪',res)
if(res.data.code==200){
- this.$message.success('操作')
+ this.$message.success('操作成功')
this.ShowRecordList()
this.dialogVisible=false
}else{
- this.$message.error('操作失败')
+ this.$message.error('暂无此用户ID')
}
this.recordAddUpdModel.id = 0
this.recordAddUpdModel.getUser = 0
diff --git a/src/views/system/calendar.vue b/src/views/system/calendar.vue
index 81ef81b..357feb2 100644
--- a/src/views/system/calendar.vue
+++ b/src/views/system/calendar.vue
@@ -3,7 +3,8 @@
添加时间
满员修改
-
+ 还原时间
+
{{ data.day.split('-').slice(1).join('-') }}
@@ -13,6 +14,22 @@
+
+
+
+
+
+
+
+
+
+
+
@@ -24,7 +41,7 @@
+ style="width: 100%;">
-
+
- {{scope.row.userName}}
+ {{scope.row.full_name}}
@@ -51,14 +51,13 @@
-
-
-
-
+
+
@@ -95,9 +94,9 @@
return {
dialogVisible: false,
rules: {
- userName: [{
+ full_name: [{
required: true,
- message: '请输入用户名',
+ message: '请输入贵姓',
trigger: 'change'
}, ],
phone: [{
@@ -128,6 +127,7 @@
},
TotalCount: 0,
form: {
+ "full_name":'',
"id": 0,
"userName": "",
"phone": "",
@@ -211,12 +211,14 @@
if (obj == null) {
// 新增
this.form.id = 0
+ this.form.full_name=''
this.form.userName = ''
this.form.phone = ''
this.form.carModel =''
} else {
// 修改
this.form.id = obj.id
+ this.form.full_name=obj.full_name
this.form.userName = obj.userName
this.form.phone = obj.phone
this.form.carModel =obj.carModel
diff --git a/src/views/system/updpassword.vue b/src/views/system/updpassword.vue
index d8ea6d8..140bf0c 100644
--- a/src/views/system/updpassword.vue
+++ b/src/views/system/updpassword.vue
@@ -53,7 +53,7 @@
this.model.oldpassword=''
this.model.newpassword=''
removeToken()
- removeToken()
+ removeUser()
localStorage.removeItem('userRole')
setTimeout(()=>{
this.$router.push({
diff --git a/src/views/user/index.vue b/src/views/user/index.vue
index 9e06371..cd5aa1b 100644
--- a/src/views/user/index.vue
+++ b/src/views/user/index.vue
@@ -1,28 +1,53 @@
-
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+ {{scope.row.ParentUserId}}
+
+
+
+
+
+
+
{{scope.row.id}}
-
+
{{ scope.row.username }}
-
+
{{ scope.row.full_name }}
-
+
{{ scope.row.phone }}
-
+
{{ scope.row.updphone }}
@@ -32,6 +57,49 @@
{{ scope.row.address }}
+
+
+
+
+ {{ scope.row.CarModel }}
+
+
+
+
+ {{ scope.row.CarColour }}
+
+
+
+
+ {{ scope.row.Scratch }}
+
+
+
+
+ {{ scope.row.Corrosion}}
+
+
+
+
+ {{ scope.row.BeDamaged }}
+
+
+
+
+ {{ scope.row.FlyingPaint }}
+
+
+
+
+
+ ¥{{ scope.row.balance/100 }}
+
+
+
+
+ {{scope.row.nowNum }}
+
+
@@ -44,13 +112,11 @@
{{ scope.row.birthday }}
-
+
@@ -78,6 +144,10 @@
+ 查看客户
+
+ 查看专员
+
升级成客户经理
升级成推广专员
@@ -93,9 +163,138 @@
-
+
+
+
+
+ {{scope.row.id}}
+
+
+
+
+ {{ scope.row.username }}
+
+
+
+
+ {{ scope.row.full_name }}
+
+
+
+
+ {{ scope.row.phone }}
+
+
+
+
+ {{ scope.row.updphone }}
+
+
+
+
+ {{ scope.row.address }}
+
+
+
+
+ ¥{{ scope.row.balance/100 }}
+
+
+
+
+ {{scope.row.nowNum }}
+
+
+
+
+
+ {{ scope.row.sex==0?'男':'女'}}
+
+
+
+
+
+ {{ scope.row.birthday }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{scope.row.id}}
+
+
+
+
+ {{ scope.row.username }}
+
+
+
+
+ {{ scope.row.full_name }}
+
+
+
+
+ {{ scope.row.phone }}
+
+
+
+
+ {{ scope.row.updphone }}
+
+
+
+
+ {{ scope.row.address }}
+
+
+
+
+ ¥{{ scope.row.balance/100 }}
+
+
+
+
+ {{scope.row.nowNum }}
+
+
+
+
+
+ {{ scope.row.sex==0?'男':'女'}}
+
+
+
+
+
+ {{ scope.row.birthday }}
+
+
+
+
+
+
+
+
+
@@ -192,7 +391,7 @@
-
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
+
+
+
+ {{scope.row.id}}
+
+
+
+
+ {{ scope.row.username }}
+
+
+
+
+ {{ scope.row.full_name }}
+
+
+
+
+ {{ scope.row.phone }}
+
+
+
+
+ {{ scope.row.updphone }}
+
+
+
+
+ {{ scope.row.address }}
+
+
+
+
+ ¥{{ scope.row.balance/100 }}
+
+
+
+
+ {{scope.row.nowNum }}
+
+
+
+
+
+ {{ scope.row.sex==0?'男':'女'}}
+
+
+
+
+
+ {{ scope.row.birthday }}
+
+
+
+
+
+
+