|
|
|
@ -2,6 +2,8 @@
|
|
|
|
|
<block name="css">
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="__STATIC__/webuploader/webuploader.css" media="all">
|
|
|
|
|
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<style>
|
|
|
|
|
#form .txt_area.download_url {width:400px;}
|
|
|
|
|
.tabcon1711 .table_radio2 .table_btn {width:215px;}
|
|
|
|
@ -14,7 +16,10 @@
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/webuploader/webuploader.js"></script>
|
|
|
|
|
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/layer/extend/layer.ext.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"charset="UTF-8"></script>
|
|
|
|
|
<script src="__STATIC__/juicer-min.js" type="text/javascript"></script>
|
|
|
|
|
<script src="__STATIC__/czinputcheck.js?v=1.29" type="text/javascript"></script>
|
|
|
|
|
<style>
|
|
|
|
|
.coin-detail{
|
|
|
|
|
display: block;
|
|
|
|
@ -72,7 +77,7 @@
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">开票税点:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="number" class="txt" name="fax_ratio" value="" placeholder="请输入开票税点">
|
|
|
|
|
<input type="number" class="txt" name="fax_ratio" value="0" placeholder="请输入开票税点">
|
|
|
|
|
<span>%</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
@ -139,12 +144,12 @@
|
|
|
|
|
<input type="text" class="txt " name="bank_card" value="" placeholder="请输入银行卡号">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<!-- <tr>
|
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>银行卡名:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt " name="bank_cardname" value="" placeholder="请输入银行卡名">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tr> -->
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>收款银行:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
@ -252,6 +257,20 @@
|
|
|
|
|
PROMOTE.juicerFun();
|
|
|
|
|
// window.parent.addFile(info);
|
|
|
|
|
}
|
|
|
|
|
$('#contact_begin').datetimepicker({
|
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
|
language: "zh-CN",
|
|
|
|
|
minView: 2,
|
|
|
|
|
autoclose: true
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#datetimepicker').datetimepicker({
|
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
|
language: "zh-CN",
|
|
|
|
|
minView: 2,
|
|
|
|
|
autoclose: true,
|
|
|
|
|
pickerPosition: 'bottom-left'
|
|
|
|
|
})
|
|
|
|
|
$(".coin-detail").click(function () {
|
|
|
|
|
var url = $(this).data('url');
|
|
|
|
|
var title = '文档添加';
|
|
|
|
@ -264,6 +283,64 @@
|
|
|
|
|
content: url
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
var isclick = false;
|
|
|
|
|
$("#submit").on("click",function(){
|
|
|
|
|
if(isclick){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
isclick = true;
|
|
|
|
|
var obj = {
|
|
|
|
|
"company_name":["required","推广公司名称不允许为空"],
|
|
|
|
|
"platform_name":["nocheck"],
|
|
|
|
|
"contact_begin":["date","合同开始时间不能为空"],
|
|
|
|
|
"contact_end":["date","合同结束时间不能为空"],
|
|
|
|
|
"fax_ratio":["number","开票税率必须是数字,如果无此项请填0"],
|
|
|
|
|
"company_type":["required","公司性质不能为空","select"],
|
|
|
|
|
"is_sign_contact":["required","是否签署合同项不能为空","select"],
|
|
|
|
|
"company_belong":["required","团体归属不能为空","select"],
|
|
|
|
|
"settlement_contact":["required","结算联系人不能为空"],
|
|
|
|
|
"contact_phone":["phone","联系人电话格式不对或不能为空"],
|
|
|
|
|
"address":["required","联系人地址不能为空"],
|
|
|
|
|
"bank_card":["bankid","银行卡格式错误或不能为空"],
|
|
|
|
|
"bank_name":["required","银行名称不能为空"],
|
|
|
|
|
"bank_address":["required","银行开户网点不能为空"],
|
|
|
|
|
"content":["nocheck"],
|
|
|
|
|
"status":["nocheck","","radio"]
|
|
|
|
|
}
|
|
|
|
|
var cres = CIC.checkAddInput(obj);
|
|
|
|
|
if(!cres){
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (Date.parse(cres.contact_begin) > Date.parse(cres.contact_end)) {
|
|
|
|
|
layer.msg('开始时间必须小于等于结束时间');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
//验证通过
|
|
|
|
|
if(doc.length > 0){
|
|
|
|
|
cres.resources = doc;
|
|
|
|
|
}
|
|
|
|
|
//添加
|
|
|
|
|
$.ajax({
|
|
|
|
|
url:"{:U('PromoteCompany/add')}",
|
|
|
|
|
type:"post",
|
|
|
|
|
data:cres,
|
|
|
|
|
dataType:"json",
|
|
|
|
|
success:function(data){
|
|
|
|
|
isclick = false;
|
|
|
|
|
if(data.status == 1){
|
|
|
|
|
layer.msg(data.info,function(){
|
|
|
|
|
window.location.href="{:U('PromoteCompany/lists')}";
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
layer.msg(data.info);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
error:function(e){
|
|
|
|
|
isclick = false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
var PROMOTE = {
|
|
|
|
|
juicerFun(){
|
|
|
|
|
var tpl =$("#doctpl").html();
|
|
|
|
|