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

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

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