diff --git a/yuthon_notice/controllers/main.py b/yuthon_notice/controllers/main.py index 9595d0206..15731c1e2 100644 --- a/yuthon_notice/controllers/main.py +++ b/yuthon_notice/controllers/main.py @@ -40,3 +40,18 @@ class YuthonNotice(http.Controller): 'code':200, 'message':'success' }) + + @http.route('/yuthon/notice/list', methods=['POST'], type='http', auth='none', csrf=False) + def yuthon_notice_list(self, **kwargs): + notice_ids = request.env['yuthon.notice'].sudo().search([('employee_id.id', "=", kwargs.get('employee_id'))]) + data_list = [] + for notice in notice_ids: + result = { + 'id': notice.id, + 'create_data1': notice.create_data1, + 'users_id': notice.users_id.name, + 'name': notice.name, + } + data_list.append(result) + return json.dumps({'data': data_list, 'code': 200, 'message': 'success'}) + diff --git a/yuthon_trade/report/business_approval_print_templates.xml b/yuthon_trade/report/business_approval_print_templates.xml index 21967d3f0..c97027029 100644 --- a/yuthon_trade/report/business_approval_print_templates.xml +++ b/yuthon_trade/report/business_approval_print_templates.xml @@ -7,139 +7,46 @@ - - -
- 业务审批单 -
- - -
- 部门: -
- - +
业务审批单
+
部门:
- - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - +
事项标题 - -
业务类型 - - 、 - -
事项说明 - -
用章类型 - - 、 - -
用章范围 - - 、 - -
附件清单 - -
-
-
事项标题
业务类型、
事项说明
用章类型、
用章范围、
附件清单
审批详情
- - - -
-