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) {
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);
});
})
},