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
df0651b1
Commit
df0651b1
authored
Jun 24, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
3c4c4212
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
48 deletions
+42
-48
exorder-form.vue
src/components/schedul/exorder-form.vue
+42
-48
No files found.
src/components/schedul/exorder-form.vue
View file @
df0651b1
...
@@ -21,30 +21,28 @@
...
@@ -21,30 +21,28 @@
</div>
</div>
</div>
</div>
<div
style=
"padding:20px 15px;"
>
<div
style=
"padding:20px 15px;"
>
<q-input
filled
stack-label
maxlength=
"100"
:disable=
"true"
:dense=
"false"
@
keyup
.
native=
"checkInteger(OrderMsg,'GuestNum')"
<q-input
filled
stack-label
maxlength=
"100"
:disable=
"true"
:dense=
"false"
v-model=
"OrderMsg.GuestNum"
@
input=
"changePrice(),countPrice()"
class=
"col-12"
label=
"人数
"
@
keyup
.
native=
"checkInteger(OrderMsg,'GuestNum')"
v-model=
"OrderMsg.GuestNum
"
:rules=
"[val => !!val || '请填写人数']"
/>
@
input=
"changePrice(),countPrice()"
class=
"col-12"
label=
"人数"
:rules=
"[val => !!val || '请填写人数']"
/>
<q-select
filled
v-model=
"OrderMsg.ClassId"
class=
"q-pb-lg"
ref=
"ClassId
"
<q-select
filled
v-model=
"OrderMsg.ClassId"
class=
"q-pb-lg"
ref=
"ClassId"
:options=
"classList
"
:options=
"classList"
option-label=
"ClassName"
option-value=
"ClassId"
emit-value
map-options
option-label=
"ClassName"
option-value=
"ClassId"
emit-value
map-options
:rules=
"[val => !!val || '请选择班级']"
:rules=
"[val => !!val || '请选择班级']"
label=
"选择班级"
@
input=
"getClassList(OrderMsg.ClassId)"
/>
label=
"选择班级"
@
input=
"getClassList(OrderMsg.ClassId)"
/>
<q-select
filled
option-value=
"CourseId"
option-label=
"CourseName
"
<q-select
filled
option-value=
"CourseId"
option-label=
"CourseName"
ref=
"CourseId"
v-model=
"OrderMsg.CourseId
"
ref=
"CourseId"
v-model=
"OrderMsg.CourseId"
:options=
"CourseList"
emit-value
map-options
class=
"q-pb-lg
"
:options=
"CourseList"
emit-value
map-options
class=
"q-pb-lg"
:rules=
"[val => !!val || '请选择课程']"
label=
"选择课程
"
:rules=
"[val => !!val || '请选择课程']"
label=
"选择课程"
@
input=
"changePrice"
/>
@
input=
"changePrice"
/>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.Unit_Price"
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.Unit_Price"
:disable=
"IsShowUpPrice==true?false:true"
@
blur=
"countPrice"
class=
"col-12"
label=
"成交单价"
:disable=
"IsShowUpPrice==true?false:true"
@
blur=
"countPrice"
class=
"col-12"
label=
"成交单价"
:rules=
"[val => !!val || '请填成交单价']"
/>
:rules=
"[val => !!val || '请填成交单价']"
/>
<q-toggle
v-model=
"IsShowUpPrice"
label=
"高于定价收生"
class=
"q-mb-md"
/>
<q-toggle
v-model=
"IsShowUpPrice"
label=
"高于定价收生"
class=
"q-mb-md"
/>
<q-input
filled
stack-label
:dense=
"false"
maxlength=
"10"
<q-input
filled
stack-label
:dense=
"false"
maxlength=
"10"
@
keyup
.
native=
"checkPrice(OrderMsg,'PreferPrice')"
@
keyup
.
native=
"checkPrice(OrderMsg,'PreferPrice')"
v-model=
"OrderMsg.PreferPrice"
class=
"col-12 q-pb-lg"
v-model=
"OrderMsg.PreferPrice"
class=
"col-12 q-pb-lg"
label=
"应收"
/>
label=
"应收"
/>
<q-select
standout=
"bg-primary text-white"
option-value=
"Id"
option-label=
"Name"
v-model=
"OrderMsg.OrderSource"
<q-select
standout=
"bg-primary text-white"
option-value=
"Id"
option-label=
"Name"
:options=
"SourceEnumList"
emit-value
map-options
class=
"q-pb-lg"
label=
"客人来源"
/>
v-model=
"OrderMsg.OrderSource"
:options=
"SourceEnumList"
emit-value
map-options
class=
"q-pb-lg"
<q-select
v-model=
"OrderMsg.HelpEnterId"
:options=
"EmployeeList"
filled
use-input
label=
"协助老师"
label=
"客人来源"
/>
option-label=
"EmployeeName"
option-value=
"Id"
ref=
"EmployeeName"
class=
"col-6 q-pb-lg"
emit-value
map-options
<q-select
v-model=
"OrderMsg.HelpEnterId"
:options=
"EmployeeList"
filled
@
filter=
"filterFn"
>
use-input
label=
"协助老师"
option-label=
"EmployeeName"
option-value=
"Id"
ref=
"EmployeeName"
class=
"col-6 q-pb-lg"
emit-value
map-options
@
filter=
"filterFn"
>
<template
v-slot:no-option
>
<template
v-slot:no-option
>
<q-item>
<q-item>
<q-item-section
class=
"text-grey"
>
<q-item-section
class=
"text-grey"
>
...
@@ -53,16 +51,14 @@
...
@@ -53,16 +51,14 @@
</q-item>
</q-item>
</
template
>
</
template
>
</q-select>
</q-select>
<q-input
v-if=
"OrderMsg.OrderSource==3"
filled
stack-label
:dense=
"false"
<q-input
v-if=
"OrderMsg.OrderSource==3"
filled
stack-label
:dense=
"false"
maxlength=
"50"
maxlength=
"50"
v-model=
"OrderMsg.GeneralOccupation"
class=
"col-12 q-pb-lg"
label=
"一般同行"
/>
v-model=
"OrderMsg.GeneralOccupation"
class=
"col-12 q-pb-lg"
label=
"一般同行"
/>
<q-input
v-if=
"OrderMsg.OrderSource==7"
filled
stack-label
:dense=
"false"
<q-input
v-if=
"OrderMsg.OrderSource==7"
filled
stack-label
:dense=
"false"
maxlength=
"50"
maxlength=
"50"
v-model=
"OrderMsg.EduOccupation"
class=
"col-12 q-pb-lg"
label=
"教育同行"
/>
v-model=
"OrderMsg.EduOccupation"
class=
"col-12 q-pb-lg"
label=
"教育同行"
/>
<q-toggle
v-model=
"OrderMsg.IsLessPrice"
:false-value=
"0"
:true-value=
"1"
<q-toggle
v-model=
"OrderMsg.IsLessPrice"
:false-value=
"0"
:true-value=
"1"
label=
"是否少价"
class=
"q-mb-md"
/>
label=
"是否少价"
class=
"q-mb-md"
/>
<q-input
v-if=
"OrderMsg.IsLessPrice==1"
@
keyup
.
native=
"checkPrice(OrderMsg,'LessPrice')"
maxlength=
"10"
filled
<q-input
v-if=
"OrderMsg.IsLessPrice==1"
stack-label
:dense=
"false"
v-model=
"OrderMsg.LessPrice"
class=
"col-12"
label=
"少价金额"
/>
@
keyup
.
native=
"checkPrice(OrderMsg,'LessPrice')"
maxlength=
"10"
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.LessPrice"
class=
"col-12"
label=
"少价金额"
/>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.SaleRemark"
style=
"margin-top: 20px"
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.SaleRemark"
style=
"margin-top: 20px"
type=
"textarea"
class=
"col-12"
label=
"备注"
/>
type=
"textarea"
class=
"col-12"
label=
"备注"
/>
<div
style=
"margin:30px 10px 70px 0;"
>
<div
style=
"margin:30px 10px 70px 0;"
>
...
@@ -89,7 +85,7 @@
...
@@ -89,7 +85,7 @@
}
from
'../../api/users/user'
;
//获取员工
}
from
'../../api/users/user'
;
//获取员工
import
{
import
{
getClassDropDownList
getClassDropDownList
}
from
'../../api/school/index'
;
//获取校区列表
}
from
'../../api/school/index'
;
//获取校区列表
import
{
import
{
mapState
mapState
...
@@ -106,9 +102,9 @@
...
@@ -106,9 +102,9 @@
data
()
{
data
()
{
return
{
return
{
IsShowEditOrder
:
true
,
IsShowEditOrder
:
true
,
classList
:[],
classList
:
[],
OrderMsg
:
{
OrderMsg
:
{
VisitorReserveId
:
0
,
VisitorReserveId
:
0
,
ClassId
:
0
,
//班级编号
ClassId
:
0
,
//班级编号
GuestNum
:
1
,
//人数
GuestNum
:
1
,
//人数
Unit_Price
:
0
,
Unit_Price
:
0
,
...
@@ -144,26 +140,24 @@
...
@@ -144,26 +140,24 @@
created
()
{
created
()
{
this
.
getOrderSEList
();
this
.
getOrderSEList
();
this
.
getEmployee
();
this
.
getEmployee
();
var
localStorageData
=
window
.
localStorage
[
"loginUserInfo"
];
let
ActionMenuList
=
JSON
.
parse
(
localStorageData
).
data
.
ActionMenuList
if
(
ActionMenuList
&&
ActionMenuList
.
length
>
0
)
{
ActionMenuList
.
forEach
(
x
=>
{
if
(
x
.
FunctionCode
==
'E_ModifyStudyOrderPrice'
)
{
}
})
}
},
},
mounted
()
{
mounted
()
{
this
.
initData
()
this
.
getClass
();
this
.
getClass
();
},
},
watch
:
{
watch
:
{
},
},
methods
:
{
methods
:
{
initData
()
{
if
(
this
.
saveObj
.
AccountId
&&
this
.
saveObj
.
AccountId
>
0
)
{
this
.
OrderMsg
.
HelpEnterId
=
this
.
saveObj
.
AccountId
;
}
},
//获取课程信息
//获取课程信息
getClassList
(
ClassId
)
{
getClassList
(
ClassId
)
{
this
.
OrderMsg
.
CourseId
=
''
;
this
.
OrderMsg
.
CourseId
=
''
;
this
.
CourseList
=
[];
this
.
CourseList
=
[];
var
qMsg
=
{
var
qMsg
=
{
ClassId
:
ClassId
ClassId
:
ClassId
...
@@ -177,8 +171,8 @@
...
@@ -177,8 +171,8 @@
//获取班级列表
//获取班级列表
getClass
()
{
getClass
()
{
getClassDropDownList
({
getClassDropDownList
({
IsAddDefault
:
0
,
IsAddDefault
:
0
,
IsQuerySurplus
:
1
IsQuerySurplus
:
1
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
let
tempArray
=
res
.
Data
;
let
tempArray
=
res
.
Data
;
...
...
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