Commit a3eef545 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 商品添加“赠品”定价类型

parent f3c00839
......@@ -719,10 +719,12 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
<Radio value={1}>现货价格</Radio>
<Radio value={2}>价格需要询价</Radio>
<Radio value={3}>积分兑换商品</Radio>
<Radio value={4}>赠品</Radio>
</Radio.Group> : <Radio.Group onChange={handlePlanPriceChange}>
<Radio value={1}>现货价格</Radio>
<Radio value={2}>价格需要询价</Radio>
<Radio value={3}>积分兑换商品</Radio>
<Radio value={4}>赠品</Radio>
</Radio.Group>
}
</Form.Item>
......@@ -739,7 +741,7 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
valuePropName="checked"
initialValue={true}
>
<Checkbox disabled={planPrice !== 1}>允许使用会员折扣价购买</Checkbox>
<Checkbox disabled={(planPrice !== 1)&&(planPrice !== 4)}>允许使用会员折扣价购买</Checkbox>
</Form.Item>
<Form.Item
name="isTax"
......@@ -772,7 +774,7 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
</Form>
{/* 批量设置按钮 */}
{
planPrice != 2 && productName && <Button type="text" style={{float: 'right'}} onClick={clickBatchSetPrice}><SettingOutlined />{planPrice === 3 ? '批量设置积分' : '批量设置价格'}</Button>
planPrice !== 2 && productName && <Button type="text" style={{float: 'right'}} onClick={clickBatchSetPrice}><SettingOutlined />{planPrice === 3 ? '批量设置积分' : '批量设置价格'}</Button>
}
<Table
rowKey="索引"
......
......@@ -47,6 +47,7 @@ export const priceTypeLabel = [
'现货价格',
'价格需要询价',
'积分兑换商品',
'赠品',
]
/** 商品物流类型 */
......
......@@ -58,6 +58,10 @@ export const productSchema: ISchema = {
{
label: '积分兑换商品',
value: 3,
},
{
label: '赠品',
value: 4,
}
],
'x-component-props': {
......
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