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

fix: 处理询价下单再选有物流的询价单下单无法显示地址是问题

parent 01d94bf6
......@@ -6,7 +6,7 @@ import { createFormActions, registerVirtualBox, useFormSpy } from '@formily/antd
import { SaveOutlined, LinkOutlined, PlusOutlined } from '@ant-design/icons'
import NiceForm from '@/components/NiceForm'
import { orderAddSchema } from './schema'
import { useModelTypeChange, useEditHideField, useOrderFormInitEffect, useProductTableChangeForPay, useOrderDeliverTimeEffect, JumpFormValueType } from './effects'
import { useModelTypeChange, useEditHideField, useOrderFormInitEffect, useProductTableChangeForPay, useOrderDeliverTimeEffect, JumpFormValueType, useProductAddress } from './effects'
import { filterProductDataById, orderCombination, orderTypeLabelMap, procurementProcessField, procurementRenderField, procurmentRenderInit } from './constant'
import { OrderModalType } from '@/constants/order'
import InquiryModalTable from './components/inquiryModalTable'
......@@ -522,7 +522,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = () => {
})
}
})
useOrderFormInitEffect(ctx)
// useOrderFormInitEffect(ctx)
useModelTypeChange(state => {
const { value } = state
// 选择某种类型时, 需显示对应的订单类型
......@@ -546,6 +546,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = () => {
$('onFieldValueChange', 'quoteNo').subscribe(state => {
const modelType = ctx.getFieldValue('orderMode')
useProductAddress(ctx)
if(state.value && modelType === OrderModalType["CONSOLIDATED_ORDER"]) {
addSchemaAction.setFieldState('products', productState => {
productState.props["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