ljlong_2630 1 month ago
parent
commit
e7696169ba
  1. 3
      src/views/eam/item/countRecord/countRecord.data.ts
  2. 11
      src/views/eam/item/transaction/index.vue
  3. 21
      src/views/eam/item/transaction/transaction.data.ts

3
src/views/eam/item/countRecord/countRecord.data.ts

@ -74,6 +74,9 @@ export const CountRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
isForm: false, isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
}
}, },
{ {
label: '操作', label: '操作',

11
src/views/eam/item/transaction/index.vue

@ -97,7 +97,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'item:transaction:create'}), // // defaultButtons.defaultAddBtn({hasPermi:'item:transaction:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'item:transaction:import'}), // defaultButtons.defaultImportBtn({hasPermi:'item:transaction:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'item:transaction:export'}), // defaultButtons.defaultExportBtn({hasPermi:'item:transaction:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
@ -131,8 +131,8 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = [ const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'item:transaction:update'}), // // defaultButtons.mainListEditBtn({hasPermi:'item:transaction:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'item:transaction:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'item:transaction:delete'}), //
] ]
// - // -
@ -152,6 +152,7 @@ const openForm = (type: string, row?: any) => {
// form // form
const formsSuccess = async (formType, data) => { const formsSuccess = async (formType, data) => {
try {
var isHave =Transaction.allSchemas.formSchema.some(function (item) { var isHave =Transaction.allSchemas.formSchema.some(function (item) {
return item.field === 'activeTime' || item.field === 'expireTime'; return item.field === 'activeTime' || item.field === 'expireTime';
}); });
@ -172,6 +173,10 @@ const formsSuccess = async (formType,data) => {
} }
basicFormRef.value.dialogVisible = false basicFormRef.value.dialogVisible = false
getList() getList()
} finally {
basicFormRef.value.formLoading = false
}
} }
/** 详情操作 */ /** 详情操作 */

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

@ -17,7 +17,7 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
}, },
{ {
label: '库位编', label: '库位编',
field: 'locationNumber', field: 'locationNumber',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -74,6 +74,7 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
label: '计量单位', label: '计量单位',
field: 'uom', field: 'uom',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.UOM,
isSearch: false, isSearch: false,
}, },
{ {
@ -82,13 +83,13 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
}, },
{ // {
label: '操作', // label: '操作',
field: 'action', // field: 'action',
isForm: false, // isForm: false,
table: { // table: {
width: 150, // width: 150,
fixed: 'right' // fixed: 'right'
} // }
} // }
])) ]))

Loading…
Cancel
Save