|
|
|
@ -105,10 +105,14 @@
|
|
|
|
|
<tr>
|
|
|
|
|
<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>
|
|
|
|
|
<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>
|
|
|
|
|
</thead>
|
|
|
|
@ -118,8 +122,18 @@
|
|
|
|
|
<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>
|
|
|
|
|
<if condition="$vo['is_payment'] eq 1">
|
|
|
|
|
<td>是</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></td>
|
|
|
|
|
<else />
|
|
|
|
|
<td>否</td>
|
|
|
|
|
<td><input type="text" class="txt paymentset" data-id="{$vo.id}" name="payee_name" value="{$vo.company_info.payee_name}" placeholder="银行帐户名"></td>
|
|
|
|
|
<td><input type="text" class="txt paymentset" data-id="{$vo.id}" name="bank_account" value="{$vo.company_info.bank_account}" placeholder="银行帐号"></td>
|
|
|
|
|
<td><input type="text" class="txt paymentset" data-id="{$vo.id}" name="opening_bank" value="{$vo.company_info.opening_bank}" placeholder="开户行"></td>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
@ -128,8 +142,18 @@
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{$key-0+1}</td>
|
|
|
|
|
<td>{$vo.company_name}</td>
|
|
|
|
|
<td>{$vo.company_info.ali_user}</td>
|
|
|
|
|
<td>{$vo.company_info.ali_account}</td>
|
|
|
|
|
|
|
|
|
|
<if condition="$vo['is_payment'] eq 1">
|
|
|
|
|
<td>是</td>
|
|
|
|
|
<td>{$vo.company_info.ali_user}</td>
|
|
|
|
|
<td>{$vo.company_info.ali_account}</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<else />
|
|
|
|
|
<td>否</td>
|
|
|
|
|
<td>{$vo.company_info.payee_name}</td>
|
|
|
|
|
<td>{$vo.company_info.bank_account}</td>
|
|
|
|
|
<td>{$vo.company_info.opening_bank}</td>
|
|
|
|
|
</if>
|
|
|
|
|
<td>{$vo.statement_num}</td>
|
|
|
|
|
<td>{$vo.statement_money}</td>
|
|
|
|
|
<td>{$vo.remark}</td>
|
|
|
|
@ -139,7 +163,7 @@
|
|
|
|
|
</foreach>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2">合计:</td>
|
|
|
|
|
<td colspan="5">打款总金额:{$CompanyInfo[0]['all_money']}</td>
|
|
|
|
|
<td colspan="7">结算总金额:{$CompanyInfo[0]['all_money']}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
@ -155,47 +179,20 @@
|
|
|
|
|
<script>
|
|
|
|
|
$("#setPayment").on("click",function(){
|
|
|
|
|
var sendObj = {};
|
|
|
|
|
var url = "{:U('editPayment')}"
|
|
|
|
|
$("input[name='ali_user']").map(function(index,elem) {
|
|
|
|
|
var id = $(elem).data("id");
|
|
|
|
|
var to = {
|
|
|
|
|
"ali_user":$(elem).val(),
|
|
|
|
|
"ali_account":'',
|
|
|
|
|
"remark":''
|
|
|
|
|
}
|
|
|
|
|
sendObj[id]=to;
|
|
|
|
|
});
|
|
|
|
|
$("input[name='ali_account']").map(function(index,elem) {
|
|
|
|
|
var id = $(elem).data("id");
|
|
|
|
|
|
|
|
|
|
if(id in sendObj){
|
|
|
|
|
sendObj[id]['ali_account']=$(elem).val();
|
|
|
|
|
}else{
|
|
|
|
|
var to = {
|
|
|
|
|
"ali_account":$(elem).val(),
|
|
|
|
|
"ali_user":'',
|
|
|
|
|
"remark":''
|
|
|
|
|
}
|
|
|
|
|
sendObj[id]=to;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
$("input[name='remark']").map(function(index,elem) {
|
|
|
|
|
var url = "{:U('editPayment')}";
|
|
|
|
|
$("input[name='ali_user'],input[name='ali_account'],input[name='remark'],input[name='payee_name'],input[name='bank_account'],input[name='opening_bank']").map(function(index,elem) {
|
|
|
|
|
var id = $(elem).data("id");
|
|
|
|
|
|
|
|
|
|
var e = $(elem).attr("name");
|
|
|
|
|
var v = $(elem).val();
|
|
|
|
|
if(id in sendObj){
|
|
|
|
|
sendObj[id]['remark']=$(elem).val();
|
|
|
|
|
sendObj[id][e] = v;
|
|
|
|
|
}else{
|
|
|
|
|
var to = {
|
|
|
|
|
"remark":$(elem).val(),
|
|
|
|
|
"ali_user":'',
|
|
|
|
|
"ali_account":''
|
|
|
|
|
}
|
|
|
|
|
sendObj[id]=to;
|
|
|
|
|
sendObj[id] = {};
|
|
|
|
|
sendObj[id][e] = v;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
layer.confirm("若支付宝账号及真实姓名不全的公司,将无法进行打款。请认真核对,点击取消返回",{title:false}, function(index){
|
|
|
|
|
|
|
|
|
|
layer.confirm("若支付宝账号及真实姓名不全的公司,将无法进行打款。请认真核对,点击取消返回",{title:false}, function(index){
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "POST",
|
|
|
|
|
url: url,
|
|
|
|
@ -215,7 +212,6 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|