parent
54bcc3b4de
commit
27effe8a47
|
@ -269,6 +269,7 @@ class WorkflowController extends DefaultController
|
||||||
|
|
||||||
foreach ($next_logs as $next_log) {
|
foreach ($next_logs as $next_log) {
|
||||||
if ($next_log['option'] > 0) {
|
if ($next_log['option'] > 0) {
|
||||||
|
$next_log['status'] = 1;
|
||||||
$next_log['remark'] = $remark;
|
$next_log['remark'] = $remark;
|
||||||
$next_log['run_status'] = 'recall';
|
$next_log['run_status'] = 'recall';
|
||||||
$next_log['updated_id'] = $auth['id'];
|
$next_log['updated_id'] = $auth['id'];
|
||||||
|
@ -720,6 +721,7 @@ class WorkflowController extends DefaultController
|
||||||
|
|
||||||
$users = DB::table('user')->get(['id', 'name'])->keyBy('id');
|
$users = DB::table('user')->get(['id', 'name'])->keyBy('id');
|
||||||
$res = [];
|
$res = [];
|
||||||
|
|
||||||
foreach($rows as $row) {
|
foreach($rows as $row) {
|
||||||
|
|
||||||
if (isset($step_ids[$row['step_id']])) {
|
if (isset($step_ids[$row['step_id']])) {
|
||||||
|
@ -729,16 +731,19 @@ class WorkflowController extends DefaultController
|
||||||
}
|
}
|
||||||
|
|
||||||
$user_ids = explode(',', $row['user_ids']);
|
$user_ids = explode(',', $row['user_ids']);
|
||||||
|
|
||||||
$unames = [];
|
$unames = [];
|
||||||
foreach($user_ids as $user_id) {
|
foreach($user_ids as $user_id) {
|
||||||
|
if ($user_id > 0) {
|
||||||
$unames[] = $users[$user_id]['name'];
|
$unames[] = $users[$user_id]['name'];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$row['user_name'] = join(',', $unames);
|
$row['user_name'] = join(',', $unames);
|
||||||
$res[] = $row;
|
$res[] = $row;
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('model/flowLog', [
|
return view('model/flowLog', [
|
||||||
'rows' => $rows,
|
'rows' => $res,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2383,6 +2383,7 @@ class Form
|
||||||
'run_status' => $gets['step_next_type'],
|
'run_status' => $gets['step_next_type'],
|
||||||
'updated_id' => $auth['id'],
|
'updated_id' => $auth['id'],
|
||||||
'updated_at' => time(),
|
'updated_at' => time(),
|
||||||
|
'run_index' => 0,
|
||||||
'status' => 1,
|
'status' => 1,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -2473,6 +2474,7 @@ class Form
|
||||||
->where('run_id', $run_id)
|
->where('run_id', $run_id)
|
||||||
->where('id', $run_log['id'])
|
->where('id', $run_log['id'])
|
||||||
->update([
|
->update([
|
||||||
|
'status' => 1,
|
||||||
'run_status' => $gets['step_next_type'],
|
'run_status' => $gets['step_next_type'],
|
||||||
'remark' => $gets['remark'],
|
'remark' => $gets['remark'],
|
||||||
]);
|
]);
|
||||||
|
@ -2486,6 +2488,7 @@ class Form
|
||||||
->where('option', 1)
|
->where('option', 1)
|
||||||
->where('id', $log['id'])
|
->where('id', $log['id'])
|
||||||
->update([
|
->update([
|
||||||
|
'status' => 1,
|
||||||
'run_status' => $gets['step_next_type'],
|
'run_status' => $gets['step_next_type'],
|
||||||
'remark' => $gets['remark'],
|
'remark' => $gets['remark'],
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -64,7 +64,7 @@ class Grid
|
||||||
$var1 = DB::table('model_run_log')
|
$var1 = DB::table('model_run_log')
|
||||||
->leftJoin('model_run', 'model_run.id', '=', 'model_run_log.run_id')
|
->leftJoin('model_run', 'model_run.id', '=', 'model_run_log.run_id')
|
||||||
->where('model_run_log.option', 1)
|
->where('model_run_log.option', 1)
|
||||||
->where('model_run_log.updated_id', 0)
|
->where('model_run_log.status', 0)
|
||||||
->where('model_run_log.bill_id', $header['bill_id'])
|
->where('model_run_log.bill_id', $header['bill_id'])
|
||||||
->whereRaw('model_run.data_id in ('.$ids.')')
|
->whereRaw('model_run.data_id in ('.$ids.')')
|
||||||
->orderBy('model_run_log.option', 'desc')
|
->orderBy('model_run_log.option', 'desc')
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -29,7 +29,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right">审核人</td>
|
<td align="right">审核人</td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<div id="step_next_user"></div>
|
<div id="step_next_user_html"></div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
$me.on('click', '.step_next_type', function() {
|
$me.on('click', '.step_next_type', function() {
|
||||||
|
|
||||||
$('#step_next', $me).empty();
|
$('#step_next', $me).empty();
|
||||||
$('#step_next_user', $me).empty();
|
$('#step_next_user_html', $me).empty();
|
||||||
$('#step_inform_user', $me).empty();
|
$('#step_inform_user', $me).empty();
|
||||||
|
|
||||||
if (this.value == 'reject') {
|
if (this.value == 'reject') {
|
||||||
|
@ -115,7 +115,7 @@
|
||||||
function step_next_id(step_id) {
|
function step_next_id(step_id) {
|
||||||
if (step_id > 0) {
|
if (step_id > 0) {
|
||||||
// 审核人
|
// 审核人
|
||||||
$('#step_next_user', $me).html(users[step_id]);
|
$('#step_next_user_html', $me).html(users[step_id]);
|
||||||
// 知会人
|
// 知会人
|
||||||
$('#step_inform_user', $me).html(informs[step_id]);
|
$('#step_inform_user', $me).html(informs[step_id]);
|
||||||
// 短信提醒
|
// 短信提醒
|
||||||
|
|
Loading…
Reference in New Issue