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 bb00a25f
authored
Dec 05, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复,订单补录
1 parent
35f9d537
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
148 additions
and
73 deletions
src/api/modules/common.js
src/api/modules/orderManage.js
src/components/glsx-combi-form/index.vue
src/views/couponManage/recordList.vue
src/views/orderManage/index.vue
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/editCrowdFund.vue
src/api/modules/common.js
View file @
bb00a25
...
...
@@ -161,4 +161,15 @@ const getMerchantInfoApi = params => {
})
}
export
default
{
getMerchantGoodsListApi
,
getGoodsListApi
,
uploadImgApi
,
uploadMusicApi
,
uploadVideoApi
,
uploadFundingVideoApi
,
getMerchantList
,
getSimpleMerchantList
,
getZoneListApi
,
getClassifyListApi
,
pictureUpload
,
querylabeltree
,
getCrowdTreeListApi
,
getStaffFollowerListApi
,
getMerchantInfoApi
}
// 根据商户号最上级工厂商户号
const
getSuperMerchantApi
=
params
=>
{
params
.
method
=
'merchants.api.open.findSuperlativeMerchant'
return
http_merchant
({
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getMerchantGoodsListApi
,
getGoodsListApi
,
uploadImgApi
,
uploadMusicApi
,
uploadVideoApi
,
uploadFundingVideoApi
,
getMerchantList
,
getSimpleMerchantList
,
getZoneListApi
,
getClassifyListApi
,
pictureUpload
,
querylabeltree
,
getCrowdTreeListApi
,
getStaffFollowerListApi
,
getMerchantInfoApi
,
getSuperMerchantApi
}
src/api/modules/orderManage.js
View file @
bb00a25
...
...
@@ -126,4 +126,15 @@ const confirmReceiptGoodsApi = params => {
})
}
export
default
{
getListApi
,
getCountApi
,
getOrderDetailApi
,
orderExportApi
,
writeOffApi
,
crowdFundWriteOffApi
,
crowdFundRefundApi
,
addDeliveryApi
,
examineDetailApi
,
examineAllowApi
,
confirmReceiptGoodsApi
}
// 审计-特殊账号
const
checkMerchartApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.import.merchant.check'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getListApi
,
getCountApi
,
getOrderDetailApi
,
orderExportApi
,
writeOffApi
,
crowdFundWriteOffApi
,
crowdFundRefundApi
,
addDeliveryApi
,
examineDetailApi
,
examineAllowApi
,
confirmReceiptGoodsApi
,
checkMerchartApi
}
src/components/glsx-combi-form/index.vue
View file @
bb00a25
...
...
@@ -82,11 +82,14 @@
<slot
:name=
"item.suffixSlot"
:scope=
"item"
></slot>
</template>
<!-- 图文编辑器 -->
<textBox
v-else-if=
"item.type === 'textBox'"
:ref=
"item.name + 'TextBox'"
:excludeMenus=
"item.excludeMenus || ['code']"
@
change=
"e => handleTextBoxChange(e, item)"
@
focus=
"handleTextBoxFocus(item)"
:boxHeight=
"item.boxHeight"
></textBox>
<div
v-else-if=
"item.type === 'textBox'"
>
<textBox
v-if=
"!item.isDisabled"
:ref=
"item.name + 'TextBox'"
:excludeMenus=
"item.excludeMenus || ['code']"
@
change=
"e => handleTextBoxChange(e, item)"
@
focus=
"handleTextBoxFocus(item)"
:boxHeight=
"item.boxHeight"
></textBox>
<div
v-else
v-html=
"formObj[item.name]"
></div>
</div>
<!-- 地图 -->
<div
v-else-if=
"item.type === 'map'"
class=
"flex"
>
<Province
ref=
"provinceForm"
:subdistrict=
"subdistrict"
:isDisabled=
"item.isDisabled"
@
selectProvince=
"e => handleSelectProvince(e, item)"
@
selectCity=
"e => handleSelectCity(e, item)"
:provinceView=
"item.provinceView"
></Province>
<el-input
style=
"flex: 1;"
v-model=
"formObj[item.name]"
placeholder=
"请选择商户地址"
:readonly=
"item.isReadonly"
></el-input>
<el-input
style=
"flex: 1;"
:disabled=
"item.isDisabled"
v-model=
"formObj[item.name]"
placeholder=
"请选择商户地址"
:readonly=
"item.isReadonly"
></el-input>
<el-button
class=
"m-l-10"
v-show=
"!item.isDisabled"
@
click=
"handleSelectMap(item)"
type=
"primary"
>
选择地址
</el-button>
</div>
</el-form-item>
...
...
src/views/couponManage/recordList.vue
View file @
bb00a25
...
...
@@ -282,7 +282,7 @@ export default {
},
mounted
()
{
this
.
getMerchant
()
this
.
get
Super
Merchant
()
this
.
getOptionsList
(
'searchFormData'
)
},
...
...
@@ -303,10 +303,21 @@ export default {
this
.
getOptionsList
(
'searchFormData'
,
true
,
'packageId'
)
})
},
getMerchant
()
{
const
{
session
}
=
this
.
$globalState
||
{}
getSuperMerchant
()
{
var
isFactory
=
this
.
$globalState
.
session
.
accountLevel
==
1
var
{
merchantId
}
=
this
.
$globalState
?.
session
||
''
if
(
isFactory
)
{
this
.
getMerchant
(
merchantId
)
return
true
}
this
.
$apis
.
common
.
getSuperMerchantApi
({
merchantId
:
merchantId
}).
then
(
res
=>
{
merchantId
=
res
this
.
getMerchant
(
merchantId
)
})
},
getMerchant
(
merchantId
)
{
const
param
=
{
supMerchantNo
:
session
.
merchantId
,
supMerchantNo
:
merchantId
,
merchantAccountLevel
:
4
}
this
.
$apis
.
groupGiftBag
.
getMerchantListApi
(
param
).
then
(
res
=>
{
...
...
src/views/orderManage/index.vue
View file @
bb00a25
...
...
@@ -21,10 +21,10 @@
<div
class=
"flex-default tabs"
>
<el-tabs
v-model=
"searchForm.requestSource"
@
tab-click=
"handleTabClick"
>
<el-tab-pane
label=
"全部订单"
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-tab-pane
v-if=
"!isSpecialMerchat"
label=
"已付款"
name=
"1"
></el-tab-pane>
<el-tab-pane
v-if=
"!isSpecialMerchat"
label=
"未付款"
name=
"2"
></el-tab-pane>
<el-tab-pane
v-if=
"!isSpecialMerchat"
label=
"已退款"
name=
"3"
></el-tab-pane>
<el-tab-pane
v-if=
"!isSpecialMerchat"
label=
"售后订单"
name=
"4"
></el-tab-pane>
</el-tabs>
</div>
<el-button
class=
"default-blue-btn"
:size=
"size"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
...
...
@@ -142,6 +142,7 @@ export default {
data
()
{
return
{
size
:
'small'
,
isSpecialMerchat
:
true
,
url
:
url
,
isEdit
:
true
,
orderCode
:
''
,
...
...
@@ -447,11 +448,11 @@ export default {
fn
:
'退款'
},
condition
:
row
=>
{
return
row
.
orderSource
==
4
&&
[
2
,
6
,
21
].
includes
(
+
row
.
orderStatus
)
return
!
this
.
isSpecialMerchat
&&
row
.
orderSource
==
4
&&
[
2
,
6
,
21
].
includes
(
+
row
.
orderStatus
)
},
listeners
:
{
click
:
row
=>
{
this
.
secondConfirm
(
'退款'
,
'请确定是否发起退款?'
,
'orderManage'
,
'crowdFundRefundApi'
,
{
orderCode
:
row
.
orderCode
},
()
=>
{},
this
.
searchForm
.
requestSource
!=
0
)
this
.
secondConfirm
(
'退款'
,
'请确定是否发起退款?'
,
'orderManage'
,
'crowdFundRefundApi'
,
{
orderCode
:
row
.
orderCode
},
()
=>
{
},
this
.
searchForm
.
requestSource
!=
0
)
}
}
},
...
...
@@ -478,7 +479,7 @@ export default {
fn
:
'商品发货'
},
condition
:
row
=>
{
return
row
.
deliveryType
==
2
&&
row
.
orderStatus
==
6
return
!
this
.
isSpecialMerchat
&&
row
.
deliveryType
==
2
&&
row
.
orderStatus
==
6
},
listeners
:
{
click
:
this
.
handleExpressInfo
...
...
@@ -505,7 +506,7 @@ export default {
type
:
'text'
},
condition
:
row
=>
{
return
row
.
afterSaleStatus
==
4
return
!
this
.
isSpecialMerchat
&&
row
.
afterSaleStatus
==
4
},
listeners
:
{
click
:
this
.
handleReceiving
...
...
@@ -683,6 +684,9 @@ export default {
}
}
},
created
()
{
this
.
checkMerchant
()
},
mounted
()
{
// this.getCount()
...
...
@@ -735,6 +739,32 @@ export default {
}
},
showOrHideAttr
(
formName
,
label
,
isHide
)
{
let
idx
=
this
[
formName
].
findIndex
(
item
=>
item
.
label
==
label
)
this
[
formName
][
idx
].
isHide
=
isHide
},
deleteAttr
(
labelList
)
{
labelList
.
forEach
(
i
=>
{
console
.
log
(
i
)
let
idx
=
this
.
tableParams
.
tableColumns
.
findIndex
(
item
=>
item
.
label
==
i
)
this
.
tableParams
.
tableColumns
.
splice
(
idx
,
1
)
})
},
checkMerchant
()
{
this
.
$apis
.
orderManage
.
checkMerchartApi
({}).
then
(
res
=>
{
this
.
isSpecialMerchat
=
res
var
hideList
=
[
'售后状态'
,
'订单类型'
,
'结算方式'
,
'商户订单号'
,
'车架号'
,
'推荐人'
,
'推荐人类型'
,
'手机号'
,
'推荐人手机号'
]
if
(
this
.
isSpecialMerchat
)
{
hideList
.
forEach
(
item
=>
{
this
.
showOrHideAttr
(
'searchFormData'
,
item
,
true
)
})
this
.
deleteAttr
([
'手机号'
,
'其他'
,
'微信名称'
,
'推荐人'
,
'推荐人手机号'
,
'车架号'
,
'商户订单号'
])
}
})
},
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
,
isResetPage
=
true
)
{
this
.
$confirm
(
txt
,
title
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -842,7 +872,7 @@ export default {
handleWriteOff
(
row
)
{
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
}
this
.
isWriteOffVisible
=
!
this
.
isWriteOffVisible
...
...
@@ -955,6 +985,9 @@ export default {
},
handleTabClick
()
{
if
(
this
.
isSpecialMerchat
)
{
return
true
}
this
.
handleSearch
()
},
...
...
src/views/seckillActivity/crowdFundList.vue
View file @
bb00a25
...
...
@@ -2,14 +2,14 @@
<
template
>
<div
class=
"marketing"
>
<div
class=
"m-b-20"
>
<GLButton
<
!--
<
GLButton
:size=
"size"
class=
"default-blue-btn el-icon-plus"
type=
"default"
@
click=
"handleEdit('add')"
fn=
"新增众筹"
mode=
"el-button"
>
新建众筹
</GLButton>
>
新建众筹
</GLButton>
-->
<el-button
:size=
"size"
type=
"default"
...
...
@@ -145,53 +145,60 @@ export default {
// 表格按钮
tableButtonList
:
[
{
type
:
'el-button'
,
name
:
'开始'
,
attrs
:
{
type
:
'text'
},
condition
:
row
=>
{
return
row
.
activityStatus
==
'1'
},
listeners
:
{
click
:
this
.
start
}
},
{
type
:
'el-button'
,
name
:
'结束'
,
attrs
:
{
type
:
'text'
},
condition
:
row
=>
{
return
row
.
activityStatus
==
'2'
},
listeners
:
{
click
:
this
.
end
}
},
{
type
:
'GLButton'
,
name
:
'
编辑
'
,
name
:
'
查看
'
,
attrs
:
{
type
:
'text'
,
fn
:
'编辑众筹'
},
condition
:
row
=>
{
return
row
.
activityStatus
==
'1'
||
row
.
activityStatus
==
'2'
||
row
.
activityStatus
==
'3'
fn
:
'查看众筹'
},
listeners
:
{
click
:
row
=>
{
// var editOrDetail = {
// 1: 'edit',
// 2: 'detail',
// 3: 'detail'
// }[row.activityStatus]
// return this.handleEdit(editOrDetail, row)
this
.
handleEdit
(
'edit'
,
row
)
this
.
handleEdit
(
'detail'
,
row
)
}
}
},
// {
// type: 'el-button',
// name: '开始',
// attrs: {
// type: 'text'
// },
// condition: row => {
// return row.activityStatus == '1'
// },
// listeners: {
// click: this.start
// }
// },
// {
// type: 'el-button',
// name: '结束',
// attrs: {
// type: 'text'
// },
// condition: row => {
// return row.activityStatus == '2'
// },
// listeners: {
// click: this.end
// }
// },
// {
// type: 'GLButton',
// name: '编辑',
// attrs: {
// type: 'text',
// fn: '编辑众筹'
// },
// condition: row => {
// return row.activityStatus == '1' || row.activityStatus == '2' || row.activityStatus == '3'
// },
// listeners: {
// click: row => {
// this.handleEdit('edit', row)
// }
// }
// },
{
type
:
'GLButton'
,
name
:
'删除'
,
...
...
@@ -226,18 +233,18 @@ export default {
click
:
this
.
handleShare
}
},
{
type
:
'el-button'
,
name
:
'复制'
,
attrs
:
{
type
:
'text'
},
listeners
:
{
click
:
row
=>
{
this
.
handleEdit
(
'copy'
,
row
)
}
}
},
//
{
//
type: 'el-button',
//
name: '复制',
//
attrs: {
//
type: 'text'
//
},
//
listeners: {
//
click: row => {
//
this.handleEdit('copy', row)
//
}
//
}
//
},
{
type
:
'GLButton'
,
name
:
'数据看板'
,
...
...
@@ -473,10 +480,9 @@ export default {
query
:
params
})
},
test
(
option
)
{
console
.
log
(
JSON
.
parse
(
JSON
.
stringify
(
option
)))
},
// test (option) {
// console.log(JSON.parse(JSON.stringify(option)))
// },
// 明细
handleDetail
({
prop
,
scope
})
{
let
data
=
{
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
bb00a25
This diff is collapsed.
Click to expand it.
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