Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
652551f9
Commit
652551f9
authored
Jul 05, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
47245765
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
activeOrder-form.vue
src/components/sale/activeOrder-form.vue
+16
-11
No files found.
src/components/sale/activeOrder-form.vue
View file @
652551f9
...
...
@@ -21,7 +21,7 @@
</div>
</div>
<div
style=
"padding:20px 15px;"
>
<q-select
standout=
"bg-primary text-white"
v-model=
"OrderMsg.EduStudentId"
class=
"col-12 q-mb-lg"
:options=
"stuList"
<q-select
standout=
"bg-primary text-white"
v-model=
"OrderMsg.EduStudentId"
class=
"col-12 q-mb-lg"
:options=
"stuList"
clearable
emit-value
map-options
label=
"学员"
option-value=
"StuId"
option-label=
"StuName"
@
input=
"stuChange"
/>
<q-input
filled
stack-label
maxlength=
"30"
:dense=
"false"
v-model=
"OrderMsg.LinkMan"
class=
"col-12"
ref=
"LinkMan"
label=
"姓名"
:disable=
"isdisable"
...
...
@@ -103,6 +103,11 @@
}
},
mounted
()
{
let
data
=
JSON
.
parse
(
localStorage
.
getItem
(
"loginUserInfo"
)).
data
this
.
loginId
=
data
.
Id
this
.
OrderMsg
.
EduUserId
=
data
.
Id
this
.
OrderMsg
.
TenantId
=
data
.
JHTenantId
this
.
OrderMsg
.
MallBaseId
=
data
.
JHMallBaseId
console
.
log
(
66
,
this
.
saveObj
)
if
(
this
.
saveObj
){
if
(
this
.
sourceType
===
1
){
...
...
@@ -113,17 +118,14 @@
this
.
OrderMsg
.
ActivityId
=
this
.
saveObj
.
ActivityId
this
.
OrderMsg
.
UnitPrice
=
this
.
saveObj
.
UnitPrice
this
.
OrderMsg
.
EduStudentId
=
this
.
saveObj
.
EduStudentId
// this.OrderMsg.EduUserId=this.saveObj.EduUserIds
}
this
.
OrderMsg
.
LinkMan
=
this
.
saveObj
.
LinkMan
this
.
OrderMsg
.
LinkTel
=
this
.
saveObj
.
LinkTel
this
.
OrderMsg
.
Remark
=
this
.
saveObj
.
Remark
}
let
data
=
JSON
.
parse
(
localStorage
.
getItem
(
"loginUserInfo"
)).
data
this
.
loginId
=
data
.
Id
this
.
OrderMsg
.
EduUserId
=
data
.
JHTenantId
this
.
OrderMsg
.
TenantId
=
data
.
JHTenantId
this
.
OrderMsg
.
MallBaseId
=
data
.
JHMallBaseId
this
.
getStu
();
},
watch
:
{
...
...
@@ -142,14 +144,17 @@
if
(
!
this
.
$refs
.
LinkMan
.
hasError
&&
!
this
.
$refs
.
LinkTel
.
hasError
){
if
(
this
.
saveObj
.
LnsideLimit
===
1
&&!
this
.
OrderMsg
.
EduStudentId
){
this
.
Error
(
"请选择学员"
);
return
// if(this.saveObj.LnsideLimit===1&&!this.OrderMsg.EduStudentId){
// this.Error("请选择学员");
// return
// }
if
(
this
.
OrderMsg
.
EduStudentId
===
null
||!
this
.
OrderMsg
.
EduStudentId
){
this
.
OrderMsg
.
EduStudentId
=
0
}
this
.
OrderMsg
.
Money
=
this
.
OrderMsg
.
UnitPrice
*
this
.
OrderMsg
.
PeopleNum
this
.
apipostDS
(
"/api/Education/SetActivityEnrollInfo"
,
this
.
OrderMsg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
"
报名
成功"
);
this
.
Success
(
"
操作
成功"
);
this
.
closeEditOrder
();
// this.$emit('success');
}
else
{
...
...
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