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 63fe661b
authored
Apr 29, 2026
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.8.0' of
http://192.168.3.233:8090/saas_plus/dj-car-life-sy…
…stem into SAAS+V5.8.0
2 parents
2a1b0768
af0b1667
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
92 additions
and
68 deletions
src/views/financeManage/downloadAccountDialog.vue
src/views/financeManage/downloadReconciDialog.vue
src/views/financeManage/financeList.vue
src/views/systemConfig/manageScene/index.vue
src/views/systemConfig/merchant/financialRules/components/classificationCpt.vue
src/views/systemConfig/merchant/financialRules/components/tableAccount.vue
src/views/systemConfig/merchant/financialRules/utils/normalizeRuleGoodsTypesForCategory.js
src/views/systemConfig/merchant/merchantStep/components/ledgerAccount.vue
src/views/systemConfig/merchant/merchantStep/components/reconciliation.vue
src/views/systemConfig/merchant/merchantStep/utils/groundingUpgradeList.js
src/views/systemConfig/merchant/merchantStep/utils/reconciliationRuleBranches.js
src/views/financeManage/downloadAccountDialog.vue
View file @
63fe661
...
@@ -13,16 +13,16 @@
...
@@ -13,16 +13,16 @@
:model=
"infoForm"
:model=
"infoForm"
:rules=
"formRules"
:rules=
"formRules"
label-width=
"120px"
>
label-width=
"120px"
>
<el-form-item
label=
"业务线:"
prop=
"
businessLin
e"
>
<el-form-item
label=
"业务线:"
prop=
"
sceneTyp
e"
>
<el-select
v-model=
"infoForm.
businessLin
e"
style=
"width:400px"
>
<el-select
v-model=
"infoForm.
sceneTyp
e"
style=
"width:400px"
>
<el-option
v-for=
"item in baseData.
businessLin
eList"
<el-option
v-for=
"item in baseData.
sceneTyp
eList"
:key=
"item.confId"
:key=
"item.confId"
:label=
"item.confLabel"
:label=
"item.confLabel"
:value=
"item.confId"
/>
:value=
"item.confId"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"业务场景:"
prop=
"
sceneType
"
>
<el-form-item
label=
"业务场景:"
prop=
"
baseSceneCodeList
"
>
<el-select
v-model=
"infoForm.
sceneType
"
<el-select
v-model=
"infoForm.
baseSceneCodeList
"
multiple
multiple
collapse-tags
collapse-tags
style=
"width:400px"
style=
"width:400px"
...
@@ -252,8 +252,8 @@ export default {
...
@@ -252,8 +252,8 @@ export default {
payEndDate
:
""
,
payEndDate
:
""
,
reportType
:
"1"
,
reportType
:
"1"
,
shopMerchantId
:
""
,
shopMerchantId
:
""
,
businessLin
e
:
""
,
sceneTyp
e
:
""
,
sceneType
:
[
""
],
baseSceneCodeList
:
[
""
],
reconciliationStatus
:
"all"
,
reconciliationStatus
:
"all"
,
packageMerge
:
false
,
packageMerge
:
false
,
templateId
:
""
,
templateId
:
""
,
...
@@ -269,8 +269,8 @@ export default {
...
@@ -269,8 +269,8 @@ export default {
},
},
formRules
:
{
formRules
:
{
businessLin
e
:
[{
required
:
true
,
message
:
"请选择业务线"
,
trigger
:
"change"
}],
sceneTyp
e
:
[{
required
:
true
,
message
:
"请选择业务线"
,
trigger
:
"change"
}],
sceneType
:
[{
required
:
true
,
message
:
"请选择业务场景"
,
trigger
:
"change"
}],
baseSceneCodeList
:
[{
required
:
true
,
message
:
"请选择业务场景"
,
trigger
:
"change"
}],
merchantType
:
[{
required
:
true
,
message
:
"请选择商户类型"
,
trigger
:
"change"
}],
merchantType
:
[{
required
:
true
,
message
:
"请选择商户类型"
,
trigger
:
"change"
}],
merchant
:
[
merchant
:
[
{
required
:
true
,
message
:
"请选择对账商户"
,
trigger
:
"change"
},
{
required
:
true
,
message
:
"请选择对账商户"
,
trigger
:
"change"
},
...
@@ -288,7 +288,7 @@ export default {
...
@@ -288,7 +288,7 @@ export default {
selectLoading
:
false
,
selectLoading
:
false
,
// 基本数据
// 基本数据
baseData
:
{
baseData
:
{
businessLin
eList
:
[{
sceneTyp
eList
:
[{
confId
:
"0"
,
confId
:
"0"
,
confLabel
:
"权益类"
,
confLabel
:
"权益类"
,
},
{
},
{
...
@@ -358,17 +358,17 @@ export default {
...
@@ -358,17 +358,17 @@ export default {
"scene"
:
{
"scene"
:
{
handler
(
val
)
{
handler
(
val
)
{
const
sceneStr
=
val
==
null
?
""
:
String
(
val
);
const
sceneStr
=
val
==
null
?
""
:
String
(
val
);
const
exists
=
this
.
baseData
.
businessLin
eList
.
some
(
i
=>
i
.
confId
===
sceneStr
);
const
exists
=
this
.
baseData
.
sceneTyp
eList
.
some
(
i
=>
i
.
confId
===
sceneStr
);
this
.
infoForm
.
businessLine
=
exists
?
sceneStr
:
(
this
.
baseData
.
businessLin
eList
[
0
]?.
confId
||
""
);
this
.
infoForm
.
sceneType
=
exists
?
sceneStr
:
(
this
.
baseData
.
sceneTyp
eList
[
0
]?.
confId
||
""
);
// 首次打开弹框时,确保能根据当前业务线拉取“业务场景”列表
// 首次打开弹框时,确保能根据当前业务线拉取“业务场景”列表
this
.
syncSceneTypeList
();
this
.
syncSceneTypeList
();
},
},
immediate
:
true
,
immediate
:
true
,
},
},
"infoForm.
businessLin
e"
:
{
"infoForm.
sceneTyp
e"
:
{
handler
()
{
handler
()
{
// 切换业务线时,业务场景默认回到“全部”
// 切换业务线时,业务场景默认回到“全部”
this
.
infoForm
.
sceneType
=
[
""
];
this
.
infoForm
.
baseSceneCodeList
=
[
""
];
this
.
syncSceneTypeList
();
this
.
syncSceneTypeList
();
},
},
},
},
...
@@ -396,8 +396,8 @@ export default {
...
@@ -396,8 +396,8 @@ export default {
methods
:
{
methods
:
{
...
mapActions
(
"d2admin/user"
,
[
"actionSetDownloadList"
]),
...
mapActions
(
"d2admin/user"
,
[
"actionSetDownloadList"
]),
syncSceneTypeList
()
{
syncSceneTypeList
()
{
const
sceneType
=
Number
(
this
.
infoForm
?.
businessLin
e
);
const
sceneType
=
Number
(
this
.
infoForm
?.
sceneTyp
e
);
if
(
this
.
infoForm
?.
businessLine
===
""
||
this
.
infoForm
?.
businessLine
===
null
||
this
.
infoForm
?.
businessLin
e
===
undefined
||
Number
.
isNaN
(
sceneType
))
{
if
(
this
.
infoForm
?.
sceneType
===
""
||
this
.
infoForm
?.
sceneType
===
null
||
this
.
infoForm
?.
sceneTyp
e
===
undefined
||
Number
.
isNaN
(
sceneType
))
{
this
.
sceneTypeList
=
[];
this
.
sceneTypeList
=
[];
return
;
return
;
}
}
...
@@ -421,12 +421,12 @@ export default {
...
@@ -421,12 +421,12 @@ export default {
return
;
return
;
}
}
if
(
!
value
.
length
)
{
if
(
!
value
.
length
)
{
this
.
infoForm
.
sceneType
=
[
""
];
this
.
infoForm
.
baseSceneCodeList
=
[
""
];
return
;
return
;
}
}
if
(
value
.
includes
(
""
)
&&
value
.
length
>
1
)
{
if
(
value
.
includes
(
""
)
&&
value
.
length
>
1
)
{
// 多选时,“全部”与具体值互斥;以最后一次选择为准
// 多选时,“全部”与具体值互斥;以最后一次选择为准
this
.
infoForm
.
sceneType
=
value
[
value
.
length
-
1
]
===
""
this
.
infoForm
.
baseSceneCodeList
=
value
[
value
.
length
-
1
]
===
""
?
[
""
]
?
[
""
]
:
value
.
filter
(
v
=>
v
!==
""
);
:
value
.
filter
(
v
=>
v
!==
""
);
}
}
...
@@ -652,6 +652,7 @@ export default {
...
@@ -652,6 +652,7 @@ export default {
params
.
reportType
=
infoForm
.
reportType
;
params
.
reportType
=
infoForm
.
reportType
;
}
}
params
.
sceneType
=
this
.
scene
;
params
.
sceneType
=
this
.
scene
;
params
.
baseSceneCodeList
=
infoForm
.
baseSceneCodeList
;
// 对账状态
// 对账状态
infoForm
.
reconciliationStatus
==
"all"
?
""
:
(
params
.
reconciliationStatus
=
infoForm
.
reconciliationStatus
);
infoForm
.
reconciliationStatus
==
"all"
?
""
:
(
params
.
reconciliationStatus
=
infoForm
.
reconciliationStatus
);
// infoForm.payeeType == 'all' ? '' : (params.payeeType = infoForm.payeeType)
// infoForm.payeeType == 'all' ? '' : (params.payeeType = infoForm.payeeType)
...
...
src/views/financeManage/downloadReconciDialog.vue
View file @
63fe661
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
:model=
"infoForm"
:model=
"infoForm"
:rules=
"formRules"
:rules=
"formRules"
label-width=
"120px"
>
label-width=
"120px"
>
<el-form-item
label=
"业务场景:"
prop=
"
businessLin
e"
>
<el-form-item
label=
"业务场景:"
prop=
"
sceneTyp
e"
>
<el-select
v-model=
"infoForm.
businessLin
e"
style=
"width:400px"
>
<el-select
v-model=
"infoForm.
sceneTyp
e"
style=
"width:400px"
>
<el-option
v-for=
"item in baseData.businessLineList"
<el-option
v-for=
"item in baseData.businessLineList"
:key=
"item.confId"
:key=
"item.confId"
:label=
"item.confLabel"
:label=
"item.confLabel"
...
@@ -51,8 +51,6 @@
...
@@ -51,8 +51,6 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"对账商户:"
prop=
"merchant"
>
<el-form-item
label=
"对账商户:"
prop=
"merchant"
>
<el-select
v-model=
"infoForm.merchant"
<el-select
v-model=
"infoForm.merchant"
multiple
:multiple-limit=
"multipleLimit"
filterable
filterable
style=
"width:400px"
style=
"width:400px"
@
change=
"handleChangeMerchant"
>
@
change=
"handleChangeMerchant"
>
...
@@ -231,8 +229,9 @@ export default {
...
@@ -231,8 +229,9 @@ export default {
},
},
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
infoForm
:
{
infoForm
:
{
sceneType
:
""
,
merchantType
:
"2"
,
merchantType
:
"2"
,
merchant
:
[]
,
merchant
:
""
,
payStartDate
:
""
,
payStartDate
:
""
,
payEndDate
:
""
,
payEndDate
:
""
,
reportType
:
"1"
,
reportType
:
"1"
,
...
@@ -253,7 +252,7 @@ export default {
...
@@ -253,7 +252,7 @@ export default {
},
},
formRules
:
{
formRules
:
{
businessLine
:
[{
required
:
true
,
message
:
"请选择业务线
"
,
trigger
:
"change"
}],
sceneType
:
[{
required
:
true
,
message
:
"请选择业务场景
"
,
trigger
:
"change"
}],
merchantType
:
[{
required
:
true
,
message
:
"请选择商户类型"
,
trigger
:
"change"
}],
merchantType
:
[{
required
:
true
,
message
:
"请选择商户类型"
,
trigger
:
"change"
}],
merchant
:
[
merchant
:
[
{
required
:
true
,
message
:
"请选择对账商户"
,
trigger
:
"change"
},
{
required
:
true
,
message
:
"请选择对账商户"
,
trigger
:
"change"
},
...
@@ -364,7 +363,7 @@ export default {
...
@@ -364,7 +363,7 @@ export default {
params
.
merchantTypeList
=
merchantTypeList
;
params
.
merchantTypeList
=
merchantTypeList
;
getMerchantPageSearch
(
params
).
then
((
res
)
=>
{
getMerchantPageSearch
(
params
).
then
((
res
)
=>
{
this
.
baseData
.
merchantList
=
res
.
list
;
this
.
baseData
.
merchantList
=
res
.
list
;
this
.
infoForm
.
merchant
=
[]
;
this
.
infoForm
.
merchant
=
""
;
}).
finally
(()
=>
{
}).
finally
(()
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
});
});
...
@@ -373,10 +372,14 @@ export default {
...
@@ -373,10 +372,14 @@ export default {
handleChangeMerchant
(
e
)
{
handleChangeMerchant
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
this
.
infoForm
.
shopMerchantId
=
""
;
this
.
infoForm
.
shopMerchantId
=
""
;
if
(
!
e
)
{
this
.
baseData
.
shopMerchantList
=
[];
return
;
}
const
params
=
{
const
params
=
{
currentPage
:
1
,
currentPage
:
1
,
pageSize
:
9999
,
pageSize
:
9999
,
partnerMerchantId
:
e
[
0
]
,
partnerMerchantId
:
e
,
scene
:
this
.
scene
,
scene
:
this
.
scene
,
};
};
getShopList
(
params
).
then
((
res
)
=>
{
getShopList
(
params
).
then
((
res
)
=>
{
...
@@ -406,7 +409,7 @@ export default {
...
@@ -406,7 +409,7 @@ export default {
judgeTmpl
()
{
judgeTmpl
()
{
this
.
isTmpl
=
this
.
infoForm
.
merchantType
==
"2"
;
this
.
isTmpl
=
this
.
infoForm
.
merchantType
==
"2"
;
this
.
merchantTypeStr
=
this
.
typeObj
[
this
.
infoForm
.
merchantType
];
this
.
merchantTypeStr
=
this
.
typeObj
[
this
.
infoForm
.
merchantType
];
this
.
infoForm
.
merchant
=
[]
;
this
.
infoForm
.
merchant
=
""
;
this
.
resetTmplData
();
this
.
resetTmplData
();
},
},
...
@@ -547,15 +550,15 @@ export default {
...
@@ -547,15 +550,15 @@ export default {
// console.log(infoForm)
// console.log(infoForm)
let
params
=
{};
let
params
=
{};
let
merchantList
=
[];
let
merchantList
=
[];
let
obj
;
const
currentMerchant
=
this
.
baseData
.
merchantList
.
find
(
infoForm
.
merchant
.
forEach
((
item
)
=>
{
mer
=>
mer
.
merchantId
===
infoForm
.
merchant
,
obj
=
{}
;
)
;
obj
.
merchantId
=
item
;
if
(
currentMerchant
)
{
obj
.
merchantName
=
this
.
baseData
.
merchantList
.
find
(
merchantList
.
push
({
mer
=>
mer
.
merchantId
===
item
,
mer
chantId
:
infoForm
.
merchant
,
).
merchantName
;
merchantName
:
currentMerchant
.
merchantName
,
merchantList
.
push
(
obj
);
}
);
}
);
}
params
.
payStartDate
=
infoForm
.
payStartDate
+
" 00:00:00"
;
params
.
payStartDate
=
infoForm
.
payStartDate
+
" 00:00:00"
;
params
.
payEndDate
=
infoForm
.
payEndDate
+
" 23:59:59"
;
params
.
payEndDate
=
infoForm
.
payEndDate
+
" 23:59:59"
;
merchantList
.
forEach
((
item
,
index
)
=>
{
merchantList
.
forEach
((
item
,
index
)
=>
{
...
@@ -568,7 +571,7 @@ export default {
...
@@ -568,7 +571,7 @@ export default {
if
(
infoForm
.
merchantType
==
"7"
)
{
if
(
infoForm
.
merchantType
==
"7"
)
{
params
.
reportType
=
infoForm
.
reportType
;
params
.
reportType
=
infoForm
.
reportType
;
}
}
params
.
sceneType
=
this
.
scen
e
;
params
.
sceneType
=
infoForm
.
sceneTyp
e
;
// 对账状态
// 对账状态
infoForm
.
reconciliationStatus
==
"all"
?
""
:
(
params
.
reconciliationStatus
=
infoForm
.
reconciliationStatus
);
infoForm
.
reconciliationStatus
==
"all"
?
""
:
(
params
.
reconciliationStatus
=
infoForm
.
reconciliationStatus
);
// infoForm.payeeType == 'all' ? '' : (params.payeeType = infoForm.payeeType)
// infoForm.payeeType == 'all' ? '' : (params.payeeType = infoForm.payeeType)
...
@@ -588,7 +591,7 @@ export default {
...
@@ -588,7 +591,7 @@ export default {
handleSystemBill
()
{
handleSystemBill
()
{
this
.
$refs
.
accountForm
.
validate
((
valid
)
=>
{
this
.
$refs
.
accountForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
infoForm
.
merchant
.
length
==
1
)
{
if
(
this
.
infoForm
.
merchant
)
{
let
params
=
this
.
getParams
();
let
params
=
this
.
getParams
();
params
.
orderCurrentPage
=
1
;
params
.
orderCurrentPage
=
1
;
params
.
orderPageSize
=
10
;
params
.
orderPageSize
=
10
;
...
@@ -598,7 +601,7 @@ export default {
...
@@ -598,7 +601,7 @@ export default {
this
.
$emit
(
"handleBill"
,
{
billTmplInfo
:
res
});
this
.
$emit
(
"handleBill"
,
{
billTmplInfo
:
res
});
});
});
}
else
{
}
else
{
this
.
$message
.
warning
(
"
仅支持单商户进行系统对账
"
);
this
.
$message
.
warning
(
"
请选择对账商户
"
);
}
}
}
}
});
});
...
...
src/views/financeManage/financeList.vue
View file @
63fe661
...
@@ -981,7 +981,7 @@ export default {
...
@@ -981,7 +981,7 @@ export default {
// this.showFormData[this.findFormIdx('yqMerchantId')].isHide = true
// this.showFormData[this.findFormIdx('yqMerchantId')].isHide = true
// }
// }
// this.showFormData[this.findFormIdx('merchantId')].isHide = true
// this.showFormData[this.findFormIdx('merchantId')].isHide = true
this
.
showFormData
[
this
.
findFormIdx
(
"businessModel"
)].
isHide
=
true
;
//
this.showFormData[this.findFormIdx("businessModel")].isHide = true;
this
.
showFormData
[
this
.
findFormIdx
(
"yqMerchantId"
)].
isHide
=
false
;
this
.
showFormData
[
this
.
findFormIdx
(
"yqMerchantId"
)].
isHide
=
false
;
this
.
showFormData
[
this
.
findFormIdx
(
"merchantId"
)].
isHide
=
false
;
this
.
showFormData
[
this
.
findFormIdx
(
"merchantId"
)].
isHide
=
false
;
this
.
sellerName_visible
=
false
;
this
.
sellerName_visible
=
false
;
...
...
src/views/systemConfig/manageScene/index.vue
View file @
63fe661
...
@@ -27,10 +27,10 @@
...
@@ -27,10 +27,10 @@
:before-search-fn=
"beforeSearchFn"
>
:before-search-fn=
"beforeSearchFn"
>
<
template
#
scene-tag=
"scope"
>
<
template
#
scene-tag=
"scope"
>
<template
v-if=
"scope.scope.tagNames && scope.scope.tagNames.length"
>
<template
v-if=
"scope.scope.tagNames && scope.scope.tagNames.length"
>
<span
v-for=
"
item
in scope.scope.tagNames"
<span
v-for=
"
(item, index)
in scope.scope.tagNames"
:key=
"i
tem.tagId
"
:key=
"i
ndex
"
class=
"scene-tag"
>
class=
"scene-tag"
>
{{
getSceneTagLabel
(
scope
.
scope
)
}}
{{
item
}}
</span>
</span>
</
template
>
</
template
>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
...
@@ -79,15 +79,15 @@ export default {
...
@@ -79,15 +79,15 @@ export default {
keyFn
:
this
.
keyDowmGetList
,
keyFn
:
this
.
keyDowmGetList
,
},
{
},
{
label
:
"标签"
,
label
:
"标签"
,
name
:
"
merchantType
"
,
name
:
"
tagIds
"
,
type
:
"select"
,
type
:
"select"
,
multiple
:
true
,
multiple
:
true
,
collapseTags
:
true
,
collapseTags
:
true
,
isClear
:
true
,
isClear
:
true
,
optionList
:
[],
optionList
:
[],
optionId
:
"
confI
d"
,
optionId
:
"
i
d"
,
optionLabel
:
"
confLabel
"
,
optionLabel
:
"
name
"
,
optionsName
:
"
merchantStoreService
List"
,
optionsName
:
"
sceneTag
List"
,
}],
}],
getListApi
:
getList
,
getListApi
:
getList
,
// 表格参数
// 表格参数
...
@@ -143,22 +143,17 @@ export default {
...
@@ -143,22 +143,17 @@ export default {
close
:
"d2admin/page/close"
,
close
:
"d2admin/page/close"
,
}),
}),
async
loadSceneTagOptions
()
{
async
loadSceneTagOptions
()
{
const
idx
=
this
.
showFormData
.
findIndex
(
i
=>
i
.
name
===
"merchantType"
);
if
(
idx
<
0
)
{
return
;
}
try
{
try
{
const
res
=
await
getSceneTags
({});
const
res
=
await
getSceneTags
({});
const
list
=
res
?.
data
?.
list
||
res
?.
data
||
res
?.
result
||
[];
const
list
=
res
||
[];
const
optionList
=
(
Array
.
isArray
(
list
)
?
list
:
[])
const
optionList
=
(
Array
.
isArray
(
list
)
?
list
:
[])
.
map
(
it
=>
({
.
map
(
it
=>
({
confId
:
it
?.
confId
??
it
?.
tagId
??
it
?.
id
,
id
:
it
?.
id
,
confLabel
:
it
?.
confLabel
??
it
?.
tagName
??
it
?.
name
??
it
?.
label
,
name
:
it
?.
name
,
}))
}))
.
filter
(
it
=>
it
.
confId
!==
undefined
&&
it
.
confLabel
);
.
filter
(
it
=>
it
.
id
!==
undefined
&&
it
.
name
);
this
.
$set
(
this
.
showFormData
[
idx
],
"optionList"
,
optionList
)
;
this
.
showFormData
[
1
].
optionList
=
optionList
;
}
catch
(
e
)
{
}
catch
(
e
)
{
this
.
$set
(
this
.
showFormData
[
idx
],
"optionList"
,
[]);
}
}
},
},
beforeSearchFn
()
{
beforeSearchFn
()
{
...
@@ -219,8 +214,7 @@ export default {
...
@@ -219,8 +214,7 @@ export default {
}
}
},
},
getSceneTagLabel
(
row
)
{
getSceneTagLabel
(
row
)
{
const
idx
=
Number
(
row
?.
procurementType
)
-
1
;
return
row
||
"-"
;
return
this
.
procureModeList
?.[
idx
]?.
confName
||
"-"
;
},
},
},
},
};
};
...
@@ -266,6 +260,7 @@ export default {
...
@@ -266,6 +260,7 @@ export default {
font-size
:
14px
;
font-size
:
14px
;
padding
:
1px
6px
;
padding
:
1px
6px
;
display
:
inline-block
;
display
:
inline-block
;
margin-right
:
1px
;
}
}
.taskStatus
{
.taskStatus
{
...
...
src/views/systemConfig/merchant/financialRules/components/classificationCpt.vue
View file @
63fe661
...
@@ -1010,7 +1010,8 @@
...
@@ -1010,7 +1010,8 @@
"
"
:owning-merchant-distribution-rules=
"goodsTypeGroupRules.owningMerchantDistributionRules"
:owning-merchant-distribution-rules=
"goodsTypeGroupRules.owningMerchantDistributionRules"
:table-select-options=
"tableSelectOptions"
:table-select-options=
"tableSelectOptions"
:classification-obj-select=
"tableClassificationObjSelect"
/>
:classification-obj-select=
"tableClassificationObjSelect"
@
distribution-rules-change=
"onDistributionRulesChange"
/>
<TipsDialog
v-if=
"tipsDialogVisible"
<TipsDialog
v-if=
"tipsDialogVisible"
:account-valid-merchants=
"accountValidMerchants"
:account-valid-merchants=
"accountValidMerchants"
:visible
.
sync=
"tipsDialogVisible"
/>
:visible
.
sync=
"tipsDialogVisible"
/>
...
@@ -1624,6 +1625,13 @@ export default {
...
@@ -1624,6 +1625,13 @@ export default {
},
},
methods
:
{
methods
:
{
/** 费用归属/实际分账仅存在于 TableAccount 本地 form,不落 classificationObj;需单独上报以置父页 classificationUserTouched */
onDistributionRulesChange
()
{
this
.
emitClassificationChange
(
CLASSIFICATION_EMIT
.
CLASSIFICATION_TOUCHED
,
this
.
paneIndex
,
);
},
emitClassificationChange
(
type
,
payload
)
{
emitClassificationChange
(
type
,
payload
)
{
this
.
$emit
(
"classification-change"
,
{
type
,
payload
});
this
.
$emit
(
"classification-change"
,
{
type
,
payload
});
},
},
...
...
src/views/systemConfig/merchant/financialRules/components/tableAccount.vue
View file @
63fe661
...
@@ -328,12 +328,14 @@ export default {
...
@@ -328,12 +328,14 @@ export default {
// this.handleConfirm()
// this.handleConfirm()
// console.log('validField', validField)
// console.log('validField', validField)
this
.
$refs
.
divisionRuleRef
.
clearValidate
(
validField
)
this
.
$refs
.
divisionRuleRef
.
clearValidate
(
validField
)
this
.
$emit
(
'distribution-rules-change'
)
},
},
handleClearValid2
(
e
,
validField
)
{
handleClearValid2
(
e
,
validField
)
{
this
.
$forceUpdate
()
this
.
$forceUpdate
()
// this.handleConfirm()
// this.handleConfirm()
// console.log('validField', validField)
// console.log('validField', validField)
this
.
$refs
.
divisionRuleRef2
.
clearValidate
(
validField
)
this
.
$refs
.
divisionRuleRef2
.
clearValidate
(
validField
)
this
.
$emit
(
'distribution-rules-change'
)
},
},
/** validate 通过后兜底:每行须能解析出 merchantId(与快路径 distributionRulesLookComplete 一致) */
/** validate 通过后兜底:每行须能解析出 merchantId(与快路径 distributionRulesLookComplete 一致) */
distributionRowsHaveMerchantId
(
rows
)
{
distributionRowsHaveMerchantId
(
rows
)
{
...
...
src/views/systemConfig/merchant/financialRules/utils/normalizeRuleGoodsTypesForCategory.js
View file @
63fe661
import
{
deepClone
}
from
"@/common/util"
import
{
deepClone
}
from
"@/common/util"
import
{
import
{
filterUpgradeGoodsByMerchantCode
,
filterUpgradeGoodsByMerchantCode
,
trimCommodityCode
,
trimMerchantGoodsCode
trimMerchantGoodsCode
}
from
"../../merchantStep/utils/groundingUpgradeList"
}
from
"../../merchantStep/utils/groundingUpgradeList"
...
@@ -35,7 +36,7 @@ export function normalizeRuleGoodsTypesForCategory(item, upgradeArr, packageArr)
...
@@ -35,7 +36,7 @@ export function normalizeRuleGoodsTypesForCategory(item, upgradeArr, packageArr)
upgradeArr
.
push
({
upgradeArr
.
push
({
upgradeGoodsId
:
val
.
upgradeGoodsId
,
upgradeGoodsId
:
val
.
upgradeGoodsId
,
upgradeGoodsName
:
val
.
upgradeGoodsName
,
upgradeGoodsName
:
val
.
upgradeGoodsName
,
commodityCode
:
code
,
commodityCode
:
trimCommodityCode
(
val
)
,
merchantGoodsCode
:
code
merchantGoodsCode
:
code
})
})
})
})
...
...
src/views/systemConfig/merchant/merchantStep/components/ledgerAccount.vue
View file @
63fe661
...
@@ -553,7 +553,7 @@ export default {
...
@@ -553,7 +553,7 @@ export default {
if
(
arr
[
0
]?.
categoryType
==
2
)
{
if
(
arr
[
0
]?.
categoryType
==
2
)
{
const
length
=
arr
.
length
-
1
const
length
=
arr
.
length
-
1
text
=
arr
.
reduce
((
str
,
item
,
index
)
=>
{
text
=
arr
.
reduce
((
str
,
item
,
index
)
=>
{
str
+=
`
${
item
.
upgradeGoodsName
}
(
${
item
.
commodity
Code
}
)
${
index
==
length
?
""
:
"、"
}
`
str
+=
`
${
item
.
upgradeGoodsName
}
(
${
item
.
merchantGoods
Code
}
)
${
index
==
length
?
""
:
"、"
}
`
return
str
return
str
},
''
)
},
''
)
return
text
return
text
...
...
src/views/systemConfig/merchant/merchantStep/components/reconciliation.vue
View file @
63fe661
...
@@ -584,7 +584,7 @@ export default {
...
@@ -584,7 +584,7 @@ export default {
if (arr[0]?.categoryType == 2) {
if (arr[0]?.categoryType == 2) {
const length = arr.length - 1
const length = arr.length - 1
text = arr.reduce((str, item, index) => {
text = arr.reduce((str, item, index) => {
str += `
$
{
item
.
upgradeGoodsName
}
(
${
item
.
commodity
Code
}
)
${
str += `
$
{
item
.
upgradeGoodsName
}
(
${
item
.
merchantGoods
Code
}
)
${
index
==
length
?
""
:
"、"
index
==
length
?
""
:
"、"
}
`
}
`
return str
return str
...
...
src/views/systemConfig/merchant/merchantStep/utils/groundingUpgradeList.js
View file @
63fe661
/**
/**
* merchantGoodsInfo.rule.selectList 返回的扁平 list(
upgradeGoodsId / goodsShowName / merchantGoods
Code)
* merchantGoodsInfo.rule.selectList 返回的扁平 list(
可与 merchantGoodsCode 独立的 commodity
Code)
* → 分账「具体商品」下拉统一结构
* → 分账「具体商品」下拉统一结构
* @param {Array<{upgradeGoodsId?: *, goodsShowName?: *, merchantGoodsCode?: *}>|undefined} list
* @param {Array<{upgradeGoodsId?: *, goodsShowName?: *, merchantGoodsCode?: *
, commodityCode?: *
}>|undefined} list
* @returns {Array<{upgradeGoodsId: *, upgradeGoodsName: string, commodityCode: string, merchantGoodsCode: string}>}
* @returns {Array<{upgradeGoodsId: *, upgradeGoodsName: string, commodityCode: string, merchantGoodsCode: string}>}
*/
*/
export
function
mapProductSearchListToUpgradeGoodsOptions
(
list
)
{
export
function
mapProductSearchListToUpgradeGoodsOptions
(
list
)
{
...
@@ -15,13 +15,26 @@ export function mapProductSearchListToUpgradeGoodsOptions(list) {
...
@@ -15,13 +15,26 @@ export function mapProductSearchListToUpgradeGoodsOptions(list) {
rawCode
!=
null
&&
String
(
rawCode
).
trim
()
!==
""
rawCode
!=
null
&&
String
(
rawCode
).
trim
()
!==
""
?
String
(
rawCode
).
trim
()
?
String
(
rawCode
).
trim
()
:
""
:
""
const
commodityCode
=
merchantGoodsCode
const
commodityCode
=
trimCommodityCode
(
row
)
return
{
upgradeGoodsId
,
upgradeGoodsName
,
commodityCode
,
merchantGoodsCode
}
return
{
upgradeGoodsId
,
upgradeGoodsName
,
commodityCode
,
merchantGoodsCode
}
})
})
.
filter
((
row
)
=>
row
.
merchantGoodsCode
!==
""
)
.
filter
((
row
)
=>
row
.
merchantGoodsCode
!==
""
)
}
}
/**
/**
* 仅读取 row.commodityCode(trim),与 merchantGoodsCode 分离,不用商户码回填。
* @param {object|undefined} row
* @returns {string} trim 后非空则返回,否则 ""
*/
export
function
trimCommodityCode
(
row
)
{
if
(
!
row
||
typeof
row
!==
"object"
)
return
""
if
(
row
.
commodityCode
==
null
)
return
""
const
t
=
String
(
row
.
commodityCode
).
trim
()
if
(
t
===
""
||
t
===
"null"
||
t
===
"undefined"
)
return
""
return
t
}
/**
* @param {object|undefined} row
* @param {object|undefined} row
* @returns {string} trim 后非空则返回,否则 ""
* @returns {string} trim 后非空则返回,否则 ""
*/
*/
...
@@ -76,7 +89,7 @@ export function flatMapUpgradeGoodsFromGoodsListPage(list) {
...
@@ -76,7 +89,7 @@ export function flatMapUpgradeGoodsFromGoodsListPage(list) {
arr
.
push
({
arr
.
push
({
upgradeGoodsId
:
id
,
upgradeGoodsId
:
id
,
upgradeGoodsName
,
upgradeGoodsName
,
commodityCode
:
code
,
commodityCode
:
trimCommodityCode
(
el
)
,
merchantGoodsCode
:
code
merchantGoodsCode
:
code
})
})
})
})
...
...
src/views/systemConfig/merchant/merchantStep/utils/reconciliationRuleBranches.js
View file @
63fe661
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
import
{
deepClone
}
from
"@/common/util"
import
{
deepClone
}
from
"@/common/util"
import
{
import
{
filterUpgradeGoodsByMerchantCode
,
filterUpgradeGoodsByMerchantCode
,
trimCommodityCode
,
trimMerchantGoodsCode
trimMerchantGoodsCode
}
from
"./groundingUpgradeList"
}
from
"./groundingUpgradeList"
...
@@ -33,7 +34,7 @@ export function applyGoodsTypeGroupRelationBranches(
...
@@ -33,7 +34,7 @@ export function applyGoodsTypeGroupRelationBranches(
upgradeArr
.
push
({
upgradeArr
.
push
({
upgradeGoodsId
:
val
.
upgradeGoodsId
,
upgradeGoodsId
:
val
.
upgradeGoodsId
,
upgradeGoodsName
:
val
.
upgradeGoodsName
,
upgradeGoodsName
:
val
.
upgradeGoodsName
,
commodityCode
:
code
,
commodityCode
:
trimCommodityCode
(
val
)
,
merchantGoodsCode
:
code
merchantGoodsCode
:
code
})
})
})
})
...
...
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