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 fb050ff5
authored
Jul 17, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
商户管理编辑修改
1 parent
9ae1b861
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
src/views/systemConfig/merchant/merchantGroundingEdit/MerchantGroundingEdit.vue
src/views/systemConfig/merchant/merchantGroundingEdit/components/MerchantGroundingTrafficProviderInformation.vue
src/views/systemConfig/merchant/merchantGroundingEdit/MerchantGroundingEdit.vue
View file @
fb050ff
...
@@ -271,7 +271,12 @@ export default {
...
@@ -271,7 +271,12 @@ export default {
const
productDetailsForSubmit
=
this
.
mapProductDetailsForSubmit
(
this
.
productDetails
);
const
productDetailsForSubmit
=
this
.
mapProductDetailsForSubmit
(
this
.
productDetails
);
this
.
saving
=
true
;
this
.
saving
=
true
;
try
{
try
{
traffic
.
guaranteeList
?.
forEach
((
val
)
=>
{
// 使用组件方法构建包含 dataType 的兜底条件列表
console
.
log
(
trafficRef
.
buildGuaranteeListForSubmit
);
const
guaranteeList
=
typeof
trafficRef
.
buildGuaranteeListForSubmit
===
"function"
?
trafficRef
.
buildGuaranteeListForSubmit
()
:
traffic
.
guaranteeList
||
[];
guaranteeList
?.
forEach
((
val
)
=>
{
if
(
val
.
compensationMode
==
2
&&
val
.
ladderConditions
?.
length
)
{
if
(
val
.
compensationMode
==
2
&&
val
.
ladderConditions
?.
length
)
{
val
.
ladderConditions
=
JSON
.
stringify
(
val
.
ladderConditions
);
val
.
ladderConditions
=
JSON
.
stringify
(
val
.
ladderConditions
);
}
}
...
@@ -284,7 +289,7 @@ export default {
...
@@ -284,7 +289,7 @@ export default {
businessForm
,
businessForm
,
productDetailsForSubmit
,
productDetailsForSubmit
,
baseSceneList
:
this
.
baseSceneList
,
baseSceneList
:
this
.
baseSceneList
,
guaranteeList
:
traffic
.
guaranteeList
,
guaranteeList
,
});
});
console
.
log
(
payload
);
console
.
log
(
payload
);
await
merchantOnShelf
(
payload
);
await
merchantOnShelf
(
payload
);
...
...
src/views/systemConfig/merchant/merchantGroundingEdit/components/MerchantGroundingTrafficProviderInformation.vue
View file @
fb050ff
...
@@ -1071,6 +1071,20 @@ export default {
...
@@ -1071,6 +1071,20 @@ export default {
}
}
return
null
;
return
null
;
},
},
/**
* 构建提交用的兜底条件列表(添加 dataType)
*/
buildGuaranteeListForSubmit
()
{
const
list
=
this
.
componentData
.
guaranteeList
||
[];
return
list
.
map
((
item
)
=>
{
// 从当前场景的指标选项中查找对应的 dataType
const
indicator
=
this
.
currentSceneIndicatorOptions
.
find
(
opt
=>
opt
.
value
===
item
.
guaranteeIndex
);
return
{
...
item
,
dataType
:
indicator
?.
dataType
||
null
,
// 1: 比例,2: 数值
};
});
},
getSelectText
(
i
)
{
getSelectText
(
i
)
{
const
value
=
this
.
componentData
[
i
.
key
];
const
value
=
this
.
componentData
[
i
.
key
];
if
(
this
.
isViewMode
&&
i
.
viewKey
)
{
if
(
this
.
isViewMode
&&
i
.
viewKey
)
{
...
...
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