lijingjia 7 months ago
commit 2d5311b083

@ -143,10 +143,7 @@
></mastetMore> ></mastetMore>
</div> </div>
<div id="tab-content5" class="tab-content" v-show="mainOrderActiveKey === '5-5'"> <div id="tab-content5" class="tab-content" v-show="mainOrderActiveKey === '5-5'">
<costEntry <costEntry v-if="$route.query.id" :details="bookingDetails"></costEntry>
v-if="$route.query.id"
:details="bookingDetails"
></costEntry>
<!-- <mastetMore <!-- <mastetMore
ref="RefmastetMore" ref="RefmastetMore"
class="pane-box" class="pane-box"
@ -824,6 +821,27 @@
lastPages[key] = $data lastPages[key] = $data
appStore.setneedSavePages(lastPages) appStore.setneedSavePages(lastPages)
} }
//
function getDefault() {
console.log('getDefault')
getFormSetInfoByModule({ permissionId: permissionsInfo().permissionId }).then((res) => {
if (res?.data?.content) {
const content = JSON.parse(res.data.content)
updateSchema(content.columns)
}
})
}
//
function updateSchema(data) {
console.log(data, 'updateSchema')
RefbasicInfo.value.updateSchema(data)
// RefmailingInfo.value.updateSchemaL(data)
// RefmailingInfo.value.updateSchemaR(data)
// RefcargoInfo.value.updateSchema(data)
// RefediMore.value.updateSchema(data)
// RefmastetMore.value.updateSchema(data)
}
// //
function setDefault() { function setDefault() {
let _data: any = [] let _data: any = []
@ -996,7 +1014,7 @@
console.log(_data) console.log(_data)
const Apidata: any = { const Apidata: any = {
// id: 0, id: 0,
permissionId: permissionsInfo().permissionId, permissionId: permissionsInfo().permissionId,
templateName: permissionsInfo().permissionName, templateName: permissionsInfo().permissionName,
permissionName: permissionsInfo().permissionName, permissionName: permissionsInfo().permissionName,
@ -1010,25 +1028,7 @@
} }
}) })
} }
function updateSchema(data) {
console.log(data, 'updateSchema')
RefbasicInfo.value.updateSchema(data)
// RefmailingInfo.value.updateSchemaL(data)
// RefmailingInfo.value.updateSchemaR(data)
// RefcargoInfo.value.updateSchema(data)
// RefediMore.value.updateSchema(data)
// RefmastetMore.value.updateSchema(data)
}
function getDefault() {
console.log('getDefault')
getFormSetInfoByModule({ permissionId: permissionsInfo().permissionId }).then((res) => {
if (res?.data?.content) {
const content = JSON.parse(res.data.content)
updateSchema(content.columns)
}
})
}
// ============================================ // ============================================
function getRouterHis() { function getRouterHis() {
inChildLoading.value = true inChildLoading.value = true

@ -233,7 +233,7 @@
<div class="remark-btn"><i class="iconfont icon-shanchu1"></i></div> <div class="remark-btn"><i class="iconfont icon-shanchu1"></i></div>
</a-popconfirm> </a-popconfirm>
</div> </div>
<div class="remark no-data" v-if="!details.remark || details.remark.length === 0"> <div class="no-data" v-if="!details.remark || details.remark.length === 0">
<i class="iconfont icon-wushuju"></i> <i class="iconfont icon-wushuju"></i>
<div class="text">暂无内容</div> <div class="text">暂无内容</div>
</div> </div>

Loading…
Cancel
Save