对接握手流程

This commit is contained in:
qq787203167
2022-04-25 17:50:35 +08:00
parent 94b7ee3f3a
commit a63d4aebe1
9 changed files with 195 additions and 61 deletions
@@ -7,21 +7,35 @@
@terminationProcess="terminationProcess"
@submit="submit"
/>
<div class="detail-box">
<div class="detail-content" style="height: 100%">
<projectInformation
:projectInformationList="projectInformationList"
:url="url"
:projectInformationId="'1517332232949133313'"
/>
<standardContent
:standardContentList="standardContentList"
:url="url"
/>
<standardContentList :url="url"/>
<examineInformation :url="url"/>
<circulationHistory :url="url"/>
<a-spin tip="加载中..." :spinning="loading">
<div class="detail-box" v-if="!loading">
<div class="detail-content" style="height: 100%">
<projectInformation
:projectInformationList="projectInformationList"
:url="url"
:projectInformationId="this.queryBy.projectLibraryId"
/>
<standardContent
:standardContentList="standardContentList"
:url="url"
:standardContentQuery="queryProject"
/>
<standardContentListTable
:standardContentListQuery="queryProject"
:url="url
"/>
<examineInformation
isFlag
isViewUploadedFiles
isApprovalOpinion
ref="examineInformationRef"
:url="url"/>
<circulationHistory :url="url"/>
</div>
</div>
</a-spin>
<div>
</div>
</div>
</template>
@@ -30,9 +44,11 @@
import headerProcess from '../../components/headerProcess'
import projectInformation from '../../components/projectInformation'
import standardContent from '../../components/standardContent'
import standardContentList from '../../components/standardContentList'
import standardContentListTable from '../../components/standardContentList'
import examineInformation from '../../components/examineInformation'
import circulationHistory from '../../components/circulationHistory'
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
import { mapGetters } from 'vuex'
export default {
name: 'handshakeProcess',
@@ -40,7 +56,7 @@
headerProcess,
projectInformation,
standardContent,
standardContentList,
standardContentListTable,
examineInformation,
circulationHistory
},
@@ -133,16 +149,64 @@
}
],
url: {
urlFrom: 'project/projectLibraryBase/queryById'
}
urlFrom: 'project/projectLibraryBase/queryById',
queryProjectLawsInventoryInfoById: 'project/projectLawsInventoryEO/queryProjectLawsInventoryInfoById'
},
queryBy: {},
queryProject: {},
loading: false
}
},
mounted() {
if (this.$route.query.mes) {
this.queryBy = eval('(' + JSON.parse(this.$route.query.mes) + ')')
}
this.queryProjectLawsInventoryInfo()
},
methods: {
...mapGetters(['userInfo']),
terminationProcess() {
},
submit() {
this.$refs.examineInformationRef.submit(function(res) {
this.completeTask(res)
})
},
completeTask(value) {
let json = Object.assign({}, value, this.queryBy)
let data = JSON.stringify(json).replace(/\"/g, '\'')
let query = {
userid: this.userInfo().id,
taskId: this.$route.query.taskId || this.$route.query.taskIds,
json: data
}
postAction('/workFlow/completeTask', query).then((res) => {
if (res.success) {
this.$message.success(this.$t('OperationSuccessful'))
this.$router.push({
path: '/ProcessCenter'
})
} else {
this.$message.warning(this.$t('operationFailed'))
}
})
},
queryProjectLawsInventoryInfo() {
this.loading = true
let query = {
id: this.queryBy.id,
operatorType: 'taskAffirmQuery'
}
getAction(this.url.queryProjectLawsInventoryInfoById, query).then((res) => {
if (res.success) {
this.queryProject = res.result.projectLawsInventory || {}
this.loading = false
} else {
this.queryProject = {}
this.loading = false
}
})
}
}
}