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 23211f02
authored
Aug 08, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
商户设置 新增商品来源功能开发完成
1 parent
47ab436e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
172 additions
and
101 deletions
src/common/constant/merchant.js
src/store/index.js
src/store/modules/FinancialRules/index.js
src/views/goods/productManage/components/specifications.vue
src/views/systemConfig/merchant/financialRules/components/classificationCpt.vue
src/views/systemConfig/merchant/financialRules/index.vue
src/views/systemConfig/merchant/merchantStep/components/classificationCpt.vue
src/views/systemConfig/merchant/merchantStep/components/ledgerAccount.vue
src/views/systemConfig/merchant/merchantStep/components/reconciliation.vue
src/common/constant/merchant.js
View file @
23211f0
...
@@ -50,3 +50,9 @@ export const severSelectOptionsLabel = {
...
@@ -50,3 +50,9 @@ export const severSelectOptionsLabel = {
5
:
"按(产值-流量成本-其他费用不包含产品成本))比例"
,
5
:
"按(产值-流量成本-其他费用不包含产品成本))比例"
,
6
:
"按(产值-流量成本-其他费用包含产品成本)比例"
6
:
"按(产值-流量成本-其他费用包含产品成本)比例"
}
}
// 商品来源
export
const
goodsSourceList
=
[
{
confId
:
1
,
confValue
:
"嘀加"
},
{
confId
:
2
,
confValue
:
"自店"
},
{
confId
:
3
,
confValue
:
"云中鹤"
}
]
src/store/index.js
View file @
23211f0
import
Vue
from
'vue'
import
Vue
from
"vue"
import
Vuex
from
'vuex'
import
Vuex
from
"vuex"
import
d2admin
,
{
storeResets
}
from
'./modules/d2admin'
import
d2admin
,
{
storeResets
}
from
"./modules/d2admin"
import
goodsInfoData
from
'./modules/goodsInfoData'
import
goodsInfoData
from
"./modules/goodsInfoData"
Vue
.
prototype
.
$StoreReset
=
function
()
{
import
FinancialRules
from
"./modules/FinancialRules"
return
new
Promise
(
resolve
=>
{
Vue
.
prototype
.
$StoreReset
=
function
()
{
storeResets
.
forEach
(
reset
=>
this
.
dispatch
(
reset
))
return
new
Promise
((
resolve
)
=>
{
storeResets
.
forEach
((
reset
)
=>
this
.
dispatch
(
reset
))
resolve
()
resolve
()
})
})
}
}
Vue
.
use
(
Vuex
)
Vue
.
use
(
Vuex
)
const
isProd
=
process
.
env
.
NODE_ENV
===
'production'
const
isProd
=
process
.
env
.
NODE_ENV
===
"production"
// console.log(isProd)
// console.log(isProd)
if
(
!
isProd
)
{
if
(
!
isProd
)
{
Vue
.
config
.
devtools
=
true
Vue
.
config
.
devtools
=
true
...
@@ -20,6 +21,7 @@ if (!isProd) {
...
@@ -20,6 +21,7 @@ if (!isProd) {
export
default
new
Vuex
.
Store
({
export
default
new
Vuex
.
Store
({
modules
:
{
modules
:
{
d2admin
,
d2admin
,
goodsInfoData
goodsInfoData
,
FinancialRules
}
}
})
})
src/store/modules/FinancialRules/index.js
View file @
23211f0
export
default
{
export
default
{
namespaced
:
true
,
namespaced
:
true
,
state
:
{
state
:
{
// 列表搜索框状态
// // 列表搜索框状态
active
:
true
// active: true
goodsSource
:
[],
// 财务商品来源
goodsSourceReconciliation
:
[]
// 对账
},
},
mutations
:
{
mutations
:
{
/**
/**
* @description 切换状态
* @description 合计商品来源
* @param {Object} state state
* @param {Object} goodsSource 商品来源
* @param {Boolean} tabIndex tab索引
*/
*/
toggle
(
state
)
{
setGoodsSource
(
state
,
{
goodsSource
,
tabIndex
})
{
console
.
log
(
"toggle"
)
// console.log("setGoodsSource", goodsSource, tabIndex, state)
state
.
active
=
!
state
.
active
if
(
goodsSource
)
{
state
.
goodsSource
[
tabIndex
]
=
goodsSource
state
.
goodsSource
=
[...
state
.
goodsSource
]
}
},
},
/**
/**
* @description
设置搜索框状态
* @description
删除商品来源
* @param {Object}
state state
* @param {Object}
goodsSource 商品来源
* @param {Boolean}
active active
* @param {Boolean}
tabIndex tab索引
*/
*/
set
(
state
,
active
)
{
delGoodsSource
(
state
,
{
goodsSource
,
tabIndex
})
{
state
.
active
=
active
state
.
goodsSource
=
state
.
goodsSource
.
splice
(
1
,
tabIndex
)
},
/**
* @description 合计对账商品来源
* @param {Object} goodsSource 商品来源
* @param {Boolean} tabIndex tab索引
*/
setGoodsSourceReconciliation
(
state
,
{
goodsSource
,
tabIndex
})
{
// console.log("setGoodsSource", goodsSource, tabIndex, state)
if
(
goodsSource
)
{
state
.
goodsSourceReconciliation
[
tabIndex
]
=
goodsSource
state
.
goodsSourceReconciliation
=
[...
state
.
goodsSource
]
}
},
/**
* @description 删除对账商品来源
* @param {Object} goodsSource 商品来源
* @param {Boolean} tabIndex tab索引
*/
delGoodsSourceReconciliation
(
state
,
{
goodsSource
,
tabIndex
})
{
state
.
goodsSourceReconciliation
=
state
.
goodsSourceReconciliation
.
splice
(
1
,
tabIndex
)
}
}
},
},
actions
:
{
actions
:
{},
// get4sService({ state }, { scene, merchantId } = {}) {
getters
:
{
// console.log("get4sService")
// 财务商品来源去重
// // const params = {
goodsSourceSet
(
state
)
{
// // scene,
return
[...
new
Set
(
state
.
goodsSource
)]
// // merchantId
},
// // }
// 对账商品来源去重
// // console.log("params", params)
goodsSourceReconciliationSet
(
state
)
{
// // console.log(scenemerchantrefQueryServiceRefByShop)
return
[...
new
Set
(
state
.
goodsSourceReconciliation
)]
// // scenemerchantrefQueryServiceRefByShop(params).then((res) => {
// // console.log(res)
// // })
// },
reset
({
state
},
{
scene
,
merchantId
})
{
console
.
log
(
"reset"
)
console
.
log
(
"scene"
,
scene
)
state
.
active
=
true
}
}
}
}
}
}
src/views/goods/productManage/components/specifications.vue
View file @
23211f0
...
@@ -11,7 +11,8 @@
...
@@ -11,7 +11,8 @@
</div>
</div>
<div
style=
"margin-left: 120px;"
>
<div
style=
"margin-left: 120px;"
>
<div
class=
"add-btns"
>
<div
class=
"add-btns"
>
<el-button
icon=
"el-icon-plus"
v-if=
"goodsInfoData.specificationType == '2'"
@
click=
"handleSpecsEdit(1)"
>
新增规格
</el-button>
<el-button
icon=
"el-icon-plus"
v-if=
"goodsInfoData.specificationType == '2'"
@
click=
"handleSpecsEdit(1)"
>
新增规格
</el-button>
<el-button
icon=
"el-icon-plus"
v-if=
"goodsInfoData.specificationType == '1'"
@
click=
"addShop"
>
新增商品
</el-button>
<el-button
icon=
"el-icon-plus"
v-if=
"goodsInfoData.specificationType == '1'"
@
click=
"addShop"
>
新增商品
</el-button>
<div
class=
"assi_type"
>
<div
class=
"assi_type"
>
<span>
规格:
</span>
<span>
规格:
</span>
...
@@ -22,12 +23,14 @@
...
@@ -22,12 +23,14 @@
</div>
</div>
</div>
</div>
<div
class=
"speci-box"
id=
"specificationDetailList"
>
<div
class=
"speci-box"
id=
"specificationDetailList"
>
<singleSpecificationForm
ref=
"singleSpecificationFormRef"
v-show=
"goodsInfoData.specificationType == '1'"
:productServiceItemList=
"productServiceItemList"
></singleSpecificationForm>
<singleSpecificationForm
ref=
"singleSpecificationFormRef"
v-show=
"goodsInfoData.specificationType == '1'"
<multipleSpecificationForm
ref=
"multipleSpecificationFormRef"
v-show=
"goodsInfoData.specificationType == '2'"
:productServiceItemList=
"productServiceItemList"
></multipleSpecificationForm>
:product-service-item-list=
"productServiceItemList"
></singleSpecificationForm>
<multipleSpecificationForm
ref=
"multipleSpecificationFormRef"
v-show=
"goodsInfoData.specificationType == '2'"
:product-service-item-list=
"productServiceItemList"
></multipleSpecificationForm>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -36,7 +39,7 @@ import singleSpecificationForm from './singleSpecificationForm.vue'
...
@@ -36,7 +39,7 @@ import singleSpecificationForm from './singleSpecificationForm.vue'
import
{
mapGetters
,
mapMutations
,
mapActions
}
from
'vuex'
import
{
mapGetters
,
mapMutations
,
mapActions
}
from
'vuex'
import
{
BaseData
}
from
'@/common/constants.js'
import
{
BaseData
}
from
'@/common/constants.js'
export
default
{
export
default
{
name
:
'
s
pecifications'
,
name
:
'
S
pecifications'
,
components
:
{
components
:
{
singleSpecificationForm
,
singleSpecificationForm
,
multipleSpecificationForm
multipleSpecificationForm
...
@@ -49,7 +52,7 @@ export default {
...
@@ -49,7 +52,7 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
...
mapGetters
(
'goodsInfoData'
,
{
goodsInfoData
:
'getGoodsInfoData'
})
...
mapGetters
(
'goodsInfoData'
,
{
goodsInfoData
:
'getGoodsInfoData'
})
},
},
mounted
()
{
mounted
()
{
if
(
this
.
goodsInfoData
.
goodsSpecificationNameList
?.
length
>
1
)
{
if
(
this
.
goodsInfoData
.
goodsSpecificationNameList
?.
length
>
1
)
{
...
@@ -68,28 +71,29 @@ export default {
...
@@ -68,28 +71,29 @@ export default {
...
mapMutations
(
'goodsInfoData'
,
[
'setUpdateGoodsInfo'
]),
...
mapMutations
(
'goodsInfoData'
,
[
'setUpdateGoodsInfo'
]),
// 新增规格
// 新增规格
handleSpecsEdit
(
num
)
{
handleSpecsEdit
(
num
)
{
this
.
$refs
[
'multipleSpecificationFormRef'
]
.
handleSpecsEdit
(
num
)
this
.
$refs
.
multipleSpecificationFormRef
.
handleSpecsEdit
(
num
)
},
},
// 新增商品
// 新增商品
addShop
()
{
addShop
()
{
this
.
$refs
[
'singleSpecificationFormRef'
]
.
addShop
()
this
.
$refs
.
singleSpecificationFormRef
.
addShop
()
},
},
// 切换规格将数据清空
// 切换规格将数据清空
changeRadio
(
value
)
{
changeRadio
(
value
)
{
if
(
value
==
1
)
{
// 单规格
if
(
value
==
1
)
{
// 单规格
this
.
setUpdateGoodsInfo
({
specificationSingleDetailList
:
[],
goodsSpecificationSingleList
:
[]
})
this
.
setUpdateGoodsInfo
({
specificationSingleDetailList
:
[],
goodsSpecificationSingleList
:
[]
})
}
else
{
// 多规格
}
else
{
// 多规格
this
.
setUpdateGoodsInfo
({
specificationDetailList
:
[]
})
this
.
setUpdateGoodsInfo
({
specificationDetailList
:
[]
})
}
}
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.specifications-form
{
.specifications-form
{
margin-top
:
20px
;
margin-top
:
20px
;
background
:
#ffffff
;
background
:
#ffffff
;
.title{
.title
{
height
:
50px
;
height
:
50px
;
line-height
:
50px
;
line-height
:
50px
;
padding
:
0
20px
;
padding
:
0
20px
;
...
@@ -98,19 +102,24 @@ export default {
...
@@ -98,19 +102,24 @@ export default {
font-weight
:
600
;
font-weight
:
600
;
color
:
#333333
;
color
:
#333333
;
}
}
.content-box
{
.content-box
{
padding
:
20px
20px
40px
20px
;
padding
:
20px
20px
40px
20px
;
}
}
.add-btns
{
.add-btns
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
font-size
:
14px
;
font-size
:
14px
;
.el-button{
.el-button
{
width
:
140px
;
width
:
140px
;
}
}
}
}
.speci-box
{
.speci-box
{
width
:
100%
;
width
:
100%
;
.title-tip
{
.title-tip
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
...
@@ -121,14 +130,17 @@ export default {
...
@@ -121,14 +130,17 @@ export default {
background
:
#F2F4F7
;
background
:
#F2F4F7
;
}
}
}
}
.sync_type_class
{
.sync_type_class
{
font-size
:
14px
;
font-size
:
14px
;
padding
:
20px
0
;
padding
:
20px
0
;
.label{
.label
{
display
:
inline-block
;
display
:
inline-block
;
text-align
:
right
;
text-align
:
right
;
width
:
120px
;
width
:
120px
;
.color-red{
.color-red
{
color
:
#eb4e4e
;
color
:
#eb4e4e
;
font-size
:
14px
;
font-size
:
14px
;
margin-right
:
4px
;
margin-right
:
4px
;
...
@@ -136,5 +148,4 @@ export default {
...
@@ -136,5 +148,4 @@ export default {
}
}
}
}
}
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
}
</
style
>
src/views/systemConfig/merchant/financialRules/components/classificationCpt.vue
View file @
23211f0
...
@@ -10,7 +10,21 @@
...
@@ -10,7 +10,21 @@
<p
class=
"edit-sub-title"
>
<p
class=
"edit-sub-title"
>
分账品类
分账品类
</p>
</p>
<div
style=
"display: flex"
v-if=
"tabindex"
>
<el-form-item
v-if=
"tabindex"
label=
"商品来源"
prop=
"goodsSource"
required
:rules=
"[
{
required: true,
message: '请选择商品来源',
trigger: ['change', 'blur']
}
]">
<el-radio-group
v-model=
"classificationObj.goodsSource"
>
<el-radio
v-for=
"(goodsItem, goodsIndex) in goodsSourceList"
:disabled=
"goodsSourceSet.includes(goodsItem.confId) && goodsItem.confId != 1 && classificationObj.goodsSource != goodsItem.confId"
:key=
"goodsIndex"
:label=
"goodsItem.confId"
>
{{
goodsItem
.
confValue
}}
</el-radio>
</el-radio-group>
</el-form-item>
<div
style=
"display: flex"
v-if=
"tabindex && ![2, 3].includes(classificationObj.goodsSource)"
>
<el-form-item
label=
"分账品类"
prop=
"categoryType"
required
:rules=
"[
<el-form-item
label=
"分账品类"
prop=
"categoryType"
required
:rules=
"[
{
{
required: true,
required: true,
...
@@ -390,7 +404,7 @@
...
@@ -390,7 +404,7 @@
<
script
>
<
script
>
// 1按毛利比例;2按收入比例;3按固定金额
// 1按毛利比例;2按收入比例;3按固定金额
// 1按收入比例;2按毛利比例;3按固定金额;4按(产值-流量成本)比例;5按(产值-流量成本-其他费用不包含产品成本))比例;6按(产值-流量成本-其他费用包含产品成本)比例);其他费用:1按收入比例
// 1按收入比例;2按毛利比例;3按固定金额;4按(产值-流量成本)比例;5按(产值-流量成本-其他费用不包含产品成本))比例;6按(产值-流量成本-其他费用包含产品成本)比例);其他费用:1按收入比例
import
{
map
Actions
,
mapState
}
from
"vuex"
import
{
map
Mutations
,
mapGetters
}
from
"vuex"
import
tableAccount
from
"./tableAccount"
import
tableAccount
from
"./tableAccount"
import
{
limitPrice
}
from
"@/common/format"
import
{
limitPrice
}
from
"@/common/format"
import
{
deepClone
}
from
"@/common/util"
import
{
deepClone
}
from
"@/common/util"
...
@@ -398,7 +412,8 @@ import { divisionRuleTestGet } from "@api/merchant"
...
@@ -398,7 +412,8 @@ import { divisionRuleTestGet } from "@api/merchant"
import
{
getAllGoodsList
}
from
'@api/grounding'
import
{
getAllGoodsList
}
from
'@api/grounding'
import
{
import
{
defaultSelectOptions
,
defaultSelectOptions
,
severSelectOptions
severSelectOptions
,
goodsSourceList
}
from
"@/common/constant/merchant"
}
from
"@/common/constant/merchant"
import
tipsDialog
from
"./tipsDialog"
import
tipsDialog
from
"./tipsDialog"
import
financialCalculationDialog
from
"./financialCalculationDialog.vue"
import
financialCalculationDialog
from
"./financialCalculationDialog.vue"
...
@@ -513,7 +528,8 @@ export default {
...
@@ -513,7 +528,8 @@ export default {
categoryType
:
''
,
// 分类类别
categoryType
:
''
,
// 分类类别
upgradeGoods
:
[],
// 具体商品
upgradeGoods
:
[],
// 具体商品
virtualAccountCostFlag
:
'Y'
,
virtualAccountCostFlag
:
'Y'
,
recoveryCostFlag
:
'Y'
recoveryCostFlag
:
'Y'
,
goodsSource
:
1
// expenseCategoryRules: [
// expenseCategoryRules: [
// {
// {
// expenseCategoryCalculateType: "string", // 计算方式
// expenseCategoryCalculateType: "string", // 计算方式
...
@@ -527,6 +543,7 @@ export default {
...
@@ -527,6 +543,7 @@ export default {
},
},
defaultSelectOptions
:
Object
.
freeze
(
defaultSelectOptions
),
defaultSelectOptions
:
Object
.
freeze
(
defaultSelectOptions
),
severSelectOptions
:
Object
.
freeze
(
severSelectOptions
),
severSelectOptions
:
Object
.
freeze
(
severSelectOptions
),
goodsSourceList
:
Object
.
freeze
(
goodsSourceList
),
// serviceMerchantList: [],
// serviceMerchantList: [],
rules
:
{
rules
:
{
// goodsTypes: [
// goodsTypes: [
...
@@ -541,13 +558,7 @@ export default {
...
@@ -541,13 +558,7 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
// ...mapState({
...
mapGetters
(
'FinancialRules'
,
{
goodsSourceSet
:
'goodsSourceSet'
}),
// test: (state) => {
// return state.FinancialRules.active
// // return state.FinancialRules.active
// }
// }),
// 不可选择的商品分类
// 不可选择的商品分类
disabledGoodsTypeList
()
{
disabledGoodsTypeList
()
{
// 根据区别已选的过滤出该组件自己勾选的 剩下的就是其他组件选的 要禁用
// 根据区别已选的过滤出该组件自己勾选的 剩下的就是其他组件选的 要禁用
...
@@ -675,6 +686,19 @@ export default {
...
@@ -675,6 +686,19 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
"classificationObj.goodsSource"
:
{
handler
(
newVal
,
oldVal
)
{
// this.initList()
// tabindex
// this.set
this
.
setGoodsSource
({
goodsSource
:
newVal
,
tabIndex
:
this
.
tabindex
})
},
deep
:
true
,
immediate
:
true
},
// 解决商品分类取消选择的数据锁死问题
// 解决商品分类取消选择的数据锁死问题
"classificationObj.goodsTypes"
:
{
"classificationObj.goodsTypes"
:
{
handler
(
val
,
oldVal
)
{
handler
(
val
,
oldVal
)
{
...
@@ -694,7 +718,6 @@ export default {
...
@@ -694,7 +718,6 @@ export default {
},
},
deep
:
true
deep
:
true
},
},
upgradeGoodsList
:
{
upgradeGoodsList
:
{
handler
(
val
,
oldVal
)
{
handler
(
val
,
oldVal
)
{
if
(
val
)
{
if
(
val
)
{
...
@@ -725,19 +748,6 @@ export default {
...
@@ -725,19 +748,6 @@ export default {
},
},
deep
:
true
deep
:
true
},
},
// 'classificationObj.goodsCostFlag': {
// handler(val, oldVal) {
// // console.log(oldVal)
// // console.log(val, 'val')
// if (val == 'Y') {
// // this.$emit('goodsCostFlag', true)
// } else {
// // this.$emit('goodsCostFlag', false)
// }
// },
// deep: true,
// immediate: true
// },
classificationObjSelect
:
{
classificationObjSelect
:
{
handler
()
{
handler
()
{
this
.
initList
()
this
.
initList
()
...
@@ -766,6 +776,9 @@ export default {
...
@@ -766,6 +776,9 @@ export default {
},
},
methods
:
{
methods
:
{
...
mapMutations
(
'FinancialRules'
,
[
'setGoodsSource'
,
'delGoodsSource'
]),
// 获取商品数据
// 获取商品数据
remoteMethod
(
query
)
{
remoteMethod
(
query
)
{
this
.
goodsNameKeyword
=
query
this
.
goodsNameKeyword
=
query
...
@@ -822,8 +835,7 @@ export default {
...
@@ -822,8 +835,7 @@ export default {
const
res
=
new
Map
()
const
res
=
new
Map
()
return
arr
.
filter
((
a
)
=>
!
res
.
has
(
a
.
upgradeGoodsId
)
&&
res
.
set
(
a
.
upgradeGoodsId
,
1
))
return
arr
.
filter
((
a
)
=>
!
res
.
has
(
a
.
upgradeGoodsId
)
&&
res
.
set
(
a
.
upgradeGoodsId
,
1
))
},
},
...
mapActions
(
"FinancialRules"
,
[
"reset"
]),
// ...mapActions("FinancialRules", ["reset"]),
// ...mapMutations('FinancialRules', ['toggle', 'set']),
resetGoodsTypeGroupDivisionId
()
{
resetGoodsTypeGroupDivisionId
()
{
// goodsTypeGroupDivisionId() {
// goodsTypeGroupDivisionId() {
console
.
log
(
console
.
log
(
...
@@ -968,7 +980,8 @@ export default {
...
@@ -968,7 +980,8 @@ export default {
"groupType"
,
"groupType"
,
"goodsTypes"
,
"goodsTypes"
,
"categoryType"
,
"categoryType"
,
"upgradeGoods"
"upgradeGoods"
,
"goodsSource"
]
]
keyNameList
.
forEach
((
item
)
=>
{
keyNameList
.
forEach
((
item
)
=>
{
this
.
goodsTypeGroupRules
[
item
]
&&
this
.
goodsTypeGroupRules
[
item
]
&&
...
@@ -1067,17 +1080,21 @@ export default {
...
@@ -1067,17 +1080,21 @@ export default {
val
.
categoryType
=
2
// 按具体商品
val
.
categoryType
=
2
// 按具体商品
return
val
return
val
})
})
return
{
// categoryType: obj.categoryType,
// goodsTypeGroupRelations: obj.categoryType == 1 ? goodsTypes : upgradeGoods,
const
returnObj
=
{
expenseCategoryRules
,
expenseCategoryRules
,
goodsTypeGroupRelations
:
obj
.
categoryType
==
1
?
goodsTypes
:
upgradeGoods
,
categoryType
:
obj
.
categoryType
,
shop4sDeductChargeFlag
:
obj
.
shop4sDeductChargeFlag
,
shop4sDeductChargeFlag
:
obj
.
shop4sDeductChargeFlag
,
partnerDeductChargeFlag
:
obj
.
partnerDeductChargeFlag
,
partnerDeductChargeFlag
:
obj
.
partnerDeductChargeFlag
,
virtualAccountCostFlag
:
obj
.
virtualAccountCostFlag
,
virtualAccountCostFlag
:
obj
.
virtualAccountCostFlag
,
recoveryCostFlag
:
obj
.
recoveryCostFlag
,
recoveryCostFlag
:
obj
.
recoveryCostFlag
,
goodsCostFlag
:
obj
.
goodsCostFlag
,
goodsCostFlag
:
obj
.
goodsCostFlag
,
goodsSource
:
obj
.
goodsSource
,
groupType
groupType
}
}
// 根据商品来源去除无用字段
return
obj
.
goodsSource
!=
1
?
returnObj
:
{
...
returnObj
,
categoryType
:
obj
.
categoryType
,
goodsTypeGroupRelations
:
obj
.
categoryType
==
1
?
goodsTypes
:
upgradeGoods
}
},
},
async
handleConfirm
()
{
async
handleConfirm
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
@@ -1097,6 +1114,9 @@ export default {
...
@@ -1097,6 +1114,9 @@ export default {
})
})
})
})
}
}
},
beforeDestroy
()
{
this
.
delGoodsSource
({
tabIndex
:
this
.
tabindex
})
}
}
}
}
</
script
>
</
script
>
...
...
src/views/systemConfig/merchant/financialRules/index.vue
View file @
23211f0
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
mapActions
,
map
State
,
mapMutations
}
from
'vuex'
import
{
mapActions
,
map
Getters
,
mapMutations
}
from
'vuex'
import
{
sceneList
,
userType
,
attrToVal
as
attrToValOptions
}
from
'@/common/constants'
import
{
sceneList
,
userType
,
attrToVal
as
attrToValOptions
}
from
'@/common/constants'
import
{
deepClone
}
from
'@/common/util'
import
{
deepClone
}
from
'@/common/util'
import
{
scenemerchantrefQueryServiceRefByShop
,
merchantSettleDistributeRuleLastRule
,
merchantSettleDistributeRule
,
getMerchantLevelApi
}
from
'@api/merchant'
import
{
scenemerchantrefQueryServiceRefByShop
,
merchantSettleDistributeRuleLastRule
,
merchantSettleDistributeRule
,
getMerchantLevelApi
}
from
'@api/merchant'
...
@@ -201,6 +201,7 @@ export default {
...
@@ -201,6 +201,7 @@ export default {
// productType: (state) => state.d2admin.base.productType
// productType: (state) => state.d2admin.base.productType
// //
// //
// }),
// }),
...
mapGetters
(
'goodsSourceSet'
,
{
goodsSourceSet
:
'goodsSourceSet'
}),
routerInfo
()
{
routerInfo
()
{
return
this
.
$route
.
query
.
params
?
JSON
.
parse
(
this
.
$route
.
query
.
params
)
:
''
return
this
.
$route
.
query
.
params
?
JSON
.
parse
(
this
.
$route
.
query
.
params
)
:
''
},
},
...
@@ -210,9 +211,9 @@ export default {
...
@@ -210,9 +211,9 @@ export default {
const
length1
=
this
.
goodsTypeGroupRelations
.
length
const
length1
=
this
.
goodsTypeGroupRelations
.
length
const
length2
=
this
.
editableTabs
.
length
-
1
const
length2
=
this
.
editableTabs
.
length
-
1
const
length3
=
this
.
goodsSelectList
.
length
const
length3
=
this
.
goodsSelectList
.
length
return
(
length1
-
length3
)
>
0
&&
length1
>
length2
// 现在要考虑商品来源的影响 现在固定为有另外两个先写死
return
(
length1
-
length3
-
2
)
>
0
&&
length1
>
length2
},
},
//
financialLedgerParty
()
{
financialLedgerParty
()
{
const
{
realityPlatformMerchantId
,
realityPlatformMerchantName
,
realityShopMerchantId
,
realityShopMerchantName
}
=
this
.
financialObj
const
{
realityPlatformMerchantId
,
realityPlatformMerchantName
,
realityShopMerchantId
,
realityShopMerchantName
}
=
this
.
financialObj
return
{
return
{
...
...
src/views/systemConfig/merchant/merchantStep/components/classificationCpt.vue
View file @
23211f0
This diff is collapsed.
Click to expand it.
src/views/systemConfig/merchant/merchantStep/components/ledgerAccount.vue
View file @
23211f0
This diff is collapsed.
Click to expand it.
src/views/systemConfig/merchant/merchantStep/components/reconciliation.vue
View file @
23211f0
<!-- 对账 -->
<!-- 对账 -->
<
template
>
<
template
>
<div>
<div>
<!-- shopMerchantTotalFeeCalculateType,
<!-- shopMerchantTotalFeeCalculateType,
shopMerchantExpenseCategoryValue,
shopMerchantExpenseCategoryValue,
partnerMerchantTotalFeeCalculateType,
partnerMerchantTotalFeeCalculateType,
partnerMerchantExpenseCategoryValue -->
partnerMerchantExpenseCategoryValue -->
<div
class=
"header"
v-if=
"formItem.shopMerchantTotalFeeCalculateType || formItem.partnerMerchantTotalFeeCalculateType"
>
<div
class=
"header"
v-if=
"formItem.shopMerchantTotalFeeCalculateType || formItem.partnerMerchantTotalFeeCalculateType"
>
<div
class=
"shop"
v-if=
"formItem.shopMerchantTotalFeeCalculateType"
>
<div
class=
"shop"
v-if=
"formItem.shopMerchantTotalFeeCalculateType"
>
<span
class=
"label"
>
流量方总对账费用:
{{
severSelectOptionsLabel
[
formItem
.
shopMerchantTotalFeeCalculateType
]
}}
</span>
<span
class=
"label"
>
流量方总对账费用:
{{
severSelectOptionsLabel
[
formItem
.
shopMerchantTotalFeeCalculateType
]
}}
</span>
<span
class=
"value"
>
{{
formItem
.
shopMerchantExpenseCategoryValue
}}{{
<span
class=
"value"
>
{{
formItem
.
shopMerchantExpenseCategoryValue
}}{{
...
@@ -33,7 +34,11 @@
...
@@ -33,7 +34,11 @@
分账品类
分账品类
</div>
</div>
<div
class=
"cont"
>
<div
class=
"cont"
>
<div
class=
"msg"
>
<div
class=
"msg"
v-if=
"index"
>
<div
class=
"msg-title"
>
商品来源:
</div>
<div
class=
"msg-val"
>
{{
item
.
goodsSource
|
filterName
}}
</div>
</div>
<div
class=
"msg"
v-if=
"item.goodsSource == 1"
>
<div
class=
"msg-title"
>
分账品类:
</div>
<div
class=
"msg-title"
>
分账品类:
</div>
<div
class=
"msg-val"
>
<div
class=
"msg-val"
>
{{
formatGoodsTypeGroupRelations
(
item
.
groupType
,
item
.
goodsTypeGroupRelations
)
}}
{{
formatGoodsTypeGroupRelations
(
item
.
groupType
,
item
.
goodsTypeGroupRelations
)
}}
...
@@ -93,7 +98,7 @@
...
@@ -93,7 +98,7 @@
<div
class=
"detail-i"
>
{{
childItem
.
targetMerchantName
}}
</div>
<div
class=
"detail-i"
>
{{
childItem
.
targetMerchantName
}}
</div>
<div
class=
"detail-i"
>
{{
childItem
.
targetMerchantId
}}
</div>
<div
class=
"detail-i"
>
{{
childItem
.
targetMerchantId
}}
</div>
</div>
</div>
<!--
<div
class=
"detail"
>
<!--
<div
class=
"detail"
>
<div
class=
"detail-i"
>
对账费用2
</div>
<div
class=
"detail-i"
>
对账费用2
</div>
<div
class=
"detail-i"
>
按收入25%
</div>
<div
class=
"detail-i"
>
按收入25%
</div>
<div
class=
"detail-i"
>
商户名称商户名称商户名称
</div>
<div
class=
"detail-i"
>
商户名称商户名称商户名称
</div>
...
@@ -111,9 +116,7 @@
...
@@ -111,9 +116,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
import
{
severSelectOptionsLabel
,
goodsSourceList
}
from
"@/common/constant/merchant"
severSelectOptionsLabel
}
from
"@/common/constant/merchant"
export
default
{
export
default
{
name
:
"Reconciliation"
,
name
:
"Reconciliation"
,
props
:
{
props
:
{
...
@@ -128,10 +131,16 @@ export default {
...
@@ -128,10 +131,16 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
goodsSourceList
:
Object
.
freeze
(
goodsSourceList
),
activeType
:
0
,
activeType
:
0
,
severSelectOptionsLabel
severSelectOptionsLabel
}
}
},
},
filters
:
{
filterName
(
val
)
{
return
goodsSourceList
.
find
(
item
=>
item
.
confId
===
val
)?.
confValue
||
'嘀加'
}
},
created
()
{
},
created
()
{
},
mounted
()
{
},
mounted
()
{
},
methods
:
{
methods
:
{
...
@@ -177,7 +186,7 @@ export default {
...
@@ -177,7 +186,7 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.header
{
.header
{
height
:
72px
;
height
:
72px
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
padding
:
0
50px
;
padding
:
0
50px
;
...
@@ -185,7 +194,8 @@ export default {
...
@@ -185,7 +194,8 @@ export default {
align-items
:
center
;
align-items
:
center
;
margin-bottom
:
15px
;
margin-bottom
:
15px
;
font-size
:
14px
;
font-size
:
14px
;
div{
div
{
flex
:
1
;
flex
:
1
;
}
}
}
}
...
...
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