Browse Source

SBBJ-1044申请审批,关闭后应明细里应去掉编辑、删除按钮

master
zhaoyiran 4 weeks ago
parent
commit
79fc048234
  1. 16
      src/views/eam/item/applicationRecord/index.vue

16
src/views/eam/item/applicationRecord/index.vue

@ -29,8 +29,10 @@
<!-- 表单弹窗添加/修改 -->
<BasicForm ref="formRef" @success="getList" :rules="ApplicationRecordMainRules"
:formAllSchemas="ApplicationRecordMain.allSchemas" :tableAllSchemas="ApplicationRecordDetail.allSchemas"
:tableFormRules="ApplicationRecordDetailRules" :tableData="tableData"
:formAllSchemas="ApplicationRecordMain.allSchemas"
:tableAllSchemas="ApplicationRecordDetailFilter.allSchemas"
:tableFormRules="ApplicationRecordDetailRules"
:tableData="tableData"
:apiUpdate="ApplicationRecordMainApi.updateApplicationRecordMain"
:apiCreate="ApplicationRecordMainApi.createApplicationRecordMain" :isBusiness="true"
@handleAddTable="handleAddTable" @handleDeleteTable="handleDeleteTable" @searchTableSuccess="searchTableSuccess"
@ -38,7 +40,7 @@
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="false" :allSchemas="ApplicationRecordMain.allSchemas"
:detailAllSchemas="ApplicationRecordDetail.allSchemas" :detailAllSchemasRules="ApplicationRecordDetailRules"
:detailAllSchemas="ApplicationRecordDetailFilter.allSchemas" :detailAllSchemasRules="ApplicationRecordDetailRules"
:apiCreate="ApplicationRecordDetailApi.createApplicationRecordDetail"
:apiUpdate="ApplicationRecordDetailApi.updateApplicationRecordDetail"
:apiPage="ApplicationRecordDetailApi.getApplicationRecordDetailPage"
@ -68,6 +70,7 @@
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import approveDetail from '@/components/Detail/src/approveDetail.vue'
import { cloneDeep } from 'lodash-es'
//
defineOptions({ name: 'ApplicationRecord' })
@ -83,7 +86,7 @@
const updataTableColumns = (val) => {
tableColumns.value = val
}
const ApplicationRecordDetailFilter = ref(cloneDeep(ApplicationRecordDetail))
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(async () => {
@ -220,6 +223,11 @@
/** 详情操作 */
const detailRef = ref()
const openDetail = (row : any, titleName : any, titleValue : any) => {
if(row.status == '4'){
ApplicationRecordDetailFilter.value.allSchemas.tableColumns = ApplicationRecordDetail.allSchemas.tableColumns.filter(item => item.field !== 'action');
}else{
ApplicationRecordDetailFilter.value.allSchemas.tableColumns = ApplicationRecordDetail.allSchemas.tableColumns;
}
detailRef.value.openDetail(row, titleName, titleValue, 'basicApplicationRecordMain')
}
const detailRef1 = ref()

Loading…
Cancel
Save