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

fix: 禁用采购下单积分类型

parent f453f17b
......@@ -61,6 +61,7 @@ const SetPrice:React.FC<IProps> = (props) => {
const [curretSetPriceRow, setCurrentSetPriceRow] = useState<any>()
const [ladderPrice, setLadderPrice] = useState(false)
const [loading, setLoading] = useState<boolean>(false)
const [disabledMemberPrice, setDisabledMemberPrice] = useState<boolean>(false)
const { ChannelProudctStore } = store
const {
......@@ -81,6 +82,16 @@ const SetPrice:React.FC<IProps> = (props) => {
}, [priceTableData])
useEffect(() => {
if(productSelectRowInStore.priceType === 3) {
// 积分
formPrice.setFieldsValue({isMemberPrice: false})
setDisabledMemberPrice(true)
} else {
setDisabledMemberPrice(false)
}
}, [productSelectRowInStore])
useEffect(() => {
if(visibleAddSpec)
fetchSpecData()
}, [visibleAddSpec])
......@@ -333,7 +344,7 @@ const SetPrice:React.FC<IProps> = (props) => {
}
valuePropName="checked"
>
<Checkbox>允许使用会员折扣价购买</Checkbox>
<Checkbox disabled={disabledMemberPrice}>允许使用会员折扣价购买</Checkbox>
</Form.Item>
</Form>
<Button onClick={handleAddButton} style={{width:'100%', marginBottom: 24, backgroundColor: '#fafbfc'}}>
......
......@@ -155,7 +155,7 @@ const AddBrand: React.FC<{}> = () => {
const handleApplyCheck = () => {
setDisabledCheck(true)
PublicApi.postProductBrandApplyCheckBrand({id: responseId}).then(res=>{
setDisabledCheck(false)
// setDisabledCheck(false)
setCurrentStep(1)
setTimeout(() => {
history.goBack()
......
......@@ -167,6 +167,10 @@ export const useOrderFormInitEffect = (ctx: ISchemaFormActions | ISchemaFormAsyn
if (orderCombination.queryPageOrderModal.includes(assign.value) && typeEnums !== assign.value) {
assign.disabled = true
}
// 禁用积分
if (assign.value === 24 || assign.value === 25) {
assign.disabled = true
}
} else {
assign.disabled = true
}
......
......@@ -505,7 +505,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
}
ctx.reset({
validate: false,
selector: '*(quotationNo,supplyMembersName,orderProductRequests,orderThe)'
selector: '*(quotationNo,supplyMembersName,supplyMembersId,orderProductRequests,orderThe)'
})
// 清空弹窗所选的值
productRef.current.rowSelectionCtl.setSelectRow([])
......
......@@ -79,7 +79,7 @@ const basicInfo: ISchema = {
orderModel: {
type: 'string',
required: true,
enum: GlobalConfig.web.orderMode.map(v => { delete v.platformType ;return v}),
enum: GlobalConfig.web.orderMode.map(v => { delete v.platformType; return v}),
title: '下单模式',
"x-linkages": [
// 联动显示单据字段
......
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