From 6c289e436e6cbb5d0edec818b6365abf60ef438c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167>
Date: Wed, 25 Oct 2023 15:02:25 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E9=87=8D=E7=82=B9=E8=AE=A4?=
=?UTF-8?q?=E8=AF=81=E6=A0=87=E5=87=86/=E6=94=BF=E7=AD=96=E5=90=88?=
=?UTF-8?q?=E8=A7=84=E6=80=A7=E9=A1=B9=E7=9B=AE=E5=AE=A1=E6=9F=A5=E6=B5=81?=
=?UTF-8?q?=E7=A8=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/addModel.vue | 63 +++++----
.../components/businessDivisionEdit.vue | 31 +++--
.../components/businessDivisionList.vue | 10 +-
.../components/productPlanningList.vue | 59 ++++++++-
.../policyComplianceReview/index.vue | 120 +++++++++++-------
5 files changed, 191 insertions(+), 92 deletions(-)
diff --git a/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/addModel.vue b/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/addModel.vue
index 390e63cc5..540cc9d04 100644
--- a/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/addModel.vue
+++ b/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/addModel.vue
@@ -14,17 +14,17 @@
-
-
-
@@ -204,12 +204,12 @@
+ style="width: 400px;" placeholder="请输入概念修订计划"/>
+ placeholder="请输入其他说明"/>
@@ -245,28 +245,28 @@
pingtai: [
{
required: true,
- message: '请输入业务名称',
+ message: '请输入平台',
trigger: 'blur'
}
],
xiangmu: [
{
required: true,
- message: '请输入业务名称',
+ message: '请输入项目名称',
trigger: 'blur'
}
],
xiangmumiaoshu: [
{
required: false,
- message: '请输入业务名称',
+ message: '请输入项目描述',
trigger: 'blur'
}
],
dangqianjiedian: [
{
required: false,
- message: '请输入业务名称',
+ message: '请输入当前节点',
trigger: 'blur'
}
],
@@ -336,7 +336,8 @@
G9: [
{
required: true,
- message: '请选择时间', trigger: 'change'
+ message: '请选择时间',
+ trigger: 'change'
}
],
G10: [
@@ -349,55 +350,73 @@
G11: [
{
required: true,
- message: '请选择时间', trigger: 'change'
+ message: '请选择时间',
+ trigger: 'change'
}
],
G12: [
{
required: true,
- message: '请选择时间', trigger: 'change'
+ message: '请选择时间',
+ trigger: 'change'
}
],
G13: [
{
required: true,
- message: '请选择时间', trigger: 'change'
+ message: '请选择时间',
+ trigger: 'change'
}
],
gainianzhuangtai: [
{
required: true,
- message: '请输入业务名称', trigger: 'blur'
+ message: '请输入概念状态',
+ trigger: 'blur'
}
],
gainianzhuangtaiDate: [
{
required: true,
- message: '请选择时间', trigger: 'change'
+ message: '请选择概念计划下发时间',
+ trigger: 'change'
}
],
gainianxiudingjihua: [
{
required: true,
- message: '请输入业务名称', trigger: 'blur'
+ message: '请输入概念修订计划',
+ trigger: 'blur'
}
],
qitashuoming: [
{
required: false,
- message: '请输入业务名称', trigger: 'blur'
+ message: '请输入其他说明',
+ trigger: 'blur'
}
]
},
- isSubmit:false,
+ isSubmit: false,
}
},
methods: {
- add() {
+ add(list) {
this.multipleTableItemDialog = true
+ this.infoTableDatas = JSON.parse(JSON.stringify(list))
this.multipleTableTitle = '新增'
- this.$nextTick(()=>{
- this.multipleTableItemForm = {}
+ this.multipleTableItemForm = {}
+ this.multipleTableItemForm = {...this.multipleTableItemForm}
+ this.$nextTick(() => {
+ this.$refs['multipleTableItemRef'].clearValidate()
+ })
+ },
+ edit(row, list) {
+ this.multipleTableItemDialog = true
+ this.multipleTableTitle = '编辑'
+ this.infoTableDatas = JSON.parse(JSON.stringify(list))
+ this.$nextTick(() => {
+ this.multipleTableItemForm = JSON.parse(JSON.stringify(row))
this.multipleTableItemForm = {...this.multipleTableItemForm}
this.$refs['multipleTableItemRef'].clearValidate()
})
@@ -414,7 +433,7 @@
}
this.isSubmit = true
this.$emit('addModelForm', this.multipleTableItemForm)
- this.modalshowflag = false
+ this.multipleTableItemDialog = false
this.$nextTick(() => {
this.isSubmit = false
})
diff --git a/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/businessDivisionEdit.vue b/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/businessDivisionEdit.vue
index 6f651d9bc..7d4c099c7 100644
--- a/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/businessDivisionEdit.vue
+++ b/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/businessDivisionEdit.vue
@@ -48,24 +48,24 @@
-
-
-
-
-
-
-
-
-
+ SOP时间超过法规时限的空档期的业务应对方案
+
+
@@ -146,7 +149,7 @@
trigger: "blur"
}
],
- conformSituation: [
+ resourceAccordwithCircumstance: [
{
type: "string",
max: 200,
@@ -154,7 +157,7 @@
trigger: "blur"
}
],
- devScheme: [
+ devPlan: [
{
type: "string",
max: 200,
@@ -162,7 +165,7 @@
trigger: "blur"
}
],
- completeSituation: [
+ finishCircumstance: [
{
type: "string",
max: 200,
@@ -170,7 +173,7 @@
trigger: "blur"
}
],
- timeoutSituation: [
+ sopDateSolutions: [
{
type: "string",
max: 300,
diff --git a/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/businessDivisionList.vue b/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/businessDivisionList.vue
index 29d9d00fd..04aa3d015 100644
--- a/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/businessDivisionList.vue
+++ b/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/businessDivisionList.vue
@@ -52,35 +52,35 @@
label="实施要求">
-
+
@@ -253,19 +256,20 @@
infoTableDatas: [],
deleteList: [],
addOrEdit: '',
- editNum:0,
+ editNum: 0,
+ selectList: [],
}
},
methods: {
- selectChange() {
-
+ selectChange(row) {
+ this.selectList = row
},
handleCommand(command) {
switch (command[2]) {
case "编辑":
this.addOrEdit = 'edit'
this.editNum = command[1]
- this.$refs.addModelRef.edit(command[0])
+ this.$refs.addModelRef.edit(command[0], this.infoTableDatas)
break;
case "删除":
this.deleteSarAccess(command[1], command[0]);
@@ -300,11 +304,52 @@
},
committeeAdd() {
this.addOrEdit = 'add'
- this.$refs.addModelRef.add()
+ this.$refs.addModelRef.add(this.infoTableDatas)
},
committeeDel() {
+ if (this.selectList && this.selectList.length > 0) {
+ this.$confirm('确认删除这些数据?', '提示', {
+ confirmButtonText: '确定',
+ confirmButtonClass: 'common-button-primary',
+ cancelButtonText: '取消',
+ type: 'warning',
+ roundButton: false
+ }).then(() => {
+ this.selectList.forEach(val => {
+ if (val.id) {
+ this.deleteList.push(val.id)
+ }
+ this.multipleTableData = this.multipleTableData.filter(res => {
+ if (res.id) {
+ return res.id != val.id
+ } else {
+ return res.dataId != val.dataId
+ }
+ })
+ })
+ this.multipleTableData = [...this.multipleTableData]
+ }).catch(() => {
+ // 取消删除,清空选择
+ this.$refs.selection.clearSelection()
+ })
+ } else {
+ this.$message.warning('请选择至少一条数据')
+ }
},
+ getData(row) {
+ this.infoTableDatas = row.infoTableDatas || []
+ this.infoTableDatas = [...this.infoTableDatas]
+ this.multipleTableData = row.productPlanningList || []
+ this.multipleTableData = [...this.multipleTableData]
+ },
+ submit(callback) {
+ if (this.multipleTableData && this.multipleTableData.length > 0) {
+ callback && callback(this.multipleTableData)
+ } else {
+ this.$message.warning('请至少添加一条数据')
+ }
+ },
}
}
diff --git a/src/pages/processCenter/pages/creatProcess/policyComplianceReview/index.vue b/src/pages/processCenter/pages/creatProcess/policyComplianceReview/index.vue
index 517d6df80..2829e54e1 100644
--- a/src/pages/processCenter/pages/creatProcess/policyComplianceReview/index.vue
+++ b/src/pages/processCenter/pages/creatProcess/policyComplianceReview/index.vue
@@ -456,24 +456,45 @@
this.draftSaving()
} else if (this.taskKey == 'PolicyComplianceProgramReviewProcessKey8' ||
this.taskKey == 'PolicyComplianceProgramReviewProcessKey9') {
- let _formData = new FormData();
- this.$refs.solicitationListRef.save((row, ids) => {
- _formData.append("taskIds", this.$route.query.taskIds);
- _formData.append("json", JSON.stringify({
- form: this.dataForm,
- commentText: this.commentText,
- policySolicitOpinionEOList: row,
- removeIds: ids,
- currentUserId: this.$store.getters.userInfo.userId
- }));
- saveTaskForPub(_formData).then(res => {
- this.closeButtonLoading()
- this.$message.success("保存成功");
- this.$refs.solicitationListRef.getData()
- }).catch(e => {
- this.closeButtonLoading()
- });
- })
+ if (this.dataForm.departmentType == 'undertaking') {//事业部提交
+ let _formData = new FormData();
+ this.$refs.solicitationListRef.save((row, ids) => {
+ _formData.append("taskIds", this.$route.query.taskIds);
+ _formData.append("json", JSON.stringify({
+ form: this.dataForm,
+ commentText: this.commentText,
+ policySolicitOpinionEOList: row,
+ removeIds: ids,
+ currentUserId: this.$store.getters.userInfo.userId
+ }));
+ saveTaskForPub(_formData).then(res => {
+ this.closeButtonLoading()
+ this.$message.success("保存成功");
+ this.$refs.solicitationListRef.getData()
+ }).catch(e => {
+ this.closeButtonLoading()
+ });
+ })
+ } else if (this.data.departmentType == 'productPlanning') {//产品规划部提交
+ let _formData = new FormData();
+ this.$refs.solicitationListRef.save((row, ids) => {
+ _formData.append("taskIds", this.$route.query.taskIds);
+ _formData.append("json", JSON.stringify({
+ form: this.dataForm,
+ commentText: this.commentText,
+ policySolicitOpinionEOList: row,
+ removeIds: ids,
+ currentUserId: this.$store.getters.userInfo.userId
+ }));
+ saveTaskForPub(_formData).then(res => {
+ this.closeButtonLoading()
+ this.$message.success("保存成功");
+ this.$refs.solicitationListRef.getData()
+ }).catch(e => {
+ this.closeButtonLoading()
+ });
+ })
+ }
}
},
//草稿保存
@@ -514,7 +535,7 @@
})
} else if (this.taskKey == 'PolicyComplianceProgramReviewProcessKey2' ||
this.taskKey == 'PolicyComplianceProgramReviewProcessKey4' ||
- this.taskKey == 'PolicyComplianceProgramReviewProcessKey5') { //审核、审定、批准、责任人分配任务
+ this.taskKey == 'PolicyComplianceProgramReviewProcessKey5') { //审核、审定、批准
const json = Object.assign(this.dataForm);
json.commentText = this.commentText
json.approvalFlag = 0
@@ -523,7 +544,7 @@
commentText: this.commentText
}
this.completeTask(this.$route.query.taskIds, query)
- } else if (this.taskKey == 'PolicyComplianceProgramReviewProcessKey7') {
+ } else if (this.taskKey == 'PolicyComplianceProgramReviewProcessKey7') {//责任人分配任务
let undertaking = this.departmentList[0].institutionName.includes('事业')
let productPlanning = this.departmentList[0].institutionName.includes('产品规划')
for (let i = 0; i < this.departmentList.length; i++) {
@@ -577,23 +598,34 @@
}
this.openButtonLoading()
this.completeTask(this.$route.query.taskIds, query)
- })
- } else if (this.taskKey == 'PolicyComplianceProgramReviewProcessKey8' ||
- this.taskKey == 'PolicyComplianceProgramReviewProcessKey9' ||
- this.taskKey == 'PolicyComplianceProgramReviewProcessKey10' ||
- this.taskKey == 'PolicyComplianceProgramReviewProcessKey11' ||
- this.taskKey == 'PolicyComplianceProgramReviewProcessKey12' ||
- this.taskKey == 'PolicyComplianceProgramReviewProcessKey13' ||
- this.taskKey == 'PolicyComplianceProgramReviewProcessKey14' ||
- this.taskKey == 'PolicyComplianceProgramReviewProcessKey15') {//责任人任务处理
+ })//责任人任务处理
+ } else if (this.taskKey == 'PolicyComplianceProgramReviewProcessKey8' ||//责任人任务处理
+ this.taskKey == 'PolicyComplianceProgramReviewProcessKey9' || //责任对接人汇总
+ this.taskKey == 'PolicyComplianceProgramReviewProcessKey10' ||//责任单位审批
+ this.taskKey == 'PolicyComplianceProgramReviewProcessKey11' ||//管理员
+ this.taskKey == 'PolicyComplianceProgramReviewProcessKey12' ||//审核
+ this.taskKey == 'PolicyComplianceProgramReviewProcessKey13' ||//审定
+ this.taskKey == 'PolicyComplianceProgramReviewProcessKey14' ||//批准
+ this.taskKey == 'PolicyComplianceProgramReviewProcessKey15') {//抄送
this.closeButtonLoading()
- if (this.dataForm.departmentType == 'undertaking') {
+ if (this.dataForm.departmentType == 'undertaking') {//事业部提交
this.$refs.businessDivisionListRef.submit((row) => {
- console.log(row);
- return
const json = Object.assign(this.dataForm);
json.commentText = this.commentText
- json.infoTableDatas = row
+ json.sybDataList = row
+ json.approvalFlag = 0
+ let query = {
+ form: json,
+ commentText: this.commentText
+ }
+ this.openButtonLoading()
+ this.completeTask(this.$route.query.taskIds, query)
+ })
+ } else if (this.data.departmentType == 'productPlanning') {//产品规划部提交
+ this.$refs.productPlanningListRef.submit((row) => {
+ const json = Object.assign(this.dataForm);
+ json.commentText = this.commentText
+ json.productPlanningList = row
json.approvalFlag = 0
let query = {
form: json,
@@ -622,13 +654,11 @@
handleReject() {
// approvalFlag value:0通过 1驳回
this.openButtonLoading()
- if (this.taskKey == 'PolicySolicitOpinionProcessKey9' ||
- this.taskKey == 'PolicySolicitOpinionProcessKey10' ||
+ if (this.taskKey == 'PolicySolicitOpinionProcessKey10' ||
this.taskKey == 'PolicySolicitOpinionProcessKey11' ||
this.taskKey == 'PolicySolicitOpinionProcessKey12' ||
this.taskKey == 'PolicySolicitOpinionProcessKey13' ||
- this.taskKey == 'PolicySolicitOpinionProcessKey14' ||
- this.taskKey == 'PolicySolicitOpinionProcessKey15') {
+ this.taskKey == 'PolicySolicitOpinionProcessKey14') {
this.$refs.solicitationListRef.submit((row, ids) => {
const json = Object.assign(this.dataForm);
json.commentText = this.commentText
@@ -736,7 +766,6 @@
})
} else if (this.selectType == '责任人') {
this.departmentList = data
- console.log(this.departmentList);
this.dataForm.zrrUserIds = ids.join(',')
this.dataForm.zrrUserNames = names.join(',')
this.dataForm = {...this.dataForm}
@@ -802,16 +831,20 @@
formProcessing(row) {
this.dataForm = row.form
this.dataForm = {...this.dataForm}
- if (this.showPersonnel) {
+ if (this.showPersonnel) {//拿到人员信息的数据
this.$refs.personnelInformationRef.getData(row.form)
}
- if (this.isFetchList) {
+ if (this.isFetchList) { //拿到未选择责任人数据
this.$refs.fetchListRef.getData(row.form.infoTableDatas)
}
- console.log(this.isBusinessDivisionList);
- if (this.isBusinessDivisionList) {
+ if (this.isBusinessDivisionList) {//拿到责任人为事业部门的数据
this.$nextTick(() => {
- this.$refs.businessDivisionListRef.getData(row.form.infoTableDatas)
+ this.$refs.businessDivisionListRef.getData(row.form.sybDataList || row.form.infoTableDatas)
+ })
+ }
+ if (this.isProductPlanningList) {//拿到责任人为产品规划部门的数据
+ this.$nextTick(() => {
+ this.$refs.productPlanningListRef.getData(row.form)
})
}
},
@@ -821,7 +854,6 @@
bpnId: this.bpnId
}).then(res => {
let mes = JSON.parse(res.mes);
- console.log(mes);
this.dataForm = mes.form
this.$refs.personnelInformationRef.getData(mes.roleForm)
this.$refs.fetchListRef.getData(mes.form.infoTableDatas)