ac7ad931 by renchao@pashanhoo.com

style:流程修改

1 parent 9663473f
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-17 10:41:57
* @LastEditTime: 2023-08-02 14:24:20
-->
<template>
<div class="from-clues">
......@@ -73,26 +73,29 @@
* @author: renchao
*/
onSubmit () {
if(!this.outstepopinion){
this.$message.error("请填写退回意见");
}else{
sendBackTask({
bsmSlsq: this.formData.bsmSlsq,
backNodeList: [this.selectItem],
message:this.outstepopinion
}).then((res) => {
this.$message.success("退回成功");
setTimeout(() => {
// window.opener.location.reload(); //刷新父窗口
if (window.opener && window.opener.getBpageList) {
window.opener.getBpageList();
if (!this.outstepopinion) {
this.$message.error("请填写退回意见");
} else {
sendBackTask({
bsmSlsq: this.formData.bsmSlsq,
backNodeList: [this.selectItem],
message: this.outstepopinion
}).then((res) => {
if (res.code == 200) {
this.$message.success("退回成功");
setTimeout(() => {
if (window.opener && window.opener.getBpageList) {
window.opener.getBpageList();
} else {
window.opener.frames[0].getBpageList();
}
window.close();
this.$emit("input", false);
}, 1000);
} else {
window.opener.frames[0].getBpageList();
this.$message.error(res.message);
}
window.close();
this.$emit("input", false);
}, 1000);
});
});
}
},
/**
......@@ -113,7 +116,7 @@
getTaskBackNode(this.formData).then((res) => {
if (res.code == 200) {
this.dataList = res.result;
console.log("this.dataList",this.dataList);
console.log("this.dataList", this.dataList);
if (res.result) {
this.selectActivity = res.result[0].activityId;
this.selectItem = res.result[0];
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-01 18:05:25
* @LastEditTime: 2023-08-02 14:08:27
*/
export default {
data () {
......@@ -11,7 +11,7 @@ export default {
watch: {
'ruleForm.sldy.gyfs': {
handler: function (val, oldVal) {
if (val == '0' && this.ruleForm.qlrList.length > 1) {
if (val == '0' && this.ruleForm.qlrList.length > 1 && oldVal) {
this.ruleForm.sldy.gyfs = oldVal
this.$message({
message: '单独所有只能选择一个,请先删除再切换',
......