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
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
212 additions
and
52 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 @@
}
},
"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"
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"dev"
:
true
,
...
...
@@ -8506,6 +8506,11 @@
"integrity"
:
"sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ=="
,
"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"
:
{
"version"
:
"0.9.0"
,
"resolved"
:
"https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz"
,
...
...
package.json
View file @
726eb57
...
...
@@ -15,6 +15,7 @@
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.5.4"
,
"number-precision"
:
"^1.6.0"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
"vuex"
:
"^3.1.2"
,
...
...
src/config/env.development.js
View file @
726eb57
...
...
@@ -18,8 +18,8 @@ module.exports = {
code_message_map
:
{}
},
request
:
{
// baseURL: 'http:
//scrm.test.glsx.com.cn/',
baseURL
:
'http://192.168.2.42:8064/'
,
baseURL
:
'
//scrm.test.glsx.com.cn/'
,
//
baseURL: 'http://192.168.2.42:8064/',
// 设置超时时间
timeout
:
180000
,
// 携带凭证
...
...
src/config/index.js
View file @
726eb57
...
...
@@ -13,11 +13,11 @@ import { Http } from 'glsx-common'
let
timeout
=
30000
//超时时间
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
// console.log(1111111)
//
if (isEnv) {
//
let { request } = cfg
//
Object.assign(request, { timeout })
//
return Promise.resolve(cfg)
//
}
if
(
isEnv
)
{
let
{
request
}
=
cfg
Object
.
assign
(
request
,
{
timeout
})
return
Promise
.
resolve
(
cfg
)
}
//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.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config')
...
...
src/views/orderManage/index.vue
View file @
726eb57
...
...
@@ -19,12 +19,12 @@
v-model=
"searchForm.requestSource"
@
tab-click=
"handleTabClick"
>
<el-tab-pane
:label=
"i"
:name=
"index"
:key=
"index"
v-for=
"(i,index) in requestSourceList"
></el-tab-pane>
<el-tab-pane
:label=
"i"
:name=
"index"
:key=
"index"
v-for=
"(i,index) in requestSourceList"
></el-tab-pane>
</el-tabs>
</div>
<div
class=
"btn-group"
>
...
...
@@ -371,11 +371,23 @@
:cancelText=
"approvalInfo.verificationVoucher ? '不通过': '取消'"
:orderCode=
"orderCode"
>
<ul
v-if=
"approvalInfo.verificationVoucher"
class=
"approvalWrap"
>
<li
v-for=
"item in userInfo"
:key=
"item.key"
class=
"approvalInfoItem"
>
{{ item.label }}
<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>
<ul
v-if=
"approvalInfo.verificationVoucher"
class=
"approvalWrap"
>
<li
v-for=
"item in userInfo"
:key=
"item.key"
class=
"approvalInfoItem"
>
{{ item.label }}
<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>
</li>
</ul>
<ul
v-else
>
...
...
@@ -390,12 +402,36 @@
<li
class=
"approvalInfoItem"
>
提交时间: {{ approvalInfo.confirmInstallTime }}
</li>
</ul>
</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"
>
<span
class=
"tip"
>
请输入审批不通过的原因
</span>
<el-form
class=
"form"
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
class=
"form"
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>
</div>
...
...
@@ -565,6 +601,8 @@ import { utils } from 'glsx-common'
import
{
dateFormat
}
from
'../../utils/index'
import
selectStaff
from
'./components/selectStaff.vue'
import
{
businessType
,
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
deliveryTypeList
,
exportFn
}
from
'@/common/constant'
import
NP
from
'number-precision'
const
userInfo
=
[
{
label
:
'员工名称:'
,
...
...
@@ -642,7 +680,12 @@ export default {
activityNames
:
[],
goodsName
:
''
,
requestSource
:
'0'
,
afterSaleType
:
''
afterSaleType
:
''
,
//2023.7.13需求👇
ledgerStatus
:
''
,
tailOrderStatus
:
''
,
transactionReferenceId
:
''
//2023.7.13需求--结束
},
tableSearchForm
:
{},
statisticsInfo
:
{
...
...
@@ -1172,7 +1215,53 @@ export default {
formatter
:
cellValue
=>
{
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
=
[
{
...
...
@@ -1403,7 +1492,68 @@ export default {
optionId
:
'confId'
,
optionLabel
:
'confName'
,
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
try
{
...
...
@@ -1485,22 +1635,22 @@ export default {
},
//取消弹框,如果没有凭证,直接关闭
handleApprovalClose
()
{
if
(
this
.
approvalInfo
.
verificationVoucher
)
{
if
(
this
.
approvalInfo
.
verificationVoucher
)
{
this
.
openPassDialog
()
}
else
{
}
else
{
this
.
writeOffApprovalVisible
=
false
}
},
// 确认不通过审批
confirmNoPass
()
{
confirmNoPass
()
{
this
.
$refs
?.
cancelRef
?.
validate
(
valid
=>
{
if
(
valid
)
this
.
handleApprovalConfirm
(
1
)
if
(
valid
)
this
.
handleApprovalConfirm
(
1
)
})
},
// 确认通过审批
handleApprovalConfirm
(
type
)
{
let
params
=
{
orderCode
:
this
.
orderCode
}
if
(
type
==
1
)
{
if
(
type
==
1
)
{
params
.
reasonsForFailure
=
this
.
cancelForm
.
reasonsForFailure
params
.
failureflag
=
true
}
...
...
@@ -1511,14 +1661,14 @@ export default {
})
},
//关闭不通过弹窗
closePassDialog
()
{
closePassDialog
()
{
this
.
isCancelVisible
=
false
this
.
cancelForm
=
{
reasonsForFailure
:
''
}
},
// 打开不通过弹窗
openPassDialog
()
{
openPassDialog
()
{
this
.
$refs
?.
cancelRef
?.
clearValidate
()
this
.
writeOffApprovalVisible
=
false
this
.
isCancelVisible
=
true
...
...
@@ -1532,25 +1682,25 @@ export default {
orderCode
:
val
.
orderCode
})
.
then
(
result
=>
{
if
(
result
)
{
if
(
result
.
verificationVoucher
)
{
if
(
result
)
{
if
(
result
.
verificationVoucher
)
{
result
.
confirmInstallTime
=
result
.
confirmInstallTime
?
dateFormat
(
result
.
confirmInstallTime
)
:
''
result
.
crowdFundingPrice
=
result
.
crowdFundingPrice
||
0
result
.
payPrice
=
result
.
payPrice
||
0
result
.
tailPrice
=
(
result
.
crowdFundingPrice
-
result
.
payPrice
)
+
'元'
this
.
approvalInfo
=
result
this
.
writeOffApprovalVisible
=
true
}
else
{
}
else
{
this
.
$apis
.
orderManage
.
getInstallInfo
({
subOrderCode
:
val
.
orderCode
}).
then
(
result
=>
{
this
.
approvalInfo
=
result
this
.
writeOffApprovalVisible
=
true
})
.
getInstallInfo
({
subOrderCode
:
val
.
orderCode
}).
then
(
result
=>
{
this
.
approvalInfo
=
result
this
.
writeOffApprovalVisible
=
true
})
}
}
})
})
},
// 订单指派
handlerAssign
(
item
)
{
...
...
@@ -2076,7 +2226,7 @@ export default {
margin
:
0
8px
0
0
!important
;
}
}
.el-select
.el-select__tags
>
span
{
.el-select
.el-select__tags
>
span
{
width
:
80%
;
display
:
flex
!important
;
}
...
...
@@ -2115,25 +2265,25 @@ export default {
margin-left
:
8px
;
}
}
.approvalWrap
{
.approvalWrap
{
margin-left
:
84px
;
}
.noPassDialog
{
.tip{
.noPassDialog
{
.tip
{
margin-left
:
72px
;
width
:
522px
;
font-weight
:
400
;
font-size
:
14px
;
color
:
#666666
;
}
.form
{
.form
{
margin-top
:
16px
;
.el-form-item__label{
.el-form-item__label
{
height
:
32px
;
line-height
:
32px
;
padding-right
:
10px
;
}
.el-textarea__inner
{
.el-textarea__inner
{
font-family
:
auto
;
}
}
...
...
src/views/seckillActivity/browseList.vue
View file @
726eb57
...
...
@@ -308,7 +308,9 @@ export default {
},
handleSearch
()
{
const
{
query
}
=
this
.
$route
this
.
$refs
.
browserRef
.
refreshTable
()
if
(
query
.
type
==
1
)
this
.
getTotal
(
this
.
$apis
.
seckillActivity
.
getBrowseListApi
,
query
.
id
)
},
handleReset
()
{
...
...
@@ -320,10 +322,12 @@ export default {
this
.
handleSearch
()
},
async
getTotal
(
apiName
,
activityId
)
{
const
{
total
}
=
await
apiName
({
const
{
customerName
,
mobile
}
=
this
.
searchForm
,
{
total
}
=
await
apiName
({
pageSize
:
10
,
pageNum
:
1
,
activityId
activityId
,
customerName
,
mobile
})
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