Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<!--符合性详情-->
|
||||
<template>
|
||||
<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>
|
||||
<div class="content">
|
||||
@@ -21,25 +22,28 @@
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="noCompliance"
|
||||
prop="researchNonCompliance"
|
||||
label="不合规项目"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="countermeasures "
|
||||
prop="researchCountermeasures"
|
||||
label="应对措施"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="completionTime "
|
||||
prop="researchImplementationTime"
|
||||
label="完成时间"
|
||||
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
|
||||
prop="assessor"
|
||||
prop="evaluationPeople"
|
||||
label="评估人"
|
||||
align="center"
|
||||
>
|
||||
@@ -78,13 +82,13 @@
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="complianceReasons"
|
||||
prop="researchCompliance"
|
||||
label="合规"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="assessor"
|
||||
prop="evaluationPeople"
|
||||
label="评估人"
|
||||
align="center"
|
||||
>
|
||||
|
||||
@@ -809,20 +809,11 @@ export default {
|
||||
},
|
||||
handlePrice(){
|
||||
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 === '')){
|
||||
console.log('目前可以通过')
|
||||
}else {
|
||||
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() {
|
||||
@@ -831,29 +822,28 @@ export default {
|
||||
this.$message.warning('请填写完整的不符合项信息')
|
||||
this.comFlag = 0
|
||||
}else{
|
||||
this.$message.success('通过')
|
||||
// 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 => {
|
||||
|
||||
});
|
||||
}
|
||||
},
|
||||
//批量编辑
|
||||
|
||||
@@ -142,7 +142,6 @@
|
||||
>
|
||||
</el-input>
|
||||
<el-input
|
||||
@click.native="handlePrice(scope.row)"
|
||||
v-else
|
||||
:disabled="acceptShow"
|
||||
v-model="scope.row.complianceReasons"
|
||||
@@ -172,7 +171,6 @@
|
||||
<el-input
|
||||
v-else
|
||||
:disabled="acceptShow"
|
||||
@click.native="handlePrice(scope.row)"
|
||||
v-model="scope.row.noCompliance"
|
||||
placeholder="请输入不合规项目"
|
||||
>
|
||||
@@ -195,7 +193,6 @@
|
||||
<el-input
|
||||
v-else
|
||||
:disabled="acceptShow"
|
||||
@click.native="handlePrice(scope.row)"
|
||||
v-model="scope.row.countermeasures"
|
||||
placeholder="请输入应对措施"
|
||||
>
|
||||
@@ -220,7 +217,6 @@
|
||||
:disabled="acceptShow"
|
||||
class="datePickLen"
|
||||
clearable
|
||||
@click.native="handlePrice(scope.row)"
|
||||
v-model="scope.row.completionTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
@@ -527,6 +523,7 @@
|
||||
clearable
|
||||
v-model="batchEditForm.completionTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
placeholder="请选择日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
@@ -561,7 +558,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
comFlag: true,
|
||||
comFlag: 0,
|
||||
total: 0,
|
||||
currentPage: 1,
|
||||
pageSize: 20,
|
||||
@@ -899,16 +896,19 @@ export default {
|
||||
});
|
||||
},
|
||||
handlePrice(row){
|
||||
if(row.complianceReasons !== '' || (row.noCompliance !== '' && row.countermeasures !== '' && row.completionTime !== '') || (row.complianceReasons === '' && row.noCompliance === '' && row.countermeasures === '' && row.completionTime === '')){
|
||||
this.comFlag = true
|
||||
}else{
|
||||
this.comFlag = false
|
||||
for (let i = 0; i < this.dataList.length; 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 === '')){
|
||||
}else {
|
||||
this.comFlag ++
|
||||
}
|
||||
}
|
||||
},
|
||||
//提交事件
|
||||
handleSubmit() {
|
||||
if(!this.comFlag){
|
||||
this.handlePrice()
|
||||
if(this.comFlag > 0) {
|
||||
this.$message.warning('请填写完整的不符合项信息')
|
||||
this.comFlag = 0
|
||||
}else{
|
||||
this.isSubmit = true;
|
||||
this.listForm.commentText = this.commentText;
|
||||
|
||||
Reference in New Issue
Block a user