Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<!--符合性详情-->
|
<!--符合性详情-->
|
||||||
<template>
|
<template>
|
||||||
<div id="complianceDetails">
|
<div id="complianceDetails">
|
||||||
|
<el-divider content-position="left" v-if="unfit.length < 1 && fit.length < 1" >暂无评估结果</el-divider>
|
||||||
<!-- 不满足-->
|
<!-- 不满足-->
|
||||||
<el-divider content-position="left" v-if="unfit.length" >不满足</el-divider>
|
<el-divider content-position="left" v-if="unfit.length" >不满足</el-divider>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
@@ -21,25 +22,28 @@
|
|||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="noCompliance"
|
prop="researchNonCompliance"
|
||||||
label="不合规项目"
|
label="不合规项目"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="countermeasures "
|
prop="researchCountermeasures"
|
||||||
label="应对措施"
|
label="应对措施"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="completionTime "
|
prop="researchImplementationTime"
|
||||||
label="完成时间"
|
label="完成时间"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.researchImplementationTime ? $moment(scope.row.researchImplementationTime).format('YYYY-MM-DD') : '' }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="assessor"
|
prop="evaluationPeople"
|
||||||
label="评估人"
|
label="评估人"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
@@ -78,13 +82,13 @@
|
|||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="complianceReasons"
|
prop="researchCompliance"
|
||||||
label="合规"
|
label="合规"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="assessor"
|
prop="evaluationPeople"
|
||||||
label="评估人"
|
label="评估人"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -809,20 +809,11 @@ export default {
|
|||||||
},
|
},
|
||||||
handlePrice(){
|
handlePrice(){
|
||||||
for (let i = 0; i < this.dataList.length; i++) {
|
for (let i = 0; i < this.dataList.length; i++) {
|
||||||
console.log('815',this.dataList[i])
|
|
||||||
if (this.dataList[i].complianceReasons !== '' || (this.dataList[i].noCompliance !== '' && this.dataList[i].countermeasures !== '' && this.dataList[i].completionTime !== '') || (this.dataList[i].complianceReasons === '' && this.dataList[i].noCompliance === '' && this.dataList[i].countermeasures === '' && this.dataList[i].completionTime === '')){
|
if (this.dataList[i].complianceReasons !== '' || (this.dataList[i].noCompliance !== '' && this.dataList[i].countermeasures !== '' && this.dataList[i].completionTime !== '') || (this.dataList[i].complianceReasons === '' && this.dataList[i].noCompliance === '' && this.dataList[i].countermeasures === '' && this.dataList[i].completionTime === '')){
|
||||||
console.log('目前可以通过')
|
|
||||||
}else {
|
}else {
|
||||||
this.comFlag ++
|
this.comFlag ++
|
||||||
console.log('有没有输全的,不能通过',this.comFlag)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if(row.complianceReasons !== '' || (row.noCompliance !== '' && row.countermeasures !== '' && row.completionTime !== '') || (row.complianceReasons === '' && row.noCompliance === '' && row.countermeasures === '' && row.completionTime === '')){
|
|
||||||
// this.comFlag = 0
|
|
||||||
// }else{
|
|
||||||
// this.comFlag = this.comFlag + 1
|
|
||||||
// }
|
|
||||||
},
|
},
|
||||||
//提交事件
|
//提交事件
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
@@ -831,29 +822,28 @@ export default {
|
|||||||
this.$message.warning('请填写完整的不符合项信息')
|
this.$message.warning('请填写完整的不符合项信息')
|
||||||
this.comFlag = 0
|
this.comFlag = 0
|
||||||
}else{
|
}else{
|
||||||
this.$message.success('通过')
|
this.listForm.prcCreateUser = this.$store.getters.userInfo.userId;
|
||||||
// this.listForm.prcCreateUser = this.$store.getters.userInfo.userId;
|
this.listForm.commentText = this.commentText;
|
||||||
// this.listForm.commentText = this.commentText;
|
this.listForm.approvalOpinion = "";
|
||||||
// this.listForm.approvalOpinion = "";
|
this.listForm.signFlag = "";
|
||||||
// this.listForm.signFlag = "";
|
this.listForm.dataList = this.dataList;
|
||||||
// this.listForm.dataList = this.dataList;
|
const json = JSON.stringify(this.listForm);
|
||||||
// const json = JSON.stringify(this.listForm);
|
this.isSubmit = true;
|
||||||
// this.isSubmit = true;
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
// this.$http.post("lawss/activiti/completeTask", {
|
taskIds: this.taskIds,
|
||||||
// taskIds: this.taskIds,
|
userId: this.userId,
|
||||||
// userId: this.userId,
|
json: json
|
||||||
// json: json
|
}, {
|
||||||
// }, {
|
_this: this
|
||||||
// _this: this
|
}, res => {
|
||||||
// }, res => {
|
if (res.success) {
|
||||||
// if (res.success) {
|
this.$message.success(res.message);
|
||||||
// this.$message.success(res.message);
|
this.$router.push("/processCenter");
|
||||||
// this.$router.push("/processCenter");
|
}
|
||||||
// }
|
this.isSubmit = false;
|
||||||
// this.isSubmit = false;
|
}, e => {
|
||||||
// }, e => {
|
|
||||||
//
|
});
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//批量编辑
|
//批量编辑
|
||||||
|
|||||||
@@ -142,7 +142,6 @@
|
|||||||
>
|
>
|
||||||
</el-input>
|
</el-input>
|
||||||
<el-input
|
<el-input
|
||||||
@click.native="handlePrice(scope.row)"
|
|
||||||
v-else
|
v-else
|
||||||
:disabled="acceptShow"
|
:disabled="acceptShow"
|
||||||
v-model="scope.row.complianceReasons"
|
v-model="scope.row.complianceReasons"
|
||||||
@@ -172,7 +171,6 @@
|
|||||||
<el-input
|
<el-input
|
||||||
v-else
|
v-else
|
||||||
:disabled="acceptShow"
|
:disabled="acceptShow"
|
||||||
@click.native="handlePrice(scope.row)"
|
|
||||||
v-model="scope.row.noCompliance"
|
v-model="scope.row.noCompliance"
|
||||||
placeholder="请输入不合规项目"
|
placeholder="请输入不合规项目"
|
||||||
>
|
>
|
||||||
@@ -195,7 +193,6 @@
|
|||||||
<el-input
|
<el-input
|
||||||
v-else
|
v-else
|
||||||
:disabled="acceptShow"
|
:disabled="acceptShow"
|
||||||
@click.native="handlePrice(scope.row)"
|
|
||||||
v-model="scope.row.countermeasures"
|
v-model="scope.row.countermeasures"
|
||||||
placeholder="请输入应对措施"
|
placeholder="请输入应对措施"
|
||||||
>
|
>
|
||||||
@@ -220,7 +217,6 @@
|
|||||||
:disabled="acceptShow"
|
:disabled="acceptShow"
|
||||||
class="datePickLen"
|
class="datePickLen"
|
||||||
clearable
|
clearable
|
||||||
@click.native="handlePrice(scope.row)"
|
|
||||||
v-model="scope.row.completionTime"
|
v-model="scope.row.completionTime"
|
||||||
type="date"
|
type="date"
|
||||||
value-format="yyyy-MM-dd HH:mm:ss"
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
@@ -527,6 +523,7 @@
|
|||||||
clearable
|
clearable
|
||||||
v-model="batchEditForm.completionTime"
|
v-model="batchEditForm.completionTime"
|
||||||
type="date"
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
placeholder="请选择日期">
|
placeholder="请选择日期">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -561,7 +558,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
comFlag: true,
|
comFlag: 0,
|
||||||
total: 0,
|
total: 0,
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
@@ -899,16 +896,19 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
handlePrice(row){
|
handlePrice(row){
|
||||||
if(row.complianceReasons !== '' || (row.noCompliance !== '' && row.countermeasures !== '' && row.completionTime !== '') || (row.complianceReasons === '' && row.noCompliance === '' && row.countermeasures === '' && row.completionTime === '')){
|
for (let i = 0; i < this.dataList.length; i++) {
|
||||||
this.comFlag = true
|
if (this.dataList[i].complianceReasons !== '' || (this.dataList[i].noCompliance !== '' && this.dataList[i].countermeasures !== '' && this.dataList[i].completionTime !== '') || (this.dataList[i].complianceReasons === '' && this.dataList[i].noCompliance === '' && this.dataList[i].countermeasures === '' && this.dataList[i].completionTime === '')){
|
||||||
}else{
|
}else {
|
||||||
this.comFlag = false
|
this.comFlag ++
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//提交事件
|
//提交事件
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
if(!this.comFlag){
|
this.handlePrice()
|
||||||
|
if(this.comFlag > 0) {
|
||||||
this.$message.warning('请填写完整的不符合项信息')
|
this.$message.warning('请填写完整的不符合项信息')
|
||||||
|
this.comFlag = 0
|
||||||
}else{
|
}else{
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.listForm.commentText = this.commentText;
|
this.listForm.commentText = this.commentText;
|
||||||
|
|||||||
Reference in New Issue
Block a user