diff --git a/src/api/unqualProcess.js b/src/api/unqualProcess.js
index c51fad700..229f11353 100644
--- a/src/api/unqualProcess.js
+++ b/src/api/unqualProcess.js
@@ -65,7 +65,7 @@ export function meetingByMonth(params) {
export function addUn(
closeState,standId, standSerialNumber, standName,
itemsNum, itemsName, productType,
- productLine, productName, reason, responsibleUnit,
+ productLine, productName,productId,reason, responsibleUnit,
dutyEngineer, authEngineer, qaEngineer, planCloseTime) {
const data = {
closeState,
@@ -77,6 +77,7 @@ export function addUn(
productType,
productLine, //产品线
productName, //项目名称
+ productId, //项目编号
reason, //不合规项目
responsibleUnit, //责任部门
dutyEngineer, //责任工程师
diff --git a/src/pages/details/complianceDetails/index.vue b/src/pages/details/complianceDetails/index.vue
index 30cb0f9ab..8c64e0cd7 100644
--- a/src/pages/details/complianceDetails/index.vue
+++ b/src/pages/details/complianceDetails/index.vue
@@ -54,8 +54,8 @@
-
+
+
diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue
index 877f1f555..3ab32b9d8 100644
--- a/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue
+++ b/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue
@@ -135,6 +135,11 @@
填写信息
{{ scope.row.zCCSSRQ ? $moment(scope.row.zCCSSRQ).format("YYYY-MM-DD") : "" }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -525,6 +430,96 @@
@checkedRole="checkedTransferRole"
:nodeList="nodeList"
>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -546,12 +541,24 @@ export default {
return {
//折叠的标志,true为折叠,false为不折叠
foldFormFlag: false,
- comFlag: true,
+ comFlag: 0,
nodeList:[],
drawerTitle:'',
isTransfer: false,
// 调整处理人抽屉状态
drawerModal: false,
+ modalShowFlag: false, // 批量编辑开关
+ batchEditForm: {
+ // 在研产品
+ // 合规
+ complianceReasons: "",
+ // 不合规
+ noCompliance: "",
+ // 应对措施
+ countermeasures: "",
+ // 完成时间
+ completionTime: "",
+ },
detailData: [],
sarProStateTableHeight: null, // 项目列表高度
// 当前流程类型(1待办/2已办)
@@ -735,6 +742,12 @@ export default {
item.implementer = this.$store.getters.userInfo.userName;
});
this.dataList = item.step3DTOS;
+ this.dataList.forEach(item => {
+ this.$set(item,'complianceReasons', '')
+ this.$set(item,'noCompliance', '')
+ this.$set(item,'countermeasures', '')
+ this.$set(item,'completionTime', '')
+ })
} else {
this.dataList = item.dataList;
@@ -800,40 +813,76 @@ export default {
},
handlePrice(row){
if(row.complianceReasons !== '' || (row.noCompliance !== '' && row.countermeasures !== '' && row.completionTime !== '') || (row.complianceReasons === '' && row.noCompliance === '' && row.countermeasures === '' && row.completionTime === '')){
- this.comFlag = true
+ this.comFlag = 0
}else{
- this.comFlag = false
+ this.comFlag = this.comFlag + 1
}
},
//提交事件
handleSubmit() {
- if(!this.comFlag) {
+ if(this.comFlag > 0) {
this.$message.warning('请填写完整的不符合项信息')
}else{
- this.listForm.prcCreateUser = this.$store.getters.userInfo.userId;
- this.listForm.commentText = this.commentText;
- this.listForm.approvalOpinion = "";
- this.listForm.signFlag = "";
- this.listForm.dataList = this.dataList;
- const json = JSON.stringify(this.listForm);
- this.isSubmit = true;
- 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");
- }
- this.isSubmit = false;
- }, e => {
-
- });
+ // this.listForm.prcCreateUser = this.$store.getters.userInfo.userId;
+ // this.listForm.commentText = this.commentText;
+ // this.listForm.approvalOpinion = "";
+ // this.listForm.signFlag = "";
+ // this.listForm.dataList = this.dataList;
+ // const json = JSON.stringify(this.listForm);
+ // this.isSubmit = true;
+ // 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");
+ // }
+ // this.isSubmit = false;
+ // }, e => {
+ //
+ // });
}
},
+ //批量编辑
+ batchEdit() {
+ if (this.selectList.length > 0) {
+ //合规
+ this.batchEditForm.complianceReasons = "";
+ //不合规
+ this.batchEditForm.noCompliance = "";
+ //应对措施
+ this.batchEditForm.countermeasures = "";
+ //完成时间
+ this.batchEditForm.completionTime = "";
+ this.modalShowFlag = true;
+ } else {
+ this.$message.warning("请选择要编辑的数据");
+ }
+ },
+ //批量编辑确定按钮事件
+ saveBatchEditForm() {
+ this.dataList.forEach(item => {
+ this.selectList.forEach(items => {
+ if (item.id === items) {
+ item.complianceReasons = this.batchEditForm.complianceReasons;
+ //不合规
+ item.noCompliance = this.batchEditForm.noCompliance;
+ //应对措施
+ item.countermeasures = this.batchEditForm.countermeasures;
+ //完成时间
+ item.completionTime = this.batchEditForm.completionTime;
+ }
+ });
+ });
+ this.modalShowFlag = false;
+ },
+ cancelBatchEditForm() {
+ this.modalShowFlag = false;
+ },
//标准表格选择框改变
selectStandChange(data) {
this.selectList = [];
diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue
index 16cfd87e2..f0d287889 100644
--- a/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue
+++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue
@@ -456,7 +456,7 @@
>
@@ -531,32 +531,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -599,6 +611,7 @@ export default {
itemsNum: "", //条款号
itemsName: "", //条款名称
productType: "",
+ projectNumber: "",
productLine: "", //产品线
productName: "", //项目名称
reason: "", //不合规项目
@@ -630,6 +643,9 @@ export default {
productName: [
{ required: true, message: "请输入项目名称", trigger: "change" }
],
+ projectNumber: [
+ { required: true, message: "请输入项目编号", trigger: "change" }
+ ],
reason: [
{ required: true, message: "请输入不合规项目", trigger: "blur" }
],
@@ -671,12 +687,19 @@ export default {
// 新增编辑框的disabled
serialNumber: true,
+ // 提交按钮loading
+ submiting: false,
+ // 选择人(单选)
roleShowflag: false,
nodeList: [],
-
+ // 选择人(多选)
titleMore: '',
nodeListMore: [],
roleShowMore: false,
+
+ // 选择责任部门
+ nodeListZRBM: [],
+ modalshowflagZRBM: false
};
},
methods: {
@@ -877,6 +900,7 @@ export default {
const productType = this.addForm.productType;
const productLine = this.addForm.productLine;
const productName = this.addForm.productName;
+ const productId = this.addForm.projectNumber;
const reason = this.addForm.reason;
const responsibleUnit = this.addForm.responsibleUnit;
const dutyEngineer = this.addForm.dutyEngineer;
@@ -886,13 +910,15 @@ export default {
if (this.drawerTitle === "新增") {
this.$refs["addForm"].validate((valid) => {
if (valid) {
+ this.submiting = true
addUn(
closeState, standId, standSerialNumber,
standName, itemsNum, itemsName, productType,
- productLine, productName, reason,
+ productLine, productName, productId,reason,
responsibleUnit, dutyEngineer,
authEngineer, qaEngineer, planCloseTime).then(res => {
if (res.ok) {
+ this.submiting = false
this.$message.success("新增成功");
this.drawerTable = false;
this.getTableByPage();
@@ -900,11 +926,13 @@ export default {
});
} else {
this.$message.warning("请完善基础信息");
+ this.submiting = false
}
});
} else {
this.$refs["addForm"].validate((valid) => {
if (valid) {
+ this.submiting = true
editUn(
closeState, standId, standSerialNumber,
standName, itemsNum, itemsName, productType,
@@ -912,6 +940,7 @@ export default {
dutyEngineer, authEngineer, qaEngineer,
planCloseTime, id).then(res => {
if (res.ok) {
+ this.submiting = false
this.$message.success("编辑成功");
this.drawerTable = false;
this.getTableByPage();
@@ -919,6 +948,7 @@ export default {
});
} else {
this.$message.warning("请完善基础信息");
+ this.submiting = false
}
});
}
@@ -954,7 +984,7 @@ export default {
}
});
this.dataList = res.data.records;
- this.dataList.forEach(item => {
+ /*this.dataList.forEach(item => {
// 责任部门转换
if (item.zrbm !== null || item.zrbm !== "") {
let k = (item.zrbm || "").split(",");
@@ -967,7 +997,7 @@ export default {
}
}
}
- });
+ });*/
});
},
//新增事件
@@ -1063,12 +1093,13 @@ export default {
/** 项目名称change事件 */
handleChange(val) {
+ console.log(val);
if (this.drawerTitle === '编辑') {
this.addForm.standName = ''
this.addForm.standSerialNumber = ''
- this.addForm.responsibleUnit = ''
}
this.addForm.productId = val.id
+ this.addForm.projectNumber = val.projectNumber
this.addForm.productLine = val.productLine
this.addForm.productName = val.projectName
this.addForm.productType = val.projectPlatfor
@@ -1080,7 +1111,6 @@ export default {
standChange(item) {
this.addForm.standName = item.standName
this.addForm.standSerialNumber = item.standSort + '-' + item.standNumber + '-' + item.standYear
- this.addForm.responsibleUnit = item.zrbm || "--";
},
/** 责任工程师选择 */
choiceZRR(type, title, id) {
@@ -1120,6 +1150,27 @@ export default {
this.roleShowMore = true
},
+ /** 选择责任部门 */
+ choiceZRBM(type, title, id) {
+ this.nodeListZRBM = []
+ this.nodeListZRBM.push(id)
+ this.modalshowflagZRBM = true
+ },
+ drawerCheckZRBM(data) {
+ let idList = ''
+ let nameList = ''
+ data.forEach(item => {
+ if (nameList.length > 0) {
+ nameList += ','
+ idList += ','
+ }
+ idList += item.id
+ nameList += item.name
+ })
+ this.addForm.responsibleUnit = nameList;
+
+ },
+
},
mounted() {
//查询已维护的项目