Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-ordermanage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d91cf363
authored
Apr 27, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复第一轮测试BUG
1 parent
74d9b39a
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
119 additions
and
83 deletions
package-lock.json
package.json
src/api/modules/order.js
src/views/orderManage/components/carDamage.vue
src/views/orderManage/components/crowdfunding.vue
src/views/orderManage/orderDetail.vue
package-lock.json
View file @
d91cf36
...
@@ -1895,6 +1895,51 @@
...
@@ -1895,6 +1895,51 @@
"integrity"
:
"sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A=="
,
"integrity"
:
"sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A=="
,
"dev"
:
true
"dev"
:
true
},
},
"ansi-styles"
:
{
"version"
:
"4.3.0"
,
"resolved"
:
"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"
,
"integrity"
:
"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-convert"
:
"^2.0.1"
}
},
"chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
,
"integrity"
:
"sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"ansi-styles"
:
"^4.1.0"
,
"supports-color"
:
"^7.1.0"
}
},
"color-convert"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"
,
"integrity"
:
"sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-name"
:
"~1.1.4"
}
},
"color-name"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
,
"integrity"
:
"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,
"dev"
:
true
,
"optional"
:
true
},
"has-flag"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
,
"integrity"
:
"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,
"dev"
:
true
,
"optional"
:
true
},
"ssri"
:
{
"ssri"
:
{
"version"
:
"8.0.1"
,
"version"
:
"8.0.1"
,
"resolved"
:
"https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz"
,
"resolved"
:
"https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz"
,
...
@@ -6465,9 +6510,9 @@
...
@@ -6465,9 +6510,9 @@
}
}
},
},
"glsx-common"
:
{
"glsx-common"
:
{
"version"
:
"2.
0.9
"
,
"version"
:
"2.
1.0
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-common/-/glsx-common-2.
0.9
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/glsx-common/-/glsx-common-2.
1.0
.tgz"
,
"integrity"
:
"sha512-
d4C404dGtp9fS4r4phi79ozuwleJd326xtfUqokiSs7Y7Zw7bn0Nza5UHHRuIHQettccjVOr18BNf7yG/cKuww
=="
,
"integrity"
:
"sha512-
wlUFgrZkJODh5MNpnVaT2zswkep1BUnvRgyhUABp2mDrt7d8yemnrdDYCfuBSWT7LCn+httSEieOEtm2XSlc0Q
=="
,
"requires"
:
{
"requires"
:
{
"axios"
:
"^0.21.3"
,
"axios"
:
"^0.21.3"
,
"md5"
:
"^2.3.0"
,
"md5"
:
"^2.3.0"
,
...
@@ -13369,75 +13414,6 @@
...
@@ -13369,75 +13414,6 @@
}
}
}
}
},
},
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.8.3"
,
"resolved"
:
"https://registry.npmmirror.com/vue-loader/-/vue-loader-16.8.3.tgz"
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"chalk"
:
"^4.1.0"
,
"hash-sum"
:
"^2.0.0"
,
"loader-utils"
:
"^2.0.0"
},
"dependencies"
:
{
"ansi-styles"
:
{
"version"
:
"4.3.0"
,
"resolved"
:
"https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz"
,
"integrity"
:
"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-convert"
:
"^2.0.1"
}
},
"chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz"
,
"integrity"
:
"sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"ansi-styles"
:
"^4.1.0"
,
"supports-color"
:
"^7.1.0"
}
},
"color-convert"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz"
,
"integrity"
:
"sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-name"
:
"~1.1.4"
}
},
"color-name"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz"
,
"integrity"
:
"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,
"dev"
:
true
,
"optional"
:
true
},
"has-flag"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz"
,
"integrity"
:
"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,
"dev"
:
true
,
"optional"
:
true
},
"supports-color"
:
{
"version"
:
"7.2.0"
,
"resolved"
:
"https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz"
,
"integrity"
:
"sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"has-flag"
:
"^4.0.0"
}
}
}
},
"vue-router"
:
{
"vue-router"
:
{
"version"
:
"3.6.5"
,
"version"
:
"3.6.5"
,
"resolved"
:
"https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz"
,
"resolved"
:
"https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz"
,
...
...
package.json
View file @
d91cf36
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
"dayjs"
:
"^1.10.7"
,
"dayjs"
:
"^1.10.7"
,
"el-tree-transfer"
:
"^2.2.6"
,
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^2.
0.9
"
,
"glsx-common"
:
"^2.
1.0
"
,
"glsx-components"
:
"^1.2.5"
,
"glsx-components"
:
"^1.2.5"
,
"rfdc"
:
"^1.3.0"
,
"rfdc"
:
"^1.3.0"
,
"vue"
:
"^2.6.10"
,
"vue"
:
"^2.6.10"
,
...
...
src/api/modules/order.js
View file @
d91cf36
...
@@ -2,6 +2,7 @@ import { http } from '@/main'
...
@@ -2,6 +2,7 @@ import { http } from '@/main'
const
path
=
'dj.api.smartcarlife.'
const
path
=
'dj.api.smartcarlife.'
const
path2
=
'scrm.api.shopmall.'
const
path2
=
'scrm.api.shopmall.'
const
path3
=
'dj.api.quotation.smartcarlife.'
const
getList
=
params
=>
{
const
getList
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
...
@@ -130,7 +131,7 @@ const getOrderDetailApi = params => {
...
@@ -130,7 +131,7 @@ const getOrderDetailApi = params => {
//车损订单
//车损订单
const
getQuotationPageApi
=
params
=>
{
const
getQuotationPageApi
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
dj.api.quotation.smartcarlife.
quotation.page`
params
.
routerMethod
=
`
${
path3
}
quotation.page`
return
http
({
return
http
({
url
:
'rop-scrm-boutiquecoupon/router'
,
url
:
'rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -142,7 +143,7 @@ const getQuotationPageApi = params => {
...
@@ -142,7 +143,7 @@ const getQuotationPageApi = params => {
// 查询报价单基本录入信息
// 查询报价单基本录入信息
const
quotationFindByIdApi
=
params
=>
{
const
quotationFindByIdApi
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
dj.api.quotation.smartcarlife.
quotation.detail`
params
.
routerMethod
=
`
${
path3
}
quotation.detail`
return
http
({
return
http
({
url
:
'rop-scrm-boutiquecoupon/router'
,
url
:
'rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -165,7 +166,7 @@ const exportOrderApi = params => {
...
@@ -165,7 +166,7 @@ const exportOrderApi = params => {
// 车损订单导出
// 车损订单导出
const
quotationExportApi
=
params
=>
{
const
quotationExportApi
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
dj.api.quotation.smartcarlife.
quotation.export`
params
.
routerMethod
=
`
${
path3
}
quotation.export`
return
http
({
return
http
({
url
:
'rop-scrm-boutiquecoupon/router'
,
url
:
'rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -174,4 +175,28 @@ const quotationExportApi = params => {
...
@@ -174,4 +175,28 @@ const quotationExportApi = params => {
})
})
}
}
export
default
{
getList
,
getOrderDetail
,
getOrderCount
,
shopmallOrderList
,
goodsOrderDetail
,
getServiceStore
,
getListApi
,
getCrowdfundingParams
,
getCountApi
,
orderExportApi
,
getOrderDetailApi
,
getQuotationPageApi
,
quotationFindByIdApi
,
exportOrderApi
,
quotationExportApi
}
// 打印,返回报价单图片url
const
quotationPrintApi
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
${
path3
}
quotation.print`
return
http
({
url
:
'rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 打印 返回权益合同PDF文件Url
const
contractExportApi
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`dj.api.smartcarlife.vd.equity.order.print`
return
http
({
url
:
'rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getList
,
getOrderDetail
,
getOrderCount
,
shopmallOrderList
,
goodsOrderDetail
,
getServiceStore
,
getListApi
,
getCrowdfundingParams
,
getCountApi
,
orderExportApi
,
getOrderDetailApi
,
getQuotationPageApi
,
quotationFindByIdApi
,
exportOrderApi
,
quotationExportApi
,
quotationPrintApi
,
contractExportApi
}
src/views/orderManage/components/carDamage.vue
View file @
d91cf36
<!--
精品
升级订单 -->
<!--
车损
升级订单 -->
<
template
>
<
template
>
<div
class=
"purchase"
>
<div
class=
"purchase"
>
<div
class=
"container"
>
<div
class=
"container"
>
...
@@ -28,7 +28,13 @@
...
@@ -28,7 +28,13 @@
slot=
"auth-button"
slot=
"auth-button"
slot-scope=
"scope"
>
slot-scope=
"scope"
>
<el-button
type=
"text"
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看订单
</el-button>
v-if=
"[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)"
@
click=
"handlePrint(scope.scope)"
>
打印
</el-button>
<el-button
type=
"text"
v-if=
"[2].includes(scope.scope.equityOrderStatus) && [3, 5].includes(scope.scope.orderStatus)"
@
click=
"handlePrintContract(scope.scope)"
>
打印合同
</el-button>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
详情
</el-button>
</div>
</div>
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
...
@@ -274,6 +280,35 @@ export default {
...
@@ -274,6 +280,35 @@ export default {
downLoadFile
(
res
)
downLoadFile
(
res
)
})
})
},
},
// 打印报价单
handlePrint
(
row
)
{
this
.
$apis
.
order
.
quotationPrintApi
({
id
:
row
.
id
}).
then
((
res
)
=>
{
console
.
log
(
res
)
const
oWin
=
window
.
open
(
res
)
oWin
.
document
.
fn
=
function
()
{
if
(
oWin
)
{
oWin
.
print
()
oWin
.
close
()
}
}
const
html
=
'<div style="height: 100%;width: 100%;">'
+
`<img src="
${
res
}
" onload="fn()" style="max-height:100%;max-width: 100%;" />`
+
"</div>"
oWin
.
document
.
open
()
oWin
.
document
.
write
(
html
)
oWin
.
document
.
close
()
})
},
// 打印权益合同
handlePrintContract
(
row
)
{
// 获取权益合同PDF
this
.
$apis
.
order
.
contractExportApi
({
orderId
:
row
.
orderId
}).
then
((
res
)
=>
{
window
.
open
(
res
)
})
},
}
}
}
}
</
script
>
</
script
>
...
...
src/views/orderManage/components/crowdfunding.vue
View file @
d91cf36
...
@@ -23,9 +23,9 @@
...
@@ -23,9 +23,9 @@
</div>
</div>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<template
v-if=
"!hideStatus"
>
<template
v-if=
"!hideStatus"
>
<el-button
class=
"default-blue-btn
"
<el-button
type=
"primary
"
:size=
"size
"
class=
"btn
"
type=
"default
"
size=
"small
"
@
click=
"handleExport"
>
导出
</el-button>
@
click=
"handleExport"
>
导出
</el-button>
</
template
>
</
template
>
</div>
</div>
...
...
src/views/orderManage/orderDetail.vue
View file @
d91cf36
...
@@ -386,7 +386,7 @@ export default {
...
@@ -386,7 +386,7 @@ export default {
},
},
getGoodsOrderDetail
()
{
getGoodsOrderDetail
()
{
const
routerParams
=
this
.
$route
.
params
.
detail
const
routerParams
=
this
.
$route
.
query
this
.
$apis
.
order
.
goodsOrderDetail
({
orderCode
:
routerParams
?.
orderCode
}).
then
(
res
=>
{
this
.
$apis
.
order
.
goodsOrderDetail
({
orderCode
:
routerParams
?.
orderCode
}).
then
(
res
=>
{
this
.
detail
=
res
this
.
detail
=
res
if
(
this
.
detail
.
source
==
7
)
{
if
(
this
.
detail
.
source
==
7
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment