This commit is contained in:
mkm 2024-01-08 15:47:26 +08:00
parent d029e37ab3
commit a062b2ed2c
2 changed files with 3 additions and 1 deletions

View File

@ -304,6 +304,8 @@ class Task extends CommonModel
'name' => trim($taskTitle),
'exchange_list' => $data['exchangeList'],
'copied_list' => $data['copied_list'],
'department' => $data['department_code'],
'department_liaison' => $data['liasion_code'],
];
$result = self::create($data);
// self::update(['sort' => $result['id']], ['id' => $result['id']]);

View File

@ -155,7 +155,7 @@ class Task extends BasicApi
*/
public function save(Request $request)
{
$data = $request::only('name,stage_code,project_code,assign_to,pcode,exchangeList,description,end_time,pri,executor,copied_list');
$data = $request::only('name,stage_code,project_code,assign_to,pcode,exchangeList,description,end_time,pri,executor,copied_list,department_code,liasion_code');
if (!isset($data['assign_to'])) {
$data['assign_to'] = '';
}