Merge branch 'master' of 47.111.118.107:wmtx/platform into feature/finance_statement_three

master
chenzhi 4 years ago
commit fc05c274c4

@ -324,6 +324,11 @@ class PartnerController extends ThinkController
$this->error('已存在同名未审核的cp,请勿重复添加'); $this->error('已存在同名未审核的cp,请勿重复添加');
} }
$has_check = M("partner","tab_")->where(["partner_name"=>$partner_info['partner']])->field("id")->find();
if ($has_check) {
$this->error('已存在同名cp,请勿重复添加');
}
$res =D("PartnerVerify")->add_db($save); $res =D("PartnerVerify")->add_db($save);
if ($res) { if ($res) {
//操作日志 //操作日志

@ -970,6 +970,14 @@ class PromoteCompanyController extends ThinkController
$this->error('推广公司已存在'); $this->error('推广公司已存在');
} }
} }
if(!isset($save['id'])){
$map['company_id'] = 0;
$res = M("PromoteCompanyVerify","tab_")->where($map)->field("id")->find();
if($res){
$this->error('已添加过此推广公司,请联系管理尽快审核');
}
}
// if(!empty(I("contact_phone")) && !checkPhone(I('contact_phone'))) { // if(!empty(I("contact_phone")) && !checkPhone(I('contact_phone'))) {
// $this->error('联系电话格式不正确'); // $this->error('联系电话格式不正确');

@ -438,10 +438,22 @@
<script type="text/javascript"> <script type="text/javascript">
//导航高亮 //导航高亮
highlight_subnav("{:U('PromoteCompany/lists')}"); highlight_subnav("{:U('PromoteCompany/lists')}");
var flag = false;
$('#submit').click(function(){ $('#submit').click(function(){
if (!flag) {
flag = true;
setTimeout(function () {
flag = false;
$('#form').submit(); $('#form').submit();
}, 500);
}else{
layer.msg('请求处理中,请勿重复点击');
}
}); });
var ids = []; var ids = [];
</script> </script>
<script> <script>
var doc = []; var doc = [];

Loading…
Cancel
Save