Browse Source

BUG修改

hella_online_20240829
parent
commit
f48cbf6529
  1. 30
      src/views/eam/equipmentMainPart/equipmentMainPart.data.ts
  2. 44
      src/views/eam/itemAccounts/index.vue
  3. 3
      src/views/eam/sparePartsApplyMain/SparePartsApply.data.ts
  4. 10
      src/views/eam/sparePartsApplyMain/index.vue

30
src/views/eam/equipmentMainPart/equipmentMainPart.data.ts

@ -5,10 +5,11 @@ import { dateFormatter } from '@/utils/formatTime'
export const EquipmentMainPartRules = reactive({
name: [required],
code: [required],
type: [required],
type: [required]
})
export const EquipmentMainPart = useCrudSchemas(reactive<CrudSchema[]>([
export const EquipmentMainPart = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: 'id',
field: 'id',
@ -16,19 +17,19 @@ export const EquipmentMainPart = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
isDetail: false
},
{
label: '编码',
field: 'code',
sort: 'custom',
isSearch: true,
isSearch: true
},
{
label: '名称',
field: 'name',
sort: 'custom',
isSearch: true,
isSearch: true
},
{
label: '类型',
@ -55,7 +56,7 @@ export const EquipmentMainPart = useCrudSchemas(reactive<CrudSchema[]>([
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
isForm: false,
isForm: false
},
{
label: '部门id',
@ -64,13 +65,13 @@ export const EquipmentMainPart = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
isDetail: false
},
{
label: '备注',
field: 'remark',
sort: 'custom',
isSearch: false,
isSearch: false
},
{
label: '地点ID',
@ -79,7 +80,7 @@ export const EquipmentMainPart = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
isDetail: false
},
{
label: '是否启用',
@ -91,7 +92,7 @@ export const EquipmentMainPart = useCrudSchemas(reactive<CrudSchema[]>([
isDetail: false,
isSearch: false,
isTableForm: false,
isForm: false,
isForm: false
},
{
label: '删除时间',
@ -116,7 +117,7 @@ export const EquipmentMainPart = useCrudSchemas(reactive<CrudSchema[]>([
type: 'datetime',
valueFormat: 'x'
}
},
}
},
{
label: '删除人id',
@ -125,7 +126,7 @@ export const EquipmentMainPart = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
isDetail: false
},
{
label: '并发乐观锁',
@ -138,7 +139,7 @@ export const EquipmentMainPart = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'InputNumber',
value: 0
},
}
},
{
label: '操作',
@ -149,4 +150,5 @@ export const EquipmentMainPart = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'right'
}
}
]))
])
)

44
src/views/eam/itemAccounts/index.vue

@ -31,9 +31,9 @@
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{ row }">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
<template #itemNumber="{ row }">
<el-button type="primary" link @click="openDetail(row, '代码', row.itemNumber)">
<span>{{ row.itemNumber }}</span>
</el-button>
</template>
<template #action="{ row }">
@ -42,13 +42,6 @@
@button-base-click="buttonTableClick($event, row)"
/>
</template>
<!-- <template #upload="{ row }">
<ButtonBase
v-if="row.filePathList != null && row.filePathList.length != 0"
:Butttondata="butttondataView(row)"
@button-base-click="buttonTableClick($event, row)"
/>
</template> -->
</Table>
</ContentWrap>
@ -67,7 +60,20 @@
<SearchTable ref="searchTableRef" @searchTableSuccess="submitItem" />
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="ItemAccounts.allSchemas" />
<DetailLedger
ref="detailRef"
:isBasic="true"
:allSchemas="ItemAccounts.allSchemas"
:subTabs="subTabList"
:operationRecordList="operationRecordList"
@handleOperationTabsChange="handleOperationTabsChange"
:detailAllSchemas="detailAllSchemas"
:apiPage="apiPage"
:dialogApiPage="dialogApiPage"
:dialogAllSchemas="dialogAllSchemas"
:dynamicInfoFields="dynamicInfoFields"
funcCode="tool_mould_file"
/>
<!-- 导入 -->
<ImportForm
@ -309,6 +315,20 @@ const openForm = (type: string, row?: any) => {
urls.value = row.filePathList
viewKey.value += 1
} else {
if (type == 'create') {
ItemAccounts.allSchemas.formSchema.forEach((item) => {
if (item.field == 'qty') {
item.componentProps.disabled = false
}
})
} else if (type == 'update') {
ItemAccounts.allSchemas.formSchema.forEach((item) => {
if (item.field == 'qty') {
item.componentProps.disabled = true
}
})
}
basicFormRef.value.open(type, row)
}
}
@ -340,7 +360,7 @@ const formsSuccess = async (formType, data) => {
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue, 'basicItemAccounts')
detailRef.value.openDetail(row, titleName, titleValue, 'ItemAccounts')
}
/** 删除按钮操作 */

3
src/views/eam/sparePartsApplyMain/SparePartsApply.data.ts

@ -208,7 +208,7 @@ export const SparePartsApplyMain = useCrudSchemas(
isForm: false
},
{
label: '操作11',
label: '操作',
field: 'action',
isForm: false,
table: {
@ -257,7 +257,6 @@ export const SparePartsApplyDetail = useCrudSchemas(
searchListPlaceholder: '请选择备件编号', // 输入框占位文本
searchField: 'itemNumber', // 查询弹窗赋值字段
searchTitle: '备件信息', // 查询弹窗标题
searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类
searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法
searchCondition: [

10
src/views/eam/sparePartsApplyMain/index.vue

@ -254,11 +254,11 @@ const butttondata = (row) => {
defaultButtons.mainListApproveBtn({
hide: isShowStatusButton(row, ['3']),
hasPermi: 'eam:spare-parts-in-location-main:approve'
}), //
defaultButtons.mainListFinishBtn({
hide: isShowStatusButton(row, ['4']),
hasPermi: 'eam:spare-parts-in-location-main:finish'
}) //
}) //
// defaultButtons.mainListFinishBtn({
// hide: isShowStatusButton(row, ['4']),
// hasPermi: 'eam:spare-parts-in-location-main:finish'
// }) //
]
}

Loading…
Cancel
Save