Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thinkApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
游洁
thinkApp
Commits
a4d3eb16
Commit
a4d3eb16
authored
Sep 27, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
20346528
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
45 deletions
+76
-45
erp.js
src/api/erp.js
+1
-1
addChild.vue
src/pages/MyChild/addChild.vue
+53
-35
index.vue
src/pages/MyChild/index.vue
+14
-8
orderList.vue
src/pages/contract/orderList.vue
+8
-0
person.vue
src/pages/person/person.vue
+0
-1
No files found.
src/api/erp.js
View file @
a4d3eb16
...
...
@@ -173,7 +173,7 @@ export function GetOrderPage(data) {
*/
export
function
GetStudentPageList
(
data
)
{
return
request
({
url
:
'/
User/GetStudentPageList'
,
url
:
'/
AppletCenter/GetStudentPageList'
,
//'/User/GetStudentPageList'
method
:
'post'
,
data
})
...
...
src/pages/MyChild/addChild.vue
View file @
a4d3eb16
...
...
@@ -103,14 +103,14 @@
<view
class=
"header-text"
>
输入该账号注册的手机号
</view>
<view
class=
"header-input"
>
<van-cell-group>
<van-field
:value=
"msg.StuTel"
placeholder=
"输入手机号"
clearable
input-align=
"center"
@
input=
"usernameInput"
>
</van-field
>
<van-field
type=
"tel"
:value=
"Account"
placeholder=
"输入手机号"
clearable
input-align=
"center"
right-icon=
"search"
@
blur=
"usernameInput"
@
click-icon=
"clickIcon"
/
>
</van-cell-group>
</view>
</view>
<view>
<view
class=
"user-item"
v-for=
"(item,index) in dataList"
:key=
"index"
@
click=
"
item.checked=!item.checked,clickChecked(
)"
>
@
click=
"
clickChecked(item
)"
>
<view
class=
"avatar"
>
{{
item
.
StuName
.
substring
(
0
,
1
)
}}
</view>
...
...
@@ -128,10 +128,10 @@
</view>
</scroll-view>
<view
v-if=
"loading"
class=
"addChild-buttom"
@
click=
"addChild"
>
已选
2
个,确认添加
已选
{{
list
.
length
}}
个,确认添加
</view>
<view
v-else
class=
"addChild-buttom active"
>
已选
2
个,确认添加
已选
{{
list
.
length
}}
个,确认添加
</view>
</view>
...
...
@@ -152,7 +152,7 @@
import
Loadmore
from
"../../components/loadmore.vue"
;
import
bottom
from
"../../components/bottom"
;
import
{
Get
OrderPage
,
GetStudentPageList
Get
StudentPageList
,
SetMyChild
}
from
"../../api/erp"
;
export
default
{
components
:
{
...
...
@@ -166,28 +166,19 @@
let
data
=
reactive
({
loading
:
true
,
Account
:
''
,
form
:{
Id
:
''
,
AccountId
:
''
,
StuId
:
''
,
OpenId
:
''
,
WeChatName
:
''
,
WeChatImg
:
''
,
UnionId
:
''
},
msg
:
{
pageIndex
:
1
,
pageSize
:
10
,
KeyWords
:
""
,
//关键词
StuName
:
""
,
//昵称
StuTel
:
""
,
//电话
CreateBy
:
""
,
//负责人
StuStage
:
""
,
//客户阶段
StartTime
:
""
,
//开始时间
EndTime
:
""
,
//结束时间
QQ
:
''
,
WechatNo
:
''
,
StuType
:
''
,
QStudentStatus
:
1
,
//客户状态 1有效 2无效
AdvisorStatus
:
''
,
//当前状态
StuChannel
:
""
,
CreateIds
:
[],
CreateType
:
""
,
//来源类型
StuSourceId
:
""
,
//来源人编号
CategoryId
:
""
,
//同行编号
School_Id
:
0
,
ClassName
:
""
,
//班级名称
pageSize
:
1000
,
KeyWords
:
''
,
//关键词
},
pageCount
:
0
,
dataList
:
[],
...
...
@@ -196,25 +187,50 @@
timer
:
null
,
//防抖
});
const
methods
=
{
clickChecked
(){
data
.
dataList
.
forEach
(
item
=>
{
if
(
item
.
checked
){
data
.
list
.
push
(
item
)
clickChecked
(
item
){
data
.
dataList
.
forEach
(
i
=>
{
i
.
checked
=
false
if
(
item
.
StuId
==
i
.
StuId
){
data
.
list
.
push
(
i
)
}
})
item
.
checked
=
true
data
.
form
=
{
Id
:
item
.
Id
,
AccountId
:
item
.
AccountId
,
StuId
:
item
.
StuId
,
OpenId
:
item
.
OpenId
,
WeChatName
:
item
.
WeChatName
,
WeChatImg
:
item
.
WeChatImg
,
UnionId
:
item
.
UnionId
}
},
clickIcon
(){
that
.
getData
()
},
usernameInput
(
val
)
{
data
.
msg
.
StuTel
=
val
.
detail
;
data
.
msg
.
KeyWords
=
val
.
detail
.
value
that
.
getData
()
},
addChild
(){
async
addChild
(){
if
(
!
data
.
form
.
Id
){
uni
.
showToast
({
title
:
'请选择需要添加的小孩'
,
icon
:
'none'
,
duration
:
1000
})
return
}
data
.
loading
=
false
setTimeout
(()
=>
{
data
.
loading
=
true
uni
.
showLoading
()
let
res
=
await
SetMyChild
(
data
.
form
);
if
(
res
)
{
uni
.
hideLoading
()
data
.
loading
=
true
uni
.
navigateBack
({
delta
:
1
});
},
2000
)
}
},
async
getData
()
{
uni
.
showLoading
()
...
...
@@ -229,6 +245,8 @@
};
addList
(
data
);
if
(
data
.
timer
)
data
.
timer
=
null
;
data
.
dataList
=
res
.
Data
&&
res
.
Data
.
PageData
;
return
if
(
data
.
msg
.
pageIndex
===
1
)
{
data
.
dataList
=
res
.
Data
&&
res
.
Data
.
PageData
;
}
else
{
...
...
src/pages/MyChild/index.vue
View file @
a4d3eb16
...
...
@@ -199,11 +199,8 @@
}
from
"vue"
;
import
Loadmore
from
"../../components/loadmore.vue"
;
import
bottom
from
"../../components/bottom"
;
// import {
// MyChildList
// } from "../../api/index";
import
{
MyChildList
MyChildList
,
RemoveMyChild
}
from
"../../api/erp"
;
export
default
{
components
:
{
...
...
@@ -248,11 +245,17 @@
DelData
(
item
){
uni
.
showModal
({
title
:
'提示'
,
content
:
'将要删除数据,是否继续'
,
content
:
'将要删除
该
数据,是否继续'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
let
Msg
=
{
uni
.
showLoading
()
let
msg
=
{
Id
:
item
.
Id
}
let
res
=
RemoveMyChild
(
msg
);
if
(
res
)
{
uni
.
hideLoading
()
that
.
getData
()
}
}
else
if
(
res
.
cancel
)
{
...
...
@@ -293,7 +296,7 @@
};
let
that
=
methods
;
onMounted
(()
=>
{
that
.
getData
()
});
return
{
...
toRefs
(
data
),
...
...
@@ -305,6 +308,9 @@
// title: this.pageTitle
// });
},
onShow
(){
this
.
getData
()
},
onReachBottom
()
{
if
(
this
.
msg
.
pageIndex
<
this
.
pageCount
)
{
data
.
pageState
=
"loading"
;
...
...
src/pages/contract/orderList.vue
View file @
a4d3eb16
...
...
@@ -102,6 +102,10 @@
text-overflow
:
ellipsis
;
max-width
:
100%
}
.diNum
{
color
:
#111111
;
margin-top
:
10
rpx
;
}
/* image {
width: 20px;
...
...
@@ -131,6 +135,7 @@
{{
item
.
GuestName
}}
</view>
<view
class=
"di"
>
学员
</view>
<view
class=
"diNum"
>
应收:
{{
item
.
PreferPrice
}}
</view>
</view>
<view
class=
"p-lc-item"
>
<view>
总课时
</view>
...
...
@@ -138,6 +143,7 @@
{{
item
.
TotalHours
}}
</view>
<view
class=
"di"
>
课时
</view>
<view
class=
"diNum"
>
实收:
{{
item
.
Income
}}
</view>
</view>
<view
class=
"p-lc-item"
style=
"display: none;"
>
<view>
完成课时
</view>
...
...
@@ -145,6 +151,7 @@
{{
item
.
CompleteHours
}}
</view>
<view
class=
"di"
>
课时
</view>
</view>
<view
class=
"p-lc-item"
>
<view>
状态
</view>
...
...
@@ -168,6 +175,7 @@
<text
class=
"di"
v-if=
"item.OrderState==3"
>
取消
</text>
<text
class=
"di"
v-if=
"item.OrderState==4"
>
待付款
</text>
</view>
<view
class=
"diNum"
>
剩余:
{{
item
.
SurplusMoney
}}
</view>
</view>
</view>
</view>
...
...
src/pages/person/person.vue
View file @
a4d3eb16
...
...
@@ -129,7 +129,6 @@
<view
class=
"Grade"
style=
"margin-bottom:20rpx"
v-if=
"item.ClassScrollType!==2"
>
{{
item
.
ClassName
}}
</view>
<view
class=
"Grade"
>
等级:
{{
item
.
CourseRate
||
''
}}
</view>
<view><text
class=
"Grade"
>
状态:
</text>
<text
class=
"StatusName"
v-if=
"item.TotalHours>item.CompleteHours"
>
学习中
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment