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 88f4bdf2
authored
Nov 02, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' into 'master'
Develop See merge request
!12
2 parents
54f64cb2
48860e00
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
442 additions
and
177 deletions
README.md
src/api/order.js
src/components/d2-table/index.vue
src/layout/header-aside/components/header-user/privacyAgreementDialog.vue
src/store/modules/d2admin/modules/base.js
src/views/financeManage/financeList.vue
src/views/index/components/reportDownloads.vue
src/views/orderManage/orderDetail.vue
src/views/orderManage/orderList.vue
src/views/orderManage/orderSupplement.vue
src/views/orderManage/updateYqMerchantDialog.vue
src/views/systemConfig/accountNew/accountList.vue
src/views/systemConfig/merchant/merchantManage.vue
README.md
View file @
88f4bdf
...
...
@@ -27,3 +27,5 @@ dev_v4.8.0 已上线,合并到 develop 以及 master 主干上
dev_4.12.0_0927 版本上线后已往主干 develop 以及 master 上合并
从 develop 上拉取分支 dev_4.12.1 对应 1010 紧急版本
dev_4.13.0 分支以上线并往 develop 以及 master 上合并
src/api/order.js
View file @
88f4bdf
import
request
from
'./request'
import
request
from
"./request"
// const path = 'dj.api.'
const
path2
=
'dj.api.smartcarlife.'
const
path2
=
"dj.api.smartcarlife."
export
function
getList
(
data
)
{
data
.
method
=
`
${
path2
}
ordermanage.page`
...
...
@@ -44,14 +44,14 @@ export function waitinputorderPage(data) {
// 订单导入
export
function
orderImport
(
data
)
{
data
.
method
=
`
${
path2
}
order.import`
return
request
(
data
,
'post'
,
[
'file'
])
return
request
(
data
,
"post"
,
[
"file"
])
}
// 订单导入结果查询
export
function
getImportResult
(
data
)
{
// data.method = `${path2}order.getImportResult`
data
.
method
=
`dj.api.common.importExcel.async.queryProcess`
return
request
(
data
,
'post'
)
return
request
(
data
,
"post"
)
}
// 订单模板下载
// export function downloadTemplate(data) {
...
...
@@ -62,5 +62,17 @@ export function getImportResult(data) {
// 订单退款
export
function
markAsRefunded
(
data
)
{
data
.
method
=
`
${
path2
}
goodsOrder.markAsRefunded`
return
request
(
data
,
'post'
)
return
request
(
data
,
"post"
)
}
// 待补录订单(批量修改流水所属园区店)
export
function
updateYqMerchant
(
data
)
{
data
.
method
=
`
${
path2
}
waitinputorder.update.yqMerchant`
return
request
(
data
,
"post"
)
}
// 待补录订单(批量标记为无需补录)
export
function
markAsNoUse
(
data
)
{
data
.
method
=
`
${
path2
}
waitinputorder.markAsNoUse`
return
request
(
data
,
"post"
)
}
src/components/d2-table/index.vue
View file @
88f4bdf
<!-- 表格+分页 -->
<
template
>
<div
class=
"d2-table"
>
<el-table
:ref=
"tableParams.mutiSelectName + 'MutiTable' || 'mutiTable'"
:data=
"getListApi ? data : tableData"
:row-key=
"tableParams.mutiSelectUniqueKey || ''"
v-loading=
"loading"
border
:highlight-current-row=
"true"
@
sort-change=
"sortChange"
@
selection-change=
"handleSelect"
:tree-props=
"
{children: 'upgradeGoodsList'}"
>
<el-table-column
v-if=
"tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
type=
"selection"
width=
"55"
:reserve-selection=
"true"
/>
<el-table-column
v-if=
"hasNum"
align=
"center"
width=
"60px"
label=
"序号"
type=
"index"
:index=
"index=>index+(pagination.currentPage - 1) * pagination.pageSize + 1"
/>
<el-table-column
v-for=
"(item, index) in tableParams.tableColumns"
:key=
"index"
:label=
"item.label"
:prop=
"item.prop"
:width=
"item.width"
:min-width=
"item.minWidth"
:align=
"item.align||'center'"
:sortable=
"item.sortable"
>
<el-table
:ref=
"tableParams.mutiSelectName + 'MutiTable' || 'mutiTable'"
:data=
"getListApi ? data : tableData"
:row-key=
"tableParams.mutiSelectUniqueKey || ''"
v-loading=
"loading"
border
:highlight-current-row=
"true"
@
sort-change=
"sortChange"
@
selection-change=
"handleSelect"
:tree-props=
"
{children: 'upgradeGoodsList'}">
<el-table-column
v-if=
"tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
type=
"selection"
:selectable=
"selectableFn"
width=
"55"
/>
<el-table-column
v-if=
"hasNum"
align=
"center"
width=
"60px"
label=
"序号"
type=
"index"
:index=
"index=>index+(pagination.currentPage - 1) * pagination.pageSize + 1"
/>
<el-table-column
v-for=
"(item, index) in tableParams.tableColumns"
:key=
"index"
:label=
"item.label"
:prop=
"item.prop"
:width=
"item.width"
:min-width=
"item.minWidth"
:align=
"item.align||'center'"
:sortable=
"item.sortable"
>
<template
slot=
"header"
>
<span>
{{
item
.
label
}}
</span>
<table-head-search
v-if=
"item.optionConfig"
:search-form=
"headSearchForm"
:option-config=
"item.optionConfig"
:base-data=
"baseData"
@
handleTableHeadChange=
"handleTableHeadChange"
/>
<table-head-search
v-if=
"item.optionConfig"
:search-form=
"headSearchForm"
:option-config=
"item.optionConfig"
:base-data=
"baseData"
@
handleTableHeadChange=
"handleTableHeadChange"
/>
</
template
>
<
template
slot-scope=
"scope"
>
<slot
v-if=
"item.addHtml"
:name=
"item.addHtml"
:scope=
"scope.row"
:prop=
"item.prop"
:width=
"item.width"
/>
<slot
v-if=
"item.addHtml"
:name=
"item.addHtml"
:scope=
"scope.row"
:prop=
"item.prop"
:width=
"item.width"
/>
<template
v-else-if=
"item.tagLabel"
>
<el-tag
v-if=
"!item.tagName"
:type=
"tableParams.tag.type[scope.row[item.prop]]"
v-text=
"tableParams.tag.label[scope.row[item.prop]]"
/>
<el-tag
v-else
:type=
"tableParams[item.tagName].type[scope.row[item.prop]]"
v-text=
"tableParams[item.tagName].label[scope.row[item.prop]]"
/>
<el-tag
v-if=
"!item.tagName"
:type=
"tableParams.tag.type[scope.row[item.prop]]"
v-text=
"tableParams.tag.label[scope.row[item.prop]]"
/>
<el-tag
v-else
:type=
"tableParams[item.tagName].type[scope.row[item.prop]]"
v-text=
"tableParams[item.tagName].label[scope.row[item.prop]]"
/>
</
template
>
<
template
v-else-if=
"item.formatter"
>
<span
v-if=
"item.html"
v-html=
"item.formatter(scope.row)"
/>
<span
v-if=
"item.html"
v-html=
"item.formatter(scope.row)"
/>
<template
v-if=
"!item.html"
>
<span
:class=
"item.className?item.className(scope.row):''"
/>
<span
v-text=
"item.formatter(scope.row)"
/>
...
...
@@ -79,8 +61,7 @@
<
template
v-else-if=
"getListApi"
>
<span
v-if=
"item.prefix"
>
{{
item
.
prefix
}}
</span>
<span
v-if=
"item.parentProp"
>
{{
scope
.
row
[
item
.
parentProp
]
?
scope
.
row
[
item
.
parentProp
][
item
.
prop
]
:
''
}}
</span>
v-if=
"item.parentProp"
>
{{
scope
.
row
[
item
.
parentProp
]
?
scope
.
row
[
item
.
parentProp
][
item
.
prop
]
:
''
}}
</span>
<span
v-else
>
{{
scope
.
row
[
item
.
prop
]
}}
</span>
</
template
>
<
template
v-else
>
...
...
@@ -91,36 +72,28 @@
</
template
>
</template>
</el-table-column>
<el-table-column
v-if=
"tableParams.tableOption"
label=
"操作"
fixed=
"right"
:align=
"tableParams.tableOption.align||'center'"
:width=
"tableParams.tableOption.width||'auto'"
>
<el-table-column
v-if=
"tableParams.tableOption"
label=
"操作"
fixed=
"right"
:align=
"tableParams.tableOption.align||'center'"
:width=
"tableParams.tableOption.width||'auto'"
>
<
template
slot-scope=
"scope"
>
<slot
name=
"auth-button"
:scope=
"scope.row"
/>
<slot
name=
"auth-button-other"
:scope=
"scope.row"
/>
<slot
name=
"auth-button"
:scope=
"scope.row"
/>
<slot
name=
"auth-button-other"
:scope=
"scope.row"
/>
</
template
>
</el-table-column>
</el-table>
<el-pagination
v-if=
"hasPage"
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"page.currentPage"
:page-sizes=
"[10,20,30,40]"
:page-size=
"page.pageSize"
:total=
"getListApi ? total : tableTotal"
:layout=
"layout"
/>
<el-pagination
v-if=
"hasPage"
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"page.currentPage"
:page-sizes=
"[10,20,30,40]"
:page-size=
"page.pageSize"
:total=
"getListApi ? total : tableTotal"
:layout=
"layout"
/>
</div>
</template>
...
...
@@ -252,7 +225,12 @@ export default {
}
}
}
}
},
// 获取CheckBox是否可以勾选
selectableFn
:
{
type
:
Function
,
default
:
null
},
},
mounted
()
{
...
...
@@ -348,7 +326,7 @@ export default {
handleCurrentChange
(
value
)
{
this
.
page
.
currentPage
=
value
this
.
getListApi
?
this
.
refreshTable
(
false
)
:
this
.
$emit
(
'refreshTable'
,
this
.
page
)
}
}
,
}
}
...
...
src/layout/header-aside/components/header-user/privacyAgreementDialog.vue
View file @
88f4bdf
<!--
下载对账单
-->
<!--
设置用户隐私协议
-->
<
template
>
<d2-dialog
title=
"用户隐私协议"
:is-visible=
"privacyVisible"
...
...
src/store/modules/d2admin/modules/base.js
View file @
88f4bdf
...
...
@@ -5,7 +5,7 @@
* @Last Modified time: 2020-11-15 10:22:06
*/
import
{
getChannelType
,
getProductType
}
from
'@/api/sys.base'
import
{
getChannelType
,
getProductType
}
from
"@/api/sys.base"
// import {
// BaseData
// } from '@/common/constants'
...
...
@@ -28,13 +28,13 @@ export default {
* @param {*} param0
*/
init
({
state
,
dispatch
,
commit
})
{
return
new
Promise
(
async
resolve
=>
{
return
new
Promise
(
async
(
resolve
)
=>
{
Promise
.
all
([
getChannelType
({}),
getProductType
({})]).
then
(
async
([
channelType
,
productType
])
=>
{
state
.
channelType
=
channelType
.
slice
(
0
,
2
)
state
.
channelType
=
channelType
state
.
productType
=
productType
await
dispatch
(
'save2db'
,
{
name
:
''
,
await
dispatch
(
"save2db"
,
{
name
:
""
,
value
:
state
})
resolve
(
state
)
...
...
@@ -45,11 +45,11 @@ export default {
},
// 重置
clear
({
state
,
dispatch
})
{
return
new
Promise
(
async
resolve
=>
{
return
new
Promise
(
async
(
resolve
)
=>
{
state
.
channelType
=
[]
state
.
productType
=
[]
await
dispatch
(
'save2db'
,
{
name
:
''
,
await
dispatch
(
"save2db"
,
{
name
:
""
,
value
:
state
})
resolve
(
state
)
...
...
@@ -63,14 +63,14 @@ export default {
* @param {*} name 名称 state 中的任意一个 强烈建议 使用 @/common/constants/BaseData 中的常量 便于灵活修改
*/
get
({
state
,
dispatch
},
name
)
{
return
new
Promise
(
async
resolve
=>
{
return
new
Promise
(
async
(
resolve
)
=>
{
let
__data
=
state
[
name
]
if
(
__data
)
{
__data
=
(
await
dispatch
(
'getFromdb'
,
`base.
${
name
}
`
))
||
(
await
dispatch
(
'getFromAjax'
,
name
))
(
await
dispatch
(
"getFromdb"
,
`base.
${
name
}
`
))
||
(
await
dispatch
(
"getFromAjax"
,
name
))
state
[
name
]
=
__data
await
dispatch
(
'save2db'
,
{
await
dispatch
(
"save2db"
,
{
name
,
value
:
__data
})
...
...
@@ -79,9 +79,9 @@ export default {
})
},
set
({
state
,
dispatch
},
{
name
,
value
})
{
return
new
Promise
(
async
resolve
=>
{
return
new
Promise
(
async
(
resolve
)
=>
{
state
[
name
]
=
value
await
dispatch
(
'save2db'
,
{
await
dispatch
(
"save2db"
,
{
name
,
value
})
...
...
@@ -95,10 +95,10 @@ export default {
* @param {*} param0
*/
load
({
state
,
dispatch
})
{
return
new
Promise
(
async
resolve
=>
{
return
new
Promise
(
async
(
resolve
)
=>
{
if
(
state
.
channelType
.
length
===
0
)
{
state
=
(
await
dispatch
(
'getFromdb'
,
'base'
))
||
(
await
dispatch
(
'init'
))
(
await
dispatch
(
"getFromdb"
,
"base"
))
||
(
await
dispatch
(
"init"
))
}
const
{
channelType
,
productType
}
=
state
resolve
({
channelType
,
productType
})
...
...
@@ -110,11 +110,11 @@ export default {
* @param {*} path 数据 路径
*/
getFromdb
({
dispatch
},
path
)
{
return
new
Promise
(
async
resolve
=>
{
return
new
Promise
(
async
(
resolve
)
=>
{
const
value
=
await
dispatch
(
'd2admin/db/get'
,
"d2admin/db/get"
,
{
dbName
:
'database'
,
dbName
:
"database"
,
path
,
user
:
false
},
...
...
@@ -132,12 +132,12 @@ export default {
* @param {*} param1 value 需要持久化的数据 path 需要持久化的数据路径
*/
save2db
({
dispatch
},
{
value
,
name
})
{
return
new
Promise
(
async
resolve
=>
{
return
new
Promise
(
async
(
resolve
)
=>
{
await
dispatch
(
'd2admin/db/set'
,
"d2admin/db/set"
,
{
dbName
:
'database'
,
path
:
name
?
`base.
${
name
}
`
:
'base'
,
dbName
:
"database"
,
path
:
name
?
`base.
${
name
}
`
:
"base"
,
value
,
user
:
false
},
...
...
@@ -154,13 +154,13 @@ export default {
* @param {*} name @/common/constants/BaseData 中的常量
*/
getFromAjax
({
state
,
dispatch
,
commit
},
name
)
{
return
new
Promise
(
async
resolve
=>
{
return
new
Promise
(
async
(
resolve
)
=>
{
// const value = await map[name]({ [TYPE_NAME]: Object.values(BaseData).find(data => data.KEY === name).TYPE })
resolve
()
})
},
async
reset
({
dispatch
})
{
await
dispatch
(
'clear'
)
await
dispatch
(
"clear"
)
}
}
}
src/views/financeManage/financeList.vue
View file @
88f4bdf
...
...
@@ -568,9 +568,10 @@ import {
payTypeList
,
orderTypeList
,
warehouseStatusList
,
sourceChannelTypeList
,
//
sourceChannelTypeList,
manageTypeList
,
payType
payType
,
BaseData
}
from
'@/common/constants.js'
import
downloadAccountDialog
from
'./downloadAccountDialog'
import
warehouseDetail
from
'./warehouseDetail'
...
...
@@ -724,9 +725,9 @@ export default {
name
:
'channelType'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'
confId
'
,
optionLabel
:
'
confLabel
'
,
optionsName
:
'
sourceC
hannelTypeList'
optionId
:
'
value
'
,
optionLabel
:
'
name
'
,
optionsName
:
'
c
hannelTypeList'
},
{
label
:
'园区店模式'
,
name
:
'businessModel'
,
...
...
@@ -744,9 +745,10 @@ export default {
divisionTypeList
:
_
.
cloneDeep
(
divisionTypeList
),
orderTypeList
:
_
.
cloneDeep
(
orderTypeList
),
warehouseStatusList
:
_
.
cloneDeep
(
warehouseStatusList
),
sourceChannelTypeList
:
_
.
cloneDeep
(
sourceChannelTypeList
),
//
sourceChannelTypeList: _.cloneDeep(sourceChannelTypeList),
manageTypeList
:
_
.
cloneDeep
(
manageTypeList
),
PlatformMerchantList
:
[]
PlatformMerchantList
:
[],
channelTypeList
:
[],
},
total
:
0
,
page
:
{
...
...
@@ -821,7 +823,7 @@ export default {
this
.
baseData
.
PlatformMerchantList
=
res
this
.
getOptionsList
()
})
this
.
getBaseData
()
this
.
getSummary
()
this
.
getList
()
...
...
@@ -838,6 +840,11 @@ export default {
methods
:
{
...
mapActions
({
close
:
'd2admin/page/close'
}),
...
mapActions
(
'd2admin/user'
,
[
'actionSetDownloadList'
]),
...
mapActions
(
"d2admin/base"
,
[
"get"
]),
async
getBaseData
()
{
this
.
baseData
.
channelTypeList
=
await
this
.
get
(
BaseData
.
channelType
)
this
.
getOptionsList
()
},
handleAddClose
(
isRefresh
=
false
)
{
},
drawFunnelChart
()
{
// console.log(funnelOption)
...
...
src/views/index/components/reportDownloads.vue
View file @
88f4bdf
...
...
@@ -88,20 +88,35 @@ export default {
...
mapActions
(
'd2admin/user'
,
[
'actionSetDownloadList'
]),
exportDailyReport
()
{
if
(
!
this
.
dateValue
)
return
this
.
$message
.
warning
(
'请选择日期'
)
this
.
exportDailyReportBtn
=
true
//
this.exportDailyReportBtn = true
// console.log(downLoadFile)
// return
getExportDailyReport
({
endDateStr
:
this
.
dateValue
}).
then
((
result
)
=>
{
// if (result.code == 0) {
// console.log(downLoadFile)
// console.log(result)
downLoadFile
(
result
)
// }
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
}).
finally
((
result
)
=>
{
this
.
exportDailyReportBtn
=
false
})
// getExportDailyReport({ endDateStr: this.dateValue }).then((result) => {
// // if (result.code == 0) {
// // console.log(downLoadFile)
// // console.log(result)
// downLoadFile(result)
// // }
// }).catch((err) => {
// console.log(err)
// }).finally((result) => {
// this.exportDailyReportBtn = false
// })
var
params
=
{}
params
.
endDateStr
=
this
.
dateValue
params
.
method
=
'dj.api.smartcarlife.workbench.exportDailyReport.async'
const
list
=
[
...
this
.
dowloadList
,
{
name
:
'日报'
,
// uuid: JSON.parse(res).data,
// ifSuccess: false
exportParam
:
JSON
.
stringify
(
params
),
status
:
'waiting'
,
timeid
:
new
Date
().
getTime
()
}
]
this
.
actionSetDownloadList
({
list
,
type
:
'dowloadList'
})
},
goCheck
(
row
)
{
// console.log('goCheck')
...
...
src/views/orderManage/orderDetail.vue
View file @
88f4bdf
...
...
@@ -142,6 +142,11 @@
<span
slot-scope=
"scope"
>
{{ scope.row.upgradeWarrantyPeriod ? (scope.row.upgradeWarrantyPeriod + '年') : '无' }}
</span>
</el-table-column>
<el-table-column
prop=
"cardCode"
align=
"center"
label=
"质保条形码"
>
<span
slot-scope=
"scope"
>
{{ scope.row.cardCode ? (scope.row.cardCode) : '无' }}
</span>
</el-table-column>
<el-table-column
prop=
"nums"
align=
"center"
label=
"数量(件)"
>
...
...
src/views/orderManage/orderList.vue
View file @
88f4bdf
...
...
@@ -253,9 +253,8 @@
<
script
>
import
{
Util
}
from
'@/common/util'
// import
{
getList
,
getOrderCount
,
waitinputorderCount
,
orderImport
}
from
'@api/order'
import
{
getList
,
exportFile
,
getOrderCount
,
waitinputorderCount
,
orderImport
}
from
'@api/order'
import
{
sourceChannelTypeList
,
manageTypeList
}
from
'@/common/constants'
import
{
sourceChannelTypeList
,
manageTypeList
,
BaseData
}
from
'@/common/constants'
import
{
mapActions
,
mapState
,
mapMutations
}
from
'vuex'
import
{
getServiceStore
,
getParkStore
}
from
'@api/editCustomer'
import
{
asyncExportExcel
}
from
'@api/sys.base'
...
...
@@ -385,9 +384,10 @@ export default {
name
:
'channelType'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confLabel'
,
optionsName
:
'sourceChannelTypeList'
optionId
:
'value'
,
optionLabel
:
'name'
,
// optionsName: 'sourceChannelTypeList'
optionsName
:
'channelTypeList'
}
,
{
label
:
'园区店模式'
,
name
:
'businessModel'
,
...
...
@@ -468,7 +468,7 @@ export default {
],
parkServiceList
:
[],
storeIdList
:
[],
sourceChannelTypeList
:
_
.
cloneDeep
(
sourceChannelTypeList
),
//
sourceChannelTypeList: _.cloneDeep(sourceChannelTypeList),
manageTypeList
:
_
.
cloneDeep
(
manageTypeList
),
sourceList
:
[
{
...
...
@@ -479,7 +479,8 @@ export default {
confId
:
'7'
,
confLabel
:
'系统导入'
}
]
],
channelTypeList
:
[],
}
,
tableData
:
[],
total
:
0
,
...
...
@@ -524,6 +525,7 @@ export default {
if
(
signRefundItem
)
{
this
.
signRefundFlag
=
true
// 是否有标记退款权限
}
this
.
getBaseData
()
this
.
getList
()
this
.
getOrderCount
()
}
,
...
...
@@ -540,6 +542,11 @@ export default {
...
mapActions
({
close
:
'd2admin/page/close'
}
),
...
mapActions
(
'd2admin/user'
,
[
'actionSetDownloadList'
]),
...
mapMutations
(
'd2admin/user'
,
[
'setUpdateRefesh'
]),
...
mapActions
(
"d2admin/base"
,
[
"get"
]),
async
getBaseData
()
{
this
.
baseData
.
channelTypeList
=
await
this
.
get
(
BaseData
.
channelType
)
this
.
getOptionsList
()
}
,
handleImport
()
{
this
.
fileVisible
=
!
this
.
fileVisible
...
...
src/views/orderManage/orderSupplement.vue
View file @
88f4bdf
...
...
@@ -32,9 +32,20 @@
<d2-container>
-->
<div
class=
"d2-container-content"
>
<d2-table-header
:left-span=
"20"
>
<span
slot=
"left"
>
共
<span
class=
"count-txt"
>
{{
countObj
.
totalCount
}}
</span>
条交易记录,已补录
<span
<span
slot=
"left"
>
共
<span
class=
"count-txt"
>
{{
countObj
.
totalCount
}}
</span>
条交易记录,总金额
<span
class=
"count-txt"
>
{{
countObj
.
totalAmount
}}
</span>
元,已补录
<span
class=
"count-txt"
>
{{
countObj
.
inputtedCount
}}
</span>
条,未补录
<span
class=
"count-txt"
>
{{
countObj
.
waitInputCount
}}
</span>
条。
</span>
class=
"count-txt"
>
{{
countObj
.
waitInputCount
}}
</span>
条,未关联
<span
class=
"count-txt"
>
{{
countObj
.
notAssociatedCount
}}
</span>
条,无需补录
<span
class=
"count-txt"
>
{{
countObj
.
needNoSupplementCount
}}
</span>
条。
</span>
<el-button
type=
"primary"
@
click=
"batchUpdateYqMerchant"
>
批量修改所属园区店
</el-button>
<el-button
type=
"primary"
@
click=
"batchMarkAsNoUse"
>
批量标记为无需补录
</el-button>
<el-button
type=
"primary"
@
click=
"handleExport"
>
导出
...
...
@@ -45,7 +56,8 @@
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
>
:before-search-fn=
"beforeSearchFn"
:selectableFn=
"selectableFn"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
...
...
@@ -57,8 +69,12 @@
</d2-table>
</div>
</d2-container>
<!-- 批量修改所属园区店 -->
<update-yqMerchant-dialog
:merchantVisible=
"merchantDialogVisible"
:idList=
"ids"
v-if=
"merchantDialogVisible"
@
dialogClose=
"dialogClose"
/>
</div>
<!-- </div> -->
</template>
<
script
>
...
...
@@ -68,12 +84,16 @@ import { mapActions, mapState } from 'vuex'
import
{
getParkStore
}
from
'@api/editCustomer'
// waitinputorderExport
import
{
payTypeList
}
from
'@/common/constants.js'
import
{
waitinputorderCount
,
waitinputorderPage
,
getList
}
from
'@api/order'
import
{
waitinputorderCount
,
waitinputorderPage
,
getList
,
markAsNoUse
}
from
'@api/order'
// import { asyncExportExcel } from '@api/sys.base'
import
updateYqMerchantDialog
from
'./updateYqMerchantDialog'
const
clonePayTypeList
=
_
.
cloneDeep
(
payTypeList
)
clonePayTypeList
.
splice
(
1
,
1
)
export
default
{
name
:
'OrderSupplement'
,
components
:
{
updateYqMerchantDialog
},
data
()
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
...
...
@@ -125,7 +145,7 @@ export default {
optionLabel
:
'confLabel'
,
optionsName
:
'notifyStatusList'
},
{
label
:
'
补录
状态'
,
label
:
'状态'
,
name
:
'inputStatus'
,
type
:
'select'
,
optionList
:
[],
...
...
@@ -160,6 +180,8 @@ export default {
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
mutiSelectUniqueKey
:
'id'
,
mutiSelectName
:
'orderSupplement'
,
tableOption
:
true
,
tableColumns
:
[{
label
:
'交易参考号'
,
...
...
@@ -209,7 +231,7 @@ export default {
}
},
{
label
:
'
补录
状态'
,
label
:
'状态'
,
prop
:
'inputStatus'
,
formatter
:
(
cellValue
)
=>
{
return
this
.
baseData
.
inputStatusList
.
find
(
item
=>
item
.
confId
===
cellValue
.
inputStatus
?.
toString
())?.
confLabel
...
...
@@ -241,10 +263,21 @@ export default {
{
confId
:
'0'
,
confLabel
:
'未补录'
},
{
confId
:
'2'
,
confLabel
:
'未关联'
},
{
confId
:
'3'
,
confLabel
:
'无需补录'
}
],
payTypeList
:
clonePayTypeList
}
},
merchantDialogVisible
:
false
,
ids
:
[]
}
},
computed
:
{
...
...
@@ -374,6 +407,72 @@ export default {
}
})
})
},
selectableFn
(
row
,
index
)
{
var
isSelect
=
true
if
(
row
.
inputStatus
==
'1'
)
{
//已补录流水不可勾选
isSelect
=
false
}
return
isSelect
},
batchUpdateYqMerchant
()
{
var
selectedData
=
[]
console
.
log
(
this
.
$refs
.
recordTable
.
mutiSelectArr
[
'orderSupplement'
]);
if
(
this
.
$refs
.
recordTable
.
mutiSelectArr
[
'orderSupplement'
])
{
selectedData
=
this
.
$refs
.
recordTable
.
mutiSelectArr
[
'orderSupplement'
]
}
if
(
!
selectedData
.
length
)
{
this
.
$message
({
message
:
"请选择需要修改的记录"
,
type
:
"warning"
,
showClose
:
true
})
return
false
}
this
.
ids
=
selectedData
.
map
((
item
)
=>
{
return
item
.
id
})
this
.
merchantDialogVisible
=
!
this
.
merchantDialogVisible
},
dialogClose
(
flag
)
{
this
.
merchantDialogVisible
=
!
this
.
merchantDialogVisible
if
(
flag
)
{
this
.
$refs
.
recordTable
.
refreshTable
()
}
},
batchMarkAsNoUse
()
{
var
selectedData
=
[]
console
.
log
(
this
.
$refs
.
recordTable
.
mutiSelectArr
[
'orderSupplement'
]);
if
(
this
.
$refs
.
recordTable
.
mutiSelectArr
[
'orderSupplement'
])
{
selectedData
=
this
.
$refs
.
recordTable
.
mutiSelectArr
[
'orderSupplement'
]
}
if
(
!
selectedData
.
length
)
{
this
.
$message
({
message
:
"请选择需要标记的记录"
,
type
:
"warning"
,
showClose
:
true
})
return
false
}
var
idList
=
selectedData
.
map
((
item
)
=>
{
return
item
.
id
})
this
.
$confirm
(
'标记为无需补录后,对应的流水不再需要进行补单操作,且不可恢复,是否确定修改?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
markAsNoUse
({
idList
:
idList
}).
then
(
res
=>
{
this
.
notice
.
okTips
()
this
.
$refs
.
recordTable
.
refreshTable
()
})
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
}
}
}
...
...
src/views/orderManage/updateYqMerchantDialog.vue
0 → 100644
View file @
88f4bdf
<!-- 设置用户隐私协议 -->
<
template
>
<d2-dialog
title=
"批量修改所属园区店"
:is-visible=
"merchantVisible"
class=
"merchantDailog"
width=
"30%"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleAddConfirm"
>
<el-form
ref=
"merchantForm"
:model=
"infoForm"
:rules=
"formRules"
label-width=
"120px"
>
<el-form-item
label=
"园区店:"
prop=
"yqMerchantId"
>
<el-select
v-model=
"infoForm.yqMerchantId"
filterable
clearable
style=
"width:400px"
>
<el-option
v-for=
"item in baseData.merchantList"
:key=
"item.merchantNo"
:label=
"item.merchantName"
:value=
"item.merchantNo"
/>
</el-select>
</el-form-item>
</el-form>
</d2-dialog>
</
template
>
<
script
>
import
{
getParkStore
}
from
'@api/editCustomer'
import
{
updateYqMerchant
}
from
'@api/order'
export
default
{
name
:
'updateYqMerchantDialog'
,
data
()
{
return
{
// userInfo: this.$store.state.d2admin.user.info,
infoForm
:
{
yqMerchantId
:
''
,
idList
:
[],
},
formRules
:
{
yqMerchantId
:
[
{
required
:
true
,
message
:
'请选择商户'
,
trigger
:
'change'
}
]
},
// 基本数据
baseData
:
{
merchantList
:
[]
}
}
},
props
:
{
merchantVisible
:
{
type
:
Boolean
,
default
:
false
},
idList
:
{
type
:
Array
,
default
:
()
=>
{
}
},
},
watch
:
{
},
created
()
{
},
components
:
{},
computed
:
{
},
mounted
()
{
this
.
getMerchantList
()
},
methods
:
{
getMerchantList
()
{
getParkStore
({}).
then
(
res
=>
{
this
.
baseData
.
merchantList
=
res
})
},
handleAddConfirm
()
{
this
.
$refs
.
merchantForm
.
validate
(
valid
=>
{
if
(
valid
)
{
this
.
infoForm
.
idList
=
this
.
idList
var
params
=
_
.
cloneDeep
(
this
.
infoForm
)
updateYqMerchant
(
params
).
then
(
res
=>
{
this
.
notice
.
okTips
()
this
.
handleClose
(
true
)
})
}
})
},
handleClose
(
flag
)
{
this
.
$emit
(
'dialogClose'
,
flag
)
}
}
}
</
script
>
<
style
>
.merchantDailog
.el-dialog
{
min-width
:
700px
;
}
</
style
>
src/views/systemConfig/accountNew/accountList.vue
View file @
88f4bdf
...
...
@@ -78,11 +78,13 @@ export default {
merchantRow
:
{},
nameToOption
:
{
1
:
'dj'
,
2
:
'gh'
2
:
'gh'
,
8
:
'zy'
},
merchantLevelOptions
:
{
dj
:
[],
gh
:
[]
gh
:
[],
zy
:
[]
},
// 搜索
merchantLevelVal
:
[],
...
...
@@ -174,7 +176,8 @@ export default {
label
:
'渠道'
,
prop
:
''
,
formatter
:
cellValue
=>
{
return
cellValue
.
channelType
===
1
?
'嘀加'
:
'广汇'
// return cellValue.channelType === 1 ? '嘀加' : '广汇'
return
this
.
baseData
.
channelTypeShow
[
cellValue
.
channelType
]
}
},
{
label
:
'账户状态'
,
...
...
@@ -205,6 +208,11 @@ export default {
confId
:
4
,
confLabel
:
'失败'
}],
channelTypeShow
:
{
1
:
'嘀加'
,
2
:
'广汇'
,
8
:
'直营'
},
merchantStoreServiceList
:
merchantStoreServiceList
},
dialogConfig
:
{
...
...
@@ -231,9 +239,10 @@ export default {
mounted
()
{
this
.
getBaseData
()
// 1-嘀加;2-广汇
// 1-嘀加;2-广汇
; 8-直营
this
.
getMerchantLevel
(
1
)
this
.
getMerchantLevel
(
2
)
this
.
getMerchantLevel
(
8
)
// console.log(this.merchantLevelOptions)
},
...
...
@@ -265,7 +274,7 @@ export default {
},
getMerchantLevel
(
channelType
)
{
// channelType:1-嘀加;2-广汇
// channelType:1-嘀加;2-广汇
;8-直营
getMerchantLevelApi
({
channelType
:
channelType
}).
then
(
res
=>
{
// this.merchantLevelOptions[this.nameToOption[channelType]] = JSON.parse(res)
this
.
merchantLevelOptions
[
this
.
nameToOption
[
channelType
]]
=
res
...
...
src/views/systemConfig/merchant/merchantManage.vue
View file @
88f4bdf
...
...
@@ -62,19 +62,24 @@
:label=
"x.merchantName"
/>
</el-select>
</el-form-item>
<!-- !relateMerchantObj.partnerMerchantName -->
<p
class=
"relate-service"
>
<span
v-if=
"
storeSearchForm.yqMerchantId &&
!relateMerchantObj.partnerMerchantName
storeSearchForm.yqMerchantId && !relateMerchantObjShow
"
>
该园区店暂未关联服务商
<a
href=
"#/serviceManage"
target=
"_blank"
rel=
"opener"
style=
"margin-left: 20px"
>
关联服务商>
</a></span>
<span
v-else
>
该园区店关联的服务商为:
{{
relateMerchantObj
.
partnerMerchantName
}}
(服务商编号:
{{
relateMerchantObj
.
partnerMerchantId
}}
)
</span>
<!--
<span
v-else
>
该园区店关联的服务商为:
{{
relateMerchantObjShow
}}
</span>
-->
<span
v-else
>
<el-tooltip
:content=
"relateMerchantObjShow"
popper-class=
"merchantTooltip"
placement=
"right-start"
>
<el-button
type=
"info"
>
显示该园区店关联的服务商
</el-button>
</el-tooltip>
</span>
</p>
</el-col>
<el-form-item
label=
"选择渠道:"
>
...
...
@@ -137,7 +142,8 @@
btn-ok-label=
"确定"
@
confirmDialog=
"brandOkButton"
@
closeDialog=
"brandSettingsButton"
>
<span
slot=
"sub-title"
class=
"second_title"
>
{{
`${rowData.merchantName
}
${rowData.merchantId
}
`
}}
<
/span
>
<span
slot=
"sub-title"
class=
"second_title"
>
{{
`${rowData.merchantName
}
${rowData.merchantId
}
`
}}
<
/span
>
<
div
class
=
"brandBox"
>
<
div
class
=
"leftBox"
>
<
div
class
=
"brand-top"
>
...
...
@@ -333,7 +339,8 @@ export default {
formatter
:
(
cellValue
)
=>
{
return
{
1
:
"嘀加"
,
2
:
"广汇"
2
:
"广汇"
,
8
:
"直营"
}
[
cellValue
.
channelType
]
}
}
,
...
...
@@ -428,6 +435,8 @@ export default {
partnerMerchantId
:
""
,
partnerMerchantName
:
""
}
,
relateMerchantObjArr
:
[],
relateMerchantObjShow
:
''
,
relateStoreVisible
:
false
,
storeApi
:
serviceGetMerchantList
,
sourcePage
:
"serviceStore"
,
...
...
@@ -635,9 +644,17 @@ export default {
// 关联导流方
handleMerchantChange
(
value
)
{
getPartnerByYq
({
yqMerchantId
:
value
}
).
then
((
res
)
=>
{
this
.
relateMerchantObj
=
{
partnerMerchantId
:
res
?
res
.
merchantId
:
""
,
partnerMerchantName
:
res
?
res
.
merchantName
:
""
// this.relateMerchantObj =
{
// partnerMerchantId: res ? res.merchantId : "",
// partnerMerchantName: res ? res.merchantName : ""
//
}
this
.
relateMerchantObjShow
=
''
this
.
relateMerchantObjArr
=
res
if
(
this
.
relateMerchantObjArr
.
length
>
0
)
{
var
merchantArr
=
this
.
relateMerchantObjArr
.
map
(
item
=>
{
return
item
.
merchantName
+
'/'
+
item
.
merchantId
}
)
this
.
relateMerchantObjShow
=
merchantArr
.
join
(
','
)
}
}
)
}
,
...
...
@@ -886,6 +903,9 @@ export default {
line
-
height
:
36
px
;
margin
:
0
;
}
.
merchantTooltip
{
max
-
width
:
600
px
;
}
<
/style
>
<
style
lang
=
"scss"
scoped
>
.
brandBox
{
...
...
@@ -1009,7 +1029,7 @@ export default {
.
brandStyle
::
v
-
deep
.
el
-
input
--
medium
.
el
-
input__inner
{
height
:
32
px
!
important
;
}
.
second_title
{
.
second_title
{
font
-
family
:
PingFangSC
-
Regular
,
PingFang
SC
;
margin
-
left
:
10
px
;
}
...
...
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