fix: 审批退回无法编辑, fix #71

This commit is contained in:
YuleiLan 2020-10-14 18:03:11 +08:00
parent ccc0a1c3c1
commit c1ee9415a1

View File

@ -648,7 +648,9 @@ func (h *Handle) HandleWorkOrder(
// 是否可写,只有可写的模版可以更新数据
updateStatus := false
if writeTplList, writeOK := h.stateValue["writeTpls"]; writeOK {
if h.stateValue["clazz"].(string) == "start" {
updateStatus = true
} else if writeTplList, writeOK := h.stateValue["writeTpls"]; writeOK {
tplListTag:
for _, writeTplId := range writeTplList.([]interface{}) {
if writeTplId == t["tplId"] { // 可写