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 e73c2a3b
authored
Jul 03, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
上架管理/套餐管理列表查看门店未显示el-popover。elementUI版本变更导致
1 parent
42268d75
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
77 deletions
src/views/goods/grounding/index.vue
src/views/goods/packageManage/index.vue
src/views/goods/grounding/index.vue
View file @
e73c2a3
...
@@ -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 @
e73c2a3
...
@@ -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
;
...
...
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