4.23号功能提交

master
zhengyongxing 4 years ago
parent 671419882f
commit 1a2f0ab975

@ -107,7 +107,7 @@ class CompanyStatementOfflineController extends ThinkController
$v["valid"] = "{$v['statement_begin_time']}-{$v['statement_end_time']}";
$v["pay_status_str"] = $this->PayStatus[$v["pay_status"]];
$v['surplus_amount'] = ($v["pay_check"]==2)?($handleData[$v['id']] ?? $v['statement_money']):($v["pay_status"]!=1?$v['statement_money']:"0.00");
$v['surplus_amount'] = ($v["pay_check"]==2)?($handleData[$v['id']] ?? $v['statement_money']):($v["pay_status"]!=1?($v["pay_status"]==2?$handleData[$v['id']]:$v['statement_money']):"0.00");
$v["pay_info"] = json_decode($v['pay_info'], true);
if(isset($v['pay_info']['payment_user'])){
@ -349,7 +349,7 @@ class CompanyStatementOfflineController extends ThinkController
//修改打款设置
public function editPartPayment(){
// die();
if (count($_REQUEST['info']) < 2) {
$this->error("未添加剩余打款金额");
}

@ -92,6 +92,8 @@
display: block;
}
</style>
<div class="cf main-place top_nav_list navtab_list">
@ -631,4 +633,9 @@
</script>
<style>
.layui-layer-close2{
display: none!important;
}
</style>
</block>

@ -201,7 +201,7 @@
</if>
<td>{$vo.statement_num}</td>
<td><input data-index_num="2" value="0" style="width: 80px;" type="number" data-id="{$vo.id}" name="unpay_amount" class="unpay_amount"></td>
<td><input data-index_num="2" value="0" style="width: 80px;" type="number" onblur="if(value<0) value=0" data-id="{$vo.id}" name="unpay_amount" class="unpay_amount"></td>
<td><input data-index_num="2" type="text" class="txt paymentset unPayRemark" data-id="{$vo.id}" name="remark" value="" placeholder="备注"></td>
<td><a class="del" href="#">删除</a></td>
</tr>
@ -216,6 +216,9 @@
$("#setPayment").on("click",function(){
var sendObj = {};
var url = "{:U('editPartPayment')}";
var tip = false;
$("input[name='ali_user'],input[name='ali_account'],input[name='remark'],input[name='payee_name'],input[name='bank_account'],input[name='opening_bank'],input[name='unpay_amount']").map(function(index,elem) {
var index_num = $(elem).data("index_num");
@ -235,6 +238,14 @@
var parent = $(elem).parent().parent().parent().attr('id');
if (parent!="add_item") {
if (e == 'unpay_amount') {
if (parseFloat(v) == 0) {
tip = true;
}
}
if(index_num+id in sendObj){
if (!(e in sendObj[index_num+id])) {
sendObj[index_num+id][e] = v;
@ -249,6 +260,11 @@
});
if (tip == true) {
layer.msg("<font style='color:white'>剩余支付金额不能小于等于0</font>");
return false;
}
layer.confirm("若支付宝账号及真实姓名不全的公司,将无法进行打款。请认真核对,点击取消返回",{title:false}, function(index){
$.ajax({
type: "POST",

Loading…
Cancel
Save