Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
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 726eb577
authored
Jul 12, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'saas+4.24.0' into 'v3.13.1'
Saas+4.24.0 See merge request
!67
2 parents
b4a0409f
fb2b6034
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
195 additions
and
35 deletions
package-lock.json
package.json
src/config/env.development.js
src/config/index.js
src/views/orderManage/index.vue
src/views/seckillActivity/browseList.vue
package-lock.json
View file @
726eb57
...
@@ -1918,7 +1918,7 @@
...
@@ -1918,7 +1918,7 @@
}
}
},
},
"vue-loader-v16"
:
{
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.8.3"
,
"version"
:
"npm:vue-loader
-v16
@16.8.3"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz"
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"dev"
:
true
,
"dev"
:
true
,
...
@@ -8506,6 +8506,11 @@
...
@@ -8506,6 +8506,11 @@
"integrity"
:
"sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ=="
,
"integrity"
:
"sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ=="
,
"dev"
:
true
"dev"
:
true
},
},
"number-precision"
:
{
"version"
:
"1.6.0"
,
"resolved"
:
"https://registry.npmjs.org/number-precision/-/number-precision-1.6.0.tgz"
,
"integrity"
:
"sha512-05OLPgbgmnixJw+VvEh18yNPUo3iyp4BEWJcrLu4X9W05KmMifN7Mu5exYvQXqxxeNWhvIF+j3Rij+HmddM/hQ=="
},
"oauth-sign"
:
{
"oauth-sign"
:
{
"version"
:
"0.9.0"
,
"version"
:
"0.9.0"
,
"resolved"
:
"https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz"
,
"resolved"
:
"https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz"
,
...
...
package.json
View file @
726eb57
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
"element-ui"
:
"^2.4.5"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.5.4"
,
"glsx-components"
:
"^1.5.4"
,
"number-precision"
:
"^1.6.0"
,
"vue"
:
"^2.6.10"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
"vue-router"
:
"^3.1.3"
,
"vuex"
:
"^3.1.2"
,
"vuex"
:
"^3.1.2"
,
...
...
src/config/env.development.js
View file @
726eb57
...
@@ -18,8 +18,8 @@ module.exports = {
...
@@ -18,8 +18,8 @@ module.exports = {
code_message_map
:
{}
code_message_map
:
{}
},
},
request
:
{
request
:
{
// baseURL: 'http:
//scrm.test.glsx.com.cn/',
baseURL
:
'
//scrm.test.glsx.com.cn/'
,
baseURL
:
'http://192.168.2.42:8064/'
,
//
baseURL: 'http://192.168.2.42:8064/',
// 设置超时时间
// 设置超时时间
timeout
:
180000
,
timeout
:
180000
,
// 携带凭证
// 携带凭证
...
...
src/config/index.js
View file @
726eb57
...
@@ -13,11 +13,11 @@ import { Http } from 'glsx-common'
...
@@ -13,11 +13,11 @@ import { Http } from 'glsx-common'
let
timeout
=
30000
//超时时间
let
timeout
=
30000
//超时时间
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
// console.log(1111111)
// console.log(1111111)
//
if (isEnv) {
if
(
isEnv
)
{
//
let { request } = cfg
let
{
request
}
=
cfg
//
Object.assign(request, { timeout })
Object
.
assign
(
request
,
{
timeout
})
//
return Promise.resolve(cfg)
return
Promise
.
resolve
(
cfg
)
//
}
}
//return window.fetch('https://', {}).then(res => res.json())
//return window.fetch('https://', {}).then(res => res.json())
return
new
Http
().
get
(
'https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config'
)
return
new
Http
().
get
(
'https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config'
)
// return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config')
// return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config')
...
...
src/views/orderManage/index.vue
View file @
726eb57
...
@@ -371,11 +371,23 @@
...
@@ -371,11 +371,23 @@
:cancelText=
"approvalInfo.verificationVoucher ? '不通过': '取消'"
:cancelText=
"approvalInfo.verificationVoucher ? '不通过': '取消'"
:orderCode=
"orderCode"
:orderCode=
"orderCode"
>
>
<ul
v-if=
"approvalInfo.verificationVoucher"
class=
"approvalWrap"
>
<ul
<li
v-for=
"item in userInfo"
:key=
"item.key"
class=
"approvalInfoItem"
>
v-if=
"approvalInfo.verificationVoucher"
class=
"approvalWrap"
>
<li
v-for=
"item in userInfo"
:key=
"item.key"
class=
"approvalInfoItem"
>
{{ item.label }}
{{ item.label }}
<span
v-if=
"item.key!='verificationVoucher'"
>
{{ approvalInfo[item.key] || '--' }}
</span>
<span
v-if=
"item.key!='verificationVoucher'"
>
{{ approvalInfo[item.key] || '--' }}
</span>
<el-image
v-else
style=
"width: 100px; height: 100px"
:src=
"approvalInfo[item.key]"
:preview-src-list=
"[approvalInfo[item.key]]"
></el-image>
<el-image
v-else
style=
"width: 100px; height: 100px"
:src=
"approvalInfo[item.key]"
:preview-src-list=
"[approvalInfo[item.key]]"
></el-image>
</li>
</li>
</ul>
</ul>
<ul
v-else
>
<ul
v-else
>
...
@@ -390,12 +402,36 @@
...
@@ -390,12 +402,36 @@
<li
class=
"approvalInfoItem"
>
提交时间: {{ approvalInfo.confirmInstallTime }}
</li>
<li
class=
"approvalInfoItem"
>
提交时间: {{ approvalInfo.confirmInstallTime }}
</li>
</ul>
</ul>
</GLDialog>
</GLDialog>
<GLDialog
title=
"审批不通过"
mode=
"mid"
:visible
.
sync=
"isCancelVisible"
@
onOk=
"confirmNoPass(1)"
@
onCancel=
"closePassDialog"
>
<GLDialog
title=
"审批不通过"
mode=
"mid"
:visible
.
sync=
"isCancelVisible"
@
onOk=
"confirmNoPass(1)"
@
onCancel=
"closePassDialog"
>
<div
class=
"noPassDialog"
>
<div
class=
"noPassDialog"
>
<span
class=
"tip"
>
请输入审批不通过的原因
</span>
<span
class=
"tip"
>
请输入审批不通过的原因
</span>
<el-form
class=
"form"
ref=
"cancelRef"
label-width=
"154px"
:rules=
"cancelRules"
:model=
"cancelForm"
>
<el-form
<el-form-item
label=
"原因说明:"
prop=
"reasonsForFailure"
>
class=
"form"
<el-input
style=
"width: 432px;"
:size=
"size"
type=
"textarea"
v-model=
"cancelForm.reasonsForFailure"
placeholder=
"请输入审批不通过说明"
maxlength=
"50"
rows=
"3"
show-word-limit
></el-input>
ref=
"cancelRef"
label-width=
"154px"
:rules=
"cancelRules"
:model=
"cancelForm"
>
<el-form-item
label=
"原因说明:"
prop=
"reasonsForFailure"
>
<el-input
style=
"width: 432px;"
:size=
"size"
type=
"textarea"
v-model=
"cancelForm.reasonsForFailure"
placeholder=
"请输入审批不通过说明"
maxlength=
"50"
rows=
"3"
show-word-limit
></el-input>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -565,6 +601,8 @@ import { utils } from 'glsx-common'
...
@@ -565,6 +601,8 @@ import { utils } from 'glsx-common'
import
{
dateFormat
}
from
'../../utils/index'
import
{
dateFormat
}
from
'../../utils/index'
import
selectStaff
from
'./components/selectStaff.vue'
import
selectStaff
from
'./components/selectStaff.vue'
import
{
businessType
,
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
deliveryTypeList
,
exportFn
}
from
'@/common/constant'
import
{
businessType
,
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
deliveryTypeList
,
exportFn
}
from
'@/common/constant'
import
NP
from
'number-precision'
const
userInfo
=
[
const
userInfo
=
[
{
{
label
:
'员工名称:'
,
label
:
'员工名称:'
,
...
@@ -642,7 +680,12 @@ export default {
...
@@ -642,7 +680,12 @@ export default {
activityNames
:
[],
activityNames
:
[],
goodsName
:
''
,
goodsName
:
''
,
requestSource
:
'0'
,
requestSource
:
'0'
,
afterSaleType
:
''
afterSaleType
:
''
,
//2023.7.13需求👇
ledgerStatus
:
''
,
tailOrderStatus
:
''
,
transactionReferenceId
:
''
//2023.7.13需求--结束
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
statisticsInfo
:
{
statisticsInfo
:
{
...
@@ -1172,7 +1215,53 @@ export default {
...
@@ -1172,7 +1215,53 @@ export default {
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
outTradeNo
||
'-'
return
cellValue
.
outTradeNo
||
'-'
}
}
},
{
label
:
'尾款状态'
,
prop
:
'tailOrderStatus'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
return
{
0
:
'未支付'
,
1
:
'已支付'
,
2
:
'已退款'
}[
cellValue
.
tailOrderStatus
]
||
'-'
}
},
{
label
:
'交易参考号'
,
prop
:
'transactionReferenceId'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
return
cellValue
.
transactionReferenceId
||
'-'
}
}
},
{
label
:
'分账状态'
,
prop
:
'ledgerStatus'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
return
{
0
:
'未分账'
,
1
:
'待确认'
,
2
:
'待分账'
,
3
:
'已分账'
}[
cellValue
.
ledgerStatus
]
||
'-'
}
},
{
label
:
'尾款金额'
,
prop
:
'finalPaymentAmount'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
let
val
=
'-'
if
(
cellValue
.
finalPaymentAmount
!=
null
)
{
val
=
NP
.
divide
(
cellValue
.
finalPaymentAmount
/
100
)
if
(
!
String
(
val
).
includes
(
'.'
))
val
+=
'.00'
}
return
val
}
},
],
],
searchFormData
=
[
searchFormData
=
[
{
{
...
@@ -1403,8 +1492,69 @@ export default {
...
@@ -1403,8 +1492,69 @@ export default {
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionLabel
:
'confName'
,
optionsName
:
'marketingStatusList'
optionsName
:
'marketingStatusList'
},
{
label
:
'尾款状态'
,
name
:
'tailOrderStatus'
,
type
:
'select'
,
optionList
:
[
{
confId
:
null
,
confName
:
'全部'
},
{
confId
:
'0'
,
confName
:
'未支付'
},
{
confId
:
'1'
,
confName
:
'已支付'
},
{
confId
:
'2'
,
confName
:
'已退款'
}
],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
},
{
label
:
'交易参考号'
,
name
:
'transactionReferenceId'
,
labelWidth
:
56
,
type
:
'input'
,
maxlength
:
25
},
{
label
:
'分账状态'
,
name
:
'ledgerStatus'
,
type
:
'select'
,
optionList
:
[
{
confId
:
null
,
confName
:
'全部'
},
{
confId
:
'0'
,
confName
:
'未分账'
},
{
confId
:
'1'
,
confName
:
'待确认'
},
{
confId
:
'2'
,
confName
:
'待分账'
},
{
confId
:
'3'
,
confName
:
'已分账'
}
}
],
],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
},
],
hideStatus
=
false
hideStatus
=
false
try
{
try
{
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
(),
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
(),
...
@@ -1485,22 +1635,22 @@ export default {
...
@@ -1485,22 +1635,22 @@ export default {
},
},
//取消弹框,如果没有凭证,直接关闭
//取消弹框,如果没有凭证,直接关闭
handleApprovalClose
()
{
handleApprovalClose
()
{
if
(
this
.
approvalInfo
.
verificationVoucher
)
{
if
(
this
.
approvalInfo
.
verificationVoucher
)
{
this
.
openPassDialog
()
this
.
openPassDialog
()
}
else
{
}
else
{
this
.
writeOffApprovalVisible
=
false
this
.
writeOffApprovalVisible
=
false
}
}
},
},
// 确认不通过审批
// 确认不通过审批
confirmNoPass
()
{
confirmNoPass
()
{
this
.
$refs
?.
cancelRef
?.
validate
(
valid
=>
{
this
.
$refs
?.
cancelRef
?.
validate
(
valid
=>
{
if
(
valid
)
this
.
handleApprovalConfirm
(
1
)
if
(
valid
)
this
.
handleApprovalConfirm
(
1
)
})
})
},
},
// 确认通过审批
// 确认通过审批
handleApprovalConfirm
(
type
)
{
handleApprovalConfirm
(
type
)
{
let
params
=
{
orderCode
:
this
.
orderCode
}
let
params
=
{
orderCode
:
this
.
orderCode
}
if
(
type
==
1
)
{
if
(
type
==
1
)
{
params
.
reasonsForFailure
=
this
.
cancelForm
.
reasonsForFailure
params
.
reasonsForFailure
=
this
.
cancelForm
.
reasonsForFailure
params
.
failureflag
=
true
params
.
failureflag
=
true
}
}
...
@@ -1511,14 +1661,14 @@ export default {
...
@@ -1511,14 +1661,14 @@ export default {
})
})
},
},
//关闭不通过弹窗
//关闭不通过弹窗
closePassDialog
()
{
closePassDialog
()
{
this
.
isCancelVisible
=
false
this
.
isCancelVisible
=
false
this
.
cancelForm
=
{
this
.
cancelForm
=
{
reasonsForFailure
:
''
reasonsForFailure
:
''
}
}
},
},
// 打开不通过弹窗
// 打开不通过弹窗
openPassDialog
()
{
openPassDialog
()
{
this
.
$refs
?.
cancelRef
?.
clearValidate
()
this
.
$refs
?.
cancelRef
?.
clearValidate
()
this
.
writeOffApprovalVisible
=
false
this
.
writeOffApprovalVisible
=
false
this
.
isCancelVisible
=
true
this
.
isCancelVisible
=
true
...
@@ -1532,15 +1682,15 @@ export default {
...
@@ -1532,15 +1682,15 @@ export default {
orderCode
:
val
.
orderCode
orderCode
:
val
.
orderCode
})
})
.
then
(
result
=>
{
.
then
(
result
=>
{
if
(
result
)
{
if
(
result
)
{
if
(
result
.
verificationVoucher
)
{
if
(
result
.
verificationVoucher
)
{
result
.
confirmInstallTime
=
result
.
confirmInstallTime
?
dateFormat
(
result
.
confirmInstallTime
)
:
''
result
.
confirmInstallTime
=
result
.
confirmInstallTime
?
dateFormat
(
result
.
confirmInstallTime
)
:
''
result
.
crowdFundingPrice
=
result
.
crowdFundingPrice
||
0
result
.
crowdFundingPrice
=
result
.
crowdFundingPrice
||
0
result
.
payPrice
=
result
.
payPrice
||
0
result
.
payPrice
=
result
.
payPrice
||
0
result
.
tailPrice
=
(
result
.
crowdFundingPrice
-
result
.
payPrice
)
+
'元'
result
.
tailPrice
=
(
result
.
crowdFundingPrice
-
result
.
payPrice
)
+
'元'
this
.
approvalInfo
=
result
this
.
approvalInfo
=
result
this
.
writeOffApprovalVisible
=
true
this
.
writeOffApprovalVisible
=
true
}
else
{
}
else
{
this
.
$apis
.
orderManage
this
.
$apis
.
orderManage
.
getInstallInfo
({
.
getInstallInfo
({
subOrderCode
:
val
.
orderCode
subOrderCode
:
val
.
orderCode
...
@@ -2076,7 +2226,7 @@ export default {
...
@@ -2076,7 +2226,7 @@ export default {
margin
:
0
8px
0
0
!important
;
margin
:
0
8px
0
0
!important
;
}
}
}
}
.el-select
.el-select__tags
>
span
{
.el-select
.el-select__tags
>
span
{
width
:
80%
;
width
:
80%
;
display
:
flex
!important
;
display
:
flex
!important
;
}
}
...
@@ -2115,25 +2265,25 @@ export default {
...
@@ -2115,25 +2265,25 @@ export default {
margin-left
:
8px
;
margin-left
:
8px
;
}
}
}
}
.approvalWrap
{
.approvalWrap
{
margin-left
:
84px
;
margin-left
:
84px
;
}
}
.noPassDialog
{
.noPassDialog
{
.tip{
.tip
{
margin-left
:
72px
;
margin-left
:
72px
;
width
:
522px
;
width
:
522px
;
font-weight
:
400
;
font-weight
:
400
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#666666
;
color
:
#666666
;
}
}
.form
{
.form
{
margin-top
:
16px
;
margin-top
:
16px
;
.el-form-item__label{
.el-form-item__label
{
height
:
32px
;
height
:
32px
;
line-height
:
32px
;
line-height
:
32px
;
padding-right
:
10px
;
padding-right
:
10px
;
}
}
.el-textarea__inner
{
.el-textarea__inner
{
font-family
:
auto
;
font-family
:
auto
;
}
}
}
}
...
...
src/views/seckillActivity/browseList.vue
View file @
726eb57
...
@@ -308,7 +308,9 @@ export default {
...
@@ -308,7 +308,9 @@ export default {
},
},
handleSearch
()
{
handleSearch
()
{
const
{
query
}
=
this
.
$route
this
.
$refs
.
browserRef
.
refreshTable
()
this
.
$refs
.
browserRef
.
refreshTable
()
if
(
query
.
type
==
1
)
this
.
getTotal
(
this
.
$apis
.
seckillActivity
.
getBrowseListApi
,
query
.
id
)
},
},
handleReset
()
{
handleReset
()
{
...
@@ -320,10 +322,12 @@ export default {
...
@@ -320,10 +322,12 @@ export default {
this
.
handleSearch
()
this
.
handleSearch
()
},
},
async
getTotal
(
apiName
,
activityId
)
{
async
getTotal
(
apiName
,
activityId
)
{
const
{
total
}
=
await
apiName
({
const
{
customerName
,
mobile
}
=
this
.
searchForm
,
{
total
}
=
await
apiName
({
pageSize
:
10
,
pageSize
:
10
,
pageNum
:
1
,
pageNum
:
1
,
activityId
activityId
,
customerName
,
mobile
})
})
this
.
total
=
total
this
.
total
=
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