|
@ -1,5 +1,6 @@ |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
|
|
import { validateTwoNum } from "@/utils/validator"; |
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 基础物料信息 |
|
|
* @returns {Array} 基础物料信息 |
|
|
*/ |
|
|
*/ |
|
@ -5915,7 +5916,10 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
label: '原因', |
|
|
label: '原因', |
|
|
field: 'reason', |
|
|
field: 'reason', |
|
|
dictType: DICT_TYPE.PURCHASE_RETURN_REASON, |
|
|
dictType: DICT_TYPE.PURCHASE_RETURN_REASON, |
|
|
dictClass: 'string' |
|
|
dictClass: 'string', |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
type:'Select', |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '单价', |
|
|
label: '单价', |
|
@ -5923,7 +5927,10 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '金额', |
|
|
label: '金额', |
|
|
field: 'amount' |
|
|
field: 'amount', |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
type:'number', |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '单据号', |
|
|
label: '单据号', |
|
@ -5964,6 +5971,7 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
{ |
|
|
{ |
|
|
label: '创建者', |
|
|
label: '创建者', |
|
|
field: 'creator', |
|
|
field: 'creator', |
|
|
|
|
|
isTableForm:false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建时间', |
|
|
label: '创建时间', |
|
@ -5972,11 +5980,13 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
} |
|
|
}, |
|
|
|
|
|
isTableForm:false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新者', |
|
|
label: '最后更新者', |
|
|
field: 'updater', |
|
|
field: 'updater', |
|
|
|
|
|
isTableForm:false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新时间', |
|
|
label: '最后更新时间', |
|
@ -5985,10 +5995,24 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
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} 采购索赔记录主表 |
|
|
* @returns {Array} 采购索赔记录主表 |
|
|
*/ |
|
|
*/ |
|
|