Commit 317a8644 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复编辑状态下 售后订单类型可以编辑的问题

parent af310a86
......@@ -791,6 +791,10 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
// 非代客申请 echo 设置成 false
state.props['x-component-props'].isDefaultAddress = false;
});
addSchemaAction.setFieldState('orderType', (state) => {
state.editable = false;
});
}
});
......
......@@ -656,6 +656,10 @@ const RepairForm: React.FC<BillsFormProps> = ({
addSchemaAction.setFieldState('repairAddress', (state) => {
state.props['x-component-props'].isDefaultAddress = false;
});
addSchemaAction.setFieldState('orderType', (state) => {
state.editable = false;
});
}
});
......
......@@ -861,6 +861,10 @@ const ReturnForm: React.FC<BillsFormProps> = ({
addSchemaAction.setFieldState('*(shippingAddress,pickupAddress)', (state) => {
state.props['x-component-props'].isDefaultAddress = false;
});
addSchemaAction.setFieldState('orderType', (state) => {
state.editable = false;
});
}
});
......
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