Browse Source

修复bug

master
songguoqiang 6 months ago
parent
commit
1454463d23
  1. 1
      src/views/eam/item/itemOutLocation/index.vue
  2. 17
      src/views/eam/item/transaction/transaction.data.ts

1
src/views/eam/item/itemOutLocation/index.vue

@ -91,6 +91,7 @@ const searchTableSuccess = async(formField, searchField, val, formRef) => {
setV['locationName'] = val[0]['name'] setV['locationName'] = val[0]['name']
setV['itemName'] = aa.itemName setV['itemName'] = aa.itemName
setV['itemNumber'] = aa.itemNumber setV['itemNumber'] = aa.itemNumber
setV['qty'] = aa.qty
ItemOutLocation.allSchemas.formSchema.find(item => item.field == 'qty').componentProps.max = aa.qty// ItemOutLocation.allSchemas.formSchema.find(item => item.field == 'qty').componentProps.max = aa.qty//
formRef.setValues(setV) formRef.setValues(setV)
}) })

17
src/views/eam/item/transaction/transaction.data.ts

@ -1,4 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
// 表单校验 // 表单校验
export const Rules = reactive({ export const Rules = reactive({
@ -82,6 +83,22 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
}, },
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
isForm: false
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

Loading…
Cancel
Save