perf: 重点认证标准/政策合规性项目审查流程修改
This commit is contained in:
@@ -172,7 +172,13 @@
|
||||
</el-row>
|
||||
</div>
|
||||
</el-form>
|
||||
<fetchList v-if="isFetchList" ref="fetchListRef" />
|
||||
<!-- <fetchList v-if="isFetchList" ref="fetchListRef" />-->
|
||||
<Inventory
|
||||
v-if="isFetchList"
|
||||
v-model="dataForm.infoTableDatas"
|
||||
style="margin-top: 10px"
|
||||
:disabled="disabledXX"
|
||||
/>
|
||||
<businessDivisionList v-if="isBusinessDivisionList" ref="businessDivisionListRef" />
|
||||
<productPlanningList v-if="isProductPlanningList" ref="productPlanningListRef" />
|
||||
<ReceiptDescription v-if="showCommentText" v-model="commentText" title="意见填写" />
|
||||
@@ -229,6 +235,7 @@ import personnelInformation from './components/personnelInformation';// 人员
|
||||
import fetchList from './components/fetchList';// 未选择责任人时的列表
|
||||
import businessDivisionList from './components/businessDivisionList';// 责任人为事业部时的列表
|
||||
import productPlanningList from './components/productPlanningList';// 责任人为产品规划部的列表
|
||||
import Inventory from '@/pages/policyRegulation/standardTrackingList/Inventory.vue'
|
||||
import {
|
||||
queryTaskFirst,
|
||||
saveTaskFirst,
|
||||
@@ -243,6 +250,7 @@ import ReceiptDescription from '@/components/hzwlComponents/ReceiptDescription';
|
||||
export default {
|
||||
name: 'Index',
|
||||
components: {
|
||||
Inventory,
|
||||
ReceiptDescription,
|
||||
ProcessHeader,
|
||||
ProcessTitle,
|
||||
@@ -508,7 +516,7 @@ export default {
|
||||
const _formData = new FormData();
|
||||
this.$refs.personnelInformationRef.save((row) => {
|
||||
const data = Object.assign(this.dataForm, row);
|
||||
data.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
|
||||
// data.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
|
||||
_formData.append('taskIds', this.$route.query.taskIds);
|
||||
_formData.append('json', JSON.stringify({
|
||||
form: data,
|
||||
@@ -583,7 +591,7 @@ export default {
|
||||
draftSaving () {
|
||||
const _formData = new FormData();
|
||||
const json = this.dataForm
|
||||
json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
|
||||
// json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
|
||||
json.commentText = this.commentText
|
||||
_formData.append('id', this.bpnId || '')
|
||||
_formData.append('createUser', this.$store.getters.userInfo.userId);
|
||||
@@ -609,11 +617,14 @@ export default {
|
||||
this.openButtonLoading()
|
||||
if (!this.taskKey || this.taskKey == 'PolicyComplianceProgramReviewProcessKey1') {// 起草
|
||||
this.closeButtonLoading()
|
||||
if (!this.dataForm.infoTableDatas || this.dataForm.infoTableDatas.length === 0) {
|
||||
return this.$message.warning('请至少添加一条数据')
|
||||
}
|
||||
this.$refs.personnelInformationRef.submit((row) => {
|
||||
this.$refs.fetchListRef.submit((val) => {
|
||||
this.openButtonLoading()
|
||||
this.startProcessRollBack(row)
|
||||
})
|
||||
// this.$refs.fetchListRef.submit((val) => {
|
||||
this.openButtonLoading()
|
||||
this.startProcessRollBack(row)
|
||||
// })
|
||||
})
|
||||
} else if (this.taskKey == 'PolicyComplianceProgramReviewProcessKey2' ||// 审核
|
||||
this.taskKey == 'PolicyComplianceProgramReviewProcessKey4' ||// 审定
|
||||
@@ -677,7 +688,7 @@ export default {
|
||||
this.closeButtonLoading()
|
||||
this.$refs.personnelInformationRef.submit((row) => {
|
||||
const json = Object.assign(this.dataForm, row);
|
||||
json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
|
||||
// json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
|
||||
json.commentText = this.commentText
|
||||
json.approvalFlag = 0
|
||||
const query = {
|
||||
@@ -782,7 +793,7 @@ export default {
|
||||
startProcessRollBack (roleForm) {
|
||||
const json = Object.assign(this.dataForm, roleForm);
|
||||
json.commentText = this.commentText
|
||||
json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
|
||||
// json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
|
||||
const query = {
|
||||
form: json,
|
||||
commentText: this.commentText
|
||||
@@ -927,7 +938,7 @@ export default {
|
||||
this.$refs.personnelInformationRef.getData(row.form)
|
||||
}
|
||||
if (this.isFetchList) { // 拿到未选择责任人数据
|
||||
this.$refs.fetchListRef.getData(row.form.infoTableDatas)
|
||||
// this.$refs.fetchListRef.getData(row.form.infoTableDatas)
|
||||
}
|
||||
if (this.isBusinessDivisionList) {// 拿到责任人为事业部门的数据
|
||||
this.$nextTick(() => {
|
||||
@@ -948,7 +959,7 @@ export default {
|
||||
const mes = JSON.parse(res.mes);
|
||||
this.dataForm = mes.form
|
||||
this.$refs.personnelInformationRef.getData(mes.roleForm)
|
||||
this.$refs.fetchListRef.getData(mes.form.infoTableDatas)
|
||||
// this.$refs.fetchListRef.getData(mes.form.infoTableDatas)
|
||||
this.commentText = mes.commentText
|
||||
this.dataLoading = false
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user