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 a68f29e1
authored
Jun 17, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
店铺设置
1 parent
d7a12e40
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
165 additions
and
6 deletions
src/api/shopConfig.js
src/components/d2-table/index.vue
src/router/modules/906_systemSettings.js
src/views/financeManage/components/SystemBillDialog.vue
src/views/financeManage/resData.js
src/views/systemConfig/ShopConfig/index.vue
src/views/systemConfig/ShopConfig/shopSet.vue
src/api/shopConfig.js
View file @
a68f29e
...
@@ -280,3 +280,15 @@ export function personalConfigImport(data) {
...
@@ -280,3 +280,15 @@ export function personalConfigImport(data) {
data
.
method
=
`dj.api.smartcarlife.employee.delivery.deal.rate.import`
data
.
method
=
`dj.api.smartcarlife.employee.delivery.deal.rate.import`
return
request
(
data
,
"post"
,
[
"file"
])
return
request
(
data
,
"post"
,
[
"file"
])
}
}
// 批量设置运营人员
export
function
shopBatchSet
(
data
)
{
data
.
method
=
'dj.api.smartcarlife.serviceMerchant.shopOperation.setting.batch'
return
request
(
data
,
"post"
)
}
// 批量设置展业场景
export
function
busiBatchSet
(
data
)
{
data
.
method
=
'dj.api.smartcarlife.serviceMerchant.BusinessDev.setting.batch'
return
request
(
data
,
"post"
)
}
src/components/d2-table/index.vue
View file @
a68f29e
...
@@ -78,6 +78,7 @@
...
@@ -78,6 +78,7 @@
:index=
"scope.$index"
:index=
"scope.$index"
:prop=
"item.prop"
:prop=
"item.prop"
:width=
"item.width"
:width=
"item.width"
:columnsObj=
"item"
/>
/>
<template
v-else-if=
"item.type == 'ownSerialNum'"
>
<template
v-else-if=
"item.type == 'ownSerialNum'"
>
<span>
{{
<span>
{{
...
...
src/router/modules/906_systemSettings.js
View file @
a68f29e
...
@@ -939,6 +939,30 @@ export const routerName = {
...
@@ -939,6 +939,30 @@ export const routerName = {
parentId
:
"90619"
,
parentId
:
"90619"
,
label
:
"删除"
,
label
:
"删除"
,
handle
:
"handleDelete"
handle
:
"handleDelete"
},
{
authId
:
"9061934"
,
parentId
:
"90619"
,
label
:
"批量设置区域运营"
,
category
:
"Button"
,
type
:
"primary"
,
handle
:
"handleSetBatch"
},
{
authId
:
"9061935"
,
parentId
:
"90619"
,
label
:
"批量设置展业场景"
,
category
:
"Button"
,
type
:
"primary"
,
handle
:
"handleSetBatch"
},
{
authId
:
"9061936"
,
parentId
:
"90619"
,
label
:
"批量设置线上运营"
,
category
:
"Button"
,
type
:
"primary"
,
handle
:
"handleSetBatch"
}
}
],
],
// component: _import("systemConfig/ShopConfig/index")
// component: _import("systemConfig/ShopConfig/index")
...
...
src/views/financeManage/components/SystemBillDialog.vue
View file @
a68f29e
<
template
>
<
template
>
<d2-dialog
title=
"系统对账单"
:is-visible=
"billVisible"
class=
"privacyDailog"
width=
"80%"
btnOkLabel=
"关闭"
:noCancel=
"true"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<d2-dialog
title=
"系统对账单"
:is-visible=
"billVisible"
class=
"privacyDailog"
width=
"80%"
btnOkLabel=
"关闭"
:noCancel=
"true"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<el-table
:data=
"tableList"
style=
"width: 100%"
>
<el-table
:data=
"tableList"
style=
"width: 100%"
:span-method=
"arraySpanMethod"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
>
</el-table-column>
<el-table-column
v-for=
"(item, idx) in tableHeader"
:key=
"idx"
:label=
"item.moduleName"
>
<el-table-column
v-for=
"(item, idx) in tableHeader"
:key=
"idx"
:label=
"item.moduleName"
>
<el-table-column
v-for=
"(subItem, subIdx) in item.items"
:key=
"subIdx"
:prop=
"subItem.fieldCode"
:label=
"subItem.fieldName"
></el-table-column>
<el-table-column
v-for=
"(subItem, subIdx) in item.items"
:key=
"subIdx"
:prop=
"subItem.fieldCode"
:label=
"subItem.fieldName"
>
<template
slot-scope=
"scope"
>
<!-- 选择框 -->
<div
v-if=
"subItem.editType == 'select'"
>
<el-select
style=
"width: 200px"
v-model=
"scope.row[subItem.extInfo.source || 'ORDER'][subItem.fieldCode]"
v-bind=
"item.attrs ? item.attrs :
{}" v-on="item.listeners ? item.listeners : {}" :clearable="item.isClear || false" :placeholder="item.placeholder || '请选择' + item.label" :filterable="!item.noFilter" :disabled="item.isDisabled" :no-data-text="item.noDataText || '无数据'" :multiple="item.multiple || false" :collapse-tags="item.collapseTags || true" @change="selectAddAttr($event, item)">
<el-option
v-for=
"k in baseData[subItem.editObj.optionsName]"
:key=
"k[subItem.editObj.optionId]"
:label=
"k[subItem.editObj.optionLabel]"
:value=
"k[subItem.editObj.optionId]"
></el-option>
</el-select>
<!--
<slot
:name=
"item.suffixSlot"
:scope=
"item"
></slot>
-->
</div>
<!--
{{
subItem
.
editType
}}
-->
<div
v-else
>
{{
scope
.
row
[
subItem
.
extInfo
.
source
||
'ORDER'
][
subItem
.
fieldCode
]
||
'——'
}}
</div>
</
template
>
</el-table-column>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</d2-dialog>
</d2-dialog>
...
@@ -10,6 +24,7 @@
...
@@ -10,6 +24,7 @@
<
script
>
<
script
>
import
{
deepClone
}
from
'@/common/util'
import
{
deepClone
}
from
'@/common/util'
import
{
getPlatformMerchantList
}
from
'@api/index'
export
default
{
export
default
{
name
:
'SystemBillDialog'
,
name
:
'SystemBillDialog'
,
props
:
{
props
:
{
...
@@ -26,33 +41,114 @@ export default {
...
@@ -26,33 +41,114 @@ export default {
return
{
return
{
tmplFieldsList
:
[],
tmplFieldsList
:
[],
tableHeader
:
[],
tableHeader
:
[],
originalOrderList
:
[],
tableList
:
[],
tableList
:
[],
editObj
:
{
select
:
{
attrList
:
[
'platformMerchantName'
],
defaultConf
:
{
platformMerchantName
:
{
optionId
:
'merchantId'
,
optionLabel
:
'merchantName'
,
optionsName
:
'PlatformMerchantList'
}
}
},
input
:
{
attrList
:
[
''
]
}
},
baseData
:
{
PlatformMerchantList
:
[]
}
}
}
},
},
watch
:
{},
watch
:
{},
mounted
()
{
mounted
()
{
this
.
tmplFieldsList
=
JSON
.
parse
(
this
.
billTmplInfo
.
fieldsJson
)
this
.
tmplFieldsList
=
JSON
.
parse
(
this
.
billTmplInfo
.
fieldsJson
)
this
.
table
List
=
this
.
billTmplInfo
.
orders
this
.
originalOrder
List
=
this
.
billTmplInfo
.
orders
// console.log(this.tmplFieldsList, 'this.tmplFieldsList')
// console.log(this.tmplFieldsList, 'this.tmplFieldsList')
this
.
dealTableHeader
()
this
.
getPlatformMerchantList
()
this
.
dealTable
()
},
},
methods
:
{
methods
:
{
handleClose
()
{
handleClose
()
{
this
.
$emit
(
'handleClose'
)
this
.
$emit
(
'handleClose'
)
},
},
dealTableHeader
()
{
// 获取平台方数据
getPlatformMerchantList
()
{
getPlatformMerchantList
({}).
then
(
res
=>
{
res
.
unshift
({
merchantId
:
-
1
,
merchantName
:
'嘀加智慧云'
})
this
.
baseData
.
PlatformMerchantList
=
res
})
},
dealTable
()
{
// 处理表格表头
this
.
tableHeader
=
[]
this
.
tableHeader
=
[]
const
moduleList
=
[...
new
Set
(
this
.
tmplFieldsList
.
map
(
item
=>
item
.
moduleName
))]
const
moduleList
=
[...
new
Set
(
this
.
tmplFieldsList
.
map
(
item
=>
item
.
moduleName
))]
moduleList
.
forEach
(
item
=>
{
moduleList
.
forEach
(
item
=>
{
let
list
=
this
.
tmplFieldsList
.
filter
(
k
=>
k
.
moduleName
==
item
)
let
list
=
this
.
tmplFieldsList
.
filter
(
k
=>
k
.
moduleName
==
item
)
list
.
forEach
(
k
=>
{
k
.
extInfo
=
JSON
.
parse
(
k
.
extInfo
)
if
(
this
.
editObj
.
select
.
attrList
.
includes
(
k
.
fieldCode
))
{
k
.
editType
=
'select'
k
.
editObj
=
{
...
this
.
editObj
.
select
.
defaultConf
[
k
.
fieldCode
]
}
}
})
this
.
tableHeader
.
push
({
this
.
tableHeader
.
push
({
moduleName
:
item
,
moduleName
:
item
,
items
:
list
items
:
list
})
})
})
})
console
.
log
(
this
.
tableHeader
,
'this.tableHeader---'
)
console
.
log
(
this
.
tableHeader
,
'moduleList------------'
)
console
.
log
(
this
.
originalOrderList
,
'this.originalOrderList---'
)
// 处理表格数据,以subOrders为最小粒度(作为一行)
this
.
tableList
=
[]
var
serialNo
=
1
this
.
originalOrderList
.
forEach
(
item
=>
{
let
{
packages
,
...
orderOtherObj
}
=
item
item
.
packages
.
forEach
(
k
=>
{
let
{
subOrders
,
...
packagesOtherObj
}
=
k
k
.
subOrders
.
forEach
((
m
,
mIdx
)
=>
{
this
.
tableList
.
push
({
ORDER
:
orderOtherObj
,
PACKAGE
:
packagesOtherObj
,
SUB_ORDER
:
{
...
m
,
serialNo
:
serialNo
++
}
})
if
(
mIdx
==
0
)
{
let
targetIdx
=
this
.
tableList
.
length
-
1
// 行合并
this
.
tableList
[
targetIdx
].
rowspan
=
k
.
subOrders
.
length
}
})
})
})
console
.
log
(
this
.
tableList
,
'this.tableList---'
)
console
.
log
(
this
.
tableList
,
'this.tableList---'
)
},
},
// 合并单元格
arraySpanMethod
({
row
,
column
,
rowIndex
,
columnIndex
})
{
// console.log(this.tmplFieldsList, 'this.tmplFieldsList--')
// console.log(row, 'row----')
// console.log(column, 'column----property')
// console.log('-----------------------------------------------------')
/** 用于标识数据来源(ORDER、PACKAGE、SUB_ORDER)
* SUB_ORDER - 无需合并单元格;ORDER、PACKAGE - 需合并单元格
*/
const
source
=
this
.
tmplFieldsList
.
find
(
item
=>
item
.
fieldCode
==
column
.
property
)?.
extInfo
?.
source
||
'ORDER'
if
([
'ORDER'
,
'PACKAGE'
].
includes
(
source
))
{
return
{
rowspan
:
row
.
rowspan
,
colspan
:
row
.
rowspan
?
1
:
0
}
}
},
},
},
};
};
</
script
>
</
script
>
...
...
src/views/financeManage/resData.js
View file @
a68f29e
...
@@ -506,6 +506,32 @@ export const resData = {
...
@@ -506,6 +506,32 @@ export const resData = {
partnerFeeCalculateCoefficient
:
null
,
partnerFeeCalculateCoefficient
:
null
,
secondPartnerFee
:
null
,
secondPartnerFee
:
null
,
yqProfitMoney
:
275.34
yqProfitMoney
:
275.34
},
{
orderCode
:
"250521164946668"
,
subOrderCode
:
"S25052116494666800"
,
merchantGoodsId
:
1113
,
packageCode
:
null
,
packageName
:
null
,
upgradeGoodsCommodityCode
:
null
,
upgradeGoodsName
:
null
,
specification
:
null
,
bulkCode
:
""
,
thirdPartyCode
:
""
,
supplierCode
:
"12"
,
supplierName
:
"广联直营"
,
number
:
1
,
goodsCost
:
1.0
,
totalPaymentAmount
:
348.37
,
trafficFeeCalculateType
:
1
,
trafficFeeCalculateValue
:
10
,
trafficFee
:
34.73
,
partnerFeeCalculateType
:
null
,
partnerFeeCalculateValue
:
null
,
firstPartnerFee
:
null
,
partnerFeeCalculateCoefficient
:
null
,
secondPartnerFee
:
null
,
yqProfitMoney
:
275.34
}
}
]
]
},
},
...
...
src/views/systemConfig/ShopConfig/index.vue
View file @
a68f29e
This diff is collapsed.
Click to expand it.
src/views/systemConfig/ShopConfig/shopSet.vue
View file @
a68f29e
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