Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
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 bd7e6915
authored
Jun 26, 2023
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
精品升级订单添加支付方式类型
1 parent
0e53ece7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
src/config/index.js
src/views/inSale/upgradeOrder.vue
src/config/index.js
View file @
bd7e691
...
...
@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true) {
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
return
new
Http
({
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}).
get
(
'https://oss-config.
test
.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config'
)
return
new
Http
({
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}).
get
(
'https://oss-config.
dev
.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config'
)
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
}
...
...
src/views/inSale/upgradeOrder.vue
View file @
bd7e691
...
...
@@ -64,9 +64,10 @@
<div
class=
"box_info"
>
<div
class=
"info_text"
>
<span>
支付方式:
</span>
<span
v-if=
"orderDetail.payOrder.payType == 1"
class=
"h19_title"
>
微信支付
</span>
<
!--
<
span
v-if=
"orderDetail.payOrder.payType == 1"
class=
"h19_title"
>
微信支付
</span>
<span
v-if=
"orderDetail.payOrder.payType == 2"
class=
"h19_title"
>
线下支付
</span>
<span
v-if=
"orderDetail.payOrder.payType == 3"
class=
"h19_title"
>
POS机收款
</span>
<span
v-if=
"orderDetail.payOrder.payType == 3"
class=
"h19_title"
>
POS机收款
</span>
-->
<span
v-if=
"orderDetail.payOrder.payType"
class=
"h19_title"
>
{{
PAYTYPEOBJ
[
orderDetail
.
payOrder
.
payType
]
}}
</span>
</div>
<div
class=
"info_text flex_img"
>
<span>
收款凭证:
</span>
...
...
@@ -201,7 +202,13 @@ import { converterApi } from '../../api/modules/converter'
import
utils
from
'../../util/util'
const
logTypeList
=
[
'预录用户'
,
'用户下单'
,
'用户付款'
,
'完成服务'
]
const
orderStatusList
=
[
'待升级'
,
'未升级'
,
'待支付'
,
'已支付'
,
'已退款'
,
'已完成'
]
const
PAYTYPEOBJ
=
{
1
:
"微信支付"
,
2
:
"4S店支付"
,
3
:
"POS机收款"
,
4
:
"支付宝支付"
,
5
:
"嘀加收款"
}
export
default
{
name
:
''
,
props
:
{
...
...
@@ -255,7 +262,15 @@ export default {
{
confId
:
3
,
confName
:
'POS机'
}
},
{
confId
:
4
,
confName
:
'支付宝支付'
},
{
confId
:
5
,
confName
:
'嘀加收款'
},
]
},
{
...
...
@@ -942,7 +957,8 @@ export default {
item
.
rule
=
`
${
ruleType
}${
item
.
shopTrafficMoneyCalculateType
==
0
?
''
:
item
.
shopTrafficMoneyCalculateValue
}${
item
.
shopTrafficMoneyCalculateType
==
0
?
''
:
'%'
}
`
item
.
divisionTypeName
=
item
.
divisionType
==
1
?
'线下对账'
:
'线上分账'
item
.
paySuccessDate
=
utils
.
dateFormat
(
item
.
paySuccessDate
,
'YYYY-MM-DD HH:mm:ss'
)
item
.
payTypeName
=
item
.
payType
==
1
?
'微信支付'
:
item
.
payType
==
2
?
'线下收款'
:
'POS机'
// item.payTypeName = item.payType == 1 ? '微信支付' : item.payType == 2 ? '线下收款' : 'POS机'
item
.
payTypeName
=
PAYTYPEOBJ
[
item
.
payType
]
return
item
})
this
.
tableTotal
=
res
.
total
...
...
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