|
@@ -397,12 +397,17 @@ class Filing extends Base
|
|
|
->findOrEmpty();
|
|
|
if (empty($rs)) return json_show(1005, '该报备单不存在或不允许审核');
|
|
|
|
|
|
- $companyName='';
|
|
|
+ $update = array_merge($param, [
|
|
|
+ 'status'=>$param['is_check'],
|
|
|
+ 'updaterid' => $this->uid,
|
|
|
+ 'updater' => $this->uname,
|
|
|
+ 'updatetime' => date('Y-m-d H:i:s'),
|
|
|
+ ]);
|
|
|
if($param["is_check"]==2){
|
|
|
$userCommon = \app\admin\common\User::getIns();
|
|
|
$company = $userCommon->handle('cInfo', ['companyNo' => $param['companyCode']]);
|
|
|
if (!isset($company['data'])) return json_show(1005, '该客户不存在');
|
|
|
- $companyName=$company['data']['companyName']??"";
|
|
|
+ $update['companyName']=$company['data']['companyName']??"";
|
|
|
$tmp = Db::name('platform')
|
|
|
->where(['is_del' => 0, 'id' => $param['platform_id']])
|
|
|
->field('id,is_select_pay_rate,status')
|
|
@@ -416,14 +421,14 @@ class Filing extends Base
|
|
|
|
|
|
|
|
|
//校验支付渠道中的业务公司是否与报备单业务公司重复
|
|
|
-
|
|
|
- $update = array_merge($param, [
|
|
|
- 'companyName' => $companyName,
|
|
|
- "status"=>$param["is_check"],
|
|
|
- 'updaterid' => $this->uid,
|
|
|
- 'updater' => $this->uname,
|
|
|
- 'updatetime' => date('Y-m-d H:i:s'),
|
|
|
- ]);
|
|
|
+//
|
|
|
+// $update = array_merge($param, [
|
|
|
+// 'companyName' => $companyName,
|
|
|
+// "status"=>$param["is_check"],
|
|
|
+// 'updaterid' => $this->uid,
|
|
|
+// 'updater' => $this->uname,
|
|
|
+// 'updatetime' => date('Y-m-d H:i:s'),
|
|
|
+// ]);
|
|
|
//
|
|
|
// if ($rs['is_determine_price'] == 1) $update['cgd_charge'] = round(bcsub($rs['price'], $param['service_charge'], 3), 2);//确定售价时,采购价=售价-服务费
|
|
|
// else $update['price'] = round(bcadd($rs['cgd_charge'], $param['service_charge'], 3), 2);//不确定售价时,售价=采购价+服务费
|