Commit cb26145c authored by XieZhiXiong's avatar XieZhiXiong

Merge branch 'feat-v2-220518-order' into 'v2-220518'

chore: 修改订单物料置空逻辑 See merge request linkseeks-design/pro-platform!648
parents 3282fb1c f99f10b9
......@@ -61,7 +61,11 @@ const ContractModalTable:React.FC<ContractModalTableProps> = (props) => {
const handleConfirm = () => {
const item = rowSelectionCtl.selectRow[0]
if (item) {
schemaAction.setFieldValue('products', [])
const productValue = schemaAction.getFieldValue('products')
// 有值才置空,否则会触发错误提示
if (productValue && productValue.length) {
schemaAction.setFieldValue('products', [])
}
schemaAction.setFieldValue('contractNo', item.contractNo)
schemaAction.setFieldValue('contract', item)
schemaAction.setFieldValue('vendorMemberName', item.partyBName)
......
......@@ -374,19 +374,6 @@ const OrderMaterialsDrawer: React.ForwardRefRenderFunction<OrderMaterialsDrawerR
}}
destroyOnClose
>
{/* <NiceForm
previewPlaceholder=" "
onSubmit={handleSubmit}
actions={formActions}
value={{}}
components={{
MaterialsListField,
}}
schema={formSchema}
style={{
height: '100%',
}}
/> */}
<PolymericTable
rowKey="detailId"
columns={columns}
......
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