+
@@ -393,7 +429,7 @@
['done', 'active']), ('is_company', '=', True)]
-
+
流程查询
diff --git a/soong_workflow/wizard/soong_workflow_comment_wizard_view.xml b/soong_workflow/wizard/soong_workflow_comment_wizard_view.xml
index 347ab0f2f..329746b99 100644
--- a/soong_workflow/wizard/soong_workflow_comment_wizard_view.xml
+++ b/soong_workflow/wizard/soong_workflow_comment_wizard_view.xml
@@ -35,7 +35,7 @@
-
+
@@ -59,7 +59,7 @@
-
+
@@ -94,8 +94,8 @@
-
-
+
+
@@ -105,13 +105,23 @@
当前流程是否收回,请确认
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/yuthon_report/static/src/components/yuthon_report/yuthon_report.scss b/yuthon_report/static/src/components/yuthon_report/yuthon_report.scss
index b48b3cd88..3847f6bd2 100644
--- a/yuthon_report/static/src/components/yuthon_report/yuthon_report.scss
+++ b/yuthon_report/static/src/components/yuthon_report/yuthon_report.scss
@@ -23,4 +23,9 @@
}
.stat-change {
font-size: 0.9rem;
+ }
+
+ /* 下拉框placeholder样式 */
+ #formview_default_conditions option[value=""] {
+ color: #6c757d;
}
\ No newline at end of file
diff --git a/yuthon_salary/controllers/salary_phone.py b/yuthon_salary/controllers/salary_phone.py
index 226e1be6a..477bf3cea 100644
--- a/yuthon_salary/controllers/salary_phone.py
+++ b/yuthon_salary/controllers/salary_phone.py
@@ -66,16 +66,16 @@ class YuthonWillTask(http.Controller):
users_id = int(kw.get('users_id'))
user = request.env['res.users'].sudo().browse(int(users_id))
employee_id = user.with_company(user.company_id.id).employee_id.id
- records = request.env['hr.payslip'].sudo().search([('employee_id', '=', employee_id)])
+ records = request.env['yuthon.salary.active'].sudo().search([('employee_id', '=', employee_id)])
data = {}
for record in records:
- year = record.date_from.year
- month = record.date_from.month
+ year = int(record.select_year)
+ month = int(record.select_time)
if year not in data.keys():
data[year] = {'total': 0}
if month not in data[year].keys():
- data[year][month] = {'total': record.actual_salary}
- data[year]['total'] += record.actual_salary
+ data[year][month] = {'total': record.actual_paid_salary}
+ data[year]['total'] += record.actual_paid_salary
return json.dumps({'data': data, 'code': 200, 'message': ''})
@http.route('/phone/salary/self/detail', type='http', auth="none", csrf=False, cors='*')
diff --git a/yuthon_will_task/controllers/main.py b/yuthon_will_task/controllers/main.py
index 7a3983343..3d01ae9b4 100644
--- a/yuthon_will_task/controllers/main.py
+++ b/yuthon_will_task/controllers/main.py
@@ -73,12 +73,10 @@ class YuthonWillTask(http.Controller):
@http.route('/will/task/list', methods=['POST'], type='http', auth='public', csrf=False)
def will_task_list(self, **kwargs):
- employee_id = request.env['hr.employee'].search([('user_id', '=', int(kwargs.get('users_id')))])
start = kwargs.get('start')
request_hour_selection = request.env['yuthon.will.task'].sudo().fields_get(allfields=['request_hour_from'])['request_hour_from']['selection']
result_list = []
- # task_ids = request.env['yuthon.will.task'].sudo().search([], offset=start, limit=20)
- task_ids = request.env['yuthon.will.task'].sudo().search(['|', ('employee_ids', 'in', employee_id.id), ('employee_id.id', '=', employee_id.id)], offset=start, limit=20)
+ task_ids = request.env['yuthon.will.task'].sudo().search([('users_ids', 'in', [int(kwargs.get('users_id'))])], offset=start, limit=20)
for task in task_ids:
weekday_str = ["周一", "周二", "周三", "周四", "周五", "周六", "周日"][task.start_date.weekday()]
result = {
@@ -123,15 +121,21 @@ class YuthonWillTask(http.Controller):
'id': task.id,
'name': task.name,
'employee_id': task.employee_id.name,
- 'employee_ids': ', '.join(task.employee_ids.mapped('name')),
+ 'employee_ids': ','.join(task.employee_ids.mapped('name')),
+ 'employee_ids2': ','.join(task.employee_ids2.mapped('name')),
+ 'task_time_ids': ','.join(task.task_time_ids.mapped('name')),
+ 'drivers': task.employee_ids2.read(['name']),
+ 'employee': task.employee_ids.read(['name']),
+ 'task_time': task.task_time_ids.read(['name']),
'employee_num': len(task.employee_ids),
'start_date': fields.Date.to_string(task.start_date),
'weekday': weekday_str,
- 'request_hour_from': '',
- 'request_hour_to': '',
+ 'request_hour_from': task.request_hour_from,
+ 'request_hour_to': task.request_hour_to,
'remarks': task.remarks,
'address': task.address,
'file_list': file_list,
+ 'priority': task.priority,
}
hour_dict = dict(request_hour_selection)
diff --git a/yuthon_work_brand/views/hr_menus.xml b/yuthon_work_brand/views/hr_menus.xml
index 45229df20..9d89f5109 100644
--- a/yuthon_work_brand/views/hr_menus.xml
+++ b/yuthon_work_brand/views/hr_menus.xml
@@ -757,7 +757,7 @@
-
+
@@ -767,7 +767,7 @@
-
+