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 10493e7f
authored
May 23, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
e5878efb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
295 additions
and
454 deletions
src/views/orderManage/index.vue
src/views/productStore/index.vue
src/views/orderManage/index.vue
View file @
10493e7
...
@@ -3,10 +3,7 @@
...
@@ -3,10 +3,7 @@
<div
class=
"marketing order-manage"
>
<div
class=
"marketing order-manage"
>
<template
v-if=
"showTable"
>
<template
v-if=
"showTable"
>
<div
class=
"list-tips m-b-10"
>
<div
class=
"list-tips m-b-10"
>
<img
<img
class=
"tips-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>
...
@@ -19,158 +16,65 @@
...
@@ -19,158 +16,65 @@
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"sticky"
>
<div
class=
"sticky"
>
<GLCombiForm
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
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"
@
tab-click=
"handleTabClick"
>
v-model=
"searchForm.requestSource"
<el-tab-pane
label=
"全部订单"
name=
"0"
></el-tab-pane>
@
tab-click=
"handleTabClick"
<el-tab-pane
label=
"已付款"
name=
"1"
></el-tab-pane>
>
<el-tab-pane
label=
"未付款"
name=
"2"
></el-tab-pane>
<el-tab-pane
<el-tab-pane
label=
"已退款"
name=
"3"
></el-tab-pane>
label=
"全部订单"
<el-tab-pane
label=
"售后订单"
name=
"4"
></el-tab-pane>
name=
"0"
></el-tab-pane>
<el-tab-pane
label=
"已付款"
name=
"1"
></el-tab-pane>
<el-tab-pane
label=
"未付款"
name=
"2"
></el-tab-pane>
<el-tab-pane
label=
"已退款"
name=
"3"
></el-tab-pane>
<el-tab-pane
label=
"售后订单"
name=
"4"
></el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
<el-button
<el-button
v-if=
"configShow"
class=
"default-blue-btn"
:size=
"size"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
v-if=
"configShow"
class=
"default-blue-btn"
:size=
"size"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
</div>
</div>
</div>
</div>
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<div
class=
"order-manage-table"
>
<div
class=
"order-manage-table"
>
<GLTable
ref=
"allOrderRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
<div
slot=
"giveEquityCard"
slot-scope=
"scope"
v-if=
"showGh && scope.scope.giveEquityCard == 1"
>
ref=
"allOrderRef"
<div
class=
"gold-sign"
>
送会员
</div>
:getListApi=
"getListApi"
</div>
:noDataImg=
"url"
<div
slot=
"weChatName"
class=
"flex-align"
slot-scope=
"scope"
>
:searchForm=
"tableSearchForm"
<img
v-if=
"scope.scope.weChatImageUrl"
class=
"img-36 pointer img-circle"
:src=
"scope.scope.weChatImageUrl"
/>
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"weChatName"
class=
"flex-align"
slot-scope=
"scope"
>
<img
v-if=
"scope.scope.weChatImageUrl"
class=
"img-36 pointer img-circle"
:src=
"scope.scope.weChatImageUrl"
/>
<span
class=
"m-l-10"
>
{{
scope
.
scope
.
weChatName
}}
</span>
<span
class=
"m-l-10"
>
{{
scope
.
scope
.
weChatName
}}
</span>
<span
v-if=
"!scope.scope.shareAvatar && !scope.scope.weChatName"
>
-
</span>
<span
v-if=
"!scope.scope.shareAvatar && !scope.scope.weChatName"
>
-
</span>
</div>
</div>
<template
<template
slot=
"vinNo"
slot-scope=
"scope"
>
slot=
"vinNo"
slot-scope=
"scope"
>
{{
Array
.
isArray
(
scope
.
scope
.
vinNo
)
?
scope
.
scope
.
vinNo
[
0
]
:
scope
.
scope
.
vinNo
}}
{{
Array
.
isArray
(
scope
.
scope
.
vinNo
)
?
scope
.
scope
.
vinNo
[
0
]
:
scope
.
scope
.
vinNo
}}
<el-popover
<el-popover
popper-class=
"order-table-popover"
placement=
"right-start"
trigger=
"click"
>
popper-class=
"order-table-popover"
<p
v-for=
"(item, index) in scope.scope.vinNo"
:key=
"index"
>
{{
item
}}
</p>
placement=
"right-start"
<span
class=
"car-no"
slot=
"reference"
v-show=
"Array.isArray(scope.scope.vinNo)"
>
...(
{{
scope
.
scope
.
vinNo
.
length
-
1
}}
)
</span>
trigger=
"click"
>
<p
v-for=
"(item, index) in scope.scope.vinNo"
:key=
"index"
>
{{
item
}}
</p>
<span
class=
"car-no"
slot=
"reference"
v-show=
"Array.isArray(scope.scope.vinNo)"
>
...(
{{
scope
.
scope
.
vinNo
.
length
-
1
}}
)
</span>
</el-popover>
</el-popover>
</
template
>
</
template
>
<div
<div
slot=
"orderStatus"
slot-scope=
"scope"
>
slot=
"orderStatus"
slot-scope=
"scope"
>
<span
:class=
"['table-circle', 'm-r-8', [2, 10, 22].includes(scope.scope.orderStatus) ? 'back-green' : [9].includes(scope.scope.orderStatus) ? 'back-blue' : [1, 21, 6].includes(scope.scope.orderStatus) ? 'back-orange' : 'back-grey']"
></span>
<span
:class=
"['table-circle', 'm-r-8', [2, 10, 22].includes(scope.scope.orderStatus) ? 'back-green' : [9].includes(scope.scope.orderStatus) ? 'back-blue' : [1, 21, 6].includes(scope.scope.orderStatus) ? 'back-orange' : 'back-grey']"
></span>
<span>
{{ baseData.orderStatusList.map(item => item.confId).includes(scope.scope.orderStatus + '') ? baseData.orderStatusList.find(item => item.confId == scope.scope.orderStatus).confName : '-' }}
</span>
<span>
{{ baseData.orderStatusList.map(item => item.confId).includes(scope.scope.orderStatus + '') ? baseData.orderStatusList.find(item => item.confId == scope.scope.orderStatus).confName : '-' }}
</span>
</div>
</div>
<div
<div
slot=
"shareStaffName"
class=
"table-image"
slot-scope=
"scope"
>
slot=
"shareStaffName"
class=
"table-image"
slot-scope=
"scope"
>
<div>
<div>
<img
<img
v-if=
"scope.scope.shareStaffImageUrl"
class=
"img-36 pointer img-circle"
style=
"vertical-align: middle"
slot=
"reference"
:src=
"scope.scope.shareStaffImageUrl"
/>
v-if=
"scope.scope.shareStaffImageUrl"
class=
"img-36 pointer img-circle"
style=
"vertical-align: middle"
slot=
"reference"
:src=
"scope.scope.shareStaffImageUrl"
/>
<span
class=
"m-l-10"
>
<span
class=
"m-l-10"
>
<span>
{{ scope.scope.shareStaffName }}
</span>
<span>
{{ scope.scope.shareStaffName }}
</span>
<span
<span
class=
"txt-green"
v-if=
"scope.scope.shareStaffSource == 1"
>
@微信
</span>
class=
"txt-green"
<span
class=
"txt-orange"
v-if=
"scope.scope.shareStaffSource == 2"
>
@企微
</span>
v-if=
"scope.scope.shareStaffSource == 1"
<span
class=
"txt-blue"
v-if=
"scope.scope.shareStaffSource == 3"
>
@员工
</span>
>
@微信
</span>
<span
class=
"txt-orange"
v-if=
"scope.scope.shareStaffSource == 2"
>
@企微
</span>
<span
class=
"txt-blue"
v-if=
"scope.scope.shareStaffSource == 3"
>
@员工
</span>
</span>
</span>
</div>
</div>
<span
v-if=
"!scope.scope.shareStaffImageUrl && !scope.scope.shareStaffName"
>
-
</span>
<span
v-if=
"!scope.scope.shareStaffImageUrl && !scope.scope.shareStaffName"
>
-
</span>
</div>
</div>
<div
<div
slot=
"assignName"
slot-scope=
"scope"
>
slot=
"assignName"
slot-scope=
"scope"
>
<div>
<div>
<
template
v-if=
"scope.scope.assignStaffName"
>
<
template
v-if=
"scope.scope.assignStaffName"
>
<img
<img
class=
"img-36 pointer img-circle"
v-if=
"scope.scope.assignStaffImageUrl"
:src=
"scope.scope.assignStaffImageUrl"
/>
class=
"img-36 pointer img-circle"
v-if=
"scope.scope.assignStaffImageUrl"
:src=
"scope.scope.assignStaffImageUrl"
/>
<span
class=
"m-l-10"
>
<span
class=
"m-l-10"
>
<span>
{{
scope
.
scope
.
assignStaffName
}}
</span>
<span>
{{
scope
.
scope
.
assignStaffName
}}
</span>
</span>
</span>
</
template
>
</
template
>
<
template
v-else-if=
"scope.scope.shareStaffName"
>
<
template
v-else-if=
"scope.scope.shareStaffName"
>
<img
<img
class=
"img-36 pointer img-circle"
v-if=
"scope.scope.shareStaffImageUrl"
:src=
"scope.scope.shareStaffImageUrl"
/>
class=
"img-36 pointer img-circle"
v-if=
"scope.scope.shareStaffImageUrl"
:src=
"scope.scope.shareStaffImageUrl"
/>
<span
class=
"m-l-10"
>
<span
class=
"m-l-10"
>
<span>
{{
scope
.
scope
.
shareStaffName
}}
</span>
<span>
{{
scope
.
scope
.
shareStaffName
}}
</span>
</span>
</span>
...
@@ -182,30 +86,25 @@
...
@@ -182,30 +86,25 @@
class="assignLabel">指派</span> -->
class="assignLabel">指派</span> -->
</div>
</div>
</div>
</div>
<div
<div
slot=
"marketingStatus"
slot-scope=
"scope"
>
slot=
"marketingStatus"
slot-scope=
"scope"
>
<
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>
{{ scope.scope.marketingStatus ?{
<span>
1:'已完结',
{{
2:'已完结',
scope.scope.marketingStatus
3:'未完结',
? {
4:'已取消'
1: '已完结',
}[scope.scope.marketingStatus]: '-' }}
</span>
2: '已完结',
3: '未完结',
4: '已取消'
}[scope.scope.marketingStatus]
: '-'
}}
</span>
</div>
</div>
<div
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
class=
"table-btns"
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</div>
</GLTable>
</GLTable>
</div>
</div>
...
@@ -214,59 +113,15 @@
...
@@ -214,59 +113,15 @@
</div>
</div>
</template>
</template>
<!-- 快递信息 -->
<!-- 快递信息 -->
<GLDialog
<GLDialog
v-if=
"isExpressVisible"
title=
"输入快递信息"
mode=
"mid"
okText=
"确定"
cancelText=
"取消"
:visible
.
sync=
"isExpressVisible"
@
onOk=
"handleExpressConfirm"
@
onCancel=
"handleExpressClose"
>
v-if=
"isExpressVisible"
<glsx-combi-form
class=
"small-content m-t-20"
ref=
"expressRef"
:isBlock=
"true"
defaultWidth=
"284px"
:isEdit=
"isEdit"
:formRef=
"editChildRef"
:formObj=
"expressForm"
:formData=
"expressFormData"
:formRules=
"expressRules"
></glsx-combi-form>
title=
"输入快递信息"
mode=
"mid"
okText=
"确定"
cancelText=
"取消"
:visible
.
sync=
"isExpressVisible"
@
onOk=
"handleExpressConfirm"
@
onCancel=
"handleExpressClose"
>
<glsx-combi-form
class=
"small-content m-t-20"
ref=
"expressRef"
:isBlock=
"true"
defaultWidth=
"284px"
:isEdit=
"isEdit"
:formRef=
"editChildRef"
:formObj=
"expressForm"
:formData=
"expressFormData"
:formRules=
"expressRules"
></glsx-combi-form>
</GLDialog>
</GLDialog>
<!-- 订单核销 -->
<!-- 订单核销 -->
<GLDialog
<GLDialog
v-if=
"isWriteOffVisible"
title=
"订单核销(请确保用户到店后核销,避免引起不必要问题)"
mode=
"mid"
okText=
"确定"
cancelText=
"取消"
:visible
.
sync=
"isWriteOffVisible"
@
onOk=
"handleWriteOffConfirm"
@
onCancel=
"handleWriteOffClose"
>
v-if=
"isWriteOffVisible"
<glsx-combi-form
class=
"small-content m-t-20"
ref=
"writeOffRef"
:isBlock=
"true"
defaultWidth=
"284px"
:formRef=
"editChildRef"
:formObj=
"writeOffForm"
:formData=
"writeOffFormData"
:formRules=
"writeOffRules"
></glsx-combi-form>
title=
"订单核销(请确保用户到店后核销,避免引起不必要问题)"
mode=
"mid"
okText=
"确定"
cancelText=
"取消"
:visible
.
sync=
"isWriteOffVisible"
@
onOk=
"handleWriteOffConfirm"
@
onCancel=
"handleWriteOffClose"
>
<glsx-combi-form
class=
"small-content m-t-20"
ref=
"writeOffRef"
:isBlock=
"true"
defaultWidth=
"284px"
:formRef=
"editChildRef"
:formObj=
"writeOffForm"
:formData=
"writeOffFormData"
:formRules=
"writeOffRules"
></glsx-combi-form>
</GLDialog>
</GLDialog>
<!-- 退款审核 -->
<!-- 退款审核 -->
<GLDialog
<GLDialog
v-if=
"isExamineVisible"
bigTitle=
"退款审核"
mode=
"big"
:visible
.
sync=
"isExamineVisible"
@
onOk=
"handleExamineConfirm"
@
onCancel=
"handleExamineClose"
>
v-if=
"isExamineVisible"
bigTitle=
"退款审核"
mode=
"big"
:visible
.
sync=
"isExamineVisible"
@
onOk=
"handleExamineConfirm"
@
onCancel=
"handleExamineClose"
>
<el-form
label-width=
"144px"
>
<el-form
label-width=
"144px"
>
<el-form-item
label=
"售后类型"
>
<el-form-item
label=
"售后类型"
>
<span>
{{ orderInfo.refundTypeName }}
</span>
<span>
{{ orderInfo.refundTypeName }}
</span>
...
@@ -281,15 +136,8 @@
...
@@ -281,15 +136,8 @@
<span>
{{ orderInfo.remark || '-' }}
</span>
<span>
{{ orderInfo.remark || '-' }}
</span>
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"orderInfo.imgUrls"
>
<el-form-item
v-if=
"orderInfo.imgUrls"
>
<span
<span
v-for=
"(item, index) in orderInfo.imgUrls"
:key=
"index"
>
v-for=
"(item, index) in orderInfo.imgUrls"
<el-image
class=
"img-60"
:src=
"item"
:preview-src-list=
"[item]"
></el-image>
:key=
"index"
>
<el-image
class=
"img-60"
:src=
"item"
:preview-src-list=
"[item]"
></el-image>
</span>
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"审核是否通过"
>
<el-form-item
label=
"审核是否通过"
>
...
@@ -299,28 +147,12 @@
...
@@ -299,28 +147,12 @@
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<
template
v-if=
"orderInfo.refundType == 1 && examineForm.isAllowed == '1'"
>
<
template
v-if=
"orderInfo.refundType == 1 && examineForm.isAllowed == '1'"
>
<glsx-combi-form
<glsx-combi-form
ref=
"examineRef"
:isEdit=
"isEdit"
defaultWidth=
"284px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"examineForm"
:formData=
"examineFormData"
:formRules=
"examineRules"
></glsx-combi-form>
ref=
"examineRef"
:isEdit=
"isEdit"
defaultWidth=
"284px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"examineForm"
:formData=
"examineFormData"
:formRules=
"examineRules"
></glsx-combi-form>
</
template
>
</
template
>
</el-form>
</el-form>
</GLDialog>
</GLDialog>
<!-- 确认收货 -->
<!-- 确认收货 -->
<GLDialog
<GLDialog
v-if=
"isReceivingVisible"
bigTitle=
"确认收货"
mode=
"big"
:visible
.
sync=
"isReceivingVisible"
@
onOk=
"handleReceivingConfirm"
@
onCancel=
"handleReceivingClose"
>
v-if=
"isReceivingVisible"
bigTitle=
"确认收货"
mode=
"big"
:visible
.
sync=
"isReceivingVisible"
@
onOk=
"handleReceivingConfirm"
@
onCancel=
"handleReceivingClose"
>
<el-form
label-width=
"140px"
>
<el-form
label-width=
"140px"
>
<el-form-item
label=
"售后类型"
>
<el-form-item
label=
"售后类型"
>
<span>
{{ orderInfo.refundTypeName }}
</span>
<span>
{{ orderInfo.refundTypeName }}
</span>
...
@@ -352,8 +184,9 @@ import { utils } from 'glsx-common'
...
@@ -352,8 +184,9 @@ import { utils } from 'glsx-common'
import
{
businessType
,
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
deliveryTypeList
,
exportFn
}
from
'@/common/constant'
import
{
businessType
,
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
deliveryTypeList
,
exportFn
}
from
'@/common/constant'
export
default
{
export
default
{
name
:
'orderManage'
,
name
:
'orderManage'
,
data
()
{
data
()
{
return
{
return
{
showGh
:
false
,
size
:
'small'
,
size
:
'small'
,
url
:
url
,
url
:
url
,
isEdit
:
true
,
isEdit
:
true
,
...
@@ -498,7 +331,7 @@ export default {
...
@@ -498,7 +331,7 @@ export default {
},
},
listeners
:
{
listeners
:
{
click
:
row
=>
{
click
:
row
=>
{
this
.
secondConfirm
(
'退款'
,
'请确定是否发起退款?'
,
'orderManage'
,
'crowdFundRefundApi'
,
{
orderCode
:
row
.
orderCode
},
()
=>
{
},
this
.
searchForm
.
requestSource
!=
0
)
this
.
secondConfirm
(
'退款'
,
'请确定是否发起退款?'
,
'orderManage'
,
'crowdFundRefundApi'
,
{
orderCode
:
row
.
orderCode
},
()
=>
{},
this
.
searchForm
.
requestSource
!=
0
)
}
}
}
}
},
},
...
@@ -614,13 +447,13 @@ export default {
...
@@ -614,13 +447,13 @@ export default {
{
confId
:
'1'
,
confName
:
'已完结'
},
{
confId
:
'1'
,
confName
:
'已完结'
},
{
confId
:
'3'
,
confName
:
'未完结'
},
{
confId
:
'3'
,
confName
:
'未完结'
},
{
confId
:
'4'
,
confName
:
'已取消'
}
{
confId
:
'4'
,
confName
:
'已取消'
}
]
,
]
},
},
showTable
:
false
,
showTable
:
false
,
configShow
:
false
configShow
:
false
}
}
},
},
created
()
{
created
()
{
// this.checkMerchant()
// this.checkMerchant()
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
...
@@ -629,208 +462,215 @@ export default {
...
@@ -629,208 +462,215 @@ export default {
this
.
initParams
()
this
.
initParams
()
}
}
}
}
let
href
=
window
.
location
.
host
this
.
showGh
=
href
.
indexOf
(
'cgacar'
)
==
-
1
},
},
mounted
()
{
mounted
()
{
this
.
getCrowdfundingOrderConfig
()
this
.
getCrowdfundingOrderConfig
()
// this.getCount()
// this.getCount()
},
},
methods
:
{
methods
:
{
async
getCrowdfundingOrderConfig
()
{
async
getCrowdfundingOrderConfig
()
{
const
{
channelType
}
=
this
.
$globalState
.
session
const
{
channelType
}
=
this
.
$globalState
.
session
let
tableColumns
=
[
let
tableColumns
=
[
{
{
label
:
'客户名称'
,
label
:
'客户名称'
,
prop
:
'customerName'
,
prop
:
'customerName'
,
width
:
160
,
width
:
160
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
customerName
||
'-'
return
cellValue
.
customerName
||
'-'
}
}
},
},
{
{
label
:
'手机号'
,
label
:
'手机号'
,
prop
:
'customerPhone'
,
prop
:
'customerPhone'
,
width
:
160
,
width
:
160
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
customerPhone
||
'-'
return
cellValue
.
customerPhone
||
'-'
}
}
},
},
{
{
label
:
'其他'
,
label
:
'其他'
,
prop
:
'otherInformation'
,
prop
:
'otherInformation'
,
width
:
210
width
:
210
},
},
{
{
label
:
'微信名称'
,
label
:
'微信名称'
,
prop
:
'weChatName'
,
prop
:
'weChatName'
,
addHtml
:
'weChatName'
,
addHtml
:
'weChatName'
,
width
:
210
width
:
210
},
},
{
{
label
:
'推荐人'
,
label
:
'推荐人'
,
prop
:
'shareStaffName'
,
prop
:
'shareStaffName'
,
width
:
210
,
width
:
210
,
addHtml
:
'shareStaffName'
addHtml
:
'shareStaffName'
},
},
{
{
label
:
'推荐人ID'
,
label
:
'推荐人ID'
,
name
:
'shareStaffId'
,
name
:
'shareStaffId'
,
prop
:
'shareStaffId'
,
prop
:
'shareStaffId'
,
width
:
210
,
width
:
210
},
},
{
{
label
:
'指派人'
,
label
:
'指派人'
,
prop
:
'assignName'
,
prop
:
'assignName'
,
width
:
210
,
width
:
210
,
addHtml
:
'assignName'
addHtml
:
'assignName'
},
},
{
{
label
:
'推荐人手机号'
,
label
:
'推荐人手机号'
,
prop
:
'shareStaffPhone'
,
prop
:
'shareStaffPhone'
,
width
:
160
,
width
:
160
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
shareStaffPhone
||
'-'
return
cellValue
.
shareStaffPhone
||
'-'
}
}
},
},
{
{
label
:
'订单时间'
,
label
:
'订单时间'
,
prop
:
'createdDate'
,
prop
:
'createdDate'
,
width
:
'180'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
}
},
},
{
{
label
:
'支付时间'
,
label
:
'支付时间'
,
prop
:
'payDate'
,
prop
:
'payDate'
,
width
:
'180'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
payDate
?
dayjs
(
cellValue
.
payDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
return
cellValue
.
payDate
?
dayjs
(
cellValue
.
payDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
}
}
},
},
{
{
label
:
'核销时间'
,
label
:
'核销时间'
,
prop
:
'verificationDate'
,
prop
:
'verificationDate'
,
width
:
'180'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
verificationDate
?
dayjs
(
cellValue
.
verificationDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
return
cellValue
.
verificationDate
?
dayjs
(
cellValue
.
verificationDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
}
}
},
},
{
{
label
:
'车架号'
,
label
:
'车架号'
,
prop
:
'vinNo'
,
prop
:
'vinNo'
,
width
:
130
,
width
:
130
,
addHtml
:
'vinNo'
addHtml
:
'vinNo'
},
},
{
{
label
:
'订单状态'
,
label
:
'订单状态'
,
prop
:
'orderStatus'
,
prop
:
'orderStatus'
,
addHtml
:
'orderStatus'
,
addHtml
:
'orderStatus'
,
width
:
160
width
:
160
},
},
{
{
label
:
'业务场景'
,
label
:
'业务场景'
,
prop
:
'businessType'
,
prop
:
'businessType'
,
width
:
120
,
width
:
120
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
let
type
=
cellValue
.
businessType
let
type
=
cellValue
.
businessType
if
(
type
)
{
if
(
type
)
{
return
businessType
.
find
(
item
=>
item
.
optionId
==
type
).
optionLabel
return
businessType
.
find
(
item
=>
item
.
optionId
==
type
).
optionLabel
}
else
{
}
else
{
return
'-'
return
'-'
}
}
},
{
label
:
'商品名称'
,
prop
:
''
,
width
:
'120'
,
formatter
:
cellValue
=>
{
return
cellValue
.
orderGoods
.
length
?
cellValue
.
orderGoods
.
map
(
item
=>
item
.
goodsName
).
join
(
','
)
:
'-'
}
},
{
label
:
''
,
addHtml
:
'giveEquityCard'
,
width
:
80
},
{
label
:
channelType
==
2
?
'付款金额/元'
:
'支付定金/元'
,
prop
:
'payPrice'
,
width
:
'120'
,
formatter
:
cellValue
=>
{
return
cellValue
.
payPrice
||
'0'
}
},
{
label
:
'活动名称'
,
prop
:
'activityName'
,
width
:
'120'
},
{
label
:
'门店信息'
,
prop
:
'merchantName'
,
line
:
1
,
width
:
280
},
{
label
:
'订单类型'
,
prop
:
'orderSource'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
orderSourceList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
orderSource
+
''
)
?
this
.
baseData
.
orderSourceList
.
find
(
item
=>
item
.
confId
==
cellValue
.
orderSource
).
confName
:
'-'
}
},
{
label
:
'测试单'
,
prop
:
'orderType'
,
width
:
'100'
,
// addHtml: 'orderType'
formatter
:
cellValue
=>
{
return
cellValue
.
orderType
==
1
?
'是'
:
'否'
}
},
{
label
:
'退款类型'
,
prop
:
'afterSaleType'
,
width
:
100
,
formatter
:
cellValue
=>
{
return
{
1
:
'退订单'
,
2
:
'退定金'
}[
cellValue
.
afterSaleType
]
||
'-'
}
},
{
label
:
'营销状态'
,
name
:
'marketingStatus'
,
width
:
180
,
addHtml
:
'marketingStatus'
},
{
label
:
'售后状态'
,
prop
:
'afterSaleStatus'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
afterSaleStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
afterSaleStatus
+
''
)
?
this
.
baseData
.
afterSaleStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
afterSaleStatus
).
confName
:
'-'
}
},
{
label
:
'结算方式'
,
prop
:
'deliveryType'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
deliveryTypeList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
deliveryType
+
''
)
?
this
.
baseData
.
deliveryTypeList
.
find
(
item
=>
item
.
confId
==
cellValue
.
deliveryType
).
confName
:
'-'
}
},
{
label
:
'订单编号'
,
prop
:
'orderCode'
,
width
:
'180'
},
{
label
:
'商户订单号'
,
prop
:
'outTradeNo'
,
width
:
'160'
,
formatter
:
cellValue
=>
{
return
cellValue
.
outTradeNo
||
'-'
}
}
}
}
},
],
{
label
:
'商品名称'
,
prop
:
''
,
width
:
'120'
,
formatter
:
cellValue
=>
{
return
cellValue
.
orderGoods
.
length
?
cellValue
.
orderGoods
.
map
(
item
=>
item
.
goodsName
).
join
(
','
)
:
'-'
}
},
{
label
:
channelType
==
2
?
'付款金额/元'
:
'支付定金/元'
,
prop
:
'payPrice'
,
width
:
'120'
,
formatter
:
cellValue
=>
{
return
cellValue
.
payPrice
||
'0'
}
},
{
label
:
'活动名称'
,
prop
:
'activityName'
,
width
:
'120'
},
{
label
:
'门店信息'
,
prop
:
'merchantName'
,
line
:
1
,
width
:
280
},
{
label
:
'订单类型'
,
prop
:
'orderSource'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
orderSourceList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
orderSource
+
''
)
?
this
.
baseData
.
orderSourceList
.
find
(
item
=>
item
.
confId
==
cellValue
.
orderSource
).
confName
:
'-'
}
},
{
label
:
'测试单'
,
prop
:
'orderType'
,
width
:
'100'
,
// addHtml: 'orderType'
formatter
:
cellValue
=>
{
return
cellValue
.
orderType
==
1
?
'是'
:
'否'
}
},
{
label
:
'退款类型'
,
prop
:
'afterSaleType'
,
width
:
100
,
formatter
:
cellValue
=>
{
return
{
1
:
'退订单'
,
2
:
'退定金'
}[
cellValue
.
afterSaleType
]
||
'-'
}
},
{
label
:
'营销状态'
,
name
:
'marketingStatus'
,
width
:
180
,
addHtml
:
'marketingStatus'
,
},
{
label
:
'售后状态'
,
prop
:
'afterSaleStatus'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
afterSaleStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
afterSaleStatus
+
''
)
?
this
.
baseData
.
afterSaleStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
afterSaleStatus
).
confName
:
'-'
}
},
{
label
:
'结算方式'
,
prop
:
'deliveryType'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
deliveryTypeList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
deliveryType
+
''
)
?
this
.
baseData
.
deliveryTypeList
.
find
(
item
=>
item
.
confId
==
cellValue
.
deliveryType
).
confName
:
'-'
}
},
{
label
:
'订单编号'
,
prop
:
'orderCode'
,
width
:
'180'
},
{
label
:
'商户订单号'
,
prop
:
'outTradeNo'
,
width
:
'160'
,
formatter
:
cellValue
=>
{
return
cellValue
.
outTradeNo
||
'-'
}
}
],
searchFormData
=
[
searchFormData
=
[
{
{
label
:
'订单编号'
,
label
:
'订单编号'
,
...
@@ -1029,7 +869,7 @@ export default {
...
@@ -1029,7 +869,7 @@ export default {
try
{
try
{
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
(),
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
(),
filterTableList
=
[
'customerPhone'
,
'shareStaffName'
,
'otherInformation'
,
'assignName'
,
'shareStaffPhone'
,
'verificationDate'
,
'vinNo'
,
'afterSaleStatus'
],
filterTableList
=
[
'customerPhone'
,
'shareStaffName'
,
'otherInformation'
,
'assignName'
,
'shareStaffPhone'
,
'verificationDate'
,
'vinNo'
,
'afterSaleStatus'
],
filterFormList
=
[
'afterSaleStatuses'
,
'shareStaffName'
,
'vin'
,
'shareStaffSource'
,
'customerPhone'
,
'shareStaffPhone'
]
filterFormList
=
[
'afterSaleStatuses'
,
'shareStaffName'
,
'vin'
,
'shareStaffSource'
,
'customerPhone'
,
'shareStaffPhone'
]
this
.
configShow
=
res
!=
1
this
.
configShow
=
res
!=
1
if
(
res
==
1
)
{
if
(
res
==
1
)
{
for
(
let
i
=
0
;
i
<
tableColumns
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
tableColumns
.
length
;
i
++
)
{
...
@@ -1053,7 +893,7 @@ export default {
...
@@ -1053,7 +893,7 @@ export default {
this
.
showTable
=
true
this
.
showTable
=
true
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
},
},
initParams
()
{
initParams
()
{
const
cell
=
{
const
cell
=
{
label
:
'线下订单'
,
label
:
'线下订单'
,
prop
:
'isOffline'
,
prop
:
'isOffline'
,
...
@@ -1074,7 +914,7 @@ export default {
...
@@ -1074,7 +914,7 @@ export default {
this
.
tableParams
.
tableColumns
.
splice
(
12
,
0
,
cell
)
this
.
tableParams
.
tableColumns
.
splice
(
12
,
0
,
cell
)
this
.
searchFormData
.
splice
(
17
,
0
,
searchCell
)
this
.
searchFormData
.
splice
(
17
,
0
,
searchCell
)
},
},
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchForm
.
createDate
.
length
)
{
if
(
this
.
searchForm
.
createDate
.
length
)
{
params
.
createdStartDateStr
=
new
Date
(
this
.
searchForm
.
createDate
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
createdStartDateStr
=
new
Date
(
this
.
searchForm
.
createDate
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
...
@@ -1085,7 +925,7 @@ export default {
...
@@ -1085,7 +925,7 @@ export default {
return
params
return
params
},
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
.
tableSearchForm
=
this
.
getParams
()
this
.
tableSearchForm
=
this
.
getParams
()
delete
this
.
tableSearchForm
.
createDate
delete
this
.
tableSearchForm
.
createDate
...
@@ -1093,7 +933,7 @@ export default {
...
@@ -1093,7 +933,7 @@ export default {
})
})
},
},
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
if
(
refreshSigle
)
{
if
(
refreshSigle
)
{
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
...
@@ -1119,12 +959,12 @@ export default {
...
@@ -1119,12 +959,12 @@ export default {
}
}
},
},
showOrHideAttr
(
formName
,
label
,
isHide
)
{
showOrHideAttr
(
formName
,
label
,
isHide
)
{
let
idx
=
this
[
formName
].
findIndex
(
item
=>
item
.
label
==
label
)
let
idx
=
this
[
formName
].
findIndex
(
item
=>
item
.
label
==
label
)
this
[
formName
][
idx
].
isHide
=
isHide
this
[
formName
][
idx
].
isHide
=
isHide
},
},
deleteAttr
(
labelList
)
{
deleteAttr
(
labelList
)
{
labelList
.
forEach
(
i
=>
{
labelList
.
forEach
(
i
=>
{
console
.
log
(
i
)
console
.
log
(
i
)
let
idx
=
this
.
tableParams
.
tableColumns
.
findIndex
(
item
=>
item
.
label
==
i
)
let
idx
=
this
.
tableParams
.
tableColumns
.
findIndex
(
item
=>
item
.
label
==
i
)
...
@@ -1145,7 +985,7 @@ export default {
...
@@ -1145,7 +985,7 @@ export default {
// })
// })
// },
// },
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
,
isResetPage
=
true
)
{
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
,
isResetPage
=
true
)
{
this
.
$confirm
(
txt
,
title
,
{
this
.
$confirm
(
txt
,
title
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
...
@@ -1167,7 +1007,7 @@ export default {
...
@@ -1167,7 +1007,7 @@ export default {
})
})
},
},
getCount
()
{
getCount
()
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
delete
params
.
createDate
delete
params
.
createDate
// if(params.orderStatuses.includes('3')) return
// if(params.orderStatuses.includes('3')) return
...
@@ -1176,7 +1016,7 @@ export default {
...
@@ -1176,7 +1016,7 @@ export default {
})
})
},
},
handleDetail
(
row
)
{
handleDetail
(
row
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/orderManage/orderDetail'
,
path
:
'/orderManage/orderDetail'
,
query
:
{
query
:
{
...
@@ -1186,7 +1026,7 @@ export default {
...
@@ -1186,7 +1026,7 @@ export default {
},
},
// 输入快递信息 - start
// 输入快递信息 - start
handleExpressClose
()
{
handleExpressClose
()
{
this
.
isExpressVisible
=
!
this
.
isExpressVisible
this
.
isExpressVisible
=
!
this
.
isExpressVisible
this
.
orderCode
=
''
this
.
orderCode
=
''
this
.
expressForm
=
{
this
.
expressForm
=
{
...
@@ -1195,7 +1035,7 @@ export default {
...
@@ -1195,7 +1035,7 @@ export default {
}
}
},
},
handleExpressConfirm
()
{
handleExpressConfirm
()
{
this
.
$refs
.
expressRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
this
.
$refs
.
expressRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
expressForm
)
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
expressForm
)
...
@@ -1215,14 +1055,14 @@ export default {
...
@@ -1215,14 +1055,14 @@ export default {
})
})
},
},
handleExpressInfo
(
row
)
{
handleExpressInfo
(
row
)
{
this
.
isExpressVisible
=
!
this
.
isExpressVisible
this
.
isExpressVisible
=
!
this
.
isExpressVisible
this
.
orderCode
=
row
.
orderCode
this
.
orderCode
=
row
.
orderCode
},
},
// 输入快递信息 - end
// 输入快递信息 - end
// 订单核销 - start
// 订单核销 - start
handleWriteOffClose
()
{
handleWriteOffClose
()
{
this
.
isWriteOffVisible
=
!
this
.
isWriteOffVisible
this
.
isWriteOffVisible
=
!
this
.
isWriteOffVisible
this
.
orderCode
=
''
this
.
orderCode
=
''
this
.
writeOffForm
=
{
this
.
writeOffForm
=
{
...
@@ -1230,7 +1070,7 @@ export default {
...
@@ -1230,7 +1070,7 @@ export default {
}
}
},
},
handleWriteOffConfirm
()
{
handleWriteOffConfirm
()
{
this
.
$refs
.
writeOffRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
this
.
$refs
.
writeOffRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
writeOffForm
)
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
writeOffForm
)
...
@@ -1250,9 +1090,9 @@ export default {
...
@@ -1250,9 +1090,9 @@ export default {
})
})
},
},
handleWriteOff
(
row
)
{
handleWriteOff
(
row
)
{
if
(
row
.
orderSource
==
4
)
{
if
(
row
.
orderSource
==
4
)
{
this
.
secondConfirm
(
'订单核销'
,
'请确定是否核销此订单?'
,
'orderManage'
,
'crowdFundWriteOffApi'
,
{
orderCode
:
row
.
orderCode
},
()
=>
{
},
this
.
searchForm
.
requestSource
!=
0
)
this
.
secondConfirm
(
'订单核销'
,
'请确定是否核销此订单?'
,
'orderManage'
,
'crowdFundWriteOffApi'
,
{
orderCode
:
row
.
orderCode
},
()
=>
{},
this
.
searchForm
.
requestSource
!=
0
)
return
true
return
true
}
}
this
.
isWriteOffVisible
=
!
this
.
isWriteOffVisible
this
.
isWriteOffVisible
=
!
this
.
isWriteOffVisible
...
@@ -1261,7 +1101,7 @@ export default {
...
@@ -1261,7 +1101,7 @@ export default {
// 订单核销 - end
// 订单核销 - end
// 退款审核 - start
// 退款审核 - start
handleExamineClose
()
{
handleExamineClose
()
{
this
.
isExamineVisible
=
!
this
.
isExamineVisible
this
.
isExamineVisible
=
!
this
.
isExamineVisible
this
.
orderCode
=
''
this
.
orderCode
=
''
this
.
orderInfo
=
{}
this
.
orderInfo
=
{}
...
@@ -1273,7 +1113,7 @@ export default {
...
@@ -1273,7 +1113,7 @@ export default {
}
}
},
},
submitExamine
(
params
)
{
submitExamine
(
params
)
{
this
.
$apis
.
orderManage
.
examineAllowApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
orderManage
.
examineAllowApi
(
params
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
...
@@ -1287,7 +1127,7 @@ export default {
...
@@ -1287,7 +1127,7 @@ export default {
})
})
},
},
handleExamineConfirm
()
{
handleExamineConfirm
()
{
var
params
=
{
var
params
=
{
id
:
this
.
orderInfo
.
id
id
:
this
.
orderInfo
.
id
}
}
...
@@ -1306,7 +1146,7 @@ export default {
...
@@ -1306,7 +1146,7 @@ export default {
}
}
},
},
handleExamine
(
row
)
{
handleExamine
(
row
)
{
this
.
orderCode
=
row
.
orderCode
this
.
orderCode
=
row
.
orderCode
this
.
$apis
.
orderManage
.
examineDetailApi
({
orderCode
:
row
.
orderCode
}).
then
(
res
=>
{
this
.
$apis
.
orderManage
.
examineDetailApi
({
orderCode
:
row
.
orderCode
}).
then
(
res
=>
{
this
.
orderInfo
=
res
||
{}
this
.
orderInfo
=
res
||
{}
...
@@ -1318,13 +1158,13 @@ export default {
...
@@ -1318,13 +1158,13 @@ export default {
// 退款审核 - end
// 退款审核 - end
// 确认收货 - start
// 确认收货 - start
handleReceivingClose
()
{
handleReceivingClose
()
{
this
.
isReceivingVisible
=
!
this
.
isReceivingVisible
this
.
isReceivingVisible
=
!
this
.
isReceivingVisible
this
.
orderCode
=
''
this
.
orderCode
=
''
this
.
orderInfo
=
{}
this
.
orderInfo
=
{}
},
},
handleReceivingConfirm
()
{
handleReceivingConfirm
()
{
var
params
=
{
var
params
=
{
id
:
this
.
orderInfo
.
id
id
:
this
.
orderInfo
.
id
}
}
...
@@ -1341,7 +1181,7 @@ export default {
...
@@ -1341,7 +1181,7 @@ export default {
})
})
},
},
handleReceiving
(
row
)
{
handleReceiving
(
row
)
{
this
.
$apis
.
orderManage
.
examineDetailApi
({
orderCode
:
row
.
orderCode
}).
then
(
res
=>
{
this
.
$apis
.
orderManage
.
examineDetailApi
({
orderCode
:
row
.
orderCode
}).
then
(
res
=>
{
this
.
orderInfo
=
res
||
{}
this
.
orderInfo
=
res
||
{}
this
.
orderInfo
.
refundTypeName
=
[
1
,
2
,
3
].
includes
(
this
.
orderInfo
.
refundType
)
?
this
.
baseData
.
refundTypeList
.
find
(
item
=>
item
.
confId
==
this
.
orderInfo
.
refundType
+
''
).
confName
:
'-'
this
.
orderInfo
.
refundTypeName
=
[
1
,
2
,
3
].
includes
(
this
.
orderInfo
.
refundType
)
?
this
.
baseData
.
refundTypeList
.
find
(
item
=>
item
.
confId
==
this
.
orderInfo
.
refundType
+
''
).
confName
:
'-'
...
@@ -1351,7 +1191,7 @@ export default {
...
@@ -1351,7 +1191,7 @@ export default {
},
},
// 确认收货 - end
// 确认收货 - end
setTableFinishFun
()
{
setTableFinishFun
()
{
this
.
$refs
.
allOrderRef
.
data
.
forEach
(
item
=>
{
this
.
$refs
.
allOrderRef
.
data
.
forEach
(
item
=>
{
item
.
vinNo
=
item
.
vin
?
(
item
.
vin
.
split
(
','
).
length
>
1
?
item
.
vin
.
split
(
','
)
:
item
.
vin
)
:
'-'
item
.
vinNo
=
item
.
vin
?
(
item
.
vin
.
split
(
','
).
length
>
1
?
item
.
vin
.
split
(
','
)
:
item
.
vin
)
:
'-'
})
})
...
@@ -1360,25 +1200,25 @@ export default {
...
@@ -1360,25 +1200,25 @@ export default {
this
.
getCount
()
this
.
getCount
()
},
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
allOrderRef
.
refreshTable
()
this
.
$refs
.
allOrderRef
.
refreshTable
()
},
},
handleTabClick
()
{
handleTabClick
()
{
// if (this.isSpecialMerchat) {
// if (this.isSpecialMerchat) {
// return true
// return true
// }
// }
this
.
handleSearch
()
this
.
handleSearch
()
},
},
handleExport
(
row
)
{
handleExport
(
row
)
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
this
.
$apis
.
orderManage
.
orderExportApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
orderManage
.
orderExportApi
(
params
).
then
(
res
=>
{
exportFn
(
res
)
exportFn
(
res
)
})
})
},
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
this
.
$options
.
data
.
call
(
this
).
searchForm
this
.
searchForm
=
this
.
$options
.
data
.
call
(
this
).
searchForm
this
.
handleSearch
()
this
.
handleSearch
()
}
}
...
@@ -1435,4 +1275,15 @@ export default {
...
@@ -1435,4 +1275,15 @@ export default {
}
}
}
}
}
}
.gold-sign
{
width
:
48px
;
height
:
20px
;
background
:
#fee9cc
;
border-radius
:
2px
;
white-space
:
nowrap
;
font-size
:
12px
;
color
:
#fdb757
;
text-align
:
center
;
line-height
:
20px
;
}
</
style
>
</
style
>
src/views/productStore/index.vue
View file @
10493e7
...
@@ -9,9 +9,7 @@
...
@@ -9,9 +9,7 @@
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"proGroupRef"
class=
"table-img"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"proGroupRef"
class=
"table-img"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"giveEquityCard"
slot-scope=
"scope"
v-if=
"showGh && scope.scope.giveEquityCard == 1"
>
<div
class=
"gold-sign"
>
送会员
</div>
</div>
<template
slot=
"goodsImage"
slot-scope=
"scope"
>
<template
slot=
"goodsImage"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<img
class=
"table-popover-img"
:src=
"scope.scope.goodsImage"
/>
<img
class=
"table-popover-img"
:src=
"scope.scope.goodsImage"
/>
...
@@ -46,7 +44,6 @@ export default {
...
@@ -46,7 +44,6 @@ export default {
name
:
'productGroup'
,
name
:
'productGroup'
,
data
()
{
data
()
{
return
{
return
{
showGh
:
false
,
size
:
'small'
,
size
:
'small'
,
url
:
url
,
url
:
url
,
// 下架
// 下架
...
@@ -258,11 +255,6 @@ export default {
...
@@ -258,11 +255,6 @@ export default {
line
:
2
line
:
2
},
},
{
{
label
:
''
,
addHtml
:
'giveEquityCard'
,
width
:
80
},
{
label
:
'缩略图'
,
label
:
'缩略图'
,
prop
:
'goodsImage'
,
prop
:
'goodsImage'
,
addHtml
:
'goodsImage'
addHtml
:
'goodsImage'
...
@@ -355,8 +347,6 @@ export default {
...
@@ -355,8 +347,6 @@ export default {
shareDialog
shareDialog
},
},
created
()
{
created
()
{
let
href
=
window
.
location
.
host
this
.
showGh
=
href
.
indexOf
(
'cgacar'
)
==
-
1
},
},
mounted
()
{
mounted
()
{
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
...
...
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