commit
This commit is contained in:
@@ -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,7 +822,6 @@ 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 = "";
|
||||||
|
|||||||
@@ -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