!12528 采购确认

Merge pull request !12528 from 李鹏宇/dev_wang
This commit is contained in:
李鹏宇
2026-07-30 07:47:47 +00:00
committed by Gitee
@@ -522,11 +522,15 @@ class SoongWorkflowMixin(models.AbstractModel):
# 状态列表
node_list = btn_rec.workflow_id.node_ids.sorted('sequence')
if self.name_title != '采购申请单':
state = self.state
state_list = [i.node_name for i in btn_rec.workflow_id.node_ids.sorted('sequence')]
else:
if self.state == "purchase":
state = "总经理"
else:
state = self.state
state_list = [i.node_name for i in btn_rec.workflow_id.node_ids.sorted('sequence')] + ['purchase']
# 当前节点状态
state = self.state
if self.state == 'draft':
state = '询价'
self_state = state_list.index(state)