退伍复学状态按钮调整
This commit is contained in:
@@ -853,7 +853,7 @@
|
|||||||
<el-dialog :title="returnTitle" :visible.sync="returnOpen" width="40%" append-to-body>
|
<el-dialog :title="returnTitle" :visible.sync="returnOpen" width="40%" append-to-body>
|
||||||
<el-form ref="taskForm" :model="taskForm" label-width="80px">
|
<el-form ref="taskForm" :model="taskForm" label-width="80px">
|
||||||
<el-form-item label="退回节点" prop="targetKey">
|
<el-form-item label="退回节点" prop="targetKey">
|
||||||
<el-radio-group v-model="taskForm.targetKey">
|
<el-radio-group v-model="taskForm.targetKey" @change="handleReturnNodeChange">
|
||||||
<el-radio-button v-for="item in returnTaskList" :key="item.id" :label="item.id">{{ item.name }}
|
<el-radio-button v-for="item in returnTaskList" :key="item.id" :label="item.id">{{ item.name }}
|
||||||
</el-radio-button>
|
</el-radio-button>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
@@ -1030,6 +1030,7 @@ export default {
|
|||||||
enlistmentReserveForm: false, // 入伍保留学籍表单
|
enlistmentReserveForm: false, // 入伍保留学籍表单
|
||||||
outsideAccommodationForm: false, // 外宿申请表单
|
outsideAccommodationForm: false, // 外宿申请表单
|
||||||
basicForm: false,//退伍复学表单
|
basicForm: false,//退伍复学表单
|
||||||
|
BasicTestData: 0, // 新增:默认0,仅退回学生申请时改为1
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1661,6 +1662,26 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
// 监听退回节点选择变化
|
||||||
|
handleReturnNodeChange(val) {
|
||||||
|
// 1. 找到选中的节点
|
||||||
|
const selectedNode = this.returnTaskList.find(item => item.id === val);
|
||||||
|
if (!selectedNode) {
|
||||||
|
this.BasicTestData = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 2. 仅退伍复学场景 + 节点name是“学生申请” → testData=1
|
||||||
|
if (this.category === "退伍复学" && selectedNode.name === "学生申请") {
|
||||||
|
this.BasicTestData = 1;
|
||||||
|
// console.log("已选中学生申请,testData=", this.testData); // 调试
|
||||||
|
} else {
|
||||||
|
this.BasicTestData = 0;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
/** 可退回任务列表 */
|
/** 可退回任务列表 */
|
||||||
handleReturn() {
|
handleReturn() {
|
||||||
this.returnOpen = true
|
this.returnOpen = true
|
||||||
@@ -1687,14 +1708,14 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
else if (this.category == "退伍复学") {
|
else if (this.category == "退伍复学") {
|
||||||
|
|
||||||
|
console.log("数据",this.returnTaskList)
|
||||||
// updateBasic({stuId:this.form.stuId,fdStatus:"1",fdIdea:this.taskForm.comment}).then(response => {})
|
// updateBasic({stuId:this.form.stuId,fdStatus:"1",fdIdea:this.taskForm.comment}).then(response => {})
|
||||||
var stNameData = ''
|
var stNameData = ''
|
||||||
let newName = this.startUser.replace(/-/g, "");
|
let newName = this.startUser.replace(/-/g, "");
|
||||||
// 异步请求的回调内处理后续逻辑
|
// 异步请求的回调内处理后续逻辑
|
||||||
getStname(newName).then(response => {
|
getStname(newName).then(response => {
|
||||||
stNameData = response.data;
|
stNameData = response.data;
|
||||||
console.log(stNameData)
|
|
||||||
console.log("stNameData.id:", stNameData.id);
|
|
||||||
|
|
||||||
// 招生与就业处
|
// 招生与就业处
|
||||||
if (this.taskName == "招生与就业处") {
|
if (this.taskName == "招生与就业处") {
|
||||||
@@ -1812,8 +1833,8 @@ export default {
|
|||||||
// 异步请求的回调内处理后续逻辑
|
// 异步请求的回调内处理后续逻辑
|
||||||
getStname(newName).then(response => {
|
getStname(newName).then(response => {
|
||||||
stNameData = response.data;
|
stNameData = response.data;
|
||||||
console.log(stNameData)
|
// console.log(stNameData)
|
||||||
console.log("stNameData.id:", stNameData.id);
|
// console.log("stNameData.id:", stNameData.id);
|
||||||
|
|
||||||
// 招生与就业处
|
// 招生与就业处
|
||||||
if (this.taskName == "招生与就业处") {
|
if (this.taskName == "招生与就业处") {
|
||||||
@@ -1825,7 +1846,8 @@ export default {
|
|||||||
// zsIdea: this.taskForm.comment,
|
// zsIdea: this.taskForm.comment,
|
||||||
zsTime: new Date(),
|
zsTime: new Date(),
|
||||||
// zsIdea:字段缺失改为zsIdea字段
|
// zsIdea:字段缺失改为zsIdea字段
|
||||||
zsIdea: assigneeName
|
zsIdea: assigneeName,
|
||||||
|
testData: this.BasicTestData,
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
// this.$modal.msgSuccess(response.msg)
|
// this.$modal.msgSuccess(response.msg)
|
||||||
})
|
})
|
||||||
@@ -1840,7 +1862,8 @@ export default {
|
|||||||
fdStatus: "2",
|
fdStatus: "2",
|
||||||
fdIdea: this.taskForm.comment,
|
fdIdea: this.taskForm.comment,
|
||||||
fdTime: new Date(),
|
fdTime: new Date(),
|
||||||
fdQm: assigneeName
|
fdQm: assigneeName,
|
||||||
|
testData: this.BasicTestData,
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
// this.$modal.msgSuccess(response.msg)
|
// this.$modal.msgSuccess(response.msg)
|
||||||
})
|
})
|
||||||
@@ -1855,7 +1878,8 @@ export default {
|
|||||||
xwStatus: "2",
|
xwStatus: "2",
|
||||||
xwIdea: this.taskForm.comment,
|
xwIdea: this.taskForm.comment,
|
||||||
xwTime: new Date(),
|
xwTime: new Date(),
|
||||||
xwQm: assigneeName
|
xwQm: assigneeName,
|
||||||
|
testData: this.BasicTestData,
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
// this.$modal.msgSuccess(response.msg)
|
// this.$modal.msgSuccess(response.msg)
|
||||||
})
|
})
|
||||||
@@ -1870,7 +1894,8 @@ export default {
|
|||||||
twoStatus: "2",
|
twoStatus: "2",
|
||||||
twoIdea: this.taskForm.comment,
|
twoIdea: this.taskForm.comment,
|
||||||
twoTime: new Date(),
|
twoTime: new Date(),
|
||||||
erQm: assigneeName
|
erQm: assigneeName,
|
||||||
|
testData: this.BasicTestData,
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
// this.$modal.msgSuccess(response.msg)
|
// this.$modal.msgSuccess(response.msg)
|
||||||
})
|
})
|
||||||
@@ -1885,7 +1910,8 @@ export default {
|
|||||||
xjglStatus: "2",
|
xjglStatus: "2",
|
||||||
xjIdea: this.taskForm.comment,
|
xjIdea: this.taskForm.comment,
|
||||||
xjTime: new Date(),
|
xjTime: new Date(),
|
||||||
xjQm: assigneeName
|
xjQm: assigneeName,
|
||||||
|
testData: this.BasicTestData,
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
// this.$modal.msgSuccess(response.msg)
|
// this.$modal.msgSuccess(response.msg)
|
||||||
})
|
})
|
||||||
@@ -1900,7 +1926,8 @@ export default {
|
|||||||
jwStatus: "2",
|
jwStatus: "2",
|
||||||
jwIdea: this.taskForm.comment,
|
jwIdea: this.taskForm.comment,
|
||||||
jwTime: new Date(),
|
jwTime: new Date(),
|
||||||
jwQm: assigneeName
|
jwQm: assigneeName,
|
||||||
|
testData: this.BasicTestData,
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
// this.$modal.msgSuccess(response.msg)
|
// this.$modal.msgSuccess(response.msg)
|
||||||
})
|
})
|
||||||
@@ -1921,6 +1948,7 @@ export default {
|
|||||||
this.taskForm.returnTaskShow = false
|
this.taskForm.returnTaskShow = false
|
||||||
this.taskForm.defaultTaskShow = true
|
this.taskForm.defaultTaskShow = true
|
||||||
this.returnTaskList = []
|
this.returnTaskList = []
|
||||||
|
this.BasicTestData = 0
|
||||||
},
|
},
|
||||||
/** 委派任务 */
|
/** 委派任务 */
|
||||||
submitDeleteTask() {
|
submitDeleteTask() {
|
||||||
|
|||||||
@@ -439,6 +439,7 @@ export default {
|
|||||||
this.form.twoStatus=0
|
this.form.twoStatus=0
|
||||||
this.form.Status=0
|
this.form.Status=0
|
||||||
this.form.jwStatus=0
|
this.form.jwStatus=0
|
||||||
|
this.form.testData=0
|
||||||
|
|
||||||
this.form.fdIdea=""
|
this.form.fdIdea=""
|
||||||
this.form.xwIdeaI=""
|
this.form.xwIdeaI=""
|
||||||
|
|||||||
@@ -310,7 +310,9 @@ export default {
|
|||||||
dataa: null,
|
dataa: null,
|
||||||
conversion: null,
|
conversion: null,
|
||||||
processId: null,
|
processId: null,
|
||||||
deployId: null
|
deployId: null,
|
||||||
|
testData: null,
|
||||||
|
testTest: null
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
|
|||||||
@@ -125,17 +125,58 @@
|
|||||||
|
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<!-- <el-button
|
||||||
v-if="scope.row.zsStatus === '3' || scope.row.fdStatus === '3'
|
v-if="scope.row.zsStatus === '3' || scope.row.fdStatus === '3'
|
||||||
|| scope.row.fdStatus === '2' || scope.row.twoStatus === '2' || scope.row.xwStatus == '2'
|
|| (scope.row.zsStatus === '2' && scope.row.testData =='1' )
|
||||||
|| scope.row.xjglStatus == '2' || scope.row.jwStatus == '2'
|
|| (scope.row.fdStatus === '2' && scope.row.testData =='1' )
|
||||||
|
|| (scope.row.twoStatus === '2' && scope.row.testData =='1')
|
||||||
|
|| (scope.row.xwStatus == '2' && scope.row.testData =='1')
|
||||||
|
|| (scope.row.xjglStatus == '2' && scope.row.testData =='1')
|
||||||
|
|| (scope.row.jwStatus == '2' && scope.row.testData =='1')
|
||||||
"
|
"
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handledetail(scope.row)"
|
@click="handledetail(scope.row)"
|
||||||
v-hasPermi="['routine:basic:edit']"
|
v-hasPermi="['routine:basic:edit']"
|
||||||
>修改提交</el-button>
|
>修改提交</el-button> -->
|
||||||
|
|
||||||
|
<!-- 保留代码 -->
|
||||||
|
<div v-if="scope.row.conversion=='Y'">
|
||||||
|
<el-button
|
||||||
|
v-if="scope.row.zsStatus === '3'
|
||||||
|
|| (scope.row.zsStatus === '2' && scope.row.testData =='1' )
|
||||||
|
|| (scope.row.fdStatus === '2' && scope.row.testData =='1' )
|
||||||
|
|| (scope.row.twoStatus === '2' && scope.row.testData =='1')
|
||||||
|
|| (scope.row.xwStatus == '2' && scope.row.testData =='1')
|
||||||
|
|| (scope.row.xjglStatus == '2' && scope.row.testData =='1')
|
||||||
|
|| (scope.row.jwStatus == '2' && scope.row.testData =='1')
|
||||||
|
"
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handledetail(scope.row)"
|
||||||
|
v-hasPermi="['routine:basic:edit']"
|
||||||
|
>修改提交</el-button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-if="scope.row.conversion=='N'">
|
||||||
|
<el-button
|
||||||
|
v-if=" scope.row.fdStatus === '3'
|
||||||
|
|| (scope.row.fdStatus === '2' && scope.row.testData =='1' )
|
||||||
|
|| (scope.row.twoStatus === '2' && scope.row.testData =='1')
|
||||||
|
|| (scope.row.xwStatus == '2' && scope.row.testData =='1')
|
||||||
|
|| (scope.row.xjglStatus == '2' && scope.row.testData =='1')
|
||||||
|
|| (scope.row.jwStatus == '2' && scope.row.testData =='1')
|
||||||
|
"
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handledetail(scope.row)"
|
||||||
|
v-hasPermi="['routine:basic:edit']"
|
||||||
|
>修改提交</el-button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
@@ -389,7 +430,9 @@ export default {
|
|||||||
dataa: null,
|
dataa: null,
|
||||||
conversion: null,
|
conversion: null,
|
||||||
processId: null,
|
processId: null,
|
||||||
deployId: null
|
deployId: null,
|
||||||
|
testData: null,
|
||||||
|
testTest: null
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user