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
8e9c7c75
Commit
8e9c7c75
authored
Sep 03, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
561fa599
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
editOrder-form.vue
src/components/sale/editOrder-form.vue
+10
-3
transfer-order.vue
src/components/school/student/transfer-order.vue
+0
-2
No files found.
src/components/sale/editOrder-form.vue
View file @
8e9c7c75
...
@@ -79,16 +79,19 @@
...
@@ -79,16 +79,19 @@
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.Unit_Price"
@
input=
"calcPrice()"
class=
"col-12"
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.Unit_Price"
@
input=
"calcPrice()"
class=
"col-12"
label=
"成交单价"
:rules=
"[val => !!val || '请填成交单价']"
/>
label=
"成交单价"
:rules=
"[val => !!val || '请填成交单价']"
/>
</
template
>
</
template
>
<
template
v-if=
"OrderMsg.Unit_PriceType==2"
>
<
template
v-if=
"OrderMsg.Unit_PriceType==2"
>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.TotalClassHours"
@
input=
"calcPrice()"
class=
"col-12"
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.TotalClassHours"
@
input=
"calcPrice()"
class=
"col-12"
label=
"总课时数"
type=
"number"
:min=
"0"
:rules=
"[val => !!val || '请填总课时数']"
/>
label=
"总课时数"
type=
"number"
:min=
"0"
:rules=
"[val => !!val || '请填总课时数']"
/>
</
template
>
</
template
>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.TextbookFee"
@
input=
"calcPrice()"
class=
"col-12"
<
template
v-if=
"OrderMsg.ClassList&&OrderMsg.ClassList.length>0"
>
<q-input
v-if=
"OrderMsg.ClassList[0].ClassScrollType==2"
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.TextbookFee"
@
input=
"calcPrice()"
class=
"col-12"
label=
"教材费"
type=
"number"
:min=
"0"
:rules=
"[val => !!val || '请填教材费']"
/>
label=
"教材费"
type=
"number"
:min=
"0"
:rules=
"[val => !!val || '请填教材费']"
/>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.CoursewareFee"
@
input=
"calcPrice()"
class=
"col-12"
<q-input
v-if=
"OrderMsg.ClassList[0].ClassScrollType==2"
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.CoursewareFee"
@
input=
"calcPrice()"
class=
"col-12"
label=
"课件费"
type=
"number"
:min=
"0"
:rules=
"[val => !!val || '请填课件费']"
/>
label=
"课件费"
type=
"number"
:min=
"0"
:rules=
"[val => !!val || '请填课件费']"
/>
</
template
>
<q-input
filled
stack-label
:disable=
"modityOrderType!=3"
:dense=
"false"
maxlength=
"10"
<q-input
filled
stack-label
:disable=
"modityOrderType!=3"
:dense=
"false"
maxlength=
"10"
@
keyup
.
native=
"checkPrice(OrderMsg,'PreferPrice')"
v-model=
"OrderMsg.PreferPrice"
class=
"col-12 q-pb-lg"
@
keyup
.
native=
"checkPrice(OrderMsg,'PreferPrice')"
v-model=
"OrderMsg.PreferPrice"
class=
"col-12 q-pb-lg"
label=
"应收"
/>
label=
"应收"
/>
...
@@ -232,6 +235,7 @@
...
@@ -232,6 +235,7 @@
TotalClassHours
:
0
,
//总课时数 2024-08-26 add by:W
TotalClassHours
:
0
,
//总课时数 2024-08-26 add by:W
CoursewareFee
:
0
,
//教材费
CoursewareFee
:
0
,
//教材费
TextbookFee
:
0
,
//课件费
TextbookFee
:
0
,
//课件费
ClassList
:[],
},
},
Unit_PriceRemark
:
""
,
//单价规则
Unit_PriceRemark
:
""
,
//单价规则
IsShowUpPrice
:
false
,
//是否显示高于定价
IsShowUpPrice
:
false
,
//是否显示高于定价
...
@@ -275,6 +279,7 @@
...
@@ -275,6 +279,7 @@
}
}
queryChaClassInfo
(
qMsg
).
then
(
res
=>
{
queryChaClassInfo
(
qMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
CourseList
=
res
.
Data
.
otherCourse
;
this
.
CourseList
=
res
.
Data
.
otherCourse
;
if
(
this
.
saveObj
&&
this
.
saveObj
.
OrderId
>
0
)
{}
else
{
if
(
this
.
saveObj
&&
this
.
saveObj
.
OrderId
>
0
)
{}
else
{
this
.
OrderMsg
.
StartClassHours
=
res
.
Data
.
finishHours
;
this
.
OrderMsg
.
StartClassHours
=
res
.
Data
.
finishHours
;
...
@@ -445,6 +450,7 @@
...
@@ -445,6 +450,7 @@
this
.
OrderMsg
.
TotalClassHours
=
tempData
.
TotalClassHours
;
this
.
OrderMsg
.
TotalClassHours
=
tempData
.
TotalClassHours
;
this
.
OrderMsg
.
CoursewareFee
=
tempData
.
CoursewareFee
;
this
.
OrderMsg
.
CoursewareFee
=
tempData
.
CoursewareFee
;
this
.
OrderMsg
.
TextbookFee
=
tempData
.
TextbookFee
;
this
.
OrderMsg
.
TextbookFee
=
tempData
.
TextbookFee
;
this
.
OrderMsg
.
ClassList
=
JSON
.
parse
(
JSON
.
stringify
(
tempData
.
ClassList
));
this
.
IsShowEditOrder
=
true
;
this
.
IsShowEditOrder
=
true
;
}
}
})
})
...
@@ -503,6 +509,7 @@
...
@@ -503,6 +509,7 @@
}
}
this
.
OrderMsg
.
DiscountMoney
=
this
.
OrderMsg
.
Class_Price
*
this
.
OrderMsg
.
GuestNum
*
(
this
.
OrderMsg
.
B2CRatio
>
1
?
this
.
OrderMsg
.
B2CRatio
/
100
:
this
.
OrderMsg
.
B2CRatio
)
this
.
OrderMsg
.
DiscountMoney
=
this
.
OrderMsg
.
Class_Price
*
this
.
OrderMsg
.
GuestNum
*
(
this
.
OrderMsg
.
B2CRatio
>
1
?
this
.
OrderMsg
.
B2CRatio
/
100
:
this
.
OrderMsg
.
B2CRatio
)
this
.
IsShowEditOrder
=
true
;
this
.
IsShowEditOrder
=
true
;
this
.
OrderMsg
.
ClassList
=
[];
this
.
calcPrice
();
this
.
calcPrice
();
}
}
},
},
...
...
src/components/school/student/transfer-order.vue
View file @
8e9c7c75
...
@@ -297,14 +297,12 @@ export default {
...
@@ -297,14 +297,12 @@ export default {
// 选择班级
// 选择班级
selectClass
(
val
)
{
selectClass
(
val
)
{
this
.
selectedCourseList
=
[]
this
.
selectedCourseList
=
[]
if
(
val
.
length
>
0
)
{
if
(
val
.
length
>
0
)
{
this
.
saveObj
=
val
[
0
];
this
.
saveObj
=
val
[
0
];
this
.
saveObj
.
Unit_Price
=
this
.
saveObj
.
SellPrice
;
this
.
saveObj
.
Unit_Price
=
this
.
saveObj
.
SellPrice
;
this
.
defaultCourse
=
val
;
this
.
defaultCourse
=
val
;
this
.
saveObj
.
OrderCourseList
=
[];
this
.
saveObj
.
OrderCourseList
=
[];
this
.
saveObj
.
OrderCourseList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
saveObj
)));
this
.
saveObj
.
OrderCourseList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
saveObj
)));
console
.
log
(
"this.saveObj.OrderCourseList"
,
this
.
saveObj
.
OrderCourseList
);
this
.
saveObj
.
TextbookFee
=
0
;
this
.
saveObj
.
TextbookFee
=
0
;
this
.
saveObj
.
CoursewareFee
=
0
;
this
.
saveObj
.
CoursewareFee
=
0
;
}
else
{
}
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