|
|
@ -45,7 +45,7 @@ |
|
|
|
:isBusiness="true" |
|
|
|
@onChange="onChange" |
|
|
|
:isShowReduceButton="isShowReduceButton" |
|
|
|
:tableAllSchemas="MoldInspectionAddDetail.allSchemas" |
|
|
|
:tableAllSchemas="MoldInspectionDetailFilter.allSchemas" |
|
|
|
:tableFormRules="MoldInspectionAddDetailRules" |
|
|
|
:tableData="tableData" |
|
|
|
@handleAddTable="handleAddTable" |
|
|
@ -59,7 +59,7 @@ |
|
|
|
<Detail ref="detailRef" |
|
|
|
:isBasic="false" |
|
|
|
:allSchemas="MoldInspectionMain.allSchemas" |
|
|
|
:detailAllSchemas="MoldInspectionDetail.allSchemas" |
|
|
|
:detailAllSchemas="MoldInspectionDetailFilter.allSchemas" |
|
|
|
:detailAllSchemasRules="MoldInspectionDetailRules" |
|
|
|
:apiCreate="MoldInspectionDetailApi.createMoldInspectionDetail" |
|
|
|
:apiUpdate="MoldInspectionDetailApi.updateMoldInspectionDetail" |
|
|
@ -135,6 +135,7 @@ import { |
|
|
|
MoldMaintenanceMainSecRules, |
|
|
|
} from '../moldmaintenancejob/moldMaintenanceMain.data' |
|
|
|
import {MoldAccountsVO} from "@/api/eam/mold/moldAccounts"; |
|
|
|
import { cloneDeep } from 'lodash-es' |
|
|
|
|
|
|
|
// import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
// import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
@ -159,6 +160,7 @@ const verifyFormValue = ref({ |
|
|
|
const openRowValue = ref() |
|
|
|
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL |
|
|
|
const src = ref(BASE_URL + '/jmreport/view/941184370359353344?token=' + getAccessToken()) |
|
|
|
const MoldInspectionDetailFilter = ref(cloneDeep(MoldInspectionDetail)) |
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { |
|
|
|
nextTick(() => { |
|
|
@ -361,6 +363,11 @@ const formsSuccess = async (formType, data) => { |
|
|
|
/** 详情操作 */ |
|
|
|
const detailRef = ref() |
|
|
|
const openDetail = async (row: any, titleName: any, titleValue: any) => { |
|
|
|
if(row.status == 'COMPLETED'){ |
|
|
|
MoldInspectionDetailFilter.value.allSchemas.tableColumns = MoldInspectionDetail.allSchemas.tableColumns.filter(item => item.field !== 'action'); |
|
|
|
}else{ |
|
|
|
MoldInspectionDetailFilter.value.allSchemas.tableColumns = MoldInspectionDetail.allSchemas.tableColumns; |
|
|
|
} |
|
|
|
const factoryList = await selectAllFactoryArea() |
|
|
|
const userListAll = await UserApi.getSimpleUserList() |
|
|
|
row.factoryAreaNumber1 = factoryList.find((account) => account.id == row.factoryAreaNumber)?.name |
|
|
|