zhangli 1 year ago
parent
commit
37d511100e
  1. 32
      src/utils/disposition/tableColumns.ts

32
src/utils/disposition/tableColumns.ts

@ -1,5 +1,6 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import { validateTwoNum } from "@/utils/validator";
/**
* @returns {Array}
*/
@ -5915,7 +5916,10 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
label: '原因',
field: 'reason',
dictType: DICT_TYPE.PURCHASE_RETURN_REASON,
dictClass: 'string'
dictClass: 'string',
tableForm:{
type:'Select',
}
},
{
label: '单价',
@ -5923,7 +5927,10 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
},
{
label: '金额',
field: 'amount'
field: 'amount',
tableForm:{
type:'number',
}
},
{
label: '单据号',
@ -5964,6 +5971,7 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
{
label: '创建者',
field: 'creator',
isTableForm:false
},
{
label: '创建时间',
@ -5972,11 +5980,13 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
}
},
isTableForm:false
},
{
label: '最后更新者',
field: 'updater',
isTableForm:false
},
{
label: '最后更新时间',
@ -5985,10 +5995,24 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
}
},
isTableForm:false
},
]))
export const PurchaseclaimRequestDetailRules = reactive({
batch: [
{ required: true, message: '请输入批次', trigger: 'blur' }
],
poNumber: [
{ required: true, message: '请输入订单号码', trigger: 'blur' }
],
amount: [
{ required: true, message: '请输入金额', trigger: 'blur' },
{ validator: validateTwoNum, trigger: "blur"}
],
})
/**
* @returns {Array}
*/

Loading…
Cancel
Save