|
|
@ -4,7 +4,7 @@ import * as SupplierApi from '@/api/wms/supplier' |
|
|
|
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' |
|
|
|
import * as SupplieritemApi from '@/api/wms/supplieritem' |
|
|
|
import { Supplieritem } from '@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data' |
|
|
|
import {validateHanset,validateEmail} from '@/utils/validator' |
|
|
|
import { validateHanset, validateEmail } from '@/utils/validator' |
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
/** |
|
|
@ -44,7 +44,15 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
}], |
|
|
|
verificationParams: [{ |
|
|
|
key: 'code', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: 'true', |
|
|
|
isFormModel: true |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -421,7 +429,6 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
multiple:true,//多选
|
|
|
|
isInpuFocusShow: true, |
|
|
|
searchListPlaceholder: '请选择供应商物料', |
|
|
|
isShowTableFormSearch: true, |
|
|
|
searchField: 'itemCode', |
|
|
|
searchTitle: '供应商物料信息', |
|
|
|
searchAllSchemas: Supplieritem.allSchemas, |
|
|
@ -435,6 +442,18 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}], |
|
|
|
verificationPage: SupplieritemApi.getSupplierItemListByCodes, // tableForm下方输入框校验失去焦点之后是否正确的方法
|
|
|
|
isShowTableFormSearch: true, //tableForm下方是否出现输入框
|
|
|
|
isRepeat: true,//tableForm下方输入框是否可以重复添加该条数据
|
|
|
|
// 失去焦点校验参数
|
|
|
|
verificationParams: [{ |
|
|
|
key: 'itemCode', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: 'true', |
|
|
|
isFormModel: true, |
|
|
|
}] |
|
|
|
}, |
|
|
|
form: { |
|
|
@ -455,6 +474,15 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}], |
|
|
|
// 失去焦点校验参数
|
|
|
|
verificationParams: [{ |
|
|
|
key: 'code', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: 'true', |
|
|
|
isFormModel: true, |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|