|
|
@ -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() |
|
|
|