Date: Tue, 27 Jul 2021 21:16:09 +0800
Subject: [PATCH 5/5] =?UTF-8?q?=E5=90=88=E8=A7=84=E8=AF=84=E4=BC=B0?=
=?UTF-8?q?=E6=B5=81=E7=A8=8B-=E9=A1=B9=E7=9B=AE=E7=BB=B4=E5=BA=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/creatProcess/xmpg2/step10.vue | 249 ++---
.../pages/creatProcess/xmpg2/step11.vue | 250 ++---
.../pages/creatProcess/xmpg2/step12.vue | 251 ++---
.../pages/creatProcess/xmpg2/step6.vue | 65 +-
.../pages/creatProcess/xmpg2/step7.vue | 940 +++++++++---------
.../pages/creatProcess/xmpg2/step8.vue | 249 ++---
.../pages/creatProcess/xmpg2/step9.vue | 247 ++---
7 files changed, 1132 insertions(+), 1119 deletions(-)
diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step10.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step10.vue
index b9053c236..517a91b42 100644
--- a/src/pages/processCenter/pages/creatProcess/xmpg2/step10.vue
+++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step10.vue
@@ -41,92 +41,98 @@
填写信息
+ :data="dataList"
+ style="width: 100%; border: 1px solid #cccccc"
+ row-key="standId"
+ height="70%"
+ border
+ @selection-change="selectStandChange"
+ :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
+ fontWeight: 'bold', height: '48px'}"
+ >
+ type="selection"
+ width="55"
+ align="center">
+ prop="standEnName"
+ label="标准编号"
+ width="180"
+ fixed="left"
+ align="center"
+ >
+ prop="standName"
+ fixed="left"
+ width="180"
+ align="center"
+ label="标准名称"
+ >
+ prop="itemsNum"
+ align="center"
+ width="200"
+ label="条款号">
+ prop="itemsName"
+ width="200"
+ align="center"
+ label="条款名称">
+ prop="xcxssrqgj"
+ width="200"
+ align="center"
+ label="新车型实施日期">
- {{ scope.row.xCXSSRQ ? $moment(scope.row.xCXSSRQ).format('YYYY-MM-DD') : '' }}
+ {{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format("YYYY-MM-DD") : "" }}
+ prop="zccssrqgj"
+ width="200"
+ align="center"
+ label="在产车实施日期">
- {{ scope.row.zCCSSRQ ? $moment(scope.row.zCCSSRQ).format('YYYY-MM-DD') : '' }}
+ {{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format("YYYY-MM-DD") : "" }}
+ prop="productType"
+ align="center"
+ label="在研产品">
+ prop="complianceReasons"
+ align="center"
+ width="160"
+ label="合规">
+ align="center"
+ width="160"
+ prop="researchNonCompliance"
+ label="不合规">
+ prop="noCompliance"
+ align="center"
+ width="160"
+ label="不合规项目">
+ prop="countermeasures"
+ align="center"
+ width="160"
+ label="应对措施">
+ prop="completionTime"
+ align="center"
+ width="160"
+ label="完成时间">
{{ scope.row.completionTime ? $moment(scope.row.completionTime).format('YYYY-MM-DD') : '' }}
@@ -134,48 +140,41 @@
+ align="center"
+ label="在产产品">
+ prop="zcComplianceReasons"
+ align="center"
+ width="160"
+ label="合规(具体情况)">
+ align="center"
+ width="160"
+ label="不合规">
+ prop="zcNoCompliance"
+ align="center"
+ width="160"
+ label="不合规项目">
+ prop="zcCountermeasures"
+ align="center"
+ width="160"
+ label="应对措施">
+ prop="zcCompletionTime"
+ align="center"
+ width="160"
+ label="完成时间">
{{ scope.row.zcCompletionTime ? $moment(scope.row.zcCompletionTime).format('YYYY-MM-DD') : '' }}
-
-
@@ -297,7 +296,7 @@ export default {
saveLoading: false,
//表单的数据
listForm: {
- BZFlag: " ", //1审批通过 其他为驳回
+ bzFlag: " ", //1审批通过 其他为驳回
projectNumber: "", //项目编号
projectName: "", //项目名称
dataList: [], //项目下的标准数据
@@ -359,42 +358,50 @@ export default {
},
//驳回事件
beforeBack() {
- this.listForm.BZFlag = "2";
- this.listForm.commentText = this.commentText;
- const json = JSON.stringify(this.listForm);
- this.$http.post("lawss/activiti/completeTask", {
- taskIds: this.taskIds,
- userId: this.userId,
- json: json
- }, {
- _this: this
- }, res => {
- if (res.success) {
- this.$message.success(res.message);
- this.$router.push("/processCenter");
- }
- }, e => {
- });
+ if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
+ this.$message.warning('请填写审批意见')
+ }else{
+ this.listForm.bzFlag = "2";
+ this.listForm.commentText = this.commentText;
+ const json = JSON.stringify(this.listForm);
+ this.$http.post("lawss/activiti/completeTask", {
+ taskIds: this.taskIds,
+ userId: this.userId,
+ json: json
+ }, {
+ _this: this
+ }, res => {
+ if (res.success) {
+ this.$message.success(res.message);
+ this.$router.push("/processCenter");
+ }
+ }, e => {
+ });
+ }
},
//提交事件
handleSubmit() {
- this.listForm.BZFlag = "1";
- this.listForm.commentText = this.commentText;
- const json = JSON.stringify(this.listForm);
- this.$http.post("lawss/activiti/completeTask", {
- taskIds: this.taskIds,
- userId: this.userId,
- json: json
- }, {
- _this: this
- }, res => {
- if (res.success) {
- this.$message.success(res.message);
- this.$router.push("/processCenter");
- }
- }, e => {
- });
- }
+ if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
+ this.$message.warning('请填写审批意见')
+ }else{
+ this.listForm.bzFlag = "1";
+ this.listForm.commentText = this.commentText;
+ const json = JSON.stringify(this.listForm);
+ this.$http.post("lawss/activiti/completeTask", {
+ taskIds: this.taskIds,
+ userId: this.userId,
+ json: json
+ }, {
+ _this: this
+ }, res => {
+ if (res.success) {
+ this.$message.success(res.message);
+ this.$router.push("/processCenter");
+ }
+ }, e => {
+ });
+ }
+ },
},
computed: {
listNoDataText() {
diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step11.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step11.vue
index 5831d1333..f560b2da8 100644
--- a/src/pages/processCenter/pages/creatProcess/xmpg2/step11.vue
+++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step11.vue
@@ -41,92 +41,98 @@
填写信息
+ :data="dataList"
+ style="width: 100%; border: 1px solid #cccccc"
+ row-key="standId"
+ height="70%"
+ border
+ @selection-change="selectStandChange"
+ :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
+ fontWeight: 'bold', height: '48px'}"
+ >
+ type="selection"
+ width="55"
+ align="center">
+ prop="standEnName"
+ label="标准编号"
+ width="180"
+ fixed="left"
+ align="center"
+ >
+ prop="standName"
+ fixed="left"
+ width="180"
+ align="center"
+ label="标准名称"
+ >
+ prop="itemsNum"
+ align="center"
+ width="200"
+ label="条款号">
+ prop="itemsName"
+ width="200"
+ align="center"
+ label="条款名称">
+ prop="xcxssrqgj"
+ width="200"
+ align="center"
+ label="新车型实施日期">
- {{ scope.row.xCXSSRQ ? $moment(scope.row.xCXSSRQ).format('YYYY-MM-DD') : '' }}
+ {{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format("YYYY-MM-DD") : "" }}
+ prop="zccssrqgj"
+ width="200"
+ align="center"
+ label="在产车实施日期">
- {{ scope.row.zCCSSRQ ? $moment(scope.row.zCCSSRQ).format('YYYY-MM-DD') : '' }}
+ {{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format("YYYY-MM-DD") : "" }}
+ prop="productType"
+ align="center"
+ label="在研产品">
+ prop="complianceReasons"
+ align="center"
+ width="160"
+ label="合规">
+ align="center"
+ width="160"
+ prop="researchNonCompliance"
+ label="不合规">
+ prop="noCompliance"
+ align="center"
+ width="160"
+ label="不合规项目">
+ prop="countermeasures"
+ align="center"
+ width="160"
+ label="应对措施">
+ prop="completionTime"
+ align="center"
+ width="160"
+ label="完成时间">
{{ scope.row.completionTime ? $moment(scope.row.completionTime).format('YYYY-MM-DD') : '' }}
@@ -134,48 +140,41 @@
+ align="center"
+ label="在产产品">
+ prop="zcComplianceReasons"
+ align="center"
+ width="160"
+ label="合规(具体情况)">
+ align="center"
+ width="160"
+ label="不合规">
+ prop="zcNoCompliance"
+ align="center"
+ width="160"
+ label="不合规项目">
+ prop="zcCountermeasures"
+ align="center"
+ width="160"
+ label="应对措施">
+ prop="zcCompletionTime"
+ align="center"
+ width="160"
+ label="完成时间">
{{ scope.row.zcCompletionTime ? $moment(scope.row.zcCompletionTime).format('YYYY-MM-DD') : '' }}
-
-
@@ -297,7 +296,7 @@ export default {
saveLoading: false,
//表单的数据
listForm: {
- BZFlag: " ", //1审批通过 其他为驳回
+ bzFlag: " ", //1审批通过 其他为驳回
projectNumber: "", //项目编号
projectName: "", //项目名称
dataList: [], //项目下的标准数据
@@ -359,43 +358,52 @@ export default {
},
//驳回事件
beforeBack() {
- this.listForm.BZFlag = "2";
- this.listForm.commentText = this.commentText;
- const json = JSON.stringify(this.listForm);
- this.$http.post("lawss/activiti/completeTask", {
- taskIds: this.taskIds,
- userId: this.userId,
- json: json
- }, {
- _this: this
- }, res => {
- if (res.success) {
- this.$message.success(res.message);
- this.$router.push("/processCenter");
- }
- }, e => {
- });
+ if (this.commentText === null || this.commentText === undefined || this.commentText === '') {
+ this.$message.warning('请填写审批意见')
+ } else {
+ this.listForm.bzFlag = "2";
+ this.listForm.commentText = this.commentText;
+ const json = JSON.stringify(this.listForm);
+ this.$http.post("lawss/activiti/completeTask", {
+ taskIds: this.taskIds,
+ userId: this.userId,
+ json: json
+ }, {
+ _this: this
+ }, res => {
+ if (res.success) {
+ this.$message.success(res.message);
+ this.$router.push("/processCenter");
+ }
+ }, e => {
+ });
+ }
},
//提交事件
handleSubmit() {
- this.listForm.BZFlag = "1";
- this.listForm.commentText = this.commentText;
- const json = JSON.stringify(this.listForm);
- this.$http.post("lawss/activiti/completeTask", {
- taskIds: this.taskIds,
- userId: this.userId,
- json: json
- }, {
- _this: this
- }, res => {
- if (res.success) {
- this.$message.success(res.message);
- this.$router.push("/processCenter");
- }
- }, e => {
- });
- }
+ if (this.commentText === null || this.commentText === undefined || this.commentText === '') {
+ this.$message.warning('请填写审批意见')
+ } else {
+ this.listForm.bzFlag = "1";
+ this.listForm.commentText = this.commentText;
+ const json = JSON.stringify(this.listForm);
+ this.$http.post("lawss/activiti/completeTask", {
+ taskIds: this.taskIds,
+ userId: this.userId,
+ json: json
+ }, {
+ _this: this
+ }, res => {
+ if (res.success) {
+ this.$message.success(res.message);
+ this.$router.push("/processCenter");
+ }
+ }, e => {
+ });
+ }
+ },
},
+
computed: {
listNoDataText() {
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step12.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step12.vue
index f3aa290cc..800bc166b 100644
--- a/src/pages/processCenter/pages/creatProcess/xmpg2/step12.vue
+++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step12.vue
@@ -41,92 +41,98 @@
填写信息
+ :data="dataList"
+ style="width: 100%; border: 1px solid #cccccc"
+ row-key="standId"
+ height="70%"
+ border
+ @selection-change="selectStandChange"
+ :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
+ fontWeight: 'bold', height: '48px'}"
+ >
+ type="selection"
+ width="55"
+ align="center">
+ prop="standEnName"
+ label="标准编号"
+ width="180"
+ fixed="left"
+ align="center"
+ >
+ prop="standName"
+ fixed="left"
+ width="180"
+ align="center"
+ label="标准名称"
+ >
+ prop="itemsNum"
+ align="center"
+ width="200"
+ label="条款号">
+ prop="itemsName"
+ width="200"
+ align="center"
+ label="条款名称">
+ prop="xcxssrqgj"
+ width="200"
+ align="center"
+ label="新车型实施日期">
- {{ scope.row.xCXSSRQ ? $moment(scope.row.xCXSSRQ).format('YYYY-MM-DD') : '' }}
+ {{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format("YYYY-MM-DD") : "" }}
+ prop="zccssrqgj"
+ width="200"
+ align="center"
+ label="在产车实施日期">
- {{ scope.row.zCCSSRQ ? $moment(scope.row.zCCSSRQ).format('YYYY-MM-DD') : '' }}
+ {{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format("YYYY-MM-DD") : "" }}
+ prop="productType"
+ align="center"
+ label="在研产品">
+ prop="complianceReasons"
+ align="center"
+ width="160"
+ label="合规">
+ align="center"
+ width="160"
+ prop="researchNonCompliance"
+ label="不合规">
+ prop="noCompliance"
+ align="center"
+ width="160"
+ label="不合规项目">
+ prop="countermeasures"
+ align="center"
+ width="160"
+ label="应对措施">
+ prop="completionTime"
+ align="center"
+ width="160"
+ label="完成时间">
{{ scope.row.completionTime ? $moment(scope.row.completionTime).format('YYYY-MM-DD') : '' }}
@@ -134,48 +140,41 @@
+ align="center"
+ label="在产产品">
+ prop="zcComplianceReasons"
+ align="center"
+ width="160"
+ label="合规(具体情况)">
+ align="center"
+ width="160"
+ label="不合规">
+ prop="zcNoCompliance"
+ align="center"
+ width="160"
+ label="不合规项目">
+ prop="zcCountermeasures"
+ align="center"
+ width="160"
+ label="应对措施">
+ prop="zcCompletionTime"
+ align="center"
+ width="160"
+ label="完成时间">
{{ scope.row.zcCompletionTime ? $moment(scope.row.zcCompletionTime).format('YYYY-MM-DD') : '' }}
-
-
@@ -297,7 +296,7 @@ export default {
saveLoading: false,
//表单的数据
listForm: {
- BZFlag: " ", //1审批通过 其他为驳回
+ dlFlag: " ", //1审批通过 其他为驳回
projectNumber: "", //项目编号
projectName: "", //项目名称
dataList: [], //项目下的标准数据
@@ -359,42 +358,50 @@ export default {
},
//驳回事件
beforeBack() {
- this.listForm.BZFlag = "2";
- this.listForm.commentText = this.commentText;
- const json = JSON.stringify(this.listForm);
- this.$http.post("lawss/activiti/completeTask", {
- taskIds: this.taskIds,
- userId: this.userId,
- json: json
- }, {
- _this: this
- }, res => {
- if (res.success) {
- this.$message.success(res.message);
- this.$router.push("/processCenter");
- }
- }, e => {
- });
+ if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
+ this.$message.warning('请填写审批意见')
+ }else{
+ this.listForm.dlFlag = "2";
+ this.listForm.commentText = this.commentText;
+ const json = JSON.stringify(this.listForm);
+ this.$http.post("lawss/activiti/completeTask", {
+ taskIds: this.taskIds,
+ userId: this.userId,
+ json: json
+ }, {
+ _this: this
+ }, res => {
+ if (res.success) {
+ this.$message.success(res.message);
+ this.$router.push("/processCenter");
+ }
+ }, e => {
+ });
+ }
},
//提交事件
handleSubmit() {
- this.listForm.BZFlag = "1";
- this.listForm.commentText = this.commentText;
- const json = JSON.stringify(this.listForm);
- this.$http.post("lawss/activiti/completeTask", {
- taskIds: this.taskIds,
- userId: this.userId,
- json: json
- }, {
- _this: this
- }, res => {
- if (res.success) {
- this.$message.success(res.message);
- this.$router.push("/processCenter");
- }
- }, e => {
- });
- }
+ if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
+ this.$message.warning('请填写审批意见')
+ }else{
+ this.listForm.dlFlag = "1";
+ this.listForm.commentText = this.commentText;
+ const json = JSON.stringify(this.listForm);
+ this.$http.post("lawss/activiti/completeTask", {
+ taskIds: this.taskIds,
+ userId: this.userId,
+ json: json
+ }, {
+ _this: this
+ }, res => {
+ if (res.success) {
+ this.$message.success(res.message);
+ this.$router.push("/processCenter");
+ }
+ }, e => {
+ });
+ }
+ },
},
computed: {
listNoDataText() {
@@ -404,7 +411,7 @@ export default {
mounted() {
this.processTable();
this.getData();
- }
+ },
};
diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue
index 05e761fd8..632d439fa 100644
--- a/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue
+++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue
@@ -72,7 +72,7 @@
>
@@ -84,21 +84,21 @@
label="条款名称">
- {{ scope.row.xCXSSRQ ? $moment(scope.row.xCXSSRQ).format("YYYY-MM-DD") : "" }}
+ {{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format("YYYY-MM-DD") : "" }}
- {{ scope.row.zCCSSRQ ? $moment(scope.row.zCCSSRQ).format("YYYY-MM-DD") : "" }}
+ {{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format("YYYY-MM-DD") : "" }}
@@ -130,7 +130,7 @@
label="不合规项目">
@@ -143,7 +143,7 @@
label="应对措施">
@@ -156,7 +156,7 @@
label="完成时间">
@@ -174,7 +174,7 @@
label="合规(具体情况)">
@@ -191,7 +191,7 @@
label="不合规项目">
@@ -204,7 +204,7 @@
label="应对措施">
@@ -217,7 +217,7 @@
label="完成时间">
@@ -396,6 +396,7 @@ export default {
pId: this.pId
}).then(res => {
if (res) {
+ console.log(res.mesg)
const processForm = JSON.parse(res.mesg);
this.getFormFieldList(processForm);
}
@@ -407,37 +408,13 @@ export default {
getFormFieldList(item) {
this.$nextTick(() => {
this.listForm = JSON.parse(JSON.stringify(item));
+ console.log(this.listForm)
this.listForm.prcNum = this.prcNum;
this.listForm.prcName = this.prcName;
this.listForm["id"] = item.id;
- this.listForm.dataList = item.dataList;
- this.dataList = item.dataList;
- let children = [];
- item.breakdownList.forEach(
- item => {
- let aa = {
- key: item.standId,
- id: item.id,
- standId: item.itemsNum,
- itemsNum: item.itemsNum,
- itemsName: item.itemsName,
- workPeople: "请选择责任人"
- };
- children.push(aa);
- }
- );
- this.dataList.forEach(key => {
- key["children"] = [];
- children.forEach(breakDown => {
- if (key.standId === breakDown.key) {
- key["children"].push(breakDown);
- }
- });
- if (key["children"].length === 0) {
- delete key["children"];
- }
- });
- this.listForm.children = children;
+ // this.listForm.dataList = item.dataList;
+ this.dataList = this.listForm.dataList;
+ console.log(this.dataList)
});
},
//保存事件
@@ -446,8 +423,6 @@ export default {
},
//提交事件
handleSubmit() {
- this.listForm.dataList.forEach(item => {
- if (item.workPeople !== undefined) {
this.listForm.commentText = this.commentText;
const json = JSON.stringify(this.listForm);
this.$http.post("lawss/activiti/completeTask", {
@@ -463,10 +438,6 @@ export default {
}
}, e => {
});
- } else {
- this.$message.warning("请选择分发负责人");
- }
- });
},
//标准表格选择框改变
selectStandChange(data) {
diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step7.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step7.vue
index 3f238b82b..ac7e9a61e 100644
--- a/src/pages/processCenter/pages/creatProcess/xmpg2/step7.vue
+++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step7.vue
@@ -1,485 +1,491 @@
-
-
- 项目合规评估流程-项目
- 分发责任人审批
-
-
-
-
-
- 基础信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 填写信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.xCXSSRQ ? $moment(scope.row.xCXSSRQ).format('YYYY-MM-DD') : '' }}
-
-
-
-
- {{ scope.row.zCCSSRQ ? $moment(scope.row.zCCSSRQ).format('YYYY-MM-DD') : '' }}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.completionTime ? $moment(scope.row.completionTime).format('YYYY-MM-DD') : '' }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.zcCompletionTime ? $moment(scope.row.zcCompletionTime).format('YYYY-MM-DD') : '' }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ 项目合规评估流程-项目
+ 分发责任人审批
+
+
+
+
+
+ 基础信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 填写信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format("YYYY-MM-DD") : "" }}
+
+
+
+
+ {{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format("YYYY-MM-DD") : "" }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.completionTime ? $moment(scope.row.completionTime).format('YYYY-MM-DD') : '' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.zcCompletionTime ? $moment(scope.row.zcCompletionTime).format('YYYY-MM-DD') : '' }}
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}
+
+
+
+
+ {{ scope.row.endTime ? $moment(scope.row.endTime).format("YYYY-MM-DD") : "" }}
+
+
+
+
+ {{ scope.row.commentText }}
+
+
+
+
+ {{ scope.row.endTime ? "已完成" : "未完成" }}
+
+
+
+ 流程列表加载中
+
+
+
-
-
-
-
-
-
-
-
- {{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}
-
-
-
-
- {{ scope.row.endTime ? $moment(scope.row.endTime).format("YYYY-MM-DD") : "" }}
-
-
-
-
- {{ scope.row.commentText }}
-
-
-
-
- {{ scope.row.endTime ? "已完成" : "未完成" }}
-
-
-
- 流程列表加载中
-
+
-
-
-
diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step8.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step8.vue
index 19eb851ea..7b02fb449 100644
--- a/src/pages/processCenter/pages/creatProcess/xmpg2/step8.vue
+++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step8.vue
@@ -41,92 +41,98 @@
填写信息
+ :data="dataList"
+ style="width: 100%; border: 1px solid #cccccc"
+ row-key="standId"
+ height="70%"
+ border
+ @selection-change="selectStandChange"
+ :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
+ fontWeight: 'bold', height: '48px'}"
+ >
+ type="selection"
+ width="55"
+ align="center">
+ prop="standEnName"
+ label="标准编号"
+ width="180"
+ fixed="left"
+ align="center"
+ >
+ prop="standName"
+ fixed="left"
+ width="180"
+ align="center"
+ label="标准名称"
+ >
+ prop="itemsNum"
+ align="center"
+ width="200"
+ label="条款号">
+ prop="itemsName"
+ width="200"
+ align="center"
+ label="条款名称">
+ prop="xcxssrqgj"
+ width="200"
+ align="center"
+ label="新车型实施日期">
- {{ scope.row.xCXSSRQ ? $moment(scope.row.xCXSSRQ).format('YYYY-MM-DD') : '' }}
+ {{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format("YYYY-MM-DD") : "" }}
+ prop="zccssrqgj"
+ width="200"
+ align="center"
+ label="在产车实施日期">
- {{ scope.row.zCCSSRQ ? $moment(scope.row.zCCSSRQ).format('YYYY-MM-DD') : '' }}
+ {{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format("YYYY-MM-DD") : "" }}
+ prop="productType"
+ align="center"
+ label="在研产品">
+ prop="complianceReasons"
+ align="center"
+ width="160"
+ label="合规">
+ align="center"
+ width="160"
+ prop="researchNonCompliance"
+ label="不合规">
+ prop="noCompliance"
+ align="center"
+ width="160"
+ label="不合规项目">
+ prop="countermeasures"
+ align="center"
+ width="160"
+ label="应对措施">
+ prop="completionTime"
+ align="center"
+ width="160"
+ label="完成时间">
{{ scope.row.completionTime ? $moment(scope.row.completionTime).format('YYYY-MM-DD') : '' }}
@@ -134,48 +140,41 @@
+ align="center"
+ label="在产产品">
+ prop="zcComplianceReasons"
+ align="center"
+ width="160"
+ label="合规(具体情况)">
+ align="center"
+ width="160"
+ label="不合规">
+ prop="zcNoCompliance"
+ align="center"
+ width="160"
+ label="不合规项目">
+ prop="zcCountermeasures"
+ align="center"
+ width="160"
+ label="应对措施">
+ prop="zcCompletionTime"
+ align="center"
+ width="160"
+ label="完成时间">
{{ scope.row.zcCompletionTime ? $moment(scope.row.zcCompletionTime).format('YYYY-MM-DD') : '' }}
-
-
@@ -297,7 +296,7 @@ export default {
saveLoading: false,
//表单的数据
listForm: {
- BZFlag: " ", //1审批通过 其他为驳回
+ jgFlag: " ", //1审批通过 其他为驳回
projectNumber: "", //项目编号
projectName: "", //项目名称
dataList: [], //项目下的标准数据
@@ -359,42 +358,50 @@ export default {
},
//驳回事件
beforeBack() {
- this.listForm.BZFlag = "2";
- this.listForm.commentText = this.commentText;
- const json = JSON.stringify(this.listForm);
- this.$http.post("lawss/activiti/completeTask", {
- taskIds: this.taskIds,
- userId: this.userId,
- json: json
- }, {
- _this: this
- }, res => {
- if (res.success) {
- this.$message.success(res.message);
- this.$router.push("/processCenter");
- }
- }, e => {
- });
+ if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
+ this.$message.warning('请填写审批意见')
+ }else{
+ this.listForm.jgFlag = "2";
+ this.listForm.commentText = this.commentText;
+ const json = JSON.stringify(this.listForm);
+ this.$http.post("lawss/activiti/completeTask", {
+ taskIds: this.taskIds,
+ userId: this.userId,
+ json: json
+ }, {
+ _this: this
+ }, res => {
+ if (res.success) {
+ this.$message.success(res.message);
+ this.$router.push("/processCenter");
+ }
+ }, e => {
+ });
+ }
},
//提交事件
handleSubmit() {
- this.listForm.BZFlag = "1";
- this.listForm.commentText = this.commentText;
- const json = JSON.stringify(this.listForm);
- this.$http.post("lawss/activiti/completeTask", {
- taskIds: this.taskIds,
- userId: this.userId,
- json: json
- }, {
- _this: this
- }, res => {
- if (res.success) {
- this.$message.success(res.message);
- this.$router.push("/processCenter");
- }
- }, e => {
- });
- }
+ if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
+ this.$message.warning('请填写审批意见')
+ }else{
+ this.listForm.jgFlag = "1";
+ this.listForm.commentText = this.commentText;
+ const json = JSON.stringify(this.listForm);
+ this.$http.post("lawss/activiti/completeTask", {
+ taskIds: this.taskIds,
+ userId: this.userId,
+ json: json
+ }, {
+ _this: this
+ }, res => {
+ if (res.success) {
+ this.$message.success(res.message);
+ this.$router.push("/processCenter");
+ }
+ }, e => {
+ });
+ }
+ },
},
computed: {
listNoDataText() {
diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step9.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step9.vue
index 19cfdb36d..5ab76b5c5 100644
--- a/src/pages/processCenter/pages/creatProcess/xmpg2/step9.vue
+++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step9.vue
@@ -41,92 +41,98 @@
填写信息
+ :data="dataList"
+ style="width: 100%; border: 1px solid #cccccc"
+ row-key="standId"
+ height="70%"
+ border
+ @selection-change="selectStandChange"
+ :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
+ fontWeight: 'bold', height: '48px'}"
+ >
+ type="selection"
+ width="55"
+ align="center">
+ prop="standEnName"
+ label="标准编号"
+ width="180"
+ fixed="left"
+ align="center"
+ >
+ prop="standName"
+ fixed="left"
+ width="180"
+ align="center"
+ label="标准名称"
+ >
+ prop="itemsNum"
+ align="center"
+ width="200"
+ label="条款号">
+ prop="itemsName"
+ width="200"
+ align="center"
+ label="条款名称">
+ prop="xcxssrqgj"
+ width="200"
+ align="center"
+ label="新车型实施日期">
- {{ scope.row.xCXSSRQ ? $moment(scope.row.xCXSSRQ).format('YYYY-MM-DD') : '' }}
+ {{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format("YYYY-MM-DD") : "" }}
+ prop="zccssrqgj"
+ width="200"
+ align="center"
+ label="在产车实施日期">
- {{ scope.row.zCCSSRQ ? $moment(scope.row.zCCSSRQ).format('YYYY-MM-DD') : '' }}
+ {{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format("YYYY-MM-DD") : "" }}
+ prop="productType"
+ align="center"
+ label="在研产品">
+ prop="complianceReasons"
+ align="center"
+ width="160"
+ label="合规">
+ align="center"
+ width="160"
+ prop="researchNonCompliance"
+ label="不合规">
+ prop="noCompliance"
+ align="center"
+ width="160"
+ label="不合规项目">
+ prop="countermeasures"
+ align="center"
+ width="160"
+ label="应对措施">
+ prop="completionTime"
+ align="center"
+ width="160"
+ label="完成时间">
{{ scope.row.completionTime ? $moment(scope.row.completionTime).format('YYYY-MM-DD') : '' }}
@@ -134,48 +140,41 @@
+ align="center"
+ label="在产产品">
+ prop="zcComplianceReasons"
+ align="center"
+ width="160"
+ label="合规(具体情况)">
+ align="center"
+ width="160"
+ label="不合规">
+ prop="zcNoCompliance"
+ align="center"
+ width="160"
+ label="不合规项目">
+ prop="zcCountermeasures"
+ align="center"
+ width="160"
+ label="应对措施">
+ prop="zcCompletionTime"
+ align="center"
+ width="160"
+ label="完成时间">
{{ scope.row.zcCompletionTime ? $moment(scope.row.zcCompletionTime).format('YYYY-MM-DD') : '' }}
-
-
@@ -359,42 +358,50 @@ export default {
},
//驳回事件
beforeBack() {
- this.listForm.BZFlag = "2";
- this.listForm.commentText = this.commentText;
- const json = JSON.stringify(this.listForm);
- this.$http.post("lawss/activiti/completeTask", {
- taskIds: this.taskIds,
- userId: this.userId,
- json: json
- }, {
- _this: this
- }, res => {
- if (res.success) {
- this.$message.success(res.message);
- this.$router.push("/processCenter");
- }
- }, e => {
- });
+ if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
+ this.$message.warning('请填写审批意见')
+ }else{
+ this.listForm.gcFlag = "2";
+ this.listForm.commentText = this.commentText;
+ const json = JSON.stringify(this.listForm);
+ this.$http.post("lawss/activiti/completeTask", {
+ taskIds: this.taskIds,
+ userId: this.userId,
+ json: json
+ }, {
+ _this: this
+ }, res => {
+ if (res.success) {
+ this.$message.success(res.message);
+ this.$router.push("/processCenter");
+ }
+ }, e => {
+ });
+ }
},
//提交事件
handleSubmit() {
- this.listForm.BZFlag = "1";
- this.listForm.commentText = this.commentText;
- const json = JSON.stringify(this.listForm);
- this.$http.post("lawss/activiti/completeTask", {
- taskIds: this.taskIds,
- userId: this.userId,
- json: json
- }, {
- _this: this
- }, res => {
- if (res.success) {
- this.$message.success(res.message);
- this.$router.push("/processCenter");
- }
- }, e => {
- });
- }
+ if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
+ this.$message.warning('请填写审批意见')
+ }else{
+ this.listForm.gcFlag = "1";
+ this.listForm.commentText = this.commentText;
+ const json = JSON.stringify(this.listForm);
+ this.$http.post("lawss/activiti/completeTask", {
+ taskIds: this.taskIds,
+ userId: this.userId,
+ json: json
+ }, {
+ _this: this
+ }, res => {
+ if (res.success) {
+ this.$message.success(res.message);
+ this.$router.push("/processCenter");
+ }
+ }, e => {
+ });
+ }
+ },
},
computed: {
listNoDataText() {