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
2a8b649e
Commit
2a8b649e
authored
Jun 11, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
ccb5be5a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
editOrder-form.vue
src/components/sale/editOrder-form.vue
+9
-6
orderlist.vue
src/components/sale/orderlist.vue
+1
-1
No files found.
src/components/sale/editOrder-form.vue
View file @
2a8b649e
...
...
@@ -29,8 +29,8 @@
:options=
"CourseList"
emit-value
map-options
class=
"q-pb-lg"
:rules=
"[val => !!val || '请选择课程']"
label=
"选择课程"
@
input=
"changePrice"
/>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.StartClassHours"
@
keyup
.
native=
"checkInteger(OrderMsg,'StartClassHours')"
ref=
"StartClassHours"
@
blur
=
"countPrice"
class=
"col-12"
label=
"起始课时"
:rules=
"[val => !!val || '请填起始课时']"
/>
@
keyup
.
native=
"checkInteger(OrderMsg,'StartClassHours')"
ref=
"StartClassHours"
@
input
=
"countPrice"
class=
"col-12"
label=
"起始课时
11
"
:rules=
"[val => !!val || '请填起始课时']"
/>
</
template
>
<
template
v-if=
"modityOrderType==1"
>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.Unit_Price"
...
...
@@ -39,11 +39,11 @@
<q-toggle
v-model=
"IsShowUpPrice"
label=
"高于定价收生"
class=
"q-mb-md"
/>
</
template
>
<
template
v-if=
"modityOrderType==2"
>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.Unit_Price"
:disable=
"true"
@
blur
=
"countPrice"
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.Unit_Price"
:disable=
"true"
@
input
=
"countPrice"
class=
"col-12"
label=
"成交单价"
:rules=
"[val => !!val || '请填成交单价']"
/>
</
template
>
<
template
v-if=
"modityOrderType==3"
>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.Unit_Price"
@
blur
=
"countPrice"
class=
"col-12"
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.Unit_Price"
@
input
=
"countPrice"
class=
"col-12"
label=
"成交单价"
:rules=
"[val => !!val || '请填成交单价']"
/>
</
template
>
<q-input
filled
stack-label
:disable=
"modityOrderType!=3"
:dense=
"false"
maxlength=
"10"
...
...
@@ -236,6 +236,8 @@
this
.
OrderMsg
.
IsChaBan
=
tempData
.
IsChaBan
;
this
.
UnitPrice
=
this
.
OrderMsg
.
Unit_Price
;
this
.
IsShowEditOrder
=
true
;
}
})
}
else
{
...
...
@@ -328,9 +330,10 @@
//计算应收价格
if
(
this
.
OrderMsg
.
IsChaBan
==
1
)
{
var
newPreferPrice
=
0
;
console
.
log
(
this
.
courseObj
,
'this.courseObj'
);
if
(
this
.
courseObj
)
{
newPreferPrice
=
this
.
courseObj
.
SellPrice
/
this
.
courseObj
.
ClassHours
*
(
this
.
courseObj
.
ClassHours
-
this
.
courseObj
.
StartClassHours
)
newPreferPrice
=
(
this
.
courseObj
.
SellPrice
/
this
.
courseObj
.
ClassHours
)
*
(
this
.
courseObj
.
ClassHours
-
this
.
OrderMsg
.
StartClassHours
)
}
this
.
OrderMsg
.
PreferPrice
=
Number
(
newPreferPrice
).
toFixed
(
2
);
}
else
{
...
...
src/components/sale/orderlist.vue
View file @
2a8b649e
...
...
@@ -88,7 +88,7 @@
</div>
</template>
<
template
v-if=
"item.OrderType==1"
>
课程名称:
{{
item
.
CourseName
}}
<div
v-if=
"item.CourseName"
>
课程名称:
{{
item
.
CourseName
}}
</div>
<div
v-if=
"item.IsChaBan==1"
style=
"color:red;"
>
插班报入 插班开始课时:
{{
item
.
StartClassHours
}}
</div>
...
...
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