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 15353e70
authored
Jul 06, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/saas_plus/dj-car-life-system
…
…into feature/584/config
2 parents
1dcf853d
4d8ed45a
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
117 additions
and
86 deletions
src/views/customer/customerList.vue
src/views/earlyWarningManager/strategyCentre/storeSignboard/components/AddStrategy/MultipleStaff.vue
src/views/earlyWarningManager/strategyCentre/storeSignboard/components/AddStrategy/contant.js
src/views/earlyWarningManager/strategyCentre/storeSignboard/components/AddStrategy/index.vue
src/views/earlyWarningManager/strategyCentre/storeSignboard/components/AddStrategy/multipleMixin.js
src/views/earlyWarningManager/strategyCentre/storeSignboard/components/StrategyDetail/index.vue
src/views/goods/grounding/index.vue
src/views/goods/packageManage/index.vue
src/views/marketingManagement/marketingActivity/components/tagManageDialog.vue
src/views/customer/customerList.vue
View file @
15353e7
...
@@ -367,7 +367,7 @@ export default {
...
@@ -367,7 +367,7 @@ export default {
formatCustomerStatusLabel
(
row
)
{
formatCustomerStatusLabel
(
row
)
{
return
formatCustomerStatus
(
row
,
CUSTOMER_STATUS_LIST
);
return
formatCustomerStatus
(
row
,
CUSTOMER_STATUS_LIST
);
},
},
getParams
()
{
getParams
(
forExport
=
false
)
{
let
params
=
{
let
params
=
{
merchantId
:
this
.
searchForm
.
merchantId
,
merchantId
:
this
.
searchForm
.
merchantId
,
sellerMerchantId
:
this
.
searchForm
.
sellerMerchantId
,
sellerMerchantId
:
this
.
searchForm
.
sellerMerchantId
,
...
@@ -382,7 +382,14 @@ export default {
...
@@ -382,7 +382,14 @@ export default {
if
(
this
.
searchForm
.
groupLinked
!==
""
&&
this
.
searchForm
.
groupLinked
!=
null
)
{
if
(
this
.
searchForm
.
groupLinked
!==
""
&&
this
.
searchForm
.
groupLinked
!=
null
)
{
params
.
groupLinked
=
this
.
searchForm
.
groupLinked
;
params
.
groupLinked
=
this
.
searchForm
.
groupLinked
;
}
}
this
.
searchForm
.
source
&&
(
params
.
sourceList
=
this
.
sourceStatusObj
[
this
.
searchForm
.
source
]);
if
(
this
.
searchForm
.
source
)
{
if
(
forExport
)
{
const
sourceCodes
=
this
.
sourceStatusObj
[
this
.
searchForm
.
source
];
params
.
sourceStr
=
sourceCodes
.
join
(
","
);
}
else
{
params
.
sourceList
=
this
.
sourceStatusObj
[
this
.
searchForm
.
source
];
}
}
if
(
this
.
searchForm
.
successTime
)
{
if
(
this
.
searchForm
.
successTime
)
{
params
.
paySuccessStartDate
=
new
Date
(
this
.
searchForm
.
successTime
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
"-"
);
params
.
paySuccessStartDate
=
new
Date
(
this
.
searchForm
.
successTime
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
"-"
);
params
.
paySuccessEndDate
=
new
Date
(
this
.
searchForm
.
successTime
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
"-"
);
params
.
paySuccessEndDate
=
new
Date
(
this
.
searchForm
.
successTime
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
"-"
);
...
@@ -479,7 +486,7 @@ export default {
...
@@ -479,7 +486,7 @@ export default {
this
.
getOptionsList
();
this
.
getOptionsList
();
},
},
handleExport
()
{
handleExport
()
{
let
params
=
this
.
getParams
();
let
params
=
this
.
getParams
(
true
);
params
.
pageNum
=
1
;
params
.
pageNum
=
1
;
params
.
method
=
"dj.api.customer.exportExcel.async"
;
params
.
method
=
"dj.api.customer.exportExcel.async"
;
// exportFile(params).then(res => {
// exportFile(params).then(res => {
...
...
src/views/earlyWarningManager/strategyCentre/storeSignboard/components/AddStrategy/MultipleStaff.vue
View file @
15353e7
...
@@ -137,7 +137,8 @@ export default {
...
@@ -137,7 +137,8 @@ export default {
return
{
return
{
0
:
"驻店人员"
,
0
:
"驻店人员"
,
6
:
"飞行督导"
,
6
:
"飞行督导"
,
9
:
"区域运营"
,
9
:
"2.1区域运营"
,
8
:
"1.1区域运营"
,
}[
row
.
positionType
];
}[
row
.
positionType
];
},
},
},
},
...
@@ -150,14 +151,14 @@ export default {
...
@@ -150,14 +151,14 @@ export default {
methods
:
{
methods
:
{
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
)
=>
{
return
new
Promise
((
resolve
)
=>
{
let
{
positionTypeList
,
merchantList
,
paramsInfo
,
delMerchantList
,
biz
}
=
this
;
let
{
positionTypeList
Sale
,
positionTypeList
,
merchantList
,
paramsInfo
,
delMerchantList
,
biz
}
=
this
;
let
{
staffName
}
=
this
.
searchForm
;
let
{
staffName
}
=
this
.
searchForm
;
let
merchantIdList
=
[];
let
merchantIdList
=
[];
if
(
merchantList
.
length
)
if
(
merchantList
.
length
)
merchantIdList
=
merchantList
.
map
(
item
=>
item
.
merchantId
);
merchantIdList
=
merchantList
.
map
(
item
=>
item
.
merchantId
);
else
merchantIdList
=
paramsInfo
?.
merchantIds
||
[];
else
merchantIdList
=
paramsInfo
?.
merchantIds
||
[];
let
params
=
{
let
params
=
{
positionTypeList
,
positionTypeList
:
positionTypeListSale
?
positionTypeListSale
(
biz
):
positionTypeList
,
sceneType
:
biz
==
2
?
1
:
0
,
// 业务场景(0.会员权益(延保权益),1.精品升级(轻改))
sceneType
:
biz
==
2
?
1
:
0
,
// 业务场景(0.会员权益(延保权益),1.精品升级(轻改))
staffName
,
staffName
,
merchantIdList
,
merchantIdList
,
...
...
src/views/earlyWarningManager/strategyCentre/storeSignboard/components/AddStrategy/contant.js
View file @
15353e7
...
@@ -138,6 +138,9 @@ const STRATEGY_FORM_3 = [
...
@@ -138,6 +138,9 @@ const STRATEGY_FORM_3 = [
},
},
positionTypeList
:
[
9
],
positionTypeList
:
[
9
],
tagNameKey
:
"staffName"
,
tagNameKey
:
"staffName"
,
positionTypeListSale
:(
biz
)
=>
{
return
biz
==
2
?
[
8
]
:
[
9
];
}
},
},
{
{
label
:
"驻店人员"
,
label
:
"驻店人员"
,
...
...
src/views/earlyWarningManager/strategyCentre/storeSignboard/components/AddStrategy/index.vue
View file @
15353e7
...
@@ -200,6 +200,7 @@ export default {
...
@@ -200,6 +200,7 @@ export default {
provide
()
{
provide
()
{
return
{
return
{
GET_POSITION_TYPE_LIST
:
()
=>
this
.
positionTypeList
,
GET_POSITION_TYPE_LIST
:
()
=>
this
.
positionTypeList
,
GET_POSITION_TYPE_LIST_SALE
:
()
=>
this
.
positionTypeListSale
,
GET_MERCHANT_LIST
:
()
=>
this
.
merchantList
,
GET_MERCHANT_LIST
:
()
=>
this
.
merchantList
,
GET_BIZ
:
()
=>
this
.
currentBiz
,
GET_BIZ
:
()
=>
this
.
currentBiz
,
DEL_PARAMS_MERCHANT_LIST
:
()
=>
this
.
delMerchantList
,
DEL_PARAMS_MERCHANT_LIST
:
()
=>
this
.
delMerchantList
,
...
@@ -256,6 +257,7 @@ export default {
...
@@ -256,6 +257,7 @@ export default {
positionTypeList
:
[],
positionTypeList
:
[],
loading
:
false
,
loading
:
false
,
delMerchantList
:
false
,
delMerchantList
:
false
,
positionTypeListSale
:
null
};
};
},
},
computed
:
{
computed
:
{
...
@@ -415,6 +417,7 @@ export default {
...
@@ -415,6 +417,7 @@ export default {
let
{
componentName
}
=
item
;
let
{
componentName
}
=
item
;
if
(
item
.
positionTypeList
)
if
(
item
.
positionTypeList
)
this
.
positionTypeList
=
item
.
positionTypeList
;
this
.
positionTypeList
=
item
.
positionTypeList
;
this
.
positionTypeListSale
=
item
.
positionTypeListSale
;
this
.
delMerchantList
=
item
.
delMerchantList
;
this
.
delMerchantList
=
item
.
delMerchantList
;
this
[
`
${
componentName
}
Visible`
]
=
true
;
this
[
`
${
componentName
}
Visible`
]
=
true
;
},
},
...
...
src/views/earlyWarningManager/strategyCentre/storeSignboard/components/AddStrategy/multipleMixin.js
View file @
15353e7
...
@@ -16,6 +16,7 @@ export default {
...
@@ -16,6 +16,7 @@ export default {
"GET_MERCHANT_LIST"
,
"GET_MERCHANT_LIST"
,
"GET_BIZ"
,
"GET_BIZ"
,
"DEL_PARAMS_MERCHANT_LIST"
,
"DEL_PARAMS_MERCHANT_LIST"
,
"GET_POSITION_TYPE_LIST_SALE"
,
],
],
computed
:
{
computed
:
{
dialogShow
:
{
dialogShow
:
{
...
@@ -33,6 +34,9 @@ export default {
...
@@ -33,6 +34,9 @@ export default {
positionTypeList
()
{
positionTypeList
()
{
return
this
.
GET_POSITION_TYPE_LIST
&&
this
.
GET_POSITION_TYPE_LIST
();
return
this
.
GET_POSITION_TYPE_LIST
&&
this
.
GET_POSITION_TYPE_LIST
();
},
},
positionTypeListSale
()
{
return
this
.
GET_POSITION_TYPE_LIST_SALE
&&
this
.
GET_POSITION_TYPE_LIST_SALE
();
},
paramsInfo
()
{
paramsInfo
()
{
return
this
.
GET_PARAMS_INFO
&&
this
.
GET_PARAMS_INFO
();
return
this
.
GET_PARAMS_INFO
&&
this
.
GET_PARAMS_INFO
();
},
},
...
...
src/views/earlyWarningManager/strategyCentre/storeSignboard/components/StrategyDetail/index.vue
View file @
15353e7
...
@@ -164,7 +164,8 @@ export default {
...
@@ -164,7 +164,8 @@ export default {
return
{
return
{
0
:
"驻店人员"
,
0
:
"驻店人员"
,
6
:
"飞行督导"
,
6
:
"飞行督导"
,
9
:
"区域运营"
,
9
:
"2.1区域运营"
,
8
:
"1.1区域运营"
,
}
[
item
.
userPosition
];
}
[
item
.
userPosition
];
}
,
}
,
}
,
}
,
...
...
src/views/goods/grounding/index.vue
View file @
15353e7
...
@@ -5,17 +5,17 @@
...
@@ -5,17 +5,17 @@
<div
class=
"header"
>
<div
class=
"header"
>
<d2-search
ref=
"showSearch"
<d2-search
ref=
"showSearch"
class=
"show-search"
class=
"show-search"
:form-data=
"showFormData"
label-width=
"100px"
label-width=
"100px"
:form-data=
"showFormData"
:search-form=
"searchForm"
:search-form=
"searchForm"
@
handleChangeSelect=
"handleChangeSelect"
>
@
handleChangeSelect=
"handleChangeSelect"
>
<template
#
goodsCascader
>
<template
#
goodsCascader
>
<el-cascader
v-model=
"tempGoodsType"
<el-cascader
v-model=
"tempGoodsType"
placeholder=
"请选择"
style=
"width: 100%;"
filterable
filterable
:options=
"baseData.productTypeList"
:options=
"baseData.productTypeList"
placeholder=
"请选择"
:props=
"
{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }"
:props=
"
{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }"
style="width: 100%;"
@change="selectAddAttr($event)">
@change="selectAddAttr($event)">
</el-cascader>
</el-cascader>
</
template
>
</
template
>
...
@@ -25,8 +25,8 @@
...
@@ -25,8 +25,8 @@
width=
"100%"
width=
"100%"
@
selection-change=
"handleAreaSelectChange"
/>
-->
@
selection-change=
"handleAreaSelectChange"
/>
-->
<ApplicableAreaQuerySelect
v-model=
"applicableAreas"
<ApplicableAreaQuerySelect
v-model=
"applicableAreas"
:options=
"baseData.applicableAreaList"
width=
"100%"
width=
"100%"
:options=
"baseData.applicableAreaList"
@
change=
"val => handleAreaSelectChange(val)"
/>
@
change=
"val => handleAreaSelectChange(val)"
/>
</
template
>
</
template
>
</d2-search>
</d2-search>
...
@@ -52,21 +52,21 @@
...
@@ -52,21 +52,21 @@
<!-- 批量修改库存模式 -->
<!-- 批量修改库存模式 -->
<span
style=
"display: inline-block;margin-right: 10px;"
>
<span
style=
"display: inline-block;margin-right: 10px;"
>
<auth-button
category=
"Button"
<auth-button
category=
"Button"
:show-btn-ids=
"['9030912']"
style=
"display: inline-block"
style=
"display: inline-block"
:show-btn-ids=
"['9030912']"
@
click=
"handleBatchModifyInventory"
/>
@
click=
"handleBatchModifyInventory"
/>
</span>
</span>
<!-- 新增上架 -->
<!-- 新增上架 -->
<span
style=
"display: inline-block"
>
<span
style=
"display: inline-block"
>
<auth-button
category=
"Button"
<auth-button
category=
"Button"
:show-btn-ids=
"['9030901']
"
style=
"display: inline-block
"
style=
"display: inline-block
"
/>
:show-btn-ids=
"['9030901']
"
/>
</span>
</span>
<!-- 批量导入 -->
<!-- 批量导入 -->
<span
style=
"display: inline-block;margin-left: 10px;"
>
<span
style=
"display: inline-block;margin-left: 10px;"
>
<auth-button
category=
"Button"
<auth-button
category=
"Button"
:show-btn-ids=
"['9030911']
"
style=
"display: inline-block
"
style=
"display: inline-block
"
/>
:show-btn-ids=
"['9030911']
"
/>
</span>
</span>
<!-- 批量校验最低价 -->
<!-- 批量校验最低价 -->
<span
style=
"display: inline-block;margin-left: 10px;"
>
<span
style=
"display: inline-block;margin-left: 10px;"
>
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
{{
subItem
.
merchantName
}}
{{
subItem
.
merchantName
}}
</div>
</div>
</div>
</div>
<template
#
reference
>
<template
slot=
"reference"
>
<div>
<div>
<img
src=
"./images/merchant_icon.png"
style=
"width: 14px;height: 13px;"
>
<img
src=
"./images/merchant_icon.png"
style=
"width: 14px;height: 13px;"
>
<span>
x
{{
scope
.
scope
.
merchantGoodsRefList
.
length
}}
</span>
<span>
x
{{
scope
.
scope
.
merchantGoodsRefList
.
length
}}
</span>
...
@@ -126,10 +126,10 @@
...
@@ -126,10 +126,10 @@
</template>
</template>
<
template
#
yqMerchantName=
"scope"
>
<
template
#
yqMerchantName=
"scope"
>
<div
v-if=
"scope.scope.yqMerchantGoodsRefList && scope.scope.yqMerchantGoodsRefList.length > 0"
>
<div
v-if=
"scope.scope.yqMerchantGoodsRefList && scope.scope.yqMerchantGoodsRefList.length > 0"
>
<el-popover
:content=
"scope.scope.merchantName"
<el-popover
placement=
"top"
placement=
"top"
trigger=
"hover"
trigger=
"hover"
width=
"200"
>
width=
"200"
:content=
"scope.scope.merchantName"
>
<div
class=
"merchant-name-box"
>
<div
class=
"merchant-name-box"
>
<div
class=
"title"
>
<div
class=
"title"
>
服务对接
服务对接
...
@@ -140,7 +140,7 @@
...
@@ -140,7 +140,7 @@
{{
subItem
.
merchantName
}}
{{
subItem
.
merchantName
}}
</div>
</div>
</div>
</div>
<template
#
reference
>
<template
slot=
"reference"
>
<div>
<div>
<img
src=
"./images/merchant_icon.png"
style=
"width: 14px;height: 13px;"
>
<img
src=
"./images/merchant_icon.png"
style=
"width: 14px;height: 13px;"
>
<span>
x
{{
scope
.
scope
.
yqMerchantGoodsRefList
.
length
}}
</span>
<span>
x
{{
scope
.
scope
.
yqMerchantGoodsRefList
.
length
}}
</span>
...
@@ -183,14 +183,14 @@
...
@@ -183,14 +183,14 @@
</div>
</div>
<BatchCopyDialog
v-if=
"batchCopyVisible"
<BatchCopyDialog
v-if=
"batchCopyVisible"
ref=
"formBatchCopy"
ref=
"formBatchCopy"
:base-scene-list=
"baseData.baseSceneList"
:batch-copy-visible=
"batchCopyVisible"
:batch-copy-visible=
"batchCopyVisible"
:selected-scene-obj=
"batchCopySelectSceneObj"
:selected-scene-obj=
"batchCopySelectSceneObj"
:baseSceneList=
"baseData.baseSceneList"
@
handleBatchCopyClose=
"handleBatchCopyClose"
@
handleBatchCopyClose=
"handleBatchCopyClose"
@
handleBatchCopyConfirm=
"handleBatchCopyConfirm"
>
@
handleBatchCopyConfirm=
"handleBatchCopyConfirm"
>
</BatchCopyDialog>
</BatchCopyDialog>
<d2-file-import-dialog
:is-visible=
"fileVisible
"
<d2-file-import-dialog
title=
"上传文件
"
title=
"上传文件
"
:is-visible=
"fileVisible
"
@
closeDialog=
"handleBatchImport"
@
closeDialog=
"handleBatchImport"
@
confirmDialog=
"handleConfirmImport"
@
confirmDialog=
"handleConfirmImport"
@
downloadTemplate=
"exportTemplate"
/>
@
downloadTemplate=
"exportTemplate"
/>
...
@@ -208,16 +208,17 @@ import { getShopMerchantList } from "@api/deviceManage";
...
@@ -208,16 +208,17 @@ import { getShopMerchantList } from "@api/deviceManage";
import
{
getParkStore
}
from
"@api/editCustomer"
;
import
{
getParkStore
}
from
"@api/editCustomer"
;
import
{
batchReviewAPI
,
batchSetValidMinSellPrice
,
batchUpdateBatchCopy
,
batchUpdateStatus
,
delGroundingById
,
getGroundingManageList
,
groundingImport
,
updateGoodsStatus
}
from
"@api/grounding"
;
import
{
batchReviewAPI
,
batchSetValidMinSellPrice
,
batchUpdateBatchCopy
,
batchUpdateStatus
,
delGroundingById
,
getGroundingManageList
,
groundingImport
,
updateGoodsStatus
}
from
"@api/grounding"
;
import
{
getAllCategory
,
getList
}
from
"@api/product"
;
import
{
getAllCategory
,
getList
}
from
"@api/product"
;
import
{
getAreaDataList
,
getBaseSceneCodeList
}
from
"@api/productManage"
;
import
{
mapActions
,
mapMutations
,
mapState
}
from
"vuex"
;
import
{
mapActions
,
mapMutations
,
mapState
}
from
"vuex"
;
import
{
BaseData
,
sceneCodeList
,
sceneList
}
from
"@/common/constants.js"
;
import
{
BaseData
,
sceneCodeList
,
sceneList
}
from
"@/common/constants.js"
;
import
{
deepClone
,
Util
}
from
"@/common/util"
;
import
{
deepClone
,
Util
}
from
"@/common/util"
;
import
{
baseConfig
}
from
"@/main"
;
import
{
baseConfig
}
from
"@/main"
;
import
ApplicableAreaQuerySelect
from
"@/views/goods/components/applicable-area-query-select/index.vue"
;
// import ApplicableAreaSelect from "@/views/goods/components/applicable-area-select/index.vue";
// import ApplicableAreaSelect from "@/views/goods/components/applicable-area-select/index.vue";
import
batchCopyDialog
from
"./components/batchCopyDialog.vue"
;
import
batchCopyDialog
from
"./components/batchCopyDialog.vue"
;
import
BatchModifyInventoryDialog
from
"./components/batchModifyInventoryDialog.vue"
;
import
BatchModifyInventoryDialog
from
"./components/batchModifyInventoryDialog.vue"
;
import
{
baseSupplyModeList
,
upgradeSupplyModeList
}
from
"./constants/data"
;
import
{
baseSupplyModeList
,
upgradeSupplyModeList
}
from
"./constants/data"
;
import
{
getBaseSceneCodeList
,
getAreaDataList
}
from
"@api/productManage"
import
ApplicableAreaQuerySelect
from
'@/views/goods/components/applicable-area-query-select/index.vue'
export
default
{
export
default
{
name
:
"GroundingIndex"
,
name
:
"GroundingIndex"
,
components
:
{
BatchCopyDialog
:
batchCopyDialog
,
BatchModifyInventoryDialog
,
ApplicableAreaQuerySelect
},
components
:
{
BatchCopyDialog
:
batchCopyDialog
,
BatchModifyInventoryDialog
,
ApplicableAreaQuerySelect
},
...
@@ -659,7 +660,7 @@ export default {
...
@@ -659,7 +660,7 @@ export default {
},
},
],
],
applicableAreaList
:
[],
applicableAreaList
:
[],
baseSceneList
:
[]
baseSceneList
:
[]
,
},
},
selfBuildGoodsType
:
baseConfig
.
selfBuildGoodsType
||
""
,
selfBuildGoodsType
:
baseConfig
.
selfBuildGoodsType
||
""
,
batchCopySelectSceneObj
:
{},
// 批量复制选中的业务场景
batchCopySelectSceneObj
:
{},
// 批量复制选中的业务场景
...
@@ -705,8 +706,8 @@ export default {
...
@@ -705,8 +706,8 @@ export default {
// 获取适用区域
// 获取适用区域
this
.
getApplicableArea
();
this
.
getApplicableArea
();
// 获取业务场景数据
// 获取业务场景数据
this
.
getBaseCodeList
()
this
.
getBaseCodeList
()
;
this
.
getOptionsList
()
this
.
getOptionsList
()
;
},
},
computed
:
{
computed
:
{
...
mapState
({
...
mapState
({
...
@@ -739,18 +740,20 @@ export default {
...
@@ -739,18 +740,20 @@ export default {
this
.
positionTypeList
=
await
this
.
get
(
BaseData
.
positionTypeList
);
this
.
positionTypeList
=
await
this
.
get
(
BaseData
.
positionTypeList
);
},
},
getBaseCodeList
()
{
getBaseCodeList
()
{
getBaseSceneCodeList
({}).
then
(
res
=>
{
getBaseSceneCodeList
({}).
then
(
(
res
)
=>
{
this
.
baseData
.
baseSceneList
=
res
||
[]
this
.
baseData
.
baseSceneList
=
res
||
[]
;
this
.
getOptionsList
()
this
.
getOptionsList
()
;
})
})
;
},
},
getApplicableArea
()
{
getApplicableArea
()
{
getAreaDataList
({}).
then
(
res
=>
{
getAreaDataList
({}).
then
(
(
res
)
=>
{
this
.
baseData
.
applicableAreaList
=
res
||
[]
this
.
baseData
.
applicableAreaList
=
res
||
[]
;
})
})
;
},
},
handleAreaSelectChange
(
data
)
{
handleAreaSelectChange
(
data
)
{
this
.
searchForm
.
cityCodeList
=
data
?.
map
(
val
=>
{
return
val
.
cityCode
})
this
.
searchForm
.
cityCodeList
=
data
?.
map
((
val
)
=>
{
return
val
.
cityCode
;
});
},
},
getOptionsList
()
{
getOptionsList
()
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
...
@@ -820,8 +823,9 @@ export default {
...
@@ -820,8 +823,9 @@ export default {
// 处理金额补零
// 处理金额补零
priceFilter
(
num
)
{
priceFilter
(
num
)
{
let
pow
=
10
**
2
;
let
pow
=
10
**
2
;
if
(
this
.
filterEmpty
(
num
))
if
(
this
.
filterEmpty
(
num
))
{
return
"-"
;
return
"-"
;
}
return
(
Math
.
round
(
num
*
pow
)
/
pow
).
toFixed
(
2
);
return
(
Math
.
round
(
num
*
pow
)
/
pow
).
toFixed
(
2
);
},
},
// 联动或许对应分类下的素材
// 联动或许对应分类下的素材
...
@@ -896,7 +900,7 @@ export default {
...
@@ -896,7 +900,7 @@ export default {
inventoryType
:
""
,
inventoryType
:
""
,
};
};
this
.
tempGoodsType
=
[];
this
.
tempGoodsType
=
[];
this
.
applicableAreas
=
[]
this
.
applicableAreas
=
[]
;
// 重新查询
// 重新查询
this
.
$refs
.
groundingIndexTable
.
refreshTable
(
true
,
true
);
this
.
$refs
.
groundingIndexTable
.
refreshTable
(
true
,
true
);
},
},
...
@@ -945,11 +949,11 @@ export default {
...
@@ -945,11 +949,11 @@ export default {
let
params
=
deepClone
(
this
.
searchForm
);
let
params
=
deepClone
(
this
.
searchForm
);
if
(
params
?.
cityCodeList
?.
length
)
{
if
(
params
?.
cityCodeList
?.
length
)
{
params
.
cityCodeList
.
forEach
((
item
,
index
)
=>
{
params
.
cityCodeList
.
forEach
((
item
,
index
)
=>
{
const
name
=
`cityCodeList[
${
index
}
]`
const
name
=
`cityCodeList[
${
index
}
]`
;
params
[
name
]
=
item
params
[
name
]
=
item
;
})
})
;
}
}
delete
params
.
cityCodeList
delete
params
.
cityCodeList
;
params
.
method
=
"dj.api.smartcarlife.merchantGoodsInfo.export.async"
;
params
.
method
=
"dj.api.smartcarlife.merchantGoodsInfo.export.async"
;
const
list
=
[
const
list
=
[
...
this
.
dowloadList
,
...
this
.
dowloadList
,
...
@@ -1082,17 +1086,18 @@ export default {
...
@@ -1082,17 +1086,18 @@ export default {
selectedData
=
this
.
$refs
.
groundingIndexTable
.
mutiSelectArr
.
groundingIndex
;
selectedData
=
this
.
$refs
.
groundingIndexTable
.
mutiSelectArr
.
groundingIndex
;
}
}
const
baseSceneObj
=
selectedData
.
map
((
v
)
=>
{
const
baseSceneObj
=
selectedData
.
map
((
v
)
=>
{
return
v
.
baseSceneCode
return
v
.
baseSceneCode
;
})
||
[];
})
||
[];
if
(
!
selectedData
.
length
)
if
(
!
selectedData
.
length
)
{
return
this
.
$message
.
warning
(
"请选择上架记录"
);
return
this
.
$message
.
warning
(
"请选择上架记录"
);
console
.
log
(
baseSceneObj
)
}
const
baseSceneArr
=
Array
.
from
(
new
Set
(
baseSceneObj
))
console
.
log
(
baseSceneObj
);
const
baseSceneArr
=
Array
.
from
(
new
Set
(
baseSceneObj
));
if
(
baseSceneArr
?.
length
>
1
)
{
if
(
baseSceneArr
?.
length
>
1
)
{
return
this
.
$message
.
warning
(
"请选择同一业务场景的上架记录"
);
return
this
.
$message
.
warning
(
"请选择同一业务场景的上架记录"
);
}
}
this
.
batchCopySelectData
=
selectedData
||
[];
this
.
batchCopySelectData
=
selectedData
||
[];
this
.
batchCopySelectSceneObj
=
{
baseSceneCode
:
baseSceneArr
[
0
],
name
:
this
.
baseData
.
baseSceneList
?.
find
(
val
=>
val
.
baseSceneCode
==
baseSceneArr
[
0
])?.
name
};
this
.
batchCopySelectSceneObj
=
{
baseSceneCode
:
baseSceneArr
[
0
],
name
:
this
.
baseData
.
baseSceneList
?.
find
(
val
=>
val
.
baseSceneCode
==
baseSceneArr
[
0
])?.
name
};
this
.
batchCopyVisible
=
true
;
this
.
batchCopyVisible
=
true
;
},
},
// 批量复制弹窗确定
// 批量复制弹窗确定
...
@@ -1178,6 +1183,5 @@ export default {
...
@@ -1178,6 +1183,5 @@ export default {
.checkText
{
.checkText
{
margin-left
:
8px
;
margin-left
:
8px
;
}
}
}
}
</
style
>
</
style
>
src/views/goods/packageManage/index.vue
View file @
15353e7
...
@@ -5,14 +5,14 @@
...
@@ -5,14 +5,14 @@
<div
class=
"header"
>
<div
class=
"header"
>
<d2-search
ref=
"showSearch"
<d2-search
ref=
"showSearch"
class=
"show-search"
class=
"show-search"
:form-data=
"showFormData"
label-width=
"100px"
label-width=
"100px"
:form-data=
"showFormData"
:search-form=
"searchForm"
>
:search-form=
"searchForm"
>
<template
#
matchPackageCode
>
<template
#
matchPackageCode
>
<el-input
v-model
.
trim=
"searchForm.matchPackageCode"
<el-input
v-model
.
trim=
"searchForm.matchPackageCode"
placeholder=
"请输入套餐ID"
:clearable=
"true"
:clearable=
"true"
:maxlength=
"20"
:maxlength=
"20"
placeholder=
"请输入套餐ID"
:style=
"
{ width: '100%' }"
:style=
"
{ width: '100%' }"
@input="matchPackageCodeInput" />
@input="matchPackageCodeInput" />
</
template
>
</
template
>
...
@@ -22,8 +22,8 @@
...
@@ -22,8 +22,8 @@
width=
"100%"
width=
"100%"
@
selection-change=
"handleAreaSelectChange"
/>
-->
@
selection-change=
"handleAreaSelectChange"
/>
-->
<ApplicableAreaQuerySelect
v-model=
"applicableAreas"
<ApplicableAreaQuerySelect
v-model=
"applicableAreas"
:options=
"baseData.applicableAreaList"
width=
"100%"
width=
"100%"
:options=
"baseData.applicableAreaList"
@
change=
"val => handleAreaSelectChange(val)"
/>
@
change=
"val => handleAreaSelectChange(val)"
/>
</
template
>
</
template
>
</d2-search>
</d2-search>
...
@@ -50,19 +50,19 @@
...
@@ -50,19 +50,19 @@
</span>
</span>
<!-- 批量审核 -->
<!-- 批量审核 -->
<auth-button
category=
"Button"
<auth-button
category=
"Button"
:show-btn-ids=
"['9031206']
"
style=
"display: inline-block;
"
style=
"display: inline-block;
"
/>
:show-btn-ids=
"['9031206']
"
/>
<!-- 批量修改库存模式 -->
<!-- 批量修改库存模式 -->
<span
style=
"display: inline-block; margin-right: 10px;"
></span>
<span
style=
"display: inline-block; margin-right: 10px;"
></span>
<auth-button
category=
"Button"
<auth-button
category=
"Button"
:show-btn-ids=
"['9031211']
"
style=
"display: inline-block
"
style=
"display: inline-block
"
/>
:show-btn-ids=
"['9031211']
"
/>
</span>
</span>
</
template
>
</
template
>
<!-- 导出 -->
<!-- 导出 -->
<auth-button
category=
"Button"
<auth-button
category=
"Button"
:show-btn-ids=
"['9031210']
"
style=
"display: inline-block; margin-right: 10px;
"
style=
"display: inline-block; margin-right: 10px;
"
/>
:show-btn-ids=
"['9031210']
"
/>
</d2-table-header>
</d2-table-header>
<d2-table
ref=
"packageIndexTable"
<d2-table
ref=
"packageIndexTable"
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
{{
subItem
.
merchantName
}}
{{
subItem
.
merchantName
}}
</div>
</div>
</div>
</div>
<template
#
reference
>
<template
slot=
"reference"
>
<div>
<div>
<img
src=
"../grounding/images/merchant_icon.png"
style=
"width: 14px;height: 13px;"
>
<img
src=
"../grounding/images/merchant_icon.png"
style=
"width: 14px;height: 13px;"
>
<span>
x
{{
scope
.
scope
.
merchantGoodsRefList
.
length
}}
</span>
<span>
x
{{
scope
.
scope
.
merchantGoodsRefList
.
length
}}
</span>
...
@@ -101,10 +101,10 @@
...
@@ -101,10 +101,10 @@
</template>
</template>
<
template
#
yqMerchantName=
"scope"
>
<
template
#
yqMerchantName=
"scope"
>
<div
v-if=
"scope.scope.yqMerchantGoodsRefList && scope.scope.yqMerchantGoodsRefList.length > 0"
>
<div
v-if=
"scope.scope.yqMerchantGoodsRefList && scope.scope.yqMerchantGoodsRefList.length > 0"
>
<el-popover
:content=
"scope.scope.merchantName"
<el-popover
placement=
"top"
placement=
"top"
trigger=
"hover"
trigger=
"hover"
width=
"200"
>
width=
"200"
:content=
"scope.scope.merchantName"
>
<div
class=
"merchant-name-box"
>
<div
class=
"merchant-name-box"
>
<div
class=
"title"
>
<div
class=
"title"
>
服务对接
服务对接
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
{{
subItem
.
merchantName
}}
{{
subItem
.
merchantName
}}
</div>
</div>
</div>
</div>
<template
#
reference
>
<template
slot=
"reference"
>
<div>
<div>
<img
src=
"../grounding/images/merchant_icon.png"
style=
"width: 14px;height: 13px;"
>
<img
src=
"../grounding/images/merchant_icon.png"
style=
"width: 14px;height: 13px;"
>
<span>
x
{{
scope
.
scope
.
yqMerchantGoodsRefList
.
length
}}
</span>
<span>
x
{{
scope
.
scope
.
yqMerchantGoodsRefList
.
length
}}
</span>
...
@@ -166,19 +166,20 @@
...
@@ -166,19 +166,20 @@
import
{
getShopMerchantList
}
from
"@api/deviceManage"
;
import
{
getShopMerchantList
}
from
"@api/deviceManage"
;
import
{
getParkStore
}
from
"@api/editCustomer"
;
import
{
getParkStore
}
from
"@api/editCustomer"
;
import
{
batchCheckPackage
,
delPackageById
,
getPackageManageList
,
upOrDownPackage
}
from
"@api/packageManage"
;
import
{
batchCheckPackage
,
delPackageById
,
getPackageManageList
,
upOrDownPackage
}
from
"@api/packageManage"
;
import
{
getAreaDataList
,
getBaseSceneCodeList
}
from
"@api/productManage"
;
import
{
mapActions
,
mapState
}
from
"vuex"
;
import
{
mapActions
,
mapState
}
from
"vuex"
;
import
{
BaseData
,
sceneCodeList
,
sceneList
}
from
"@/common/constants.js"
;
import
{
BaseData
,
sceneCodeList
,
sceneList
}
from
"@/common/constants.js"
;
import
{
deepClone
,
Util
}
from
"@/common/util"
;
import
{
deepClone
,
Util
}
from
"@/common/util"
;
import
ApplicableAreaQuerySelect
from
"@/views/goods/components/applicable-area-query-select/index.vue"
;
// import ApplicableAreaSelect from "@/views/goods/components/applicable-area-select/index.vue";
// import ApplicableAreaSelect from "@/views/goods/components/applicable-area-select/index.vue";
import
BatchModifyPackageInventoryDialog
from
"./components/BatchModifyPackageInventoryDialog.vue"
;
import
BatchModifyPackageInventoryDialog
from
"./components/BatchModifyPackageInventoryDialog.vue"
;
import
{
getBaseSceneCodeList
,
getAreaDataList
}
from
"@api/productManage"
import
ApplicableAreaQuerySelect
from
'@/views/goods/components/applicable-area-query-select/index.vue'
export
default
{
export
default
{
name
:
"PackageManage"
,
name
:
"PackageManage"
,
components
:
{
components
:
{
// ApplicableAreaSelect,
// ApplicableAreaSelect,
BatchModifyPackageInventoryDialog
,
BatchModifyPackageInventoryDialog
,
ApplicableAreaQuerySelect
ApplicableAreaQuerySelect
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -194,7 +195,7 @@ export default {
...
@@ -194,7 +195,7 @@ export default {
status
:
""
,
status
:
""
,
goodsSource
:
0
,
goodsSource
:
0
,
financeCheckFlag
:
""
,
financeCheckFlag
:
""
,
inventoryType
:
""
inventoryType
:
""
,
},
},
getListApi
:
getPackageManageList
,
getListApi
:
getPackageManageList
,
showFormData
:
[{
showFormData
:
[{
...
@@ -448,9 +449,9 @@ export default {
...
@@ -448,9 +449,9 @@ export default {
confValue
:
"虚拟"
,
confValue
:
"虚拟"
,
},
},
],
],
baseSceneList
:
[]
baseSceneList
:
[]
,
},
},
applicableAreas
:
[]
applicableAreas
:
[]
,
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -477,7 +478,7 @@ export default {
...
@@ -477,7 +478,7 @@ export default {
// 获取适用区域
// 获取适用区域
this
.
getApplicableArea
();
this
.
getApplicableArea
();
// 获取业务场景数据
// 获取业务场景数据
this
.
getBaseCodeList
()
this
.
getBaseCodeList
()
;
},
},
computed
:
{
computed
:
{
...
mapState
({
...
mapState
({
...
@@ -496,15 +497,15 @@ export default {
...
@@ -496,15 +497,15 @@ export default {
});
});
},
},
getBaseCodeList
()
{
getBaseCodeList
()
{
getBaseSceneCodeList
({}).
then
(
res
=>
{
getBaseSceneCodeList
({}).
then
(
(
res
)
=>
{
this
.
baseData
.
baseSceneList
=
res
||
[]
this
.
baseData
.
baseSceneList
=
res
||
[]
;
this
.
getOptionsList
()
this
.
getOptionsList
()
;
})
})
;
},
},
getApplicableArea
()
{
getApplicableArea
()
{
getAreaDataList
({}).
then
(
res
=>
{
getAreaDataList
({}).
then
(
(
res
)
=>
{
this
.
baseData
.
applicableAreaList
=
res
||
[]
this
.
baseData
.
applicableAreaList
=
res
||
[]
;
})
})
;
},
},
getOptionsList
()
{
getOptionsList
()
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
...
@@ -528,12 +529,15 @@ export default {
...
@@ -528,12 +529,15 @@ export default {
// 处理金额补零
// 处理金额补零
priceFilter
(
num
)
{
priceFilter
(
num
)
{
let
pow
=
10
**
2
;
let
pow
=
10
**
2
;
if
(
this
.
filterEmpty
(
num
))
if
(
this
.
filterEmpty
(
num
))
{
return
"-"
;
return
"-"
;
}
return
(
Math
.
round
(
num
*
pow
)
/
pow
).
toFixed
(
2
);
return
(
Math
.
round
(
num
*
pow
)
/
pow
).
toFixed
(
2
);
},
},
handleAreaSelectChange
(
data
)
{
handleAreaSelectChange
(
data
)
{
this
.
searchForm
.
cityCodeList
=
data
?.
map
(
val
=>
{
return
val
.
cityCode
})
this
.
searchForm
.
cityCodeList
=
data
?.
map
((
val
)
=>
{
return
val
.
cityCode
;
});
},
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
...
@@ -548,7 +552,7 @@ export default {
...
@@ -548,7 +552,7 @@ export default {
financeCheckFlag
:
""
,
financeCheckFlag
:
""
,
inventoryType
:
""
,
inventoryType
:
""
,
};
};
this
.
applicableAreas
=
[]
this
.
applicableAreas
=
[]
;
// 重新查询
// 重新查询
this
.
$refs
.
packageIndexTable
.
refreshTable
(
true
,
true
);
this
.
$refs
.
packageIndexTable
.
refreshTable
(
true
,
true
);
},
},
...
@@ -721,11 +725,11 @@ export default {
...
@@ -721,11 +725,11 @@ export default {
let
params
=
deepClone
(
this
.
searchForm
);
let
params
=
deepClone
(
this
.
searchForm
);
if
(
params
?.
cityCodeList
?.
length
)
{
if
(
params
?.
cityCodeList
?.
length
)
{
params
.
cityCodeList
.
forEach
((
item
,
index
)
=>
{
params
.
cityCodeList
.
forEach
((
item
,
index
)
=>
{
const
name
=
`cityCodeList[
${
index
}
]`
const
name
=
`cityCodeList[
${
index
}
]`
;
params
[
name
]
=
item
params
[
name
]
=
item
;
})
})
;
}
}
delete
params
.
cityCodeList
delete
params
.
cityCodeList
;
params
.
method
=
"dj.api.smartcarlife.merchantPackageGoodsInfo.export.Async"
;
params
.
method
=
"dj.api.smartcarlife.merchantPackageGoodsInfo.export.Async"
;
let
[
merchantIdList
,
yqMerchantIdList
]
=
[[],
[]];
let
[
merchantIdList
,
yqMerchantIdList
]
=
[[],
[]];
merchantIdList
=
[
params
.
merchantId
]
||
undefined
;
merchantIdList
=
[
params
.
merchantId
]
||
undefined
;
...
...
src/views/marketingManagement/marketingActivity/components/tagManageDialog.vue
View file @
15353e7
...
@@ -6,9 +6,9 @@
...
@@ -6,9 +6,9 @@
append-to-body
append-to-body
:visible
.
sync=
"dialogVisible"
>
:visible
.
sync=
"dialogVisible"
>
<el-table
size=
"small"
<el-table
size=
"small"
style=
"overflow-y: auto;"
border
border
:data=
"tagTableData"
>
:data=
"tagTableData"
:max-height=
"maxTableHeight"
>
<el-table-column
label=
"标签名称"
<el-table-column
label=
"标签名称"
prop=
"label"
>
prop=
"label"
>
<template
#
default=
"scope"
>
<template
#
default=
"scope"
>
...
@@ -118,6 +118,10 @@ export default {
...
@@ -118,6 +118,10 @@ export default {
this
.
$emit
(
"update:visible"
,
val
);
this
.
$emit
(
"update:visible"
,
val
);
},
},
},
},
// 动态计算表格最大高度(55vh 转换为像素值)
maxTableHeight
()
{
return
Math
.
round
(
window
.
innerHeight
*
0.55
);
},
},
},
watch
:
{
watch
:
{
...
...
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