Commit 757612b1 by 张立顺

fix: 客户来源售后选项不限场景

1 parent ea62a7de
......@@ -267,8 +267,7 @@
},
{
label: '门店引流-售后',
value: '1',
baseSceneCode: [110101, 110102, 110201, 110202]
value: '1'
}
],
rules: {},
......
......@@ -215,13 +215,7 @@
},
{
"label": "门店引流-售后",
"value": "1",
"baseSceneCode": [
110101,
110102,
110201,
110202
]
"value": "1"
}
]
},
......
......@@ -267,8 +267,7 @@
},
{
label: '门店引流-售后',
value: '1',
baseSceneCode: [110101, 110102, 110201, 110202]
value: '1'
}
],
rules: {},
......
......@@ -215,13 +215,7 @@
},
{
"label": "门店引流-售后",
"value": "1",
"baseSceneCode": [
110101,
110102,
110201,
110202
]
"value": "1"
}
]
},
......
......@@ -772,7 +772,7 @@ def apply_v230_customer_source_values(options: list[dict]) -> None:
option['value'] = mapped_value
if label in {'销售端引流-售前', '交付端引流-售前'}:
option['baseSceneCode'] = [100101, 100102, 100103]
elif label in {'门店引流-售前', '门店引流-售后'}:
elif label == '门店引流-售前':
option['baseSceneCode'] = [110101, 110102, 110201, 110202]
......
......@@ -425,7 +425,7 @@ describe('Store V2.3 delivery-date context visibility', () => {
const values = ctx => getVisibleFieldOptions(sourceField, ctx).map(option => option.value)
assert.deepEqual(values(context(100101, [FIVE_REALM_ID])), [
'0', '3'
'0', '3', '1'
])
assert.deepEqual(values(context(110201, [OTHER_BRAND_ID])), [
'0', '1'
......
......@@ -173,8 +173,7 @@ describe('store daily template V2.3.0 schema', () => {
},
{
label: '门店引流-售后',
value: '1',
baseSceneCode: warrantyAndEquityScenes
value: '1'
}
]
assert.deepEqual(findDeep(daily.list, 'F2-107-3')?.options, expected)
......
......@@ -406,7 +406,6 @@ class StoreV230ConverterTest(unittest.TestCase):
{
'label': '门店引流-售后',
'value': '1',
'baseSceneCode': [110101, 110102, 110201, 110202],
},
],
)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!