Browse Source

YT-1096YT-1088YT-1091

intex
zhang_li 4 days ago
parent
commit
f60929923f
  1. 10
      src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts
  2. 17
      src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue

10
src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts

@ -96,6 +96,9 @@ export const PurchaseClaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x' valueFormat: 'x'
} }
}, },
detail: {
dateFormat:'YYYY-MM-DD HH:mm:ss'
}
}, },
{ {
label: '供应商发票申请单号', label: '供应商发票申请单号',
@ -203,8 +206,9 @@ export const PurchaseClaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
}, },
tableForm:{ tableForm:{
multiple:false,//多选 multiple: true,//多选
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: false, // 开启查询弹窗
disabled:true,
searchListPlaceholder: '请选择物料代码',// 输入框占位文本 searchListPlaceholder: '请选择物料代码',// 输入框占位文本
searchField: 'itemCode', // 查询弹窗赋值字段 searchField: 'itemCode', // 查询弹窗赋值字段
searchTitle: '供应商物料信息', // 查询弹窗标题 searchTitle: '供应商物料信息', // 查询弹窗标题
@ -227,7 +231,7 @@ export const PurchaseClaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
isMainValue: false isMainValue: false
}], }],
verificationPage: ItembasicApi.getItemListByCodes, // tableForm下方输入框校验失去焦点之后是否正确的方法 verificationPage: ItembasicApi.getItemListByCodes, // tableForm下方输入框校验失去焦点之后是否正确的方法
isShowTableFormSearch: false, //tableForm下方是否出现输入框 isShowTableFormSearch: true, //tableForm下方是否出现输入框
verificationParams: [{ verificationParams: [{
key: 'itemCode', key: 'itemCode',
action: '==', action: '==',

17
src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue

@ -50,7 +50,7 @@
<!-- 表单弹窗添加/修改 --> <!-- 表单弹窗添加/修改 -->
<BasicForm <BasicForm
ref="formRef" ref="formRef"
:isOpenSearchTable="false" :isOpenSearchTable="true"
fieldTableColumn="itemCode" fieldTableColumn="itemCode"
:rules="PurchaseClaimRequestMainRules" :rules="PurchaseClaimRequestMainRules"
:formAllSchemas="PurchaseClaimRequestMain.allSchemas" :formAllSchemas="PurchaseClaimRequestMain.allSchemas"
@ -338,8 +338,21 @@ const handleReject = async (masterId: number) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const formRef = ref() const formRef = ref()
const openForm = async (type: string, row?: number) => { const openForm = async (type: string, row?: any) => {
tableData.value = [] // 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) formRef.value.open(type, row)
} }
/** 详情操作 */ /** 详情操作 */

Loading…
Cancel
Save