打款信息查看

master
chenzhi 4 years ago
parent 3ef24c2c57
commit c7c67f279a

@ -27,6 +27,17 @@ class CompanyStatementPoolController extends ThinkController
"4"=>"打款成功", "4"=>"打款成功",
"5"=>"无需打款" "5"=>"无需打款"
]; ];
public $InfoVerifyStatus=[
"-1"=>"配置信息不全",
"0"=>"信息未确认",
"1"=>"允许打款",
"2"=>"线下无需打款"
];
public $PayStatus=[
"-1"=>"打款失败",
"0"=>"未打款",
"1"=>"打款成功"
];
public $admininfo; public $admininfo;
public $DBModel; public $DBModel;
public function _initialize() public function _initialize()
@ -499,6 +510,35 @@ class CompanyStatementPoolController extends ThinkController
//修改状态 //修改状态
$this->setOneVerifyStatus(2,"payment",$_REQUEST['pool_id'],$mgs = "打款信息提交"); $this->setOneVerifyStatus(2,"payment",$_REQUEST['pool_id'],$mgs = "打款信息提交");
} }
//查看打款信息
public function viewPayment(){
if(!isset($_REQUEST['id'])) $this->error("参数错误");
$id = $_REQUEST['id'];
$CompanyInfo = M("company_statement_info","tab_")
->alias('i')
->field("i.id,i.pool_id,i.company_name,i.company_info,i.statement_money,p.statement_num,i.remark,i.pay_status,i.verify_status,p.statement_money all_money")
->join("tab_company_statement_pool p ON p.id = i.pool_id")
->where("pool_id='{$id}'")
->select();
foreach($CompanyInfo as $k=>&$v){
$v['company_info'] = json_decode($v['company_info'],true);
$v['company_info']['ali_user'] ?? '';
$v['company_info']['ali_account'] ?? '';
$v['verify_status_str'] = $this->InfoVerifyStatus[ $v['verify_status']];
if($v['verify_status'] == 1){
$v['verify_status_str'] = $this->PayStatus[$v['pay_status']];
if($v['pay_status'] == 1){
$v['pay_type'] = $v['pay_type'] == 1 ? "提现" :"线上打款";
$v['verify_status_str'] .= ("/". $v['pay_type']);
}
}
}
$this->assign("CompanyInfo",$CompanyInfo);
$this->display();
}
//保存备注 //保存备注
public function saveRemark(){ public function saveRemark(){
@ -782,7 +822,7 @@ class CompanyStatementPoolController extends ThinkController
"setPayment"=>"<a class='confirm setPayment' data-id='{$id}'>打款信息提交</a>", "setPayment"=>"<a class='confirm setPayment' data-id='{$id}'>打款信息提交</a>",
"editPayment"=>"<a class='confirm editPayment' data-id='{$id}'>打款信息编辑</a>", "editPayment"=>"<a class='confirm editPayment' data-id='{$id}'>打款信息编辑</a>",
"viePayment"=>"<a class='confirm viePayment' data-id='{$id}'>打款详情</a>", "viewPayment"=>"<a class='confirm viewPayment' data-id='{$id}'>打款详情</a>",
'reCount'=>"<a class='confirm reCount' data-id='{$id}'>重算</a>", 'reCount'=>"<a class='confirm reCount' data-id='{$id}'>重算</a>",
'cancelPool'=>"<a class='confirm cancelPool' data-id='{$id}'>撤销汇总</a>", 'cancelPool'=>"<a class='confirm cancelPool' data-id='{$id}'>撤销汇总</a>",
@ -803,10 +843,10 @@ class CompanyStatementPoolController extends ThinkController
$optist = ["viewPool","addRemark","viewRemark","editRemark","viewVoucher","editVoucher","uploadVoucher","editPayment"]; $optist = ["viewPool","addRemark","viewRemark","editRemark","viewVoucher","editVoucher","uploadVoucher","editPayment"];
break; break;
case '3': case '3':
$optist = ["viewPool","addRemark","viewRemark","editRemark","viewVoucher","editVoucher","uploadVoucher","editPayment","viePayment"]; $optist = ["viewPool","addRemark","viewRemark","editRemark","viewVoucher","editVoucher","uploadVoucher","editPayment","viewPayment"];
break; break;
case '4': case '4':
$optist = ["viewPool","addRemark","viewRemark","editRemark","viewVoucher","editVoucher","uploadVoucher","viePayment"]; $optist = ["viewPool","addRemark","viewRemark","editRemark","viewVoucher","editVoucher","uploadVoucher","viewPayment"];
break; break;
case '5': case '5':
$optist = ["viewPool","addRemark","viewRemark","editRemark","reCount","cancelPool"]; $optist = ["viewPool","addRemark","viewRemark","editRemark","reCount","cancelPool"];
@ -845,7 +885,7 @@ class CompanyStatementPoolController extends ThinkController
if($info['is_payment'] == 1){ if($info['is_payment'] == 1){
$optist = array_diff($optist, ["setUlPayment"]); $optist = array_diff($optist, ["setUlPayment"]);
}else{ }else{
$optist = array_diff($optist, ["setPayment","editPayment","viePayment"]); $optist = array_diff($optist, ["setPayment","editPayment","viewPayment"]);
} }
if(empty($info['remark'])){ if(empty($info['remark'])){

@ -421,6 +421,18 @@
content: url content: url
}); });
}) })
$(".viewPayment").on("click",function(){
var id = $(this).data("id");
var url = "{:U('viewPayment')}"+"&id="+id
layer.open({
type: 2,
title: "海南万盟天下科技有限公司",
shadeClose: true,
shade: 0.8,
area: ['70%', '80%'],
content: url
});
})
function cancelPoolAjax(opurl,senddata){ function cancelPoolAjax(opurl,senddata){

@ -110,21 +110,12 @@
<th style="border-right: solid 1px #b6cad2;">关联结算汇总单订单号</th> <th style="border-right: solid 1px #b6cad2;">关联结算汇总单订单号</th>
<th style="border-right: solid 1px #b6cad2;">金额(元)</th> <th style="border-right: solid 1px #b6cad2;">金额(元)</th>
<th style="border-right: solid 1px #b6cad2;">备注</th> <th style="border-right: solid 1px #b6cad2;">备注</th>
<th style="border-right: solid 1px #b6cad2;">打款状态</th>
</tr> </tr>
</thead> </thead>
<tbody id="statementShow"> <tbody id="statementShow">
<foreach name="CompanyInfo" item="vo" > <foreach name="CompanyInfo" item="vo" >
<if condition="$vo['pay_status'] neq 1">
<tr>
<td>{$key-0+1}</td>
<td>{$vo.company_name}</td>
<td><input type="text" class="txt paymentset" data-id="{$vo.id}" name="ali_user" value="{$vo.company_info.ali_user}" placeholder="支付宝真实名称"></td>
<td><input type="text" class="txt paymentset" data-id="{$vo.id}" name="ali_account" value="{$vo.company_info.ali_account}" placeholder="支付宝账号"></td>
<td>{$vo.statement_num}</td>
<td>{$vo.statement_money}</td>
<td><input type="text" class="txt paymentset" data-id="{$vo.id}" name="remark" value="{$vo.remark}" placeholder="备注"></td>
</tr>
<else />
<tr> <tr>
<td>{$key-0+1}</td> <td>{$key-0+1}</td>
<td>{$vo.company_name}</td> <td>{$vo.company_name}</td>
@ -133,24 +124,19 @@
<td>{$vo.statement_num}</td> <td>{$vo.statement_num}</td>
<td>{$vo.statement_money}</td> <td>{$vo.statement_money}</td>
<td>{$vo.remark}</td> <td>{$vo.remark}</td>
<td>{$vo.verify_status_str}</td>
</tr> </tr>
</if>
</foreach> </foreach>
<tr> <tr>
<td colspan="2">合计:</td> <td colspan="2">合计:</td>
<td colspan="5">打款总金额:{$CompanyInfo[0]['all_money']}</td> <td colspan="6">打款总金额:{$CompanyInfo[0]['all_money']}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
<div class="search_list" style="display:flex;justify-content:flex-end;width:100%;margin-top: 30px;">
<div class="input-list" style="margin-left: 30px;float: right;">
<a class="sch-btn" href="javascript:;" id="setPayment" style="width: 150px;">确认提交</a>
</div>
</div>
<script> <script>
$("#setPayment").on("click",function(){ $("#setPayment").on("click",function(){

Loading…
Cancel
Save