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
ec23b796
Commit
ec23b796
authored
Dec 21, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改问题
parent
f0a2acb2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
103 additions
and
39 deletions
+103
-39
sale.js
src/api/sale/sale.js
+12
-1
orderlist.vue
src/components/sale/orderlist.vue
+27
-5
orderremark-form.vue
src/components/sale/orderremark-form.vue
+2
-1
transOrder-form.vue
src/components/sale/transOrder-form.vue
+55
-30
japaneseTrain.vue
src/pages/sale/japaneseTrain.vue
+7
-2
No files found.
src/api/sale/sale.js
View file @
ec23b796
...
@@ -158,6 +158,17 @@ export function setClassOrderCareOf(data) {
...
@@ -158,6 +158,17 @@ export function setClassOrderCareOf(data) {
data
data
})
})
}
}
/**
* 修改订单销售
*
*/
export
function
updateOrderSale
(
data
)
{
return
request
({
url
:
'/order/UpdateOrderSale'
,
method
:
'post'
,
data
})
}
/**
/**
* 订单取消
* 订单取消
*
*
...
@@ -250,4 +261,4 @@ export function UpdateOrderCommission(data) {
...
@@ -250,4 +261,4 @@ export function UpdateOrderCommission(data) {
method
:
'post'
,
method
:
'post'
,
data
data
})
})
}
}
\ No newline at end of file
src/components/sale/orderlist.vue
View file @
ec23b796
...
@@ -61,10 +61,15 @@
...
@@ -61,10 +61,15 @@
</q-item-section>
</q-item-section>
</q-item>
</q-item>
<q-item
clickable
v-close-popup
v-if=
"isShowClass"
>
<q-item
clickable
v-close-popup
v-if=
"isShowClass"
>
<q-item-section
@
click=
"transferOrder(item)"
>
<q-item-section
@
click=
"transferOrder(item
,1
)"
>
<q-item-label>
转交订单
</q-item-label>
<q-item-label>
转交订单
</q-item-label>
</q-item-section>
</q-item-section>
</q-item>
</q-item>
<q-item
clickable
v-close-popup
v-if=
"!isShowClass"
>
<q-item-section
@
click=
"transferOrder(item,2)"
>
<q-item-label>
修改销售
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
v-if=
"isShowClass"
>
<q-item
clickable
v-close-popup
v-if=
"isShowClass"
>
<q-item-section
@
click=
"editOrderRemark(item,1)"
>
<q-item-section
@
click=
"editOrderRemark(item,1)"
>
<q-item-label>
销售备注
</q-item-label>
<q-item-label>
销售备注
</q-item-label>
...
@@ -457,7 +462,7 @@
...
@@ -457,7 +462,7 @@
@
close=
"closeRemarkForm"
@
success=
"refreshClassOrder"
></orderremark-form>
@
close=
"closeRemarkForm"
@
success=
"refreshClassOrder"
></orderremark-form>
<!--转交订单-->
<!--转交订单-->
<transOrder-form
v-if=
"isShowTransOrderForm"
:save-obj=
"orderObj"
@
close=
"closeTransOrderForm"
<transOrder-form
v-if=
"isShowTransOrderForm"
:save-obj=
"orderObj"
:employeeList=
"EmployeeList"
@
close=
"closeTransOrderForm"
@
success=
"refreshClassOrder"
></transOrder-form>
@
success=
"refreshClassOrder"
></transOrder-form>
<myOrder-form
v-if=
"isShowmyorderForm"
:save-obj=
"myorderObjOption"
@
close=
"closeMOSaveForm"
></myOrder-form>
<myOrder-form
v-if=
"isShowmyorderForm"
:save-obj=
"myorderObjOption"
@
close=
"closeMOSaveForm"
></myOrder-form>
<!--班级详情-->
<!--班级详情-->
...
@@ -484,7 +489,9 @@
...
@@ -484,7 +489,9 @@
}
from
'../../api/sale/sale'
}
from
'../../api/sale/sale'
import
myOrderForm
from
'../../components/sale/myOrder-form'
import
myOrderForm
from
'../../components/sale/myOrder-form'
import
classinfoForm
from
'../../components/course/classinfo-form'
;
import
classinfoForm
from
'../../components/course/classinfo-form'
;
import
{
queryEmployee
//员工列表
}
from
'../../api/users/user'
export
default
{
export
default
{
components
:
{
components
:
{
editorderForm
,
editorderForm
,
...
@@ -525,10 +532,12 @@
...
@@ -525,10 +532,12 @@
isShowClassInfo
:
false
,
//是否显示课程信息
isShowClassInfo
:
false
,
//是否显示课程信息
isShowMoney
:
false
,
//是否显示修改提成和额外奖励
isShowMoney
:
false
,
//是否显示修改提成和额外奖励
moneyObj
:{},
moneyObj
:{},
CommonType
:
-
1
//用于判断是修改提成还是额外奖励
CommonType
:
-
1
,
//用于判断是修改提成还是额外奖励
EmployeeList
:[],
//员工列表
}
}
},
},
created
()
{
created
()
{
this
.
Employee
()
},
},
mounted
()
{
mounted
()
{
},
},
...
@@ -543,6 +552,18 @@
...
@@ -543,6 +552,18 @@
this
.
orderObj
=
{};
this
.
orderObj
=
{};
this
.
isShowBackClassForm
=
false
;
this
.
isShowBackClassForm
=
false
;
},
},
Employee
(){
var
qMsg
=
{
EmployeeName
:
''
}
queryEmployee
(
qMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
EmployeeList
=
res
.
Data
;
}
}).
catch
(()
=>
{
})
},
//获取财务单据
//获取财务单据
getOrderFinanceList
(
msg
,
type
)
{
getOrderFinanceList
(
msg
,
type
)
{
this
.
apipost
(
'sellorder_post_GetOrderFinanceListForEdu'
,
{
this
.
apipost
(
'sellorder_post_GetOrderFinanceListForEdu'
,
{
...
@@ -588,7 +609,8 @@
...
@@ -588,7 +609,8 @@
this
.
isShowmyorderForm
=
false
;
this
.
isShowmyorderForm
=
false
;
},
},
//订单转交
//订单转交
transferOrder
(
item
)
{
transferOrder
(
item
,
type
)
{
item
.
type
=
type
this
.
orderObj
=
item
;
this
.
orderObj
=
item
;
this
.
isShowTransOrderForm
=
true
;
this
.
isShowTransOrderForm
=
true
;
},
},
...
...
src/components/sale/orderremark-form.vue
View file @
ec23b796
...
@@ -96,7 +96,8 @@
...
@@ -96,7 +96,8 @@
})
})
//调用父页面成功方法
//调用父页面成功方法
this
.
$emit
(
'success'
);
this
.
$emit
(
'success'
);
this
.
IsShowOrderRemarkDialog
=
false
// this.IsShowOrderRemarkDialog = false
this
.
$emit
(
'close'
);
}
}
})
})
}
}
...
...
src/components/sale/transOrder-form.vue
View file @
ec23b796
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
transition-hide=
"scale"
>
transition-hide=
"scale"
>
<q-card
style=
"width: 400px;max-width:500px;"
>
<q-card
style=
"width: 400px;max-width:500px;"
>
<q-card-section>
<q-card-section>
<div
class=
"text-h6"
>
转交订单
</div>
<div
class=
"text-h6"
>
{{
saveObj
.
type
==
1
?
'转交订单'
:
'修改销售'
}}
</div>
</q-card-section>
</q-card-section>
<q-card-section>
<q-card-section>
<div
class=
"col row"
style=
"justify-content: center;width: 100%"
>
<div
class=
"col row"
style=
"justify-content: center;width: 100%"
>
<q-select
class=
""
filled
label=
"转交人
"
v-model=
"TransOrderMsg.model"
use-input
hide-selected
fill-input
<q-select
class=
""
filled
:label=
"saveObj.type==1?'转交人':'修改销售'
"
v-model=
"TransOrderMsg.model"
use-input
hide-selected
fill-input
option-value=
"Id"
option-label=
"EmployeeName"
:options=
"
Employee
List"
@
filter=
"filterFn"
option-value=
"Id"
option-label=
"EmployeeName"
:options=
"
em
List"
@
filter=
"filterFn"
style=
"width: 250px; padding-bottom: 32px"
>
style=
"width: 250px; padding-bottom: 32px"
>
<template
v-slot:no-option
>
<template
v-slot:no-option
>
<q-item>
<q-item>
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
<
script
>
<
script
>
import
{
import
{
setClassOrderCareOf
,
//转交订单
setClassOrderCareOf
,
//转交订单
updateOrderSale
}
from
'../../api/sale/sale'
}
from
'../../api/sale/sale'
import
{
import
{
queryEmployee
//员工列表
queryEmployee
//员工列表
...
@@ -42,6 +43,10 @@
...
@@ -42,6 +43,10 @@
type
:
Object
,
type
:
Object
,
default
:
null
,
default
:
null
,
},
},
employeeList
:
{
type
:
Array
,
default
:
null
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -50,26 +55,23 @@
...
@@ -50,26 +55,23 @@
model
:
''
,
model
:
''
,
OrderId
:
0
,
OrderId
:
0
,
},
},
EmployeeList
:
[],
//员工列表
emList
:[],
}
}
},
},
created
()
{
created
()
{
this
.
emList
=
this
.
employeeList
;
this
.
initData
();
this
.
initData
();
},
},
methods
:
{
methods
:
{
//筛选员工
//筛选员工
filterFn
(
val
,
update
)
{
filterFn
(
val
,
update
)
{
var
qMsg
=
{
EmployeeName
:
val
}
update
(()
=>
{
update
(()
=>
{
queryEmployee
(
qMsg
).
then
(
res
=>
{
if
(
val
===
''
)
{
if
(
res
.
Code
==
1
)
{
this
.
emList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
employeeList
))
this
.
EmployeeList
=
res
.
Data
;
}
else
{
}
const
needle
=
val
.
toLowerCase
()
}).
catch
(()
=>
{
this
.
emList
=
this
.
employeeList
.
filter
(
v
=>
v
.
EmployeeName
.
toLowerCase
().
indexOf
(
needle
)
>
-
1
)
}
})
})
})
},
},
//关闭弹窗
//关闭弹窗
...
@@ -84,24 +86,47 @@
...
@@ -84,24 +86,47 @@
},
},
//保存订单转交
//保存订单转交
saveTransOrder
()
{
saveTransOrder
()
{
let
transMsg
=
{
OrderId
:
this
.
TransOrderMsg
.
OrderId
,
if
(
this
.
saveObj
.
type
==
1
){
CareOfPeople
:
this
.
TransOrderMsg
.
model
.
Id
let
transMsg
=
{
}
OrderId
:
this
.
TransOrderMsg
.
OrderId
,
setClassOrderCareOf
(
transMsg
).
then
(
res
=>
{
CareOfPeople
:
this
.
TransOrderMsg
.
model
.
Id
if
(
res
.
Code
==
1
)
{
}
this
.
$q
.
notify
({
setClassOrderCareOf
(
transMsg
).
then
(
res
=>
{
icon
:
'iconfont icon-chenggong'
,
if
(
res
.
Code
==
1
)
{
color
:
'accent'
,
this
.
$q
.
notify
({
timeout
:
2000
,
icon
:
'iconfont icon-chenggong'
,
message
:
'修改成功!'
,
color
:
'accent'
,
position
:
'top'
timeout
:
2000
,
message
:
'修改成功!'
,
position
:
'top'
})
//调用父页面成功方法
this
.
$emit
(
'success'
);
this
.
$emit
(
'close'
);
}
})
}
else
{
let
transMsg
=
{
OrderId
:
this
.
TransOrderMsg
.
OrderId
,
EnterID
:
this
.
TransOrderMsg
.
model
.
Id
}
updateOrderSale
(
transMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'修改成功!'
,
position
:
'top'
})
//调用父页面成功方法
this
.
$emit
(
'success'
);
this
.
$emit
(
'close'
);
}
})
})
//调用父页面成功方法
this
.
$emit
(
'success'
);
this
.
IsShowTransOrderDialog
=
false
}
}
})
}
}
}
}
}
}
...
...
src/pages/sale/japaneseTrain.vue
View file @
ec23b796
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
<q-btn
color=
"primary"
label=
"立即下单"
v-if=
"item.IsCanApply==1"
@
click=
"placeAnorder(item)"
/>
<q-btn
color=
"primary"
label=
"立即下单"
v-if=
"item.IsCanApply==1"
@
click=
"placeAnorder(item)"
/>
<div
v-if=
"item.IsCanApply==0"
>
<div
v-if=
"item.IsCanApply==0"
>
<img
src=
"../../assets/images/administration/bmym.png"
alt=
""
style=
"width: 64px;height: 62px;margin-right: 15px"
v-if=
"item.SurplusNum==0"
>
<img
src=
"../../assets/images/administration/bmym.png"
alt=
""
style=
"width: 64px;height: 62px;margin-right: 15px"
v-if=
"item.SurplusNum==0"
>
<img
src=
"../../assets/images/administration/guoqi.png"
alt=
""
style=
"width: 64px;height: 62px"
v-if=
"getEXPDate(item.
Open
Time)==true"
>
<img
src=
"../../assets/images/administration/guoqi.png"
alt=
""
style=
"width: 64px;height: 62px"
v-if=
"getEXPDate(item.
EndOrder
Time)==true"
>
</div>
</div>
</div>
</div>
...
@@ -261,6 +261,11 @@
...
@@ -261,6 +261,11 @@
}
}
},
},
created
()
{
created
()
{
// let nowDay = new Date().toLocaleDateString();
// for(let i=0;i
<
2
;
i
++
){
// this.dateList.push(nowDay)
// }
this
.
getSchool
();
this
.
getSchool
();
this
.
getOrderSEList
()
this
.
getOrderSEList
()
this
.
CourseList
();
this
.
CourseList
();
...
@@ -296,7 +301,7 @@
...
@@ -296,7 +301,7 @@
}
}
})
})
},
},
getEXPDate
(
time
){
getEXPDate
(
time
){
//判断是否过期
var
str
=
time
.
replace
(
/年/g
,
"/"
).
replace
(
/月/g
,
"/"
).
replace
(
/日/g
,
""
);
var
str
=
time
.
replace
(
/年/g
,
"/"
).
replace
(
/月/g
,
"/"
).
replace
(
/日/g
,
""
);
var
date
=
new
Date
(
str
).
getTime
();
var
date
=
new
Date
(
str
).
getTime
();
var
now
=
new
Date
().
getTime
()
+
86400
;
var
now
=
new
Date
().
getTime
()
+
86400
;
...
...
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