// 解锁
getTaskUnlock(data){
this.$confirm(data.qualityinspector+'质检中,是否确认解锁?', '确定解锁', {
confirmButtonText: '确定解锁',
cancelButtonText: '取消',
type: 'warning'}).then(() => {
this.$store.dispatch("loading/CHANGE_LOADING", true);
let params ={
clmnum:data.clmnum,//理赔号
jobno:this.userInfo.account//当前账号
}
getTaskUnlockApi(params).then((res) => {
this.$store.dispatch("loading/CHANGE_LOADING", false);
if (res.resultCode === 0) {
// 解锁成功 0成功 500失败
// data.unlocksign='2'
this.$message({ message: res.resultMsg, type: "success",showClose: true});
this.intDataList();
}else{
this.$message({ message: res.resultMsg, type: "warning",showClose: true});
}
}).catch((err) => {
this.$store.dispatch("loading/CHANGE_LOADING", false);
// this.$message({ message: err, type: "warning", showClose: true });
});
})
},
ElmentUI的提示对话框
最新推荐文章于 2024-04-10 08:30:00 发布