标准评估流程

This commit is contained in:
宋伟佳
2022-01-25 20:36:48 +08:00
parent e89707f729
commit 433c084d2c
@@ -158,25 +158,26 @@
align="center">
</el-table-column>
<el-table-column
prop="productLine"
align="center"
width="200"
label="产品线">
min-width="180"
prop="projectGroup"
label="项目群">
</el-table-column>
<el-table-column
prop="projectNumber"
align="center"
width="200"
min-width="180"
prop="projectNumber"
label="项目编号">
</el-table-column>
<el-table-column
prop="projectName"
min-width="300"
:show-overflow-tooltip="true"
align="center"
width="200"
prop="projectName"
label="项目名称">
</el-table-column>
<el-table-column
prop="itemNum"
prop="itemsNum"
align="center"
width="200"
label="条款号">
@@ -187,6 +188,17 @@
align="center"
label="条款名称">
</el-table-column>
<el-table-column
label="条款内容"
width="200"
show-overflow-tooltip
align="center">
<template slot-scope="scope">
<el-button size="mini" type="primary" @click="itermsConditionsOpen(scope.row)" class="common-button-primary">
查看条款内容
</el-button>
</template>
</el-table-column>
<el-table-column
prop="technicalRequir"
align="center"
@@ -200,13 +212,13 @@
label="基于上一版本差异">
</el-table-column>
<el-table-column
prop="xCXSSRQ"
prop="xcxssrq"
width="200"
align="center"
label="新车型实施日期">
</el-table-column>
<el-table-column
prop="zCCSSRQ"
prop="zccssrq"
width="200"
align="center"
label="在产车实施日期">
@@ -420,6 +432,15 @@
@checkedRole="checkedTransferRole"
:nodeList="nodeList"
></Role-tree>
<el-dialog
title="查看条款内容"
:visible.sync="itermsConditionsFlag"
size="800px">
<div class="itemsTextBox" v-html="itermsConditionsTitle"></div>
<div slot="footer">
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="itermsConditionsClose">关闭</el-button>
</div>
</el-dialog>
<!-- 批量编辑弹窗-->
<el-drawer
title="批量填写"
@@ -534,6 +555,9 @@ export default {
comFlag: 0,
nodeList:[],
drawerTitle:'',
fileType: '',
itermsConditionsTitle: '',
itermsConditionsFlag: false,
isTransfer: false,
// 调整处理人抽屉状态
drawerModal: false,
@@ -673,6 +697,20 @@ export default {
handleTabs(name) {
this.active = name;
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.$http.get('SarStandItems/sar-stand-items/findItemById',{
type:this.fileType,
ids: row.id
},{
_this: this
}, res => {
this.itermsConditionsTitle = res.data[0].termsConditions.replace(/''/g, '\'')
})
this.itermsConditionsFlag = true
},
//点击查看详情
handlePreview(item){
let routeUrl = this.$router.resolve({
@@ -722,44 +760,14 @@ export default {
* @description: 动态表单读取
*/
getFormFieldList(item) {
console.log(item);
this.$nextTick(() => {
this.listForm = JSON.parse(JSON.stringify(item));
if (item.form === undefined) {
if (item.fenFlag === undefined) {
item.step3DTOS.forEach(item => {
item.implementerId = this.$store.getters.userInfo.userId;
item.implementer = this.$store.getters.userInfo.userName;
});
// this.commentText = ''
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;
// this.commentText = ''
this.dataList.forEach(item => {
item.implementerId = this.$store.getters.userInfo.userId;
item.implementer = this.$store.getters.userInfo.userName;
});
}
// this.getLocalTime()
this.listForm.prcNum = this.prcNum;
this.listForm.prcName = this.prcName;
this.listForm["id"] = item.id;
this.listForm.standName = item.step3DTOS[0].standName;
this.listForm.standNumber = item.step3DTOS[0].standNumber;
this.listForm.id = item.step3DTOS[0].id;
this.listForm.qualityEngineerName = item.step3DTOS[0].qualityEngineerName;
this.listForm.certifiedEngineerName = item.step3DTOS[0].certifiedEngineerName;
this.listForm.itemsName = item.step3DTOS[0].itemsName;
this.listForm.itemNum = item.step3DTOS[0].itemNum;
this.listForm.responsibleUnit = item.step3DTOS[0].responsibleUnit;
this.listForm.responsibleEngineer = item.step3DTOS[0].responsibleEngineer;
this.fileType = item.fileType
this.listForm.prcNum = this.prcNum
this.listForm.prcName = this.prcName
this.listForm['id'] = item.id
this.dataList = item.dataList
} else {
this.listForm = item.form;
this.dataList = item.form.dataList;
@@ -827,27 +835,32 @@ export default {
this.$message.warning('请填写完整的不符合项信息')
this.comFlag = 0
}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.$confirm("请确认表单数据是否填写完整", "提示", {
confirmButtonText: "确认",
confirmButtonClass: "common-button-primary",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.listForm.commentText = this.commentText;
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 => {
});
}).catch(() => {
});
}
}
@@ -872,7 +885,7 @@ export default {
saveBatchEditForm() {
this.dataList.forEach(item => {
this.selectList.forEach(items => {
if (item.itemNum === items.itemNum && item.projectName === items.projectName) {
if (item.itemsNum === items.itemsNum && item.projectName === items.projectName) {
item.complianceReasons = this.batchEditForm.complianceReasons;
//不合规
item.noCompliance = this.batchEditForm.noCompliance;
@@ -904,7 +917,7 @@ export default {
this.searchData();
},
pageSizeChange(pageSize) {
this.pageSize = this.$store.getters.userInfo.configContent;
this.pageSize = pageSize;
this.searchData();
}
},