一日流程评估-二次评估
This commit is contained in:
parent
6cd38f30fc
commit
c1bdf1c3fe
@ -110,6 +110,15 @@
|
|||||||
v-hasPermi="['benyi:dayflowassessment:query']"
|
v-hasPermi="['benyi:dayflowassessment:query']"
|
||||||
>详情</el-button
|
>详情</el-button
|
||||||
>
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
v-show="!checkUpdateable(scope.row)"
|
||||||
|
@click="handleUpdateAssessment(scope.row)"
|
||||||
|
v-hasPermi="['benyi:dayflowassessment:query']"
|
||||||
|
>评估</el-button
|
||||||
|
>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@ -292,6 +301,13 @@ export default {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
handleUpdateAssessment(row) {
|
||||||
|
const id = row.id;
|
||||||
|
//console.log(id);
|
||||||
|
this.$router.push({
|
||||||
|
path: "/benyi/dayflowassessment/teacher/" + id,
|
||||||
|
});
|
||||||
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: "/benyi/dayflowassessment/teacher/" + Date.now(),
|
path: "/benyi/dayflowassessment/teacher/" + Date.now(),
|
||||||
@ -314,6 +330,12 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch(function () {});
|
.catch(function () {});
|
||||||
},
|
},
|
||||||
|
//控制按钮可用
|
||||||
|
checkUpdateable(row) {
|
||||||
|
var status = row.status;
|
||||||
|
//console.log(date.toLocaleDateString());
|
||||||
|
return status == "1";
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -233,6 +233,7 @@ export default {
|
|||||||
pgdxxm: undefined,
|
pgdxxm: undefined,
|
||||||
createUserid: undefined,
|
createUserid: undefined,
|
||||||
createTime: undefined,
|
createTime: undefined,
|
||||||
|
status: undefined,
|
||||||
list: [],
|
list: [],
|
||||||
};
|
};
|
||||||
this.resetForm("form");
|
this.resetForm("form");
|
||||||
@ -251,6 +252,7 @@ export default {
|
|||||||
if (action === "confirm") {
|
if (action === "confirm") {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.form.list = this.dayflowstandardList;
|
this.form.list = this.dayflowstandardList;
|
||||||
|
this.form.status = "1";
|
||||||
addDayflowassessment(this.form).then((response) => {
|
addDayflowassessment(this.form).then((response) => {
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.msgSuccess("评估成功");
|
this.msgSuccess("评估成功");
|
||||||
|
@ -142,6 +142,7 @@ public class ByDayflowassessmentController extends BaseController {
|
|||||||
} else {
|
} else {
|
||||||
byDayflowassessmentNew.setPgdx(byClass.getZbjs());//设置评估对象为主班教师
|
byDayflowassessmentNew.setPgdx(byClass.getZbjs());//设置评估对象为主班教师
|
||||||
byDayflowassessmentNew.setPgdxxm(byClass.getZbjsxm());
|
byDayflowassessmentNew.setPgdxxm(byClass.getZbjsxm());
|
||||||
|
byDayflowassessmentNew.setStatus("1");//永远是提交状态,因为是助理或配班教师所产生的数据项
|
||||||
byDayflowassessmentNew.setRemark("被评估:"+byDayflowassessment.getId());
|
byDayflowassessmentNew.setRemark("被评估:"+byDayflowassessment.getId());
|
||||||
|
|
||||||
iRows = iRows + addDayFlowAssessment(byDayflowassessmentNew);
|
iRows = iRows + addDayFlowAssessment(byDayflowassessmentNew);
|
||||||
|
@ -155,6 +155,12 @@ public class ByDayflowassessment extends BaseEntity {
|
|||||||
// @Excel(name = "创建时间")
|
// @Excel(name = "创建时间")
|
||||||
// private Date createTime;
|
// private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态
|
||||||
|
*/
|
||||||
|
@Excel(name = "状态")
|
||||||
|
private String status;
|
||||||
|
|
||||||
public Double getBjpjf() {
|
public Double getBjpjf() {
|
||||||
return bjpjf;
|
return bjpjf;
|
||||||
}
|
}
|
||||||
@ -464,6 +470,14 @@ public class ByDayflowassessment extends BaseEntity {
|
|||||||
this.byClass = byClass;
|
this.byClass = byClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setStatus(String status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||||
@ -508,6 +522,7 @@ public class ByDayflowassessment extends BaseEntity {
|
|||||||
.append("wxkcpjf", getWxkcpjf())
|
.append("wxkcpjf", getWxkcpjf())
|
||||||
.append("qkcpjf", getQkcpjf())
|
.append("qkcpjf", getQkcpjf())
|
||||||
.append("byClass", getByClass())
|
.append("byClass", getByClass())
|
||||||
|
.append("status", getStatus())
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
<result property="createUserid" column="create_userid"/>
|
<result property="createUserid" column="create_userid"/>
|
||||||
<result property="createTime" column="create_time"/>
|
<result property="createTime" column="create_time"/>
|
||||||
<result property="remark" column="remark"/>
|
<result property="remark" column="remark"/>
|
||||||
|
<result property="status" column="status" />
|
||||||
<result property="bjpjf" column="bjpjf"/>
|
<result property="bjpjf" column="bjpjf"/>
|
||||||
<result property="zjjdpjf" column="zjjdpjf"/>
|
<result property="zjjdpjf" column="zjjdpjf"/>
|
||||||
<result property="ycpjf" column="ycpjf"/>
|
<result property="ycpjf" column="ycpjf"/>
|
||||||
@ -68,7 +69,7 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectByDayflowassessmentVo">
|
<sql id="selectByDayflowassessmentVo">
|
||||||
select d.id, d.planid, d.dept_id, d.classid, e.bjmc, d.bzbh, d.bzxm, d.pbbh, d.pbxm, d.zlbh, d.zlxm, d.xnxq, d.bzid, d.bzmf, d.kfz, d.kfcs, d.zzdf, d.classdf, d.items, d.values, d.pgdx, f.nick_name as pgdxxm, d.create_userid, d.create_time,
|
select d.id, d.planid, d.dept_id, d.classid, e.bjmc, d.bzbh, d.bzxm, d.pbbh, d.pbxm, d.zlbh, d.zlxm, d.xnxq, d.bzid, d.bzmf, d.kfz, d.kfcs, d.zzdf, d.classdf, d.items, d.values, d.pgdx, f.nick_name as pgdxxm, d.create_userid, d.create_time, d.status,
|
||||||
(select sum(b.value) from by_dayflowassessmentitem b where d.id=b.pid and b.item in (select id from by_day_flow where name='早间接待')) as zjjdpjf,
|
(select sum(b.value) from by_dayflowassessmentitem b where d.id=b.pid and b.item in (select id from by_day_flow where name='早间接待')) as zjjdpjf,
|
||||||
(select sum(b.value) from by_dayflowassessmentitem b where d.id=b.pid and b.item in (select id from by_day_flow where name='用餐')) as ycpjf,
|
(select sum(b.value) from by_dayflowassessmentitem b where d.id=b.pid and b.item in (select id from by_day_flow where name='用餐')) as ycpjf,
|
||||||
(select sum(b.value) from by_dayflowassessmentitem b where d.id=b.pid and b.item in (select id from by_day_flow where name='早间坐圈')) as zjzqpjf,
|
(select sum(b.value) from by_dayflowassessmentitem b where d.id=b.pid and b.item in (select id from by_day_flow where name='早间坐圈')) as zjzqpjf,
|
||||||
@ -208,6 +209,7 @@ group by t.pgdx
|
|||||||
<if test="createUserid != null ">create_userid,</if>
|
<if test="createUserid != null ">create_userid,</if>
|
||||||
<if test="createTime != null ">create_time,</if>
|
<if test="createTime != null ">create_time,</if>
|
||||||
<if test="remark != null and remark != ''">remark,</if>
|
<if test="remark != null and remark != ''">remark,</if>
|
||||||
|
<if test="status != null and status != ''">status,</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="planid != null ">#{planid},</if>
|
<if test="planid != null ">#{planid},</if>
|
||||||
@ -233,6 +235,7 @@ group by t.pgdx
|
|||||||
<if test="createUserid != null ">#{createUserid},</if>
|
<if test="createUserid != null ">#{createUserid},</if>
|
||||||
<if test="createTime != null ">#{createTime},</if>
|
<if test="createTime != null ">#{createTime},</if>
|
||||||
<if test="remark != null and remark != ''">#{remark},</if>
|
<if test="remark != null and remark != ''">#{remark},</if>
|
||||||
|
<if test="status != null and status != ''">#{status},</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
@ -261,6 +264,8 @@ group by t.pgdx
|
|||||||
<if test="pgdxxm != null ">pgdxxm = #{pgdxxm},</if>
|
<if test="pgdxxm != null ">pgdxxm = #{pgdxxm},</if>
|
||||||
<if test="createUserid != null ">create_userid = #{createUserid},</if>
|
<if test="createUserid != null ">create_userid = #{createUserid},</if>
|
||||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||||
|
<if test="remark != null and remark != ''">#{remark},</if>
|
||||||
|
<if test="status != null and status != ''">#{status},</if>
|
||||||
</trim>
|
</trim>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user