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 @@
...
@@ -18,15 +18,18 @@
</el-form-item>
</el-form-item>
<el-form-item
class=
"d2-drawer-item"
<el-form-item
class=
"d2-drawer-item"
label=
"主订单编号:"
>
label=
"主订单编号:"
>
<span>
{{
recordInfo
.
inputtedOrderCode
}}
</span>
<!--
<span>
{{
recordInfo
.
inputtedOrderCode
}}
</span>
-->
<span>
{{
recordInfo
.
orderCode
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
class=
"d2-drawer-item"
<el-form-item
class=
"d2-drawer-item"
label=
"订单金额:"
>
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>
<el-form-item
class=
"d2-drawer-item"
<el-form-item
class=
"d2-drawer-item"
label=
"支付时间:"
>
label=
"支付时间:"
>
<span>
{{
recordInfo
.
accountDate
}}
</span>
<!--
<span>
{{
recordInfo
.
accountDate
}}
</span>
-->
<span>
{{
recordInfo
.
paySuccessDate
}}
</span>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
class=
"fontD"
>
请选择要应用的分账规则:
</div>
<div
class=
"fontD"
>
请选择要应用的分账规则:
</div>
...
@@ -110,7 +113,7 @@ export default {
...
@@ -110,7 +113,7 @@ export default {
},
},
mounted
()
{
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
()
this
.
getLedgerHistoryRecord
()
},
},
methods
:
{
methods
:
{
...
@@ -150,7 +153,8 @@ export default {
...
@@ -150,7 +153,8 @@ export default {
}
}
var
params
=
{}
var
params
=
{}
params
.
outTradeNo
=
this
.
recordInfo
.
outTradeNo
params
.
outTradeNo
=
this
.
recordInfo
.
outTradeNo
params
.
inputtedOrderCode
=
this
.
recordInfo
.
inputtedOrderCode
// params.inputtedOrderCode = this.recordInfo.inputtedOrderCode
params
.
inputtedOrderCode
=
this
.
recordInfo
.
orderCode
params
.
effectRuleId
=
this
.
radio
params
.
effectRuleId
=
this
.
radio
// return console.log('params', params);
// return console.log('params', params);
...
...
src/views/orderManage/orderList.vue
View file @
5654871
...
@@ -127,7 +127,13 @@
...
@@ -127,7 +127,13 @@
<
span
>
{{
statusOpts
[
scope
.
row
.
status
]
}}
<
/span
>
<
span
>
{{
statusOpts
[
scope
.
row
.
status
]
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/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
=
"商品名称"
<
el
-
table
-
column
label
=
"商品名称"
align
=
"center"
align
=
"center"
width
=
"150"
width
=
"150"
...
@@ -217,6 +223,18 @@
...
@@ -217,6 +223,18 @@
fixed
=
"right"
>
fixed
=
"right"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
auth
-
button
:
data
=
"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
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
/el-table
>
<
/el-table
>
...
@@ -270,6 +288,17 @@
...
@@ -270,6 +288,17 @@
<
/el-form
>
<
/el-form
>
<
/slot
>
<
/slot
>
<
/d2-dialog
>
<
/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
>
<
/d2-container
>
<
/template
>
<
/template
>
...
@@ -280,9 +309,14 @@ import { getDiversionMerchantRef } from '@api/merchant'
...
@@ -280,9 +309,14 @@ import { getDiversionMerchantRef } from '@api/merchant'
import
{
manageTypeList
,
BaseData
}
from
'@/common/constants'
import
{
manageTypeList
,
BaseData
}
from
'@/common/constants'
import
{
mapActions
,
mapState
,
mapMutations
}
from
'vuex'
import
{
mapActions
,
mapState
,
mapMutations
}
from
'vuex'
import
{
getServiceStore
,
getParkStore
}
from
'@api/editCustomer'
import
{
getServiceStore
,
getParkStore
}
from
'@api/editCustomer'
// import
{
asyncExportExcel
}
from
'@api/sys.base'
import
chooseRuleDialog
from
'./chooseRuleDialog'
import
ruleInfoDialog
from
'./ruleInfoDialog'
export
default
{
export
default
{
name
:
'OrderList'
,
name
:
'OrderList'
,
components
:
{
chooseRuleDialog
,
ruleInfoDialog
}
,
data
()
{
data
()
{
return
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
...
@@ -317,6 +351,10 @@ export default {
...
@@ -317,6 +351,10 @@ export default {
Y
:
'已施工'
,
Y
:
'已施工'
,
N
:
'未施工'
N
:
'未施工'
}
,
}
,
profitAllocationStatusOpts
:
{
1
:
'未分账'
,
2
:
'已分账'
}
,
showFormData
:
[{
showFormData
:
[{
label
:
'订单状态'
,
label
:
'订单状态'
,
name
:
'status'
,
name
:
'status'
,
...
@@ -342,7 +380,14 @@ export default {
...
@@ -342,7 +380,14 @@ export default {
optionLabel
:
'confLabel'
,
optionLabel
:
'confLabel'
,
optionsName
:
'constructionList'
optionsName
:
'constructionList'
}
,
}
,
{
label
:
'分账状态'
,
name
:
'profitAllocationStatus'
,
type
:
'select'
,
optionId
:
'confId'
,
optionLabel
:
'confLabel'
,
optionsName
:
'profitAllocationStatusList'
}
,
{
{
label
:
'商品名称'
,
label
:
'商品名称'
,
name
:
'orderGoodsName'
,
name
:
'orderGoodsName'
,
...
@@ -514,6 +559,16 @@ export default {
...
@@ -514,6 +559,16 @@ export default {
confLabel
:
'未施工'
confLabel
:
'未施工'
}
}
],
],
profitAllocationStatusList
:
[
{
confId
:
'1'
,
confLabel
:
'未分账'
}
,
{
confId
:
'2'
,
confLabel
:
'已分账'
}
],
parkServiceList
:
[],
parkServiceList
:
[],
storeIdList
:
[],
storeIdList
:
[],
// sourceChannelTypeList: _.cloneDeep(sourceChannelTypeList),
// sourceChannelTypeList: _.cloneDeep(sourceChannelTypeList),
...
@@ -540,7 +595,10 @@ export default {
...
@@ -540,7 +595,10 @@ export default {
totalCount
:
''
,
totalCount
:
''
,
jurisdictionFlag
:
false
,
// 待补录按钮权限标识
jurisdictionFlag
:
false
,
// 待补录按钮权限标识
signRefundFlag
:
false
,
// 标记退款权限标识
signRefundFlag
:
false
,
// 标记退款权限标识
subShopMerchanShowHide
:
true
subShopMerchanShowHide
:
true
,
ruleVisible
:
false
,
recordInfo
:
null
,
ruleInfoVisible
:
false
}
}
}
,
}
,
computed
:
{
computed
:
{
...
@@ -784,11 +842,7 @@ export default {
...
@@ -784,11 +842,7 @@ export default {
handleExport
()
{
handleExport
()
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
params
.
pageNum
=
1
params
.
pageNum
=
1
// exportFile(params).then(res =>
{
// this.$open(res)
//
}
)
params
.
method
=
'dj.api.smartcarlife.ordermanage.export.async'
params
.
method
=
'dj.api.smartcarlife.ordermanage.export.async'
// asyncExportExcel(
{
exportParam
:
JSON
.
stringify
(
params
)
}
).
then
(
res
=>
{
const
list
=
[
const
list
=
[
...
this
.
dowloadList
,
...
this
.
dowloadList
,
{
{
...
@@ -799,7 +853,6 @@ export default {
...
@@ -799,7 +853,6 @@ export default {
}
}
]
]
this
.
actionSetDownloadList
({
list
,
type
:
'dowloadList'
}
)
this
.
actionSetDownloadList
({
list
,
type
:
'dowloadList'
}
)
//
}
)
}
,
}
,
// 查看详情
// 查看详情
handleDetail
(
data
)
{
handleDetail
(
data
)
{
...
@@ -844,6 +897,32 @@ export default {
...
@@ -844,6 +897,32 @@ export default {
findFormIdx
(
name
)
{
findFormIdx
(
name
)
{
return
this
.
showFormData
.
findIndex
(
item
=>
item
.
name
===
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 @@
...
@@ -71,26 +71,26 @@
<!-- 已分帐无可操作内容 -->
<!-- 已分帐无可操作内容 -->
<div
v-if=
"scope.scope.inputStatus !== '6'"
>
<div
v-if=
"scope.scope.inputStatus !== '6'"
>
<el-button
type=
"text"
<el-button
type=
"text"
v-if=
"scope.scope.inputStatus == '1'"
v-if=
"scope.scope.inputStatus == '1'"
@
click=
"orderDetail(scope.scope)"
>
@
click=
"orderDetail(scope.scope)"
>
订单详情
订单详情
</el-button>
</el-button>
<el-button
type=
"text"
<el-button
type=
"text"
v-if=
"scope.scope.inputStatus == '0'"
v-if=
"scope.scope.inputStatus == '0'"
@
click=
"relatActivityOrder(scope.scope)"
>
@
click=
"relatActivityOrder(scope.scope)"
>
关联活动订单
关联活动订单
</el-button>
</el-button>
<el-button
type=
"text"
<el-button
type=
"text"
v-if=
"scope.scope.inputStatus == '4'"
v-if=
"scope.scope.inputStatus == '4'"
@
click=
"record(scope.scope)"
>
@
click=
"record(scope.scope)"
>
确认补录
确认补录
</el-button>
</el-button>
<el-button
type=
"text"
<el-button
type=
"text"
v-if=
"scope.scope.inputStatus == '4'"
v-if=
"scope.scope.inputStatus == '4'"
@
click=
"cancelRelat(scope.scope)"
>
@
click=
"cancelRelat(scope.scope)"
>
取消关联
取消关联
</el-button>
</el-button>
<el-button
type=
"text"
<
!--
<
el-button
type=
"text"
v-if=
"scope.scope.inputStatus == '5'"
v-if=
"scope.scope.inputStatus == '5'"
@
click=
"chooseRule(scope.scope)"
>
@
click=
"chooseRule(scope.scope)"
>
发起分账
发起分账
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
v-if=
"scope.scope.manualFlag == '1'"
v-if=
"scope.scope.manualFlag == '1'"
@
click=
"ruleHistory(scope.scope)"
>
@
click=
"ruleHistory(scope.scope)"
>
分账记录
分账记录
</el-button>
</el-button>
-->
</div>
</div>
</
template
>
</
template
>
</d2-table>
</d2-table>
...
...
src/views/orderManage/relatActivityOrderDialog.vue
View file @
5654871
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<d2-dialog
title=
"关联活动订单"
<d2-dialog
title=
"关联活动订单"
:is-visible=
"relatActivityVisible"
:is-visible=
"relatActivityVisible"
class=
"relatActivityDailog"
class=
"relatActivityDailog"
width=
"
7
0%"
width=
"
8
0%"
@
closeDialog=
"handleClose"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleAddConfirm"
>
@
confirmDialog=
"handleAddConfirm"
>
<div>
<div>
...
@@ -83,12 +83,29 @@ export default {
...
@@ -83,12 +83,29 @@ export default {
label
:
'商户名称'
,
label
:
'商户名称'
,
name
:
'merchantName'
,
name
:
'merchantName'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
20
,
isClear
:
true
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
keyFn
:
this
.
keyDowmGetList
},
{
},
{
label
:
'所属活动'
,
label
:
'所属活动'
,
name
:
'activityName'
,
name
:
'activityName'
,
type
:
'input'
,
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
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
keyFn
:
this
.
keyDowmGetList
}],
}],
...
...
src/views/orderManage/ruleInfoDialog.vue
View file @
5654871
...
@@ -14,15 +14,18 @@
...
@@ -14,15 +14,18 @@
</el-form-item>
</el-form-item>
<el-form-item
class=
"d2-drawer-item"
<el-form-item
class=
"d2-drawer-item"
label=
"主订单编号:"
>
label=
"主订单编号:"
>
<span>
{{
recordInfo
.
inputtedOrderCode
}}
</span>
<!--
<span>
{{
recordInfo
.
inputtedOrderCode
}}
</span>
-->
<span>
{{
recordInfo
.
orderCode
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
class=
"d2-drawer-item"
<el-form-item
class=
"d2-drawer-item"
label=
"订单金额:"
>
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>
<el-form-item
class=
"d2-drawer-item"
<el-form-item
class=
"d2-drawer-item"
label=
"支付时间:"
>
label=
"支付时间:"
>
<span>
{{
recordInfo
.
accountDate
}}
</span>
<!--
<span>
{{
recordInfo
.
accountDate
}}
</span>
-->
<span>
{{
recordInfo
.
paySuccessDate
}}
</span>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
class=
"fontD"
>
已应用分账规则:
</div>
<div
class=
"fontD"
>
已应用分账规则:
</div>
...
@@ -67,11 +70,11 @@
...
@@ -67,11 +70,11 @@
:inline=
"true"
>
:inline=
"true"
>
<el-form-item
class=
"d2-drawer-item"
<el-form-item
class=
"d2-drawer-item"
label=
"分账操作人:"
>
label=
"分账操作人:"
>
<span>
{{
recordInfo
.
u
pdatedBy
}}
</span>
<span>
{{
recordInfo
.
wioU
pdatedBy
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
class=
"d2-drawer-item"
<el-form-item
class=
"d2-drawer-item"
label=
"分账操作时间:"
>
label=
"分账操作时间:"
>
<span>
{{
recordInfo
.
u
pdatedDate
}}
</span>
<span>
{{
recordInfo
.
wioU
pdatedDate
}}
</span>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</d2-dialog>
</d2-dialog>
...
@@ -106,15 +109,17 @@ export default {
...
@@ -106,15 +109,17 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
recordInfo
.
accountDate
=
this
.
recordInfo
.
accountDate
?
Util
.
dateFormate
(
this
.
recordInfo
.
accountDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
console
.
log
(
this
.
recordInfo
);
this
.
recordInfo
.
updatedDate
=
this
.
recordInfo
.
updatedDate
?
Util
.
dateFormate
(
this
.
recordInfo
.
updatedDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
// 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
()
this
.
getRuleInfo
()
},
},
methods
:
{
methods
:
{
// 获取分账记录
// 获取分账记录
getRuleInfo
()
{
getRuleInfo
()
{
getDivisionRecordById
({
id
:
this
.
recordInfo
.
e
ffectRuleId
}).
then
(
res
=>
{
getDivisionRecordById
({
id
:
this
.
recordInfo
.
wioE
ffectRuleId
}).
then
(
res
=>
{
this
.
ruleInfo
=
res
this
.
ruleInfo
=
res
const
format
=
"YYYY/MM/DD HH:mm"
const
format
=
"YYYY/MM/DD HH:mm"
this
.
ruleInfo
.
formatEffectEndDate
=
this
.
ruleInfo
.
effectEndDate
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