Commit 05aac1d5 authored by Bill's avatar Bill

Merge branch 'fix418' into 'v2-220418'

处理价格策略会员等级id显示异常 See merge request linkseeks-design/pro-platform!231
parents d93d60cf 6e4316c4
......@@ -150,6 +150,7 @@ export const transformDataForNiceForm = (value: any, ctx: ISchemaFormActions | I
initValue["commodityMemberLevelList"] = value.commodityMemberLevelList.map(item => ({
roleId: item.memberRoleId,
roleName: item.memberRoleName,
levelId: item.id,
...item,
}))
initValue["shopId"] = value["shopId"]
......
......@@ -25,6 +25,9 @@ export const fileChangeStringArray = (arr) => arr.map(item => {
})
const isAll = (element) => {
return element.some(item => item['provinceCode'] === '0' && item['cityCode'] === '0')
}
/** 传参 数据转换 id:判断是否编辑 */
export const paramsConversionFn = (value) => {
const { pageStatus } = usePageStatus()
......@@ -81,7 +84,8 @@ export const paramsConversionFn = (value) => {
})
}
// 增加不限区域和城市字段
if (value?.inviteTenderAreaList?.length > 0) {
// if (value?.inviteTenderAreaList?.length > 0) {
if (value?.inviteTenderAreaList?.length > 0 && !isAll(value.inviteTenderAreaList)) {
value.isAllArea = false
value['inviteTenderAreaList'] = _value.inviteTenderAreaList.map(item => {
let param = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment