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