|
|
|
@ -153,28 +153,21 @@
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">充值时间:</td>
|
|
|
|
|
<td class="r">
|
|
|
|
|
<input type="text" class="txt" name="company_tax_no" value="" placeholder="请选择充值时间">
|
|
|
|
|
<input type="text" class="txt" name="pay_time" value="" id="datetimepicker" placeholder="请选择充值时间" readonly>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<div class="jssearch fl cf search_list" style="width: 100%;text-align: center">
|
|
|
|
|
<a class="sch-btn" href="javascript:;" id="search" url="{:U('Query/marketList','model='.$model['name'] .'&row='.I('row'),false)}" style="width: 120px">提交保存</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
$(function(){
|
|
|
|
|
TPLSHOW.juicerInit();
|
|
|
|
|
$(".select_gallery").select2();
|
|
|
|
|
$('#time_start').datetimepicker({
|
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
|
language: "zh-CN",
|
|
|
|
|
minView: 2,
|
|
|
|
|
autoclose: true,
|
|
|
|
|
endDate:new Date()
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#datetimepicker').datetimepicker({
|
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
|
format: 'yyyy-mm-dd hh:ii:ss',
|
|
|
|
|
language: "zh-CN",
|
|
|
|
|
minView: 2,
|
|
|
|
|
endDate:new Date(),
|
|
|
|
@ -186,75 +179,7 @@
|
|
|
|
|
$("#first_partner_id").change();//默认甲方只能是我们公司
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
//基础类
|
|
|
|
|
var PUBLIC = {
|
|
|
|
|
CompanyKeyName:{
|
|
|
|
|
id:"公司表id",
|
|
|
|
|
partner:"公司名称",
|
|
|
|
|
link_man:'联系人',
|
|
|
|
|
link_phone:"联系电话",
|
|
|
|
|
address:'邮寄地址',
|
|
|
|
|
company_tax_no:'公司税号',
|
|
|
|
|
payee_name:'名称',
|
|
|
|
|
bank_account:"银行账号",
|
|
|
|
|
opening_bank:"开户行"
|
|
|
|
|
},
|
|
|
|
|
checkCompanyKey(type,key){
|
|
|
|
|
//获取公司名
|
|
|
|
|
var company = '';
|
|
|
|
|
if(key == "payee_name" || key == "bank_account" || key == "opening_bank"){
|
|
|
|
|
if((DATAOBJ.statement_type == 0 && type == "first_party_info") || (DATAOBJ.statement_type == 1 && type == "second_party_info")){
|
|
|
|
|
company = "收款方";
|
|
|
|
|
}
|
|
|
|
|
if((DATAOBJ.statement_type == 0 && type == "second_party_info")|| (DATAOBJ.statement_type == 1 && type == "first_party_info")){
|
|
|
|
|
company = "付款方";
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
if(type == "first_party_info"){
|
|
|
|
|
company = "甲方";
|
|
|
|
|
}else{
|
|
|
|
|
company = "乙方";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//获取键名
|
|
|
|
|
try {
|
|
|
|
|
var keyname = company+PUBLIC.CompanyKeyName[key];
|
|
|
|
|
} catch (error) {
|
|
|
|
|
var keyname = false;
|
|
|
|
|
}
|
|
|
|
|
//验证
|
|
|
|
|
if(DATAOBJ[type][key] ===''){
|
|
|
|
|
layer.msg(keyname+"不能为空");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if(key == "link_phone" && !CHECK.mobile.test(DATAOBJ[type][key])){
|
|
|
|
|
layer.msg(keyname+"格式错误");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if(key == "bank_account" && !CHECK.BankNo.test(DATAOBJ[type][key])){
|
|
|
|
|
layer.msg(keyname+"格式错误");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
postData(url,data,callback){
|
|
|
|
|
$.ajax({
|
|
|
|
|
url:url,
|
|
|
|
|
data:data,
|
|
|
|
|
type:"post",
|
|
|
|
|
dataType:"json",
|
|
|
|
|
success:function(data){
|
|
|
|
|
callback(data)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
floatAdd(a,b){
|
|
|
|
|
return Math.round(a*100+b*100)/100;
|
|
|
|
|
},
|
|
|
|
|
floatCut(a,b){
|
|
|
|
|
return Math.round(a*100-b*100)/100;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function get_game_list()
|
|
|
|
|
{
|
|
|
|
|