修复列表视图编码提示不正确

This commit is contained in:
乐风 2021-05-09 22:41:25 +08:00
parent c8aa6ac4bc
commit a792122da0
3 changed files with 9 additions and 6 deletions

View File

@ -26,7 +26,8 @@ class CustomerApplyHook
return $params; return $params;
} }
public function onBeforeAudit($params) { public function onBeforeAudit($params)
{
$id = $params['id']; $id = $params['id'];
$apply = DB::table('customer_apply') $apply = DB::table('customer_apply')
@ -98,7 +99,7 @@ class CustomerApplyHook
'status' => 1, 'status' => 1,
]); ]);
// 客户档案同步外部接口 // 客户档案同步接口
$department = DB::table('department')->where('id', $customer['department_id'])->first(); $department = DB::table('department')->where('id', $customer['department_id'])->first();
$class = DB::table('customer_class')->where('id', $customer['class_id'])->first(); $class = DB::table('customer_class')->where('id', $customer['class_id'])->first();
$customer['class_code'] = $class['code']; $customer['class_code'] = $class['code'];
@ -106,7 +107,7 @@ class CustomerApplyHook
$ret = plugin_sync_api('postCustomer', $customer); $ret = plugin_sync_api('postCustomer', $customer);
if ($ret['error_code'] > 0) { if ($ret['error_code'] > 0) {
abort_error($ret['msg']); abort_error($ret['msg']);
} }
return $params; return $params;
} }

View File

@ -38,8 +38,10 @@ class CustomerHook
return $params; return $params;
} }
public function onAfterStore($params) { public function onAfterStore($params)
{
$master = $params['master']; $master = $params['master'];
// 客户开票单位为空 // 客户开票单位为空
$count = CustomerTax::where('customer_id', $master['id'])->count(); $count = CustomerTax::where('customer_id', $master['id'])->count();
if ($count == 0) { if ($count == 0) {
@ -62,7 +64,7 @@ class CustomerHook
$ret = plugin_sync_api('postCustomer', $master); $ret = plugin_sync_api('postCustomer', $master);
if ($ret['error_code'] > 0) { if ($ret['error_code'] > 0) {
abort_error($ret['msg']); abort_error($ret['msg']);
} }
return $params; return $params;
} }

View File

@ -75,7 +75,7 @@
<div class="form-group"> <div class="form-group">
<label for="set_col"> <label for="set_col">
<span class="red">*</span> 编码 <span class="red">*</span> 编码
<a class="hinted" href="javascript:;" title="视图前缀:{{$master_model['table']}}_"><i class="fa fa-question-circle"></i></a> <a class="hinted" href="javascript:;" title="视图前缀:{{$model['table']}}_"><i class="fa fa-question-circle"></i></a>
</label> </label>
<div class="form-text"> <div class="form-text">
<input type="text" id="code" name="code" value="{{$template['code']}}" class="form-control input-sm"> <input type="text" id="code" name="code" value="{{$template['code']}}" class="form-control input-sm">