commit
This commit is contained in:
@@ -592,6 +592,7 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
this.$refs.multipleTable.clearSelection();
|
||||||
}
|
}
|
||||||
this.modalshowflag = false;
|
this.modalshowflag = false;
|
||||||
},
|
},
|
||||||
@@ -616,11 +617,16 @@ export default {
|
|||||||
if (this.selectList.length > 0) {
|
if (this.selectList.length > 0) {
|
||||||
this.lsType = type;
|
this.lsType = type;
|
||||||
this.nodeList = [];
|
this.nodeList = [];
|
||||||
if(row.implementerId){
|
|
||||||
this.nodeList = row.implementerId.split(",");
|
|
||||||
}
|
|
||||||
this.modalshowflag = true;
|
this.modalshowflag = true;
|
||||||
this.drawerTitle = "批量选择责任人";
|
this.drawerTitle = "批量选择责任人";
|
||||||
|
this.selectList.forEach(item =>{
|
||||||
|
if(item.implementerId){
|
||||||
|
this.nodeList = item.implementerId.split(",");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// if(row.implementerId){
|
||||||
|
// this.nodeList = row.implementerId.split(",");
|
||||||
|
// }
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning("请选择要分发的数据");
|
this.$message.warning("请选择要分发的数据");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -233,6 +233,7 @@
|
|||||||
<el-input
|
<el-input
|
||||||
v-else
|
v-else
|
||||||
:disabled="acceptShow"
|
:disabled="acceptShow"
|
||||||
|
@click.native="handlePrice(scope.row)"
|
||||||
v-model="dataList[scope.$index].complianceReasons"
|
v-model="dataList[scope.$index].complianceReasons"
|
||||||
placeholder="请输入合规原因"
|
placeholder="请输入合规原因"
|
||||||
>
|
>
|
||||||
@@ -260,6 +261,7 @@
|
|||||||
<el-input
|
<el-input
|
||||||
v-else
|
v-else
|
||||||
:disabled="acceptShow"
|
:disabled="acceptShow"
|
||||||
|
@click.native="handlePrice(scope.row)"
|
||||||
v-model="dataList[scope.$index].noCompliance"
|
v-model="dataList[scope.$index].noCompliance"
|
||||||
placeholder="请输入不合规项目"
|
placeholder="请输入不合规项目"
|
||||||
>
|
>
|
||||||
@@ -281,6 +283,7 @@
|
|||||||
</el-input>
|
</el-input>
|
||||||
<el-input
|
<el-input
|
||||||
v-else
|
v-else
|
||||||
|
@click.native="handlePrice(scope.row)"
|
||||||
:disabled="acceptShow"
|
:disabled="acceptShow"
|
||||||
v-model="dataList[scope.$index].countermeasures"
|
v-model="dataList[scope.$index].countermeasures"
|
||||||
placeholder="请输入应对措施"
|
placeholder="请输入应对措施"
|
||||||
@@ -306,6 +309,7 @@
|
|||||||
:disabled="acceptShow"
|
:disabled="acceptShow"
|
||||||
class="datePickLen"
|
class="datePickLen"
|
||||||
clearable
|
clearable
|
||||||
|
@click.native="handlePrice(scope.row)"
|
||||||
v-model="dataList[scope.$index].completionTime"
|
v-model="dataList[scope.$index].completionTime"
|
||||||
type="date"
|
type="date"
|
||||||
placeholder="请选择日期">
|
placeholder="请选择日期">
|
||||||
@@ -542,6 +546,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
//折叠的标志,true为折叠,false为不折叠
|
//折叠的标志,true为折叠,false为不折叠
|
||||||
foldFormFlag: false,
|
foldFormFlag: false,
|
||||||
|
comFlag: true,
|
||||||
nodeList:[],
|
nodeList:[],
|
||||||
drawerTitle:'',
|
drawerTitle:'',
|
||||||
isTransfer: false,
|
isTransfer: false,
|
||||||
@@ -720,6 +725,7 @@ export default {
|
|||||||
* @description: 动态表单读取
|
* @description: 动态表单读取
|
||||||
*/
|
*/
|
||||||
getFormFieldList(item) {
|
getFormFieldList(item) {
|
||||||
|
console.log(item);
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.listForm = JSON.parse(JSON.stringify(item));
|
this.listForm = JSON.parse(JSON.stringify(item));
|
||||||
if (item.form === undefined) {
|
if (item.form === undefined) {
|
||||||
@@ -792,30 +798,41 @@ export default {
|
|||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
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
|
||||||
|
}
|
||||||
|
},
|
||||||
//提交事件
|
//提交事件
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.listForm.prcCreateUser = this.$store.getters.userInfo.userId;
|
if(!this.comFlag) {
|
||||||
this.listForm.commentText = this.commentText;
|
this.$message.warning('请填写完整的不符合项信息')
|
||||||
this.listForm.approvalOpinion = "";
|
}else{
|
||||||
this.listForm.signFlag = "";
|
this.listForm.prcCreateUser = this.$store.getters.userInfo.userId;
|
||||||
this.listForm.dataList = this.dataList;
|
this.listForm.commentText = this.commentText;
|
||||||
const json = JSON.stringify(this.listForm);
|
this.listForm.approvalOpinion = "";
|
||||||
this.isSubmit = true;
|
this.listForm.signFlag = "";
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.listForm.dataList = this.dataList;
|
||||||
taskIds: this.taskIds,
|
const json = JSON.stringify(this.listForm);
|
||||||
userId: this.userId,
|
this.isSubmit = true;
|
||||||
json: json
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
}, {
|
taskIds: this.taskIds,
|
||||||
_this: this
|
userId: this.userId,
|
||||||
}, res => {
|
json: json
|
||||||
if (res.success) {
|
}, {
|
||||||
this.$message.success(res.message);
|
_this: this
|
||||||
this.$router.push("/processCenter");
|
}, res => {
|
||||||
}
|
if (res.success) {
|
||||||
this.isSubmit = false;
|
this.$message.success(res.message);
|
||||||
}, e => {
|
this.$router.push("/processCenter");
|
||||||
|
}
|
||||||
|
this.isSubmit = false;
|
||||||
|
}, e => {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//标准表格选择框改变
|
//标准表格选择框改变
|
||||||
selectStandChange(data) {
|
selectStandChange(data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user