Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 5654871d
authored
Mar 09, 2023
by
王琦琳
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'wangql_dev_v4.16.1' into 'dev_v4.16.1'
版本功能代码提交 See merge request
!89
2 parents
7f2bdf75
6f7718b0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
138 additions
and
33 deletions
src/views/orderManage/chooseRuleDialog.vue
src/views/orderManage/orderList.vue
src/views/orderManage/orderSupplement.vue
src/views/orderManage/relatActivityOrderDialog.vue
src/views/orderManage/ruleInfoDialog.vue
src/views/orderManage/chooseRuleDialog.vue
View file @
5654871
...
...
@@ -18,15 +18,18 @@
</el-form-item>
<el-form-item
class=
"d2-drawer-item"
label=
"主订单编号:"
>
<span>
{{
recordInfo
.
inputtedOrderCode
}}
</span>
<!--
<span>
{{
recordInfo
.
inputtedOrderCode
}}
</span>
-->
<span>
{{
recordInfo
.
orderCode
}}
</span>
</el-form-item>
<el-form-item
class=
"d2-drawer-item"
label=
"订单金额:"
>
<span>
{{
recordInfo
.
totalFee
?
'¥'
+
recordInfo
.
totalFee
/
100
:
''
}}
</span>
<!--
<span>
{{
recordInfo
.
totalFee
?
'¥'
+
recordInfo
.
totalFee
/
100
:
''
}}
</span>
-->
<span>
{{
recordInfo
.
totalPrice
?
'¥'
+
recordInfo
.
totalPrice
:
''
}}
</span>
</el-form-item>
<el-form-item
class=
"d2-drawer-item"
label=
"支付时间:"
>
<span>
{{
recordInfo
.
accountDate
}}
</span>
<!--
<span>
{{
recordInfo
.
accountDate
}}
</span>
-->
<span>
{{
recordInfo
.
paySuccessDate
}}
</span>
</el-form-item>
</el-form>
<div
class=
"fontD"
>
请选择要应用的分账规则:
</div>
...
...
@@ -110,7 +113,7 @@ export default {
},
mounted
()
{
this
.
recordInfo
.
accountDate
=
this
.
recordInfo
.
accountDate
?
Util
.
dateFormate
(
this
.
recordInfo
.
accountDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
//
this.recordInfo.accountDate = this.recordInfo.accountDate ? Util.dateFormate(this.recordInfo.accountDate, 'YYYY-MM-DD HH:mm:ss') : ''
this
.
getLedgerHistoryRecord
()
},
methods
:
{
...
...
@@ -150,7 +153,8 @@ export default {
}
var
params
=
{}
params
.
outTradeNo
=
this
.
recordInfo
.
outTradeNo
params
.
inputtedOrderCode
=
this
.
recordInfo
.
inputtedOrderCode
// params.inputtedOrderCode = this.recordInfo.inputtedOrderCode
params
.
inputtedOrderCode
=
this
.
recordInfo
.
orderCode
params
.
effectRuleId
=
this
.
radio
// return console.log('params', params);
...
...
src/views/orderManage/orderList.vue
View file @
5654871
...
...
@@ -127,7 +127,13 @@
<
span
>
{{
statusOpts
[
scope
.
row
.
status
]
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"分账状态"
align
=
"center"
prop
=
"profitAllocationStatus"
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
profitAllocationStatusOpts
[
scope
.
row
.
profitAllocationStatus
]
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"商品名称"
align
=
"center"
width
=
"150"
...
...
@@ -217,6 +223,18 @@
fixed
=
"right"
>
<
template
slot
-
scope
=
"scope"
>
<
auth
-
button
:
data
=
"scope"
/>
<
el
-
button
type
=
"text"
size
=
"small"
v
-
if
=
"scope.row.profitAllocationStatus == 1"
@
click
=
"chooseRule(scope.row)"
>
发起分账
<
/el-button
>
<
el
-
button
type
=
"text"
size
=
"small"
v
-
if
=
"scope.row.manualFlag == '1'"
@
click
=
"ruleHistory(scope.row)"
>
分账记录
<
/el-button
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
...
...
@@ -270,6 +288,17 @@
<
/el-form
>
<
/slot
>
<
/d2-dialog
>
<!--
选择分账规则
-->
<
choose
-
rule
-
dialog
:
rule
-
visible
=
"ruleVisible"
:
record
-
info
=
"recordInfo"
v
-
if
=
"ruleVisible"
@
dialogClose
=
"ruleDialogClose"
/>
<!--
分账记录
-->
<
rule
-
info
-
dialog
:
rule
-
info
-
visible
=
"ruleInfoVisible"
:
record
-
info
=
"recordInfo"
v
-
if
=
"ruleInfoVisible"
@
dialogClose
=
"ruleInfoDialogClose"
/>
<
/d2-container
>
<
/template
>
...
...
@@ -280,9 +309,14 @@ import { getDiversionMerchantRef } from '@api/merchant'
import
{
manageTypeList
,
BaseData
}
from
'@/common/constants'
import
{
mapActions
,
mapState
,
mapMutations
}
from
'vuex'
import
{
getServiceStore
,
getParkStore
}
from
'@api/editCustomer'
// import
{
asyncExportExcel
}
from
'@api/sys.base'
import
chooseRuleDialog
from
'./chooseRuleDialog'
import
ruleInfoDialog
from
'./ruleInfoDialog'
export
default
{
name
:
'OrderList'
,
components
:
{
chooseRuleDialog
,
ruleInfoDialog
}
,
data
()
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
...
...
@@ -317,6 +351,10 @@ export default {
Y
:
'已施工'
,
N
:
'未施工'
}
,
profitAllocationStatusOpts
:
{
1
:
'未分账'
,
2
:
'已分账'
}
,
showFormData
:
[{
label
:
'订单状态'
,
name
:
'status'
,
...
...
@@ -342,7 +380,14 @@ export default {
optionLabel
:
'confLabel'
,
optionsName
:
'constructionList'
}
,
{
label
:
'分账状态'
,
name
:
'profitAllocationStatus'
,
type
:
'select'
,
optionId
:
'confId'
,
optionLabel
:
'confLabel'
,
optionsName
:
'profitAllocationStatusList'
}
,
{
label
:
'商品名称'
,
name
:
'orderGoodsName'
,
...
...
@@ -514,6 +559,16 @@ export default {
confLabel
:
'未施工'
}
],
profitAllocationStatusList
:
[
{
confId
:
'1'
,
confLabel
:
'未分账'
}
,
{
confId
:
'2'
,
confLabel
:
'已分账'
}
],
parkServiceList
:
[],
storeIdList
:
[],
// sourceChannelTypeList: _.cloneDeep(sourceChannelTypeList),
...
...
@@ -540,7 +595,10 @@ export default {
totalCount
:
''
,
jurisdictionFlag
:
false
,
// 待补录按钮权限标识
signRefundFlag
:
false
,
// 标记退款权限标识
subShopMerchanShowHide
:
true
subShopMerchanShowHide
:
true
,
ruleVisible
:
false
,
recordInfo
:
null
,
ruleInfoVisible
:
false
}
}
,
computed
:
{
...
...
@@ -784,11 +842,7 @@ export default {
handleExport
()
{
var
params
=
this
.
getParams
()
params
.
pageNum
=
1
// exportFile(params).then(res =>
{
// this.$open(res)
//
}
)
params
.
method
=
'dj.api.smartcarlife.ordermanage.export.async'
// asyncExportExcel(
{
exportParam
:
JSON
.
stringify
(
params
)
}
).
then
(
res
=>
{
const
list
=
[
...
this
.
dowloadList
,
{
...
...
@@ -799,7 +853,6 @@ export default {
}
]
this
.
actionSetDownloadList
({
list
,
type
:
'dowloadList'
}
)
//
}
)
}
,
// 查看详情
handleDetail
(
data
)
{
...
...
@@ -844,6 +897,32 @@ export default {
findFormIdx
(
name
)
{
return
this
.
showFormData
.
findIndex
(
item
=>
item
.
name
===
name
)
}
,
// 选择对账规则
chooseRule
(
row
)
{
this
.
recordInfo
=
row
this
.
ruleVisible
=
true
}
,
ruleDialogClose
(
flag
)
{
this
.
ruleVisible
=
!
this
.
ruleVisible
if
(
flag
)
{
this
.
getList
()
}
}
,
// 分账记录
ruleHistory
(
row
)
{
this
.
recordInfo
=
row
this
.
ruleInfoVisible
=
true
}
,
ruleInfoDialogClose
(
flag
)
{
this
.
ruleInfoVisible
=
!
this
.
ruleInfoVisible
// if (flag)
{
// this.getList()
//
}
}
}
}
...
...
src/views/orderManage/orderSupplement.vue
View file @
5654871
...
...
@@ -71,26 +71,26 @@
<!-- 已分帐无可操作内容 -->
<div
v-if=
"scope.scope.inputStatus !== '6'"
>
<el-button
type=
"text"
v-if=
"scope.scope.inputStatus == '1'"
@
click=
"orderDetail(scope.scope)"
>
v-if=
"scope.scope.inputStatus == '1'"
@
click=
"orderDetail(scope.scope)"
>
订单详情
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.inputStatus == '0'"
@
click=
"relatActivityOrder(scope.scope)"
>
v-if=
"scope.scope.inputStatus == '0'"
@
click=
"relatActivityOrder(scope.scope)"
>
关联活动订单
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.inputStatus == '4'"
@
click=
"record(scope.scope)"
>
v-if=
"scope.scope.inputStatus == '4'"
@
click=
"record(scope.scope)"
>
确认补录
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.inputStatus == '4'"
@
click=
"cancelRelat(scope.scope)"
>
v-if=
"scope.scope.inputStatus == '4'"
@
click=
"cancelRelat(scope.scope)"
>
取消关联
</el-button>
<el-button
type=
"text"
<
!--
<
el-button
type=
"text"
v-if=
"scope.scope.inputStatus == '5'"
@
click=
"chooseRule(scope.scope)"
>
发起分账
...
...
@@ -99,7 +99,7 @@
v-if=
"scope.scope.manualFlag == '1'"
@
click=
"ruleHistory(scope.scope)"
>
分账记录
</el-button>
</el-button>
-->
</div>
</
template
>
</d2-table>
...
...
src/views/orderManage/relatActivityOrderDialog.vue
View file @
5654871
...
...
@@ -3,7 +3,7 @@
<d2-dialog
title=
"关联活动订单"
:is-visible=
"relatActivityVisible"
class=
"relatActivityDailog"
width=
"
7
0%"
width=
"
8
0%"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleAddConfirm"
>
<div>
...
...
@@ -83,12 +83,29 @@ export default {
label
:
'商户名称'
,
name
:
'merchantName'
,
type
:
'input'
,
maxlength
:
20
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
},
{
label
:
'所属活动'
,
name
:
'activityName'
,
type
:
'input'
,
maxlength
:
20
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
},
{
label
:
'客户名称'
,
name
:
'customerName'
,
type
:
'input'
,
maxlength
:
20
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
},
{
label
:
'手机号'
,
name
:
'customerPhone'
,
type
:
'input'
,
inputType
:
"number"
,
maxlength
:
11
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
}],
...
...
src/views/orderManage/ruleInfoDialog.vue
View file @
5654871
...
...
@@ -14,15 +14,18 @@
</el-form-item>
<el-form-item
class=
"d2-drawer-item"
label=
"主订单编号:"
>
<span>
{{
recordInfo
.
inputtedOrderCode
}}
</span>
<!--
<span>
{{
recordInfo
.
inputtedOrderCode
}}
</span>
-->
<span>
{{
recordInfo
.
orderCode
}}
</span>
</el-form-item>
<el-form-item
class=
"d2-drawer-item"
label=
"订单金额:"
>
<span>
{{
recordInfo
.
totalFee
?
'¥'
+
recordInfo
.
totalFee
/
100
:
''
}}
</span>
<!--
<span>
{{
recordInfo
.
totalFee
?
'¥'
+
recordInfo
.
totalFee
/
100
:
''
}}
</span>
-->
<span>
{{
recordInfo
.
totalPrice
?
'¥'
+
recordInfo
.
totalPrice
:
''
}}
</span>
</el-form-item>
<el-form-item
class=
"d2-drawer-item"
label=
"支付时间:"
>
<span>
{{
recordInfo
.
accountDate
}}
</span>
<!--
<span>
{{
recordInfo
.
accountDate
}}
</span>
-->
<span>
{{
recordInfo
.
paySuccessDate
}}
</span>
</el-form-item>
</el-form>
<div
class=
"fontD"
>
已应用分账规则:
</div>
...
...
@@ -67,11 +70,11 @@
:inline=
"true"
>
<el-form-item
class=
"d2-drawer-item"
label=
"分账操作人:"
>
<span>
{{
recordInfo
.
u
pdatedBy
}}
</span>
<span>
{{
recordInfo
.
wioU
pdatedBy
}}
</span>
</el-form-item>
<el-form-item
class=
"d2-drawer-item"
label=
"分账操作时间:"
>
<span>
{{
recordInfo
.
u
pdatedDate
}}
</span>
<span>
{{
recordInfo
.
wioU
pdatedDate
}}
</span>
</el-form-item>
</el-form>
</d2-dialog>
...
...
@@ -106,15 +109,17 @@ export default {
},
mounted
()
{
this
.
recordInfo
.
accountDate
=
this
.
recordInfo
.
accountDate
?
Util
.
dateFormate
(
this
.
recordInfo
.
accountDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
this
.
recordInfo
.
updatedDate
=
this
.
recordInfo
.
updatedDate
?
Util
.
dateFormate
(
this
.
recordInfo
.
updatedDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
console
.
log
(
this
.
recordInfo
);
// this.recordInfo.accountDate = this.recordInfo.accountDate ? Util.dateFormate(this.recordInfo.accountDate, 'YYYY-MM-DD HH:mm:ss') : ''
this
.
recordInfo
.
wioUpdatedDate
=
this
.
recordInfo
.
wioUpdatedDate
?
Util
.
dateFormate
(
this
.
recordInfo
.
wioUpdatedDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
this
.
getRuleInfo
()
},
methods
:
{
// 获取分账记录
getRuleInfo
()
{
getDivisionRecordById
({
id
:
this
.
recordInfo
.
e
ffectRuleId
}).
then
(
res
=>
{
getDivisionRecordById
({
id
:
this
.
recordInfo
.
wioE
ffectRuleId
}).
then
(
res
=>
{
this
.
ruleInfo
=
res
const
format
=
"YYYY/MM/DD HH:mm"
this
.
ruleInfo
.
formatEffectEndDate
=
this
.
ruleInfo
.
effectEndDate
...
...
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