Browse Source

SBBJ-784备件盘点,新增报异常

master
zhang_li 1 month ago
parent
commit
86d3f7da73
  1. 3
      src/views/eam/item/countRecord/countRecord.data.ts
  2. 15
      src/views/eam/item/transaction/index.vue
  3. 18
      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,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
}
},
{
label: '操作',

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

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

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

@ -83,13 +83,13 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
isSearch: false,
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}
// {
// label: '操作',
// field: 'action',
// isForm: false,
// table: {
// width: 150,
// fixed: 'right'
// }
// }
]))

Loading…
Cancel
Save