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 82b145be
authored
May 07, 2026
by
李伟康
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
533e35b4
9b95d5d8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
7 deletions
src/views/systemConfig/merchant/merchantGroundingEdit/MerchantGroundingEdit.vue
src/views/systemConfig/merchant/merchantGroundingEdit/merchantDetailMap.js
src/views/systemConfig/merchant/merchantGroundingEdit/merchantOnShelfOpenPayload.js
src/views/systemConfig/merchant/merchantGroundingEdit/MerchantGroundingEdit.vue
View file @
82b145b
...
@@ -342,6 +342,7 @@ export default {
...
@@ -342,6 +342,7 @@ export default {
traffic
,
traffic
,
businessForm
,
businessForm
,
productDetailsForSubmit
,
productDetailsForSubmit
,
baseSceneList
:
this
.
baseSceneList
,
});
});
await
merchantOnShelf
(
payload
);
await
merchantOnShelf
(
payload
);
this
.
$message
.
success
(
"保存成功"
);
this
.
$message
.
success
(
"保存成功"
);
...
...
src/views/systemConfig/merchant/merchantGroundingEdit/merchantDetailMap.js
View file @
82b145b
...
@@ -18,6 +18,27 @@ export function normalizeBaseSceneListResponse(res) {
...
@@ -18,6 +18,27 @@ export function normalizeBaseSceneListResponse(res) {
return
[];
return
[];
}
}
/**
* 与 merchantManage.vue 列表 buildRelationRefPayload / parseFiniteSceneTypeFromRow 一致:
* 使用 getBaseSceneCodeList(normalizeBaseSceneListResponse)下发的项,
* 按 baseSceneCode 精确匹配取 sceneType;无效时返回 0。
*/
export
function
resolveSceneTypeFromBaseSceneFilterList
(
baseSceneCode
,
baseSceneList
=
[])
{
if
(
baseSceneCode
==
null
||
baseSceneCode
===
""
)
return
0
;
const
codeStr
=
String
(
baseSceneCode
).
trim
();
if
(
!
codeStr
)
return
0
;
const
list
=
Array
.
isArray
(
baseSceneList
)
?
baseSceneList
:
[];
const
hit
=
list
.
find
(
item
=>
item
!=
null
&&
String
(
item
.
baseSceneCode
??
""
).
trim
()
===
codeStr
,
)
??
null
;
if
(
hit
==
null
)
return
0
;
const
v
=
hit
.
sceneType
;
if
(
v
===
undefined
||
v
===
null
||
v
===
""
)
return
0
;
const
n
=
Number
(
v
);
return
Number
.
isFinite
(
n
)
?
n
:
0
;
}
function
sceneRowMatchCodes
(
row
)
{
function
sceneRowMatchCodes
(
row
)
{
if
(
!
row
||
typeof
row
!==
"object"
)
return
[];
if
(
!
row
||
typeof
row
!==
"object"
)
return
[];
const
keys
=
[
"baseSceneCode"
,
"sceneCode"
,
"bizSceneCode"
,
"code"
,
"id"
,
"sceneId"
];
const
keys
=
[
"baseSceneCode"
,
"sceneCode"
,
"bizSceneCode"
,
"code"
,
"id"
,
"sceneId"
];
...
...
src/views/systemConfig/merchant/merchantGroundingEdit/merchantOnShelfOpenPayload.js
View file @
82b145b
import
NP
from
"number-precision"
;
import
NP
from
"number-precision"
;
import
{
getSceneTypeByBaseSceneCode
}
from
"@/common/sceneBaseSceneCode
"
;
import
{
resolveSceneTypeFromBaseSceneFilterList
}
from
"./merchantDetailMap
"
;
/** 与 MgBusinessSection 中嘀加毛利/毛利率/产值合计一致 */
/** 与 MgBusinessSection 中嘀加毛利/毛利率/产值合计一致 */
export
function
computeDjMetrics
(
componentData
,
productDetails
)
{
export
function
computeDjMetrics
(
componentData
,
productDetails
)
{
...
@@ -112,14 +112,14 @@ export function buildMerchantOnShelfOpenPayload(options) {
...
@@ -112,14 +112,14 @@ export function buildMerchantOnShelfOpenPayload(options) {
traffic
,
traffic
,
businessForm
,
businessForm
,
productDetailsForSubmit
,
productDetailsForSubmit
,
baseSceneList
,
}
=
options
;
}
=
options
;
const
mi
=
mi0
||
{};
const
mi
=
mi0
||
{};
const
sceneFromCode
=
getSceneTypeByBaseSceneCode
(
detailQueryBaseSceneCode
);
/** 与商户管理列表 scene 一致:取自 getBaseSceneCodeList 场景的 sceneType,未命中则 0 */
let
sceneType
=
!
Number
.
isNaN
(
sceneFromCode
)
?
sceneFromCode
:
NaN
;
const
sceneType
=
resolveSceneTypeFromBaseSceneFilterList
(
if
(
Number
.
isNaN
(
sceneType
))
{
detailQueryBaseSceneCode
,
const
s
=
mi
.
scene
!=
null
&&
mi
.
scene
!==
""
?
Number
(
mi
.
scene
)
:
0
;
baseSceneList
,
sceneType
=
Number
.
isNaN
(
s
)
?
0
:
s
;
);
}
const
trafficPartyId
=
const
trafficPartyId
=
mi
.
trafficPartyId
!=
null
&&
mi
.
trafficPartyId
!==
""
mi
.
trafficPartyId
!=
null
&&
mi
.
trafficPartyId
!==
""
...
...
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