Commit cc861378 authored by jingnan's avatar jingnan 👀

归档流程创建功能开发

parent a3442ae2
/**
* @Description:
* @author gjn
* @date 2024/11/04
*/
<template>
<div class="AddExtTransferDoc">
<dee-as-com
ref="tableCom"
class="list-table"
:lay-config="layConfig"
@selectionChange="selectionChange"
/>
</div>
</template>
<script>
export default {
componentName: '添加归档文件清单',
name: 'AddExtTransferDoc',
components: {},
props: {
basicData: {
type: Object,
default: () => {}
},
componentProp: {
type: Object,
default: () => {}
}
},
data() {
return {
layConfig: { typeName: 'ExtTransferDocLink', layKey: '9f8e3a0e-c021-44ef-b6e7-90e2fc0bc699' }
}
},
computed: {
},
watch: {
},
created() {
},
mounted() {},
methods: {
selectionChange(val) {
this.$emit('input', val)
}
}
}
</script>
<style lang='scss'>
.AddExtTransferDoc{
.list-table{
height: 600px!important;
}
}
</style>
<template>
<div :class="className" @click="ToRelatedPage">{{ currentValue }}</div>
<div :class="className" @click="getTransferDocProject">{{ currentValue }}</div>
</template>
<script>
import { get } from '@/utils/http'
export default {
name: 'GotoProjectDetail',
componentName: '详情-项目要素',
......@@ -33,7 +34,8 @@ export default {
return {
currentValue: this.value ? this.value.number || this.value : null,
className: this.scope.row.parentId ? 'link' : 'default',
form: null
form: null,
transferDocProject: {}
}
},
computed: {
......@@ -60,9 +62,18 @@ export default {
const type = this.form.projectClass === 'project' ? '项目' : '子项'
this.$router.push({
path: `/page/${pageNumber}/${id}?type=${type}&title=${title}&id=${id}&name=${name}&secretCode=${secretCode}`,
query: { name: name, id: id }
query: { name: name, id: id, ...this.transferDocProject }
})
}
},
getTransferDocProject() {
this.transferDocProject = {}
get(`ExtTransferDocument/getTransferDocProject?id=${this.form.id}`).then(res => {
if (res.items) {
this.transferDocProject = res.items
}
this.ToRelatedPage()
})
}
}
......
......@@ -44,8 +44,8 @@ export default {
name: '归档',
icon: '/icons/dee-project/baseline.png',
componentType: 'formConfig',
formConfigType: 'page'
// pageKey: 'fe0b5925-0b7f-42bd-adbc-8ecb738013a0'
formConfigType: 'page',
pageKey: '68414c76-5d72-4fb8-afd3-f66e45a637a3'
}
// {
// name: '子项',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment