diff --git a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts index d9c899cb3..1de46e92e 100644 --- a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts +++ b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts @@ -96,6 +96,9 @@ export const PurchaseClaimRequestMain = useCrudSchemas(reactive([ valueFormat: 'x' } }, + detail: { + dateFormat:'YYYY-MM-DD HH:mm:ss' + } }, { label: '供应商发票申请单号', @@ -203,8 +206,9 @@ export const PurchaseClaimRequestDetail = useCrudSchemas(reactive( table: { }, tableForm:{ - multiple:false,//多选 - isInpuFocusShow: true, // 开启查询弹窗 + multiple: true,//多选 + isInpuFocusShow: false, // 开启查询弹窗 + disabled:true, searchListPlaceholder: '请选择物料代码',// 输入框占位文本 searchField: 'itemCode', // 查询弹窗赋值字段 searchTitle: '供应商物料信息', // 查询弹窗标题 @@ -227,7 +231,7 @@ export const PurchaseClaimRequestDetail = useCrudSchemas(reactive( isMainValue: false }], verificationPage: ItembasicApi.getItemListByCodes, // tableForm下方输入框校验失去焦点之后是否正确的方法 - isShowTableFormSearch: false, //tableForm下方是否出现输入框 + isShowTableFormSearch: true, //tableForm下方是否出现输入框 verificationParams: [{ key: 'itemCode', action: '==', diff --git a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue index c1b32b578..69b98c380 100644 --- a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue +++ b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue @@ -50,7 +50,7 @@ { /** 添加/修改操作 */ const formRef = ref() -const openForm = async (type: string, row?: number) => { +const openForm = async (type: string, row?: any) => { tableData.value = [] // 重置明细数据 + if (row?.id) { + PurchaseClaimRequestMain.allSchemas.formSchema.forEach(item => { + if (item.field == 'supplierCode') { + item.componentProps.isSearchList = false + } + }) + } else { + PurchaseClaimRequestMain.allSchemas.formSchema.forEach(item => { + if (item.field == 'supplierCode') { + item.componentProps.isSearchList = true + } + }) + } formRef.value.open(type, row) } /** 详情操作 */