|
|
@ -15,7 +15,6 @@ |
|
|
|
<ContentWrap> |
|
|
|
<!-- 默认单表展现 --> |
|
|
|
<Descriptions |
|
|
|
v-if="isBasic && !tabsExtend" |
|
|
|
:data="detailData" |
|
|
|
:schema="allSchemas.detailSchema" |
|
|
|
:columns="2" |
|
|
@ -29,12 +28,12 @@ |
|
|
|
<!-- 单表切换tabs 展现table --> |
|
|
|
<Table |
|
|
|
v-if="isBasic && tabsExtend" |
|
|
|
:columns="detailAllSchemasRef.tableColumns" |
|
|
|
:data="tableObjectRef.tableList" |
|
|
|
:loading="tableObjectRef.loading" |
|
|
|
:pagination="{ total: tableObjectRef.total }" |
|
|
|
v-model:pageSize="tableObjectRef.pageSize" |
|
|
|
v-model:currentPage="tableObjectRef.currentPage" |
|
|
|
:columns="teamSchemasRef.tableColumns" |
|
|
|
:data="teamObjectRef.tableList" |
|
|
|
:loading="teamObjectRef.loading" |
|
|
|
:pagination="{ total: teamObjectRef.total }" |
|
|
|
v-model:pageSize="teamObjectRef.pageSize" |
|
|
|
v-model:currentPage="teamObjectRef.currentPage" |
|
|
|
> |
|
|
|
<template> |
|
|
|
<div>1</div> |
|
|
@ -42,12 +41,12 @@ |
|
|
|
</Table> |
|
|
|
<Table |
|
|
|
v-if="!isBasic && fromeWhere != 'Equipment'" |
|
|
|
:columns="detailAllSchemasRef.tableColumns" |
|
|
|
:data="tableObjectRef.tableList" |
|
|
|
:loading="tableObjectRef.loading" |
|
|
|
:pagination="{ total: tableObjectRef.total }" |
|
|
|
v-model:pageSize="tableObjectRef.pageSize" |
|
|
|
v-model:currentPage="tableObjectRef.currentPage" |
|
|
|
:columns="teamSchemasRef.tableColumns" |
|
|
|
:data="teamObjectRef.tableList" |
|
|
|
:loading="teamObjectRef.loading" |
|
|
|
:pagination="{ total: teamObjectRef.total }" |
|
|
|
v-model:pageSize="teamObjectRef.pageSize" |
|
|
|
v-model:currentPage="teamObjectRef.currentPage" |
|
|
|
> |
|
|
|
<template> |
|
|
|
<div>1</div> |
|
|
@ -55,12 +54,12 @@ |
|
|
|
</Table> |
|
|
|
<Table |
|
|
|
v-if="!isBasic && fromeWhere != 'Process'" |
|
|
|
:columns="detailAllSchemasRef.tableColumns" |
|
|
|
:data="tableObjectRef.tableList" |
|
|
|
:loading="tableObjectRef.loading" |
|
|
|
:pagination="{ total: tableObjectRef.total }" |
|
|
|
v-model:pageSize="tableObjectRef.pageSize" |
|
|
|
v-model:currentPage="tableObjectRef.currentPage" |
|
|
|
:columns="teamSchemasRef.tableColumns" |
|
|
|
:data="teamObjectRef.tableList" |
|
|
|
:loading="teamObjectRef.loading" |
|
|
|
:pagination="{ total: teamObjectRef.total }" |
|
|
|
v-model:pageSize="teamObjectRef.pageSize" |
|
|
|
v-model:currentPage="teamObjectRef.currentPage" |
|
|
|
> |
|
|
|
<template> |
|
|
|
<div>1</div> |
|
|
@ -68,8 +67,8 @@ |
|
|
|
</Table> |
|
|
|
<DetailTable |
|
|
|
v-if="!isBasic && fromeWhere == 'Production' && isShowDrawer" |
|
|
|
:columns="detailAllSchemasRef.tableColumns" |
|
|
|
:data="tableObjectRef.tableList" |
|
|
|
:columns="teamSchemasRef.tableColumns" |
|
|
|
:data="teamObjectRef.tableList" |
|
|
|
:allList="allList" |
|
|
|
:countScopeType="countScopeType" |
|
|
|
:key="updateKey" |
|
|
@ -120,7 +119,7 @@ import TableHead from "@/components/TableHead/src/TableHead.vue"; |
|
|
|
import ChangeRecord from "@/components/ChangeRecord/src/ChangeRecord.vue"; |
|
|
|
import {Team} from "@/utils/disposition/formFields"; |
|
|
|
|
|
|
|
defineOptions({ name: 'BindDetail' }) |
|
|
|
defineOptions({ name: 'Detail' }) |
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
const { t } = useI18n() // 国际化 |
|
|
@ -144,6 +143,12 @@ const props = defineProps({ |
|
|
|
required: false, |
|
|
|
default: false |
|
|
|
}, |
|
|
|
// 列表 相关信息 |
|
|
|
tableAllSchemas: { |
|
|
|
type: Array, |
|
|
|
required: true, |
|
|
|
default: null |
|
|
|
}, |
|
|
|
// 表单,列表 相关信息 |
|
|
|
allSchemas: { |
|
|
|
type: Object, |
|
|
@ -265,6 +270,11 @@ const props = defineProps({ |
|
|
|
type: Boolean, |
|
|
|
required: false, |
|
|
|
default: true |
|
|
|
}, |
|
|
|
teamSchemas:{ |
|
|
|
type: Boolean, |
|
|
|
required: false, |
|
|
|
default: true |
|
|
|
} |
|
|
|
}) |
|
|
|
const isShowDrawer = ref(false) |
|
|
@ -364,7 +374,7 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName: |
|
|
|
masterParmas.value.masterId = row.id |
|
|
|
masterParmas.value.number = row.number |
|
|
|
masterParmas.value.status = row.status |
|
|
|
tableObjectRef.value.params = { |
|
|
|
teamObjectRef.value.params = { |
|
|
|
masterId: row.id |
|
|
|
} |
|
|
|
await getList() |
|
|
@ -452,18 +462,19 @@ const remarksSubmitScuess = async (remark) => { |
|
|
|
const getChangeRecordList = async () => { |
|
|
|
changeRecordData.changeRecordList = await RemarkApi.getChangeRecordPage(remarksData.data) |
|
|
|
} |
|
|
|
|
|
|
|
const tableObjectRef = ref() |
|
|
|
const tableMethodsRef = ref() |
|
|
|
const detailAllSchemasRef = ref() |
|
|
|
detailAllSchemasRef.value = props.detailAllSchemas |
|
|
|
const teamObjectRef = ref() |
|
|
|
const teamMethodsRef = ref() |
|
|
|
const teamSchemasRef = ref() |
|
|
|
|
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: props.apiPage // 分页接口 |
|
|
|
}) |
|
|
|
|
|
|
|
tableObjectRef.value = tableObject |
|
|
|
tableMethodsRef.value = tableMethods |
|
|
|
detailAllSchemasRef.value = props.detailAllSchemas |
|
|
|
teamObjectRef.value = tableObject |
|
|
|
teamMethodsRef.value = tableMethods |
|
|
|
teamSchemasRef.value = props.teamSchemas |
|
|
|
|
|
|
|
// 根据状态返回该按钮是否显示 |
|
|
|
const isShowMainButton = (row, val) => { |
|
|
@ -475,7 +486,7 @@ const isShowMainButton = (row, val) => { |
|
|
|
} |
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
|
const { getList } = tableMethodsRef.value |
|
|
|
const { getList } = teamMethodsRef.value |
|
|
|
|
|
|
|
|
|
|
|
// 字段设置 更新主列表字段 |
|
|
@ -565,9 +576,9 @@ const searchFormClick = async (searchData) => { |
|
|
|
: [{ column: 'masterId', action: '==', value: masterParmas.value.masterId }] |
|
|
|
} |
|
|
|
detailAllSchemasRef.value = props.detailAllSchemas |
|
|
|
tableObjectRef.value = tableObject |
|
|
|
tableMethodsRef.value = tableMethods |
|
|
|
tableObjectRef.value.tableList = [] |
|
|
|
teamObjectRef.value = tableObject |
|
|
|
teamMethodsRef.value = tableMethods |
|
|
|
teamObjectRef.value.tableList = [] |
|
|
|
const { getList } = tableMethods |
|
|
|
await getList() |
|
|
|
updateKey.value += 1 |
|
|
@ -623,8 +634,8 @@ watch( |
|
|
|
tableObject.params[item.key] = item.value |
|
|
|
}) |
|
|
|
} |
|
|
|
tableObjectRef.value = tableObject |
|
|
|
tableMethodsRef.value = tableMethods |
|
|
|
teamObjectRef.value = tableObject |
|
|
|
teamMethodsRef.value = tableMethods |
|
|
|
const { getList } = tableMethods |
|
|
|
getList() |
|
|
|
} |