提交 93eafbad authored 作者: chengye's avatar chengye

读表类型缴费单数据字段中去掉account_id与em_id

上级 3d9c1ef5
...@@ -198,13 +198,14 @@ class Payment extends Base ...@@ -198,13 +198,14 @@ class Payment extends Base
throw new Exception('保存账单与缴费关联数据失败'); throw new Exception('保存账单与缴费关联数据失败');
}; };
$account = (new EmAccount())->getIdByInvoiceID($paymentInvoiceArr[0]['invoice_id']);
//3.将账单数据汇总写入缴费表 //3.将账单数据汇总写入缴费表
$pData = []; $pData = [];
$pData['payment_id'] = $paymentId; $pData['payment_id'] = $paymentId;
$pData['status'] = 0; $pData['status'] = 1;
$pData['account_id'] = $account->account_id; $pData['account_id'] = '\\'; //占位符,表示空的无效的
$pData['em_id'] = '\\'; //占位符,表示空的无效的
$pData['payment_type'] = 1;
$pData['balance'] = $pData['amount'] = round($amount,2); $pData['balance'] = $pData['amount'] = round($amount,2);
if((new EmPayment())->save($pData)){ if((new EmPayment())->save($pData)){
......
...@@ -163,12 +163,11 @@ ...@@ -163,12 +163,11 @@
审核 审核
</button> </button>
{/if} {/if}
{if $fk.oafk_numb == '' && $payment.is_check == 1 && {if $fk.oafk_numb == '' && check_ele_permission('payment/payoa')}
check_ele_permission('payment/payoa')}
<button class="layui-btn" lay-filter="pay" lay-submit=""> <button class="layui-btn" lay-filter="pay" lay-submit="">
提交付款 提交付款
</button> </button>
{elseif check_ele_permission('payment/checkPayment')/} {elseif check_ele_permission('payment/checkPayment') && $payment.status == 0 /}
<button class="layui-btn" lay-filter="pass" lay-submit=""> <button class="layui-btn" lay-filter="pass" lay-submit="">
通过 通过
</button> </button>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论