Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 1b51a376
authored
Feb 13, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' into 'v3.5.0'
合并3.4.2 See merge request
!427
2 parents
7fb5d511
be5eb999
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
472 additions
and
416 deletions
src/views/orderManage/index.vue
src/views/orderManage/orderDetail.vue
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/editCrowdFund.vue
src/views/orderManage/index.vue
View file @
1b51a37
<!-- 订单管理 -->
<!-- 订单管理 -->
<
template
>
<
template
>
<div
class=
"marketing order-manage"
>
<div
class=
"marketing order-manage"
>
<div
class=
"list-tips m-b-10"
>
<template
v-if=
"showTable"
>
<img
<div
class=
"list-tips m-b-10"
>
class=
"tips-img"
<img
src=
"@/assets/icon-info.png"
class=
"tips-img"
/>
src=
"@/assets/icon-info.png"
<span
class=
"table-tips"
>
/>
已生成有效订单
<span
class=
"table-tips"
>
<span
class=
"txt-blue"
>
{{
statisticsInfo
.
orderCount
||
0
}}
</span>
已生成有效订单
项 累计订单总额:
<span
class=
"txt-blue"
>
{{
statisticsInfo
.
orderCount
||
0
}}
</span>
<span
class=
"txt-blue"
>
{{
statisticsInfo
.
payPriceTotal
||
0
}}
</span>
项 累计订单总额:
元 累计退款总额:
<span
class=
"txt-blue"
>
{{
statisticsInfo
.
payPriceTotal
||
0
}}
</span>
<span
class=
"txt-blue"
>
{{
statisticsInfo
.
refundTotal
||
0
}}
</span>
元 累计退款总额:
元
<span
class=
"txt-blue"
>
{{
statisticsInfo
.
refundTotal
||
0
}}
</span>
</span>
元
</div>
</span>
<div
class=
"container"
>
</div>
<div
class=
"sticky"
>
<div
class=
"container"
>
<GLCombiForm
<div
class=
"sticky"
>
ref=
"showSearch"
<GLCombiForm
:rowNumber=
"1"
ref=
"showSearch"
:formObj=
"searchForm"
:rowNumber=
"1"
:formData=
"searchFormData"
:formObj=
"searchForm"
@
handleOk=
"handleSearch"
:formData=
"searchFormData"
@
handleRest=
"handleReset"
@
handleOk=
"handleSearch"
></GLCombiForm>
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"flex"
>
<div
class=
"flex"
>
<div
class=
"flex-default tabs"
>
<div
class=
"flex-default tabs"
>
<el-tabs
<el-tabs
v-model=
"searchForm.requestSource"
v-model=
"searchForm.requestSource"
@
tab-click=
"handleTabClick"
@
tab-click=
"handleTabClick"
>
>
<el-tab-pane
<el-tab-pane
label=
"全部订单"
label=
"全部订单"
name=
"0"
name=
"0"
></el-tab-pane>
></el-tab-pane>
<el-tab-pane
<el-tab-pane
label=
"已付款"
label=
"已付款"
name=
"1"
name=
"1"
></el-tab-pane>
></el-tab-pane>
<el-tab-pane
<el-tab-pane
label=
"未付款"
label=
"未付款"
name=
"2"
name=
"2"
></el-tab-pane>
></el-tab-pane>
<el-tab-pane
<el-tab-pane
label=
"已退款"
label=
"已退款"
name=
"3"
name=
"3"
></el-tab-pane>
></el-tab-pane>
<el-tab-pane
<el-tab-pane
label=
"售后订单"
label=
"售后订单"
name=
"4"
name=
"4"
></el-tab-pane>
></el-tab-pane>
</el-tabs>
</el-tabs>
</div>
<el-button
class=
"default-blue-btn"
:size=
"size"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
</div>
</div>
<el-button
class=
"default-blue-btn"
:size=
"size"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
</div>
</div>
</div>
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<div
class=
"order-manage-table"
>
<div
class=
"order-manage-table"
>
<template
v-if=
"showTable"
>
<GLTable
<GLTable
ref=
"allOrderRef"
ref=
"allOrderRef"
:getListApi=
"getListApi"
:getListApi=
"getListApi"
...
@@ -187,7 +188,12 @@
...
@@ -187,7 +188,12 @@
<
template
v-if=
"scope.scope.marketingStatus"
>
<
template
v-if=
"scope.scope.marketingStatus"
>
<span
:class=
"['table-circle', 'm-r-8', [1, 2].includes(scope.scope.marketingStatus) ? 'back-green' : 'back-grey']"
></span>
<span
:class=
"['table-circle', 'm-r-8', [1, 2].includes(scope.scope.marketingStatus) ? 'back-green' : 'back-grey']"
></span>
</
template
>
</
template
>
<span>
{{ baseData.marketingStatusList.map(item => item.confId).includes(scope.scope.marketingStatus + '') ? baseData.marketingStatusList.find(item => item.confId == scope.scope.marketingStatus).confName : '-' }}
</span>
<span>
{{ scope.scope.marketingStatus ?{
1:'已完结',
2:'已完结',
3:'未完结',
4:'已取消'
}[scope.scope.marketingStatus]: '-' }}
</span>
</div>
</div>
<div
<div
class=
"table-btns"
class=
"table-btns"
...
@@ -201,11 +207,11 @@
...
@@ -201,11 +207,11 @@
></GLTableButton>
></GLTableButton>
</div>
</div>
</GLTable>
</GLTable>
</template>
</div>
</div>
<!-- 表格区域 - 全部订单/售后订单 - end -->
<!-- 表格区域 - 全部订单/售后订单 - end -->
</div>
</div>
</template>
<!-- 快递信息 -->
<!-- 快递信息 -->
<GLDialog
<GLDialog
v-if=
"isExpressVisible"
v-if=
"isExpressVisible"
...
@@ -378,202 +384,7 @@ export default {
...
@@ -378,202 +384,7 @@ export default {
refundTotal
:
''
refundTotal
:
''
},
},
// 搜索
// 搜索
searchFormData
:
[
searchFormData
:
[],
{
label
:
'订单编号'
,
name
:
'orderCode'
,
type
:
'input'
},
{
label
:
'订单状态'
,
name
:
'orderStatuses'
,
type
:
'select'
,
multiple
:
true
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'searchOrderStatusList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
var
isAdd
=
value
.
length
>
this
.
oldVal
.
orderStatuses
.
length
var
targetVal
=
value
[
value
.
length
-
1
]
var
formIdx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
label
==
'订单状态'
)
if
(
!
isAdd
)
{
for
(
var
i
=
0
;
i
<
this
.
oldVal
.
orderStatuses
.
length
;
i
++
)
{
if
(
!
value
.
includes
(
this
.
oldVal
.
orderStatuses
[
i
]))
{
targetVal
=
this
.
oldVal
.
orderStatuses
[
i
]
break
}
}
}
!
targetVal
&&
(
this
.
searchForm
.
orderStatuses
=
isAdd
?
this
.
searchFormData
[
formIdx
].
optionList
.
map
(
item
=>
item
.
confId
)
:
[])
if
(
targetVal
)
{
var
idx
=
value
.
findIndex
(
item
=>
item
==
''
)
if
(
idx
!=
-
1
&&
this
.
searchForm
.
orderStatuses
.
length
<
this
.
searchFormData
[
formIdx
].
optionList
.
length
)
{
this
.
searchForm
.
orderStatuses
.
splice
(
idx
,
1
)
}
else
if
(
idx
==
-
1
&&
this
.
searchForm
.
orderStatuses
.
length
==
this
.
searchFormData
[
formIdx
].
optionList
.
length
-
1
)
{
this
.
searchForm
.
orderStatuses
.
push
(
''
)
}
}
this
.
oldVal
.
orderStatuses
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
.
orderStatuses
)
}
},
{
label
:
'售后状态'
,
name
:
'afterSaleStatuses'
,
type
:
'select'
,
labelWidth
:
72
,
multiple
:
true
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'searchAfterSaleStatusList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
var
isAdd
=
value
.
length
>
this
.
oldVal
.
afterSaleStatuses
.
length
var
targetVal
=
value
[
value
.
length
-
1
]
var
formIdx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
label
==
'售后状态'
)
if
(
!
isAdd
)
{
for
(
var
i
=
0
;
i
<
this
.
oldVal
.
afterSaleStatuses
.
length
;
i
++
)
{
if
(
!
value
.
includes
(
this
.
oldVal
.
afterSaleStatuses
[
i
]))
{
targetVal
=
this
.
oldVal
.
afterSaleStatuses
[
i
]
break
}
}
}
!
targetVal
&&
(
this
.
searchForm
.
afterSaleStatuses
=
isAdd
?
this
.
searchFormData
[
formIdx
].
optionList
.
map
(
item
=>
item
.
confId
)
:
[])
if
(
targetVal
)
{
var
idx
=
value
.
findIndex
(
item
=>
item
==
''
)
if
(
idx
!=
-
1
&&
this
.
searchForm
.
afterSaleStatuses
.
length
<
this
.
searchFormData
[
formIdx
].
optionList
.
length
)
{
this
.
searchForm
.
afterSaleStatuses
.
splice
(
idx
,
1
)
}
else
if
(
idx
==
-
1
&&
this
.
searchForm
.
afterSaleStatuses
.
length
==
this
.
searchFormData
[
formIdx
].
optionList
.
length
-
1
)
{
this
.
searchForm
.
afterSaleStatuses
.
push
(
''
)
}
}
this
.
oldVal
.
afterSaleStatuses
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
.
afterSaleStatuses
)
}
},
{
label
:
'门店'
,
name
:
'merchantName'
,
type
:
'input'
,
labelWidth
:
56
},
{
label
:
'客户姓名'
,
name
:
'customerName'
,
type
:
'input'
},
{
label
:
'订单日期'
,
name
:
'createDate'
,
type
:
'datePicker'
,
labelWidth
:
72
,
isClear
:
true
,
pickerOptions
:
'beforeRangePickerOptions'
},
{
label
:
'订单类型'
,
name
:
'orderSource'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'orderSourceList'
},
{
label
:
'结算方式'
,
name
:
'deliveryType'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'deliveryTypeList'
},
{
label
:
'商户订单号'
,
name
:
'outTradeNo'
,
type
:
'input'
,
maxlength
:
50
},
// {
// label: '车架号',
// name: 'vin',
// labelWidth: 56,
// type: 'input',
// maxlength: 50
// },
// {
// label: '推荐人',
// name: 'shareStaffName',
// labelWidth: 56,
// type: 'input',
// maxlength: 100
// },
// {
// label: '推荐人类型',
// name: 'shareStaffSource',
// type: 'select',
// optionList: [],
// optionId: 'confId',
// optionLabel: 'confName',
// optionsName: 'shareStaffSourceList'
// },
{
label
:
'活动名称'
,
name
:
'activityName'
,
labelWidth
:
56
,
type
:
'input'
,
maxlength
:
100
},
{
label
:
'商品名称'
,
name
:
'goodsName'
,
labelWidth
:
56
,
type
:
'input'
,
maxlength
:
100
},
// {
// label: '手机号',
// name: 'customerPhone',
// labelWidth: 56,
// type: 'input',
// maxlength: 11
// },
// {
// label: '推荐人手机号',
// name: 'shareStaffPhone',
// labelWidth: 56,
// type: 'input',
// maxlength: 11
// },
{
label
:
'测试单'
,
name
:
'orderType'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'testSheetTypeList'
},
{
label
:
'业务场景'
,
name
:
'businessType'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'optionId'
,
optionLabel
:
'optionLabel'
,
optionsName
:
'businessTypeList'
},
{
label
:
'营销状态'
,
name
:
'marketingStatus'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'marketingStatusList'
}
],
// 快递信息
// 快递信息
isExpressVisible
:
false
,
isExpressVisible
:
false
,
editChildRef
:
'editChildRef'
,
editChildRef
:
'editChildRef'
,
...
@@ -797,8 +608,7 @@ export default {
...
@@ -797,8 +608,7 @@ export default {
],
],
businessTypeList
:
utils
.
deepClone
(
businessType
),
businessTypeList
:
utils
.
deepClone
(
businessType
),
marketingStatusList
:
[
marketingStatusList
:
[
{
confId
:
'1'
,
confName
:
'已完结(自动)'
},
{
confId
:
'1'
,
confName
:
'已完结'
},
{
confId
:
'2'
,
confName
:
'已完结(手动)'
},
{
confId
:
'3'
,
confName
:
'未完结'
},
{
confId
:
'3'
,
confName
:
'未完结'
},
{
confId
:
'4'
,
confName
:
'已取消'
}
{
confId
:
'4'
,
confName
:
'已取消'
}
],
],
...
@@ -820,7 +630,6 @@ export default {
...
@@ -820,7 +630,6 @@ export default {
mounted
()
{
mounted
()
{
this
.
getCrowdfundingOrderConfig
()
this
.
getCrowdfundingOrderConfig
()
// this.getCount()
// this.getCount()
this
.
getOptionsList
(
'searchFormData'
)
},
},
methods
:
{
methods
:
{
...
@@ -1016,23 +825,227 @@ export default {
...
@@ -1016,23 +825,227 @@ export default {
return
cellValue
.
outTradeNo
||
'-'
return
cellValue
.
outTradeNo
||
'-'
}
}
}
}
]
],
searchFormData
=
[
{
label
:
'订单编号'
,
name
:
'orderCode'
,
type
:
'input'
},
{
label
:
'订单状态'
,
name
:
'orderStatuses'
,
type
:
'select'
,
multiple
:
true
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'searchOrderStatusList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
var
isAdd
=
value
.
length
>
this
.
oldVal
.
orderStatuses
.
length
var
targetVal
=
value
[
value
.
length
-
1
]
var
formIdx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
label
==
'订单状态'
)
if
(
!
isAdd
)
{
for
(
var
i
=
0
;
i
<
this
.
oldVal
.
orderStatuses
.
length
;
i
++
)
{
if
(
!
value
.
includes
(
this
.
oldVal
.
orderStatuses
[
i
]))
{
targetVal
=
this
.
oldVal
.
orderStatuses
[
i
]
break
}
}
}
!
targetVal
&&
(
this
.
searchForm
.
orderStatuses
=
isAdd
?
this
.
searchFormData
[
formIdx
].
optionList
.
map
(
item
=>
item
.
confId
)
:
[])
if
(
targetVal
)
{
var
idx
=
value
.
findIndex
(
item
=>
item
==
''
)
if
(
idx
!=
-
1
&&
this
.
searchForm
.
orderStatuses
.
length
<
this
.
searchFormData
[
formIdx
].
optionList
.
length
)
{
this
.
searchForm
.
orderStatuses
.
splice
(
idx
,
1
)
}
else
if
(
idx
==
-
1
&&
this
.
searchForm
.
orderStatuses
.
length
==
this
.
searchFormData
[
formIdx
].
optionList
.
length
-
1
)
{
this
.
searchForm
.
orderStatuses
.
push
(
''
)
}
}
this
.
oldVal
.
orderStatuses
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
.
orderStatuses
)
}
},
{
label
:
'售后状态'
,
name
:
'afterSaleStatuses'
,
type
:
'select'
,
labelWidth
:
72
,
multiple
:
true
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'searchAfterSaleStatusList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
var
isAdd
=
value
.
length
>
this
.
oldVal
.
afterSaleStatuses
.
length
var
targetVal
=
value
[
value
.
length
-
1
]
var
formIdx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
label
==
'售后状态'
)
if
(
!
isAdd
)
{
for
(
var
i
=
0
;
i
<
this
.
oldVal
.
afterSaleStatuses
.
length
;
i
++
)
{
if
(
!
value
.
includes
(
this
.
oldVal
.
afterSaleStatuses
[
i
]))
{
targetVal
=
this
.
oldVal
.
afterSaleStatuses
[
i
]
break
}
}
}
!
targetVal
&&
(
this
.
searchForm
.
afterSaleStatuses
=
isAdd
?
this
.
searchFormData
[
formIdx
].
optionList
.
map
(
item
=>
item
.
confId
)
:
[])
if
(
targetVal
)
{
var
idx
=
value
.
findIndex
(
item
=>
item
==
''
)
if
(
idx
!=
-
1
&&
this
.
searchForm
.
afterSaleStatuses
.
length
<
this
.
searchFormData
[
formIdx
].
optionList
.
length
)
{
this
.
searchForm
.
afterSaleStatuses
.
splice
(
idx
,
1
)
}
else
if
(
idx
==
-
1
&&
this
.
searchForm
.
afterSaleStatuses
.
length
==
this
.
searchFormData
[
formIdx
].
optionList
.
length
-
1
)
{
this
.
searchForm
.
afterSaleStatuses
.
push
(
''
)
}
}
this
.
oldVal
.
afterSaleStatuses
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
.
afterSaleStatuses
)
}
},
{
label
:
'门店'
,
name
:
'merchantName'
,
type
:
'input'
,
labelWidth
:
56
},
{
label
:
'客户姓名'
,
name
:
'customerName'
,
type
:
'input'
},
{
label
:
'订单日期'
,
name
:
'createDate'
,
type
:
'datePicker'
,
labelWidth
:
72
,
isClear
:
true
,
pickerOptions
:
'beforeRangePickerOptions'
},
{
label
:
'订单类型'
,
name
:
'orderSource'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'orderSourceList'
},
{
label
:
'结算方式'
,
name
:
'deliveryType'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'deliveryTypeList'
},
{
label
:
'商户订单号'
,
name
:
'outTradeNo'
,
type
:
'input'
,
maxlength
:
50
},
{
label
:
'车架号'
,
name
:
'vin'
,
labelWidth
:
56
,
type
:
'input'
,
maxlength
:
50
},
{
label
:
'推荐人'
,
name
:
'shareStaffName'
,
labelWidth
:
56
,
type
:
'input'
,
maxlength
:
100
},
{
label
:
'推荐人类型'
,
name
:
'shareStaffSource'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'shareStaffSourceList'
},
{
label
:
'活动名称'
,
name
:
'activityName'
,
labelWidth
:
56
,
type
:
'input'
,
maxlength
:
100
},
{
label
:
'商品名称'
,
name
:
'goodsName'
,
labelWidth
:
56
,
type
:
'input'
,
maxlength
:
100
},
{
label
:
'手机号'
,
name
:
'customerPhone'
,
labelWidth
:
56
,
type
:
'input'
,
maxlength
:
11
},
{
label
:
'推荐人手机号'
,
name
:
'shareStaffPhone'
,
labelWidth
:
56
,
type
:
'input'
,
maxlength
:
11
},
{
label
:
'测试单'
,
name
:
'orderType'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'testSheetTypeList'
},
{
label
:
'业务场景'
,
name
:
'businessType'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'optionId'
,
optionLabel
:
'optionLabel'
,
optionsName
:
'businessTypeList'
},
{
label
:
'营销状态'
,
name
:
'marketingStatus'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'marketingStatusList'
}
]
try
{
try
{
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
(),
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
(),
filterList
=
[
'customerPhone'
,
'otherInformation'
,
'shareStaffName'
,
'assignName'
,
'shareStaffPhone'
,
'verificationDate'
,
'vinNo'
,
'afterSaleStatus'
]
filterTableList
=
[
'customerPhone'
,
'otherInformation'
,
'shareStaffName'
,
'assignName'
,
'shareStaffPhone'
,
'verificationDate'
,
'vinNo'
,
'afterSaleStatus'
],
filterFormList
=
[
'afterSaleStatuses'
,
'vin'
,
'shareStaffName'
,
'shareStaffSource'
,
'customerPhone'
,
'shareStaffPhone'
]
if
(
res
==
1
)
{
if
(
res
==
1
)
{
for
(
let
i
=
0
;
i
<
tableColumns
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
tableColumns
.
length
;
i
++
)
{
if
(
filterList
.
includes
(
tableColumns
[
i
].
prop
))
{
if
(
filter
Table
List
.
includes
(
tableColumns
[
i
].
prop
))
{
tableColumns
.
splice
(
i
,
1
)
tableColumns
.
splice
(
i
,
1
)
i
--
i
--
}
}
}
}
for
(
let
i
=
0
;
i
<
searchFormData
.
length
;
i
++
)
{
if
(
filterFormList
.
includes
(
searchFormData
[
i
].
name
))
{
searchFormData
.
splice
(
i
,
1
)
i
--
}
}
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
)
}
}
this
.
tableParams
.
tableColumns
=
tableColumns
this
.
tableParams
.
tableColumns
=
tableColumns
this
.
searchFormData
=
searchFormData
this
.
showTable
=
true
this
.
showTable
=
true
this
.
getOptionsList
(
'searchFormData'
)
},
},
initParams
()
{
initParams
()
{
const
cell
=
{
const
cell
=
{
...
...
src/views/orderManage/orderDetail.vue
View file @
1b51a37
...
@@ -4,78 +4,56 @@
...
@@ -4,78 +4,56 @@
<div
class=
"edit-box"
>
<div
class=
"edit-box"
>
<div
class=
"container m-b-20"
>
<div
class=
"container m-b-20"
>
<p
class=
"edit-title"
>
订单信息
</p>
<p
class=
"edit-title"
>
订单信息
</p>
<el-form
label-width=
"100px"
<el-form
label-width=
"100px"
:inline=
"true"
>
:inline=
"true"
>
<el-row
v-for=
"(item, index) in detailFormDataRow"
:key=
"index"
>
<el-row
v-for=
"(item, index) in detailFormDataRow"
<el-form-item
v-for=
"(subItem, subIndex) in item.rowList"
:key=
"subIndex"
:label=
"subItem.label"
class=
"row-item"
>
:key=
"index"
>
<span
class=
"detail-txt ellipsis-1"
:title=
"detailForm[subItem.name]"
>
{{
detailForm
[
subItem
.
name
]
?
detailForm
[
subItem
.
name
]
+
(
subItem
.
suffix
||
''
)
:
'-'
}}
</span>
<el-form-item
v-for=
"(subItem, subIndex) in item.rowList"
:key=
"subIndex"
:label=
"subItem.label"
class=
"row-item"
>
<span
class=
"detail-txt ellipsis-1"
:title=
"detailForm[subItem.name]"
>
{{
detailForm
[
subItem
.
name
]
?
detailForm
[
subItem
.
name
]
+
(
subItem
.
suffix
||
''
)
:
'-'
}}
</span>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
<!--
<el-form-item
label=
"其他信息"
>
{{
detailForm
.
formDescribe
}}
</el-form-item>
-->
<template
v-if=
"detailForm.formDescribe"
>
<el-form-item
label=
"其他信息"
>
{{
detailForm
.
formDescribe
}}
</el-form-item>
</
template
>
</el-form>
</el-form>
</div>
</div>
<div
:class=
"['container', orderRefund ? 'm-b-20' : 'edit-container']"
>
<div
:class=
"['container', orderRefund ? 'm-b-20' : 'edit-container']"
>
<p
class=
"edit-title"
>
发货信息
</p>
<p
class=
"edit-title"
>
发货信息
</p>
<el-form
label-width=
"100px"
<el-form
label-width=
"100px"
:inline=
"true"
>
:inline=
"true"
>
<el-form-item
label=
"物流信息"
>
<el-form-item
label=
"物流信息"
>
<span>
{{ detailForm.deliveryCompany }}
{{ detailForm.deliveryNumber }}
</span>
<span>
{{ detailForm.deliveryCompany }}
{{ detailForm.deliveryNumber }}
</span>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
v-if=
"orderGoods.length"
<div
v-if=
"orderGoods.length"
class=
"p-l-40"
>
class=
"p-l-40"
>
<table
class=
"show-table"
>
<table
class=
"show-table"
>
<tbody>
<tbody>
<tr
v-for=
"(item, index) in orderGoods"
<tr
v-for=
"(item, index) in orderGoods"
:key=
"index"
style=
"height: 70px;"
>
:key=
"index"
<td><img
:src=
"item.goodsImage"
class=
"img-60"
/></td>
style=
"height: 70px;"
>
<td><img
:src=
"item.goodsImage"
class=
"img-60"
/></td>
<td>
{{ item.goodsName }}
</td>
<td>
{{ item.goodsName }}
</td>
<td>
{{ item.specificationData }}
</td>
<td>
{{ item.specificationData }}
</td>
<td>
{{
item
.
activityPrice
?
item
.
activityPrice
:
item
.
retailPrice
}}
元 *
<td>
{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 * {{ item.goodsNumber }}
</td>
{{
item
.
goodsNumber
}}
</td>
</tr>
</tr>
<tr
v-if=
"detailForm.subOrderCoupon"
<tr
v-if=
"detailForm.subOrderCoupon"
style=
"height: 40px;"
>
style=
"height: 40px;"
>
<td
style=
"text-align: left;"
colspan=
"3"
>
优惠券
</td>
<td
style=
"text-align: left;"
colspan=
"3"
>
优惠券
</td>
<td>
{{ detailForm.subOrderCoupon.discountAmount }}元
</td>
<td>
{{ detailForm.subOrderCoupon.discountAmount }}元
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
</div>
</div>
</div>
</div>
<div
class=
"container edit-container"
<div
class=
"container edit-container"
v-if=
"orderRefund"
>
v-if=
"orderRefund"
>
<p
class=
"edit-title"
>
售后信息
</p>
<p
class=
"edit-title"
>
售后信息
</p>
<el-form
label-width=
"100px"
<el-form
label-width=
"100px"
:inline=
"true"
>
:inline=
"true"
>
<el-row
v-for=
"(item, index) in afterInfoDataRow"
:key=
"index"
>
<el-row
v-for=
"(item, index) in afterInfoDataRow"
<el-form-item
v-for=
"(subItem, subIndex) in item.rowList"
:key=
"subIndex"
:label=
"subItem.label"
>
:key=
"index"
>
<span
class=
"detail-txt ellipsis-1"
:title=
"orderRefund[subItem.name]"
>
{{ orderRefund[subItem.name] || '-' }}
</span>
<el-form-item
v-for=
"(subItem, subIndex) in item.rowList"
:key=
"subIndex"
:label=
"subItem.label"
>
<span
class=
"detail-txt ellipsis-1"
:title=
"orderRefund[subItem.name]"
>
{{
orderRefund
[
subItem
.
name
]
||
'-'
}}
</span>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
</el-form>
</el-form>
<div
class=
"form-img"
>
<div
class=
"form-img"
>
<el-form
label-width=
"100px"
<el-form
label-width=
"100px"
:inline=
"true"
>
:inline=
"true"
>
<el-form-item
label=
"售后凭证"
>
<el-form-item
label=
"售后凭证"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<span
v-for=
"(item, index) in orderRefund.imgUrls"
<span
v-for=
"(item, index) in orderRefund.imgUrls"
:key=
"index"
>
:key=
"index"
>
<el-image
class=
"img-60 comment-img"
:src=
"item"
:preview-src-list=
"[item]"
></el-image>
<el-image
class=
"img-60 comment-img"
:src=
"item"
:preview-src-list=
"[item]"
></el-image>
</span>
</span>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -84,8 +62,7 @@
...
@@ -84,8 +62,7 @@
</div>
</div>
</div>
</div>
<GLFooter>
<GLFooter>
<el-button
@
click=
"handleCancel"
<el-button
@
click=
"handleCancel"
size=
"medium"
>
取消
</el-button>
size=
"medium"
>
取消
</el-button>
</GLFooter>
</GLFooter>
</div>
</div>
</template>
</template>
...
@@ -108,7 +85,67 @@ export default {
...
@@ -108,7 +85,67 @@ export default {
orderGoods
:
[],
orderGoods
:
[],
// 订单信息
// 订单信息
detailFormDataRow
:
[],
detailFormDataRow
:
[],
detailFormData
:
[
detailFormData
:
[],
// 售后信息
afterInfoDataRow
:
[],
afterInfoData
:
[
{
label
:
'售后类型'
,
name
:
'refundTypeName'
},
{
label
:
'申请金额'
,
name
:
'refundPrice'
},
{
label
:
'申请时间'
,
name
:
'createdDateStr'
},
{
label
:
'申请描述'
,
name
:
'remark'
},
{
label
:
'快递公司'
,
name
:
'deliveryCompany'
},
{
label
:
'快递单号'
,
name
:
'deliveryNumber'
}
// {
// label: '售后凭证',
// name: ''
// }
],
// 基本数据
baseData
:
{
orderStatusList
:
orderManageStatusList
,
orderSourceList
:
orderSourceList
,
deliveryTypeList
:
deliveryTypeList
,
refundTypeList
:
[
{
confId
:
'1'
,
confName
:
'退款退货'
},
{
confId
:
'2'
,
confName
:
'退款不退货'
},
{
confId
:
'3'
,
confName
:
'众筹订单退款'
}
],
shareStaffTypeList
:
[
{
confId
:
'1'
,
confName
:
'个微'
},
{
confId
:
'2'
,
confName
:
'企微'
}
]
},
hideStatus
:
false
}
},
created
()
{},
mounted
()
{
this
.
getCrowdfundingOrderConfig
()
},
methods
:
{
async
getCrowdfundingOrderConfig
()
{
let
detailFormData
=
[
{
{
label
:
'订单编号'
,
label
:
'订单编号'
,
name
:
'orderCode'
name
:
'orderCode'
...
@@ -121,22 +158,26 @@ export default {
...
@@ -121,22 +158,26 @@ export default {
label
:
'订单时间'
,
label
:
'订单时间'
,
name
:
'createdDateStr'
name
:
'createdDateStr'
},
},
// {
{
// label: '手机号码',
label
:
'手机号码'
,
// name: 'customerPhone'
name
:
'customerPhone'
// },
},
// {
{
// label: '推荐人',
label
:
'推荐人'
,
// name: 'shareStaffName'
name
:
'shareStaffName'
// },
},
// {
{
// label: '推荐人类型',
label
:
'推荐人ID'
,
// name: 'shareStaffTypeName'
name
:
'shareStaffId'
// },
},
// {
{
// label: '车架号',
label
:
'推荐人类型'
,
// name: 'vin'
name
:
'shareStaffTypeName'
// },
},
{
label
:
'车架号'
,
name
:
'vin'
},
{
{
label
:
'门店信息'
,
label
:
'门店信息'
,
name
:
'merchantName'
name
:
'merchantName'
...
@@ -166,10 +207,10 @@ export default {
...
@@ -166,10 +207,10 @@ export default {
label
:
'尾款'
,
label
:
'尾款'
,
name
:
'crowdFundingPrice'
name
:
'crowdFundingPrice'
},
},
//
{
{
//
label: '发货地址',
label
:
'发货地址'
,
//
name: 'shipAddress'
name
:
'shipAddress'
//
},
},
{
{
label
:
'微信名称'
,
label
:
'微信名称'
,
name
:
'weChatName'
name
:
'weChatName'
...
@@ -182,68 +223,25 @@ export default {
...
@@ -182,68 +223,25 @@ export default {
label
:
'商品名称'
,
label
:
'商品名称'
,
name
:
'goodsName'
name
:
'goodsName'
}
}
],
]
// 售后信息
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
()
afterInfoDataRow
:
[],
let
hideStatus
=
res
==
1
afterInfoData
:
[
if
(
hideStatus
)
{
{
const
filterFormList
=
[
'customerPhone'
,
'shareStaffName'
,
'shareStaffTypeName'
,
'vin'
,
'shipAddress'
]
label
:
'售后类型'
,
for
(
let
i
=
0
;
i
<
detailFormData
.
length
;
i
++
)
{
name
:
'refundTypeName'
if
(
filterFormList
.
includes
(
detailFormData
[
i
].
name
))
{
},
detailFormData
.
splice
(
i
,
1
)
{
i
--
label
:
'申请金额'
,
}
name
:
'refundPrice'
},
{
label
:
'申请时间'
,
name
:
'createdDateStr'
},
{
label
:
'申请描述'
,
name
:
'remark'
},
{
label
:
'快递公司'
,
name
:
'deliveryCompany'
},
{
label
:
'快递单号'
,
name
:
'deliveryNumber'
}
}
// {
// label: '售后凭证',
// name: ''
// }
],
// 基本数据
baseData
:
{
orderStatusList
:
orderManageStatusList
,
orderSourceList
:
orderSourceList
,
deliveryTypeList
:
deliveryTypeList
,
refundTypeList
:
[
{
confId
:
'1'
,
confName
:
'退款退货'
},
{
confId
:
'2'
,
confName
:
'退款不退货'
},
{
confId
:
'3'
,
confName
:
'众筹订单退款'
}
],
shareStaffTypeList
:
[
{
confId
:
'1'
,
confName
:
'个微'
},
{
confId
:
'2'
,
confName
:
'企微'
}
]
}
}
}
this
.
hideStatus
=
hideStatus
},
this
.
detailFormData
=
detailFormData
this
.
setMinHeight
(
'.edit-box'
)
created
()
{
this
.
routeInfo
=
this
.
$route
.
query
this
.
formToRow
(
'afterInfoData'
)
this
.
getInfo
()
},
this
.
formToRow
(
'afterInfoData'
)
},
mounted
()
{
this
.
setMinHeight
(
'.edit-box'
)
this
.
routeInfo
=
this
.
$route
.
query
this
.
getInfo
()
},
methods
:
{
formToRow
(
formName
,
numOfRow
=
3
)
{
formToRow
(
formName
,
numOfRow
=
3
)
{
var
rowNum
=
Math
.
ceil
(
this
[
formName
].
length
/
numOfRow
)
var
rowNum
=
Math
.
ceil
(
this
[
formName
].
length
/
numOfRow
)
for
(
var
i
=
0
;
i
<
rowNum
;
i
++
)
{
for
(
var
i
=
0
;
i
<
rowNum
;
i
++
)
{
...
@@ -276,6 +274,9 @@ export default {
...
@@ -276,6 +274,9 @@ export default {
this
.
detailForm
.
subOrderCoupon
.
discountAmount
=
(
this
.
detailForm
.
subOrderCoupon
.
discountAmount
/
100
).
toFixed
(
2
)
this
.
detailForm
.
subOrderCoupon
.
discountAmount
=
(
this
.
detailForm
.
subOrderCoupon
.
discountAmount
/
100
).
toFixed
(
2
)
}
}
this
.
orderGoods
=
res
.
orderGoods
||
[]
this
.
orderGoods
=
res
.
orderGoods
||
[]
if
((
res
.
crowdFundingPrice
||
res
.
crowdFundingPrice
==
0
)
&&
(
res
.
payPrice
||
res
.
payPrice
==
0
))
{
this
.
detailForm
.
crowdFundingPrice
=
(
res
.
crowdFundingPrice
-
res
.
payPrice
).
toFixed
(
2
)
+
'元'
}
this
.
detailForm
.
payPrice
=
res
.
payPrice
?
res
.
payPrice
+
'元'
:
'0元'
this
.
detailForm
.
payPrice
=
res
.
payPrice
?
res
.
payPrice
+
'元'
:
'0元'
this
.
detailForm
.
orderSourceName
=
this
.
baseData
.
orderSourceList
.
map
(
item
=>
item
.
confId
).
includes
(
res
.
orderSource
+
''
)
?
this
.
baseData
.
orderSourceList
.
find
(
item
=>
item
.
confId
==
res
.
orderSource
).
confName
:
'-'
this
.
detailForm
.
orderSourceName
=
this
.
baseData
.
orderSourceList
.
map
(
item
=>
item
.
confId
).
includes
(
res
.
orderSource
+
''
)
?
this
.
baseData
.
orderSourceList
.
find
(
item
=>
item
.
confId
==
res
.
orderSource
).
confName
:
'-'
this
.
detailForm
.
orderStatusName
=
this
.
baseData
.
orderStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
res
.
orderStatus
+
''
)
?
this
.
baseData
.
orderStatusList
.
find
(
item
=>
item
.
confId
==
res
.
orderStatus
).
confName
:
'-'
this
.
detailForm
.
orderStatusName
=
this
.
baseData
.
orderStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
res
.
orderStatus
+
''
)
?
this
.
baseData
.
orderStatusList
.
find
(
item
=>
item
.
confId
==
res
.
orderStatus
).
confName
:
'-'
...
@@ -288,22 +289,24 @@ export default {
...
@@ -288,22 +289,24 @@ export default {
this
.
detailFormData
.
splice
(
idx
,
1
)
this
.
detailFormData
.
splice
(
idx
,
1
)
}
}
// 其他信息
// 其他信息
// var formDescribeObj = {
if
(
!
this
.
hideStatus
)
{
// label: '其他信息',
var
formDescribeObj
=
{
// name: 'formDescribe',
label
:
'其他信息'
,
// contentName: 'formContent',
name
:
'formDescribe'
,
// attrList: ['First', 'Second']
contentName
:
'formContent'
,
// }
attrList
:
[
'First'
,
'Second'
]
// this.detailForm[formDescribeObj.name] = ''
}
// this.detailForm[formDescribeObj.name] = this.detailForm.plateNo ? '车牌号:' + this.detailForm.plateNo + ' ' : ''
this
.
detailForm
[
formDescribeObj
.
name
]
=
''
// this.detailForm[formDescribeObj.name] += this.detailForm.vehicleType ? '品牌车型:' + this.detailForm.vehicleType + ' ' : ''
this
.
detailForm
[
formDescribeObj
.
name
]
=
this
.
detailForm
.
plateNo
?
'车牌号:'
+
this
.
detailForm
.
plateNo
+
' '
:
''
// formDescribeObj.attrList.forEach(item => {
this
.
detailForm
[
formDescribeObj
.
name
]
+=
this
.
detailForm
.
vehicleType
?
'品牌车型:'
+
this
.
detailForm
.
vehicleType
+
' '
:
''
// let label = this.detailForm[formDescribeObj.name + item]
formDescribeObj
.
attrList
.
forEach
(
item
=>
{
// let value = this.detailForm[formDescribeObj.contentName + item]
let
label
=
this
.
detailForm
[
formDescribeObj
.
name
+
item
]
// if (label) {
let
value
=
this
.
detailForm
[
formDescribeObj
.
contentName
+
item
]
// this.detailForm[formDescribeObj.name] += label + ':' + value + ' '
if
(
label
)
{
// }
this
.
detailForm
[
formDescribeObj
.
name
]
+=
label
+
':'
+
value
+
' '
// })
}
})
}
// 商品名称
// 商品名称
this
.
detailForm
.
goodsName
=
this
.
detailForm
.
orderGoods
.
length
?
this
.
detailForm
.
orderGoods
.
map
(
item
=>
item
.
goodsName
).
join
(
','
)
:
'-'
this
.
detailForm
.
goodsName
=
this
.
detailForm
.
orderGoods
.
length
?
this
.
detailForm
.
orderGoods
.
map
(
item
=>
item
.
goodsName
).
join
(
','
)
:
'-'
this
.
formToRow
(
'detailFormData'
)
this
.
formToRow
(
'detailFormData'
)
...
...
src/views/seckillActivity/crowdFundList.vue
View file @
1b51a37
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
slot=
"linkText"
slot=
"linkText"
slot-scope=
"scope"
slot-scope=
"scope"
>
>
<template
v-if=
"scope.scope.incrementFlag == 'Y'"
>
<template
v-if=
"scope.scope.incrementFlag == 'Y'
|| hideStatus
"
>
{{
scope
.
scope
[
scope
.
prop
]
||
0
}}
{{
scope
.
scope
[
scope
.
prop
]
||
0
}}
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
...
@@ -337,7 +337,8 @@ export default {
...
@@ -337,7 +337,8 @@ export default {
1
:
'广联收定金和尾款'
,
1
:
'广联收定金和尾款'
,
2
:
'广联收定金门店收尾款'
,
2
:
'广联收定金门店收尾款'
,
3
:
'广联收定金门店收全款退定金'
,
3
:
'广联收定金门店收全款退定金'
,
4
:
'门店收定金和尾款'
4
:
'门店收定金和尾款'
,
5
:
'服务商收定金门店收尾款'
}
}
return
model
[
cellValue
.
paymentModel
]
||
'--'
return
model
[
cellValue
.
paymentModel
]
||
'--'
}
}
...
@@ -411,7 +412,8 @@ export default {
...
@@ -411,7 +412,8 @@ export default {
confName
:
'已结束'
confName
:
'已结束'
}
}
]
]
}
},
hideStatus
:
false
}
}
},
},
...
@@ -421,10 +423,15 @@ export default {
...
@@ -421,10 +423,15 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
getCrowdfundingOrderConfig
()
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
},
},
methods
:
{
methods
:
{
async
getCrowdfundingOrderConfig
()
{
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
()
this
.
hideStatus
=
res
==
1
},
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
return
params
return
params
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
1b51a37
...
@@ -335,6 +335,34 @@
...
@@ -335,6 +335,34 @@
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
</div>
</div>
<!-- 收款模式 -->
<div
slot=
"paymentModel"
class=
"paymentModelSlot"
>
<el-radio-group
v-model=
"editForm.paymentModel"
:disabled=
"isDisabled"
>
<el-radio
:disabled=
"isDisabled"
:label=
"1"
>
广联收定金和尾款
</el-radio>
<el-radio
:disabled=
"isDisabled"
:label=
"2"
>
广联收定金门店收尾款
</el-radio>
<el-radio
:disabled=
"isDisabled"
:label=
"3"
>
广联收定金门店收全款退定金
</el-radio>
<el-radio
:disabled=
"isDisabled"
:label=
"4"
>
门店收定金和尾款
</el-radio>
<el-radio
:disabled=
"isDisabled"
:label=
"5"
>
服务商收定金门店收尾款
</el-radio>
</el-radio-group>
</div>
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
<GLFooter>
<GLFooter>
...
@@ -447,7 +475,7 @@ export default {
...
@@ -447,7 +475,7 @@ export default {
forwardTitle
:
''
,
forwardTitle
:
''
,
posterImg
:
''
,
posterImg
:
''
,
// 1-否,2-是
// 1-否,2-是
orderEndDays
:
3
0
,
//订单完结时间天数
orderEndDays
:
6
0
,
//订单完结时间天数
selectCarNumberFlag
:
2
,
selectCarNumberFlag
:
2
,
selectVehicleTypeFlag
:
2
,
selectVehicleTypeFlag
:
2
,
selectPhoneNumberFlag
:
2
,
selectPhoneNumberFlag
:
2
,
...
@@ -1144,6 +1172,11 @@ export default {
...
@@ -1144,6 +1172,11 @@ export default {
optionId
:
'id'
,
optionId
:
'id'
,
optionLabel
:
'accountName'
,
optionLabel
:
'accountName'
,
optionList
:
[]
optionList
:
[]
},
{
label
:
'收款模式'
,
name
:
'paymentModel'
,
addHtml
:
'paymentModel'
}
}
],
],
//直播配置
//直播配置
...
...
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