Commit c3cb7ea4 authored by 前端-许佳敏's avatar 前端-许佳敏

fix:新增订单后-删除进货单id

parent 34b56a47
......@@ -137,6 +137,8 @@ export const useOrderFormInitEffect = (ctx: ISchemaFormActions | ISchemaFormAsyn
ctx.setFieldValue('supplyMembersId', initValue.supplyMembersId)
ctx.setFieldValue('supplyMembersRoleId', initValue.supplyMembersRoleId)
ctx.setFieldValue('supplyMembersName', initValue.supplyMembersName)
initValue.idList && ctx.setFieldValue('idList', initValue.idList)
initValue.productType && ctx.setFieldValue('productType', initValue.productType)
ctx.setFieldValue('orderProductRequests', await filterProductDataById([], productInfo.map(v => {
return {
......
......@@ -310,11 +310,12 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
}}
effects={($, ctx) => {
$('onFormMount').subscribe(() => {
if (id) {
if (id || modelType) {
ctx.setFieldState('orderModel', state => {
state.props["x-component-props"] = {
disabled: true
}
state.editable = false
// state.props["x-component-props"] = {
// disabled: true
// }
})
}
})
......
......@@ -176,6 +176,14 @@ const basicInfo: ISchema = {
type: 'string',
display: false
},
idList: {
type: 'array',
display: false
},
productType: {
type: 'number',
display: false
},
orderNo: {
type: 'string',
title: '订单编号',
......
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