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
6ddb30e3
Commit
6ddb30e3
authored
Mar 12, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报价单详情修改
parent
9fb0caef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletion
+35
-1
index.js
src/api/course/index.js
+11
-0
quotation.vue
src/pages/sale/quotation.vue
+24
-1
No files found.
src/api/course/index.js
View file @
6ddb30e3
...
@@ -302,4 +302,15 @@ export function queryCourseOfferInfo(data) {
...
@@ -302,4 +302,15 @@ export function queryCourseOfferInfo(data) {
data
data
})
})
}
}
/**
* 设置报价单状态
*/
export
function
saveCourseOfferCustomerStatus
(
data
)
{
return
request
({
url
:
"/CourseOffer/SetCourseOfferCustomerStatus"
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/pages/sale/quotation.vue
View file @
6ddb30e3
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
<q-btn
color=
"primary"
flat
label=
"获取二维码"
></q-btn>
<q-btn
color=
"primary"
flat
label=
"获取二维码"
></q-btn>
</div>
</div>
<div
class=
"col-auto"
>
<div
class=
"col-auto"
>
<q-btn
color=
"dark"
label=
"撤销报价单"
></q-btn>
<q-btn
color=
"dark"
label=
"撤销报价单"
@
click=
"setOfferStatus"
></q-btn>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -131,6 +131,7 @@
...
@@ -131,6 +131,7 @@
<
script
>
<
script
>
import
{
import
{
queryCourseOfferInfo
,
queryCourseOfferInfo
,
saveCourseOfferCustomerStatus
}
from
'../../api/course/index'
}
from
'../../api/course/index'
import
print
from
"print-js"
;
import
print
from
"print-js"
;
import
html2canvas
from
"html2canvas"
;
import
html2canvas
from
"html2canvas"
;
...
@@ -163,6 +164,28 @@
...
@@ -163,6 +164,28 @@
}
}
},
},
methods
:
{
methods
:
{
//设置报价单状态
setOfferStatus
()
{
this
.
$confirm
(
'是否撤销此报价单?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
saveCourseOfferCustomerStatus
({
Id
:
this
.
Id
,
CustomerStatus
:
3
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$message
.
success
(
"撤销成功!"
)
this
.
$router
.
push
({
path
:
"/sale/courseoffer"
,
});
}
else
{
this
.
$message
.
error
(
res
.
Data
.
Message
);
}
})
})
},
//获取报价单详情
//获取报价单详情
getDetails
()
{
getDetails
()
{
queryCourseOfferInfo
({
queryCourseOfferInfo
({
...
...
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