优化cp添加

master
chenzhi 4 years ago
parent 0dda3b1c61
commit 5fc03a14a4

@ -868,6 +868,13 @@ function convertAmountToCn($num) {
function checkPhone($phone) {
return preg_match("/^1[3456789]\d{9}$/",$phone);
}
/**
* @param $num
* @return false|int
*/
function checkNumber($num) {
return preg_match("/^([1-9][0-9]*)+(.[0-9]{1,2})?$/",$num);
}
//获取sdk类型名称
function getSDKTypeName($sdkType, $chinese = false)

@ -97,7 +97,7 @@ class PartnerController extends ThinkController
->group('relation_game_id,begin_total_amount')
->select();
// dd($cp_game_ratio_map);
// dd($cp_game_ratio_map);
$parseGameRadiores = array();//合作方分成比例
foreach ($gameradiores as $key =>$val) {
$val['row'] = 1;
@ -188,7 +188,7 @@ class PartnerController extends ThinkController
$this->assign('_page', $page);
}
$this->checkListOrCountAuthRestMap($map,[]);
// dd($parseData[0]);
// dd($parseData[0]);
$this->assign('listData', $parseData[0]);
$this->assign('count', $count);
$this->assign('commonset', M('Kuaijieicon')->where(['url' => 'Partner/lists'])->find());
@ -200,82 +200,19 @@ class PartnerController extends ThinkController
public function add()
{
if ($_POST) {
$partner = trim(I('post.partner', ''));
$status = intval(I('post.status', 1));
if (empty($partner)) {
$this->error('请输入合作方名称');
}
if (!strlen(I('is_sign_contract'))) {
$this->error('请选择是否签署合同');
}
if (empty(I('company_type'))) {
$this->error('请输入公司性质');
}
if (!strlen(I('has_game_evidence'))) {
$this->error('请选择是否有游戏资质');
}
$model = M($this->modelName, 'tab_');
$map['partner'] = $partner;
$res = $model->where($map)->getField('id');
if ($res) {
$this->error('合作方已存在');
}
if(!empty(I('link_phone')) && !checkPhone(I('link_phone'))) {
$this->error('联系电话格式不正确');
}
if(!empty(I('link_phone'))){
$res2 = $model->where(['link_phone' => I('link_phone')])->getField('id');
if ($res2) {
$this->error('已存在此联系电话');
}
}
$time = time();
$save['partner'] = $partner;
$save['status'] = $status;
$save['link_man'] = I('link_man');
$save['link_phone'] = I('link_phone');
$save['address'] = I('address');
$save['company_tax_no'] = I('company_tax_no');
$save['payee_name'] = I('payee_name');
$save['bank_account'] = I('bank_account');
$save['opening_bank'] = I('opening_bank');
$save['ali_user'] = I('ali_user');
$save['ali_account'] = I('ali_account');
$save['matche_platform'] = I('matche_platform');
$save['contract_start_time'] = strtotime(I('contract_start_time'));
$save['contract_end_time'] = strtotime(I('contract_end_time'));
$save['channel_rate'] = I('channel_rate')/100;
$save['invoice_rate'] = (I('invoice_rate') ?: 0)/100;
$save['is_sign_contract'] = I('is_sign_contract');
$save['settlement_type'] = I('settlement_type');
$save['has_game_evidence'] = I('has_game_evidence');
$save['company_type'] = I('company_type');
$save['remark'] = I('remark');
if (!empty(I('file_info'))) {
$save['file_info'] = I('file_info');
}
$save = I("post.");
$this->checkData($save);
$save['uid'] = UID;
$save['create_time'] = $time;
$save['last_up_time'] = $time;
$save['create_time'] = time();
$res = $model->add($save);
if ($res) {
\Think\Log::actionLog('Partner/add', 'partner', $res);
//操作日志
addOperationLog(array(
"op_type"=>0,
"key"=>$partner,
"url"=>U("Partner/lists",array("partner"=>$partner))
"key"=>$save['partner'],
"url"=>U("Partner/lists",array("partner"=>$save['partner']))
));
$this->success('保存成功', U('lists'));
} else {
@ -294,80 +231,8 @@ class PartnerController extends ThinkController
$model = M($this->modelName, 'tab_');
if ($_POST) {
$partner = trim(I('post.partner', ''));
$status = intval(I('post.status', 1));
$id = intval(I('post.id', 0));
if (empty($partner)) {
$this->error('请输入合作方名称');
}
if (!strlen(I('is_sign_contract'))) {
$this->error('请选择是否签署合同');
}
if (empty(I('company_type'))) {
$this->error('请输入公司性质');
}
if (!strlen(I('has_game_evidence'))) {
$this->error('请选择是否有游戏资质');
}
$data = $model
->field('id,partner,link_man,link_phone,address,company_tax_no,payee_name,bank_account,opening_bank')
->find($id);
if (empty($data)) {
$this->error('数据异常');
}
$map['partner'] = $partner;
$res = $model->where($map)->getField('id');
if ($res && $res != $id) {
$this->error('合作方已存在');
}
if(!empty(I('link_phone')) && !checkPhone(I('link_phone'))) {
$this->error('联系电话格式不正确');
}
if(!empty(I('link_phone'))){
$res2 = $model->where([
'link_phone' => I('link_phone'),
'id' => ['neq', $id]
])->getField('id');
if ($res2) {
$this->error('已存在此联系电话');
}
}
$time = time();
$save['id'] = $id;
$save['partner'] = $partner;
$save['link_man'] = I('link_man');
$save['link_phone'] = I('link_phone');
$save['address'] = I('address');
$save['company_tax_no'] = I('company_tax_no');
$save['payee_name'] = I('payee_name');
$save['bank_account'] = I('bank_account');
$save['opening_bank'] = I('opening_bank');
$save['ali_user'] = I('ali_user');
$save['ali_account'] = I('ali_account');
$save['matche_platform'] = I('matche_platform');
$save['contract_start_time'] = strtotime(I('contract_start_time'));
$save['contract_end_time'] = strtotime(I('contract_end_time'));
$save['channel_rate'] = I('channel_rate')/100;
$save['invoice_rate'] = (I('invoice_rate') ?: 0)/100;
$save['is_sign_contract'] = I('is_sign_contract');
$save['settlement_type'] = I('settlement_type');
$save['has_game_evidence'] = I('has_game_evidence');
$save['company_type'] = I('company_type');
$save['remark'] = I('remark');
$save['file_info'] = I('file_info');
$save['status'] = $status;
$save['last_up_time'] = $time;
$save = I("post.");
$this->checkData($save);
$res = $model->save($save);
if ($res === false) {
$this->error('保存失败');
@ -375,8 +240,8 @@ class PartnerController extends ThinkController
\Think\Log::actionLog('Partner/edit', 'partner', $id);
addOperationLog(array(
"op_type"=>1,
"key"=>$partner,
"url"=>U("Partner/lists",array("partner"=>$partner))
"key"=>$save['partner'],
"url"=>U("Partner/lists",array("partner"=>$save['partner']))
));
$this->success('保存成功', U('lists'));
}
@ -400,6 +265,19 @@ class PartnerController extends ThinkController
}else{
$data['contract_end_time']='';
}
if ($data['validity_start_time']) {
$data['validity_start_time'] = date('Y-m-d', $data['validity_start_time']);
}else{
$data['validity_start_time']='';
}
if ($data['validity_end_time']) {
$data['validity_end_time'] = date('Y-m-d', $data['validity_end_time']);
}else{
$data['validity_end_time']='';
}
$data['channel_rate'] *= 100;//存的是小数,显示百分比
$data['invoice_rate'] *= 100;//存的是小数,显示百分比
// dd($data);
@ -439,7 +317,68 @@ class PartnerController extends ThinkController
));
$this->success('删除成功', U('lists'));
}
protected function checkData(&$save)
{
$partner = trim($save['partner']);
$status = intval($save['status']);
if (empty($partner)) {
$this->error('请输入合作方名称');
}
if (!strlen(I('is_sign_contract'))) {
$this->error('请选择是否签署合同');
}
if (empty(I('company_type'))) {
$this->error('请输入公司性质');
}
if (!strlen(I('has_game_evidence'))) {
$this->error('请选择是否有游戏资质');
}
$model = M($this->modelName, 'tab_');
$map['partner'] = $partner;
$res = $model->where($map)->field("id")->find();
if ($res) {
if(isset($save['id'])){
if($save['id'] !=$res['id']){
$this->error('合作方已存在');
}
}else{
$this->error('合作方已存在');
}
}
if(!empty(I('link_phone')) && !checkPhone(I('link_phone'))) {
$this->error('联系电话格式不正确');
}
if(!empty(I('reg_phone')) && !checkPhone(I('reg_phone'))) {
$this->error('注册电话格式不正确');
}
if(!empty(I('channel_rate'))) {
if(!checkNumber(I('channel_rate'))){
$this->error('渠道费率格式不对');
}else{
$save['channel_rate'] = ($save['channel_rate'] ?: 0)/100;
}
}
if(!empty(I('invoice_rate'))) {
if(!checkNumber(I('invoice_rate'))){
$this->error('开票税点格式不对');
}else{
$save['invoice_rate'] = ($save['invoice_rate'] ?: 0)/100;
}
}
if(!empty(I('server_fee')) && !checkNumber(I('server_fee'))) {
$this->error('服务器费用格式不对');
}
$time = time();
$save['contract_start_time'] = strtotime($save['contract_start_time']);
$save['contract_end_time'] = strtotime($save['contract_end_time']);
$save['validity_start_time'] = strtotime($save['validity_start_time']);
$save['validity_end_time'] = strtotime($save['validity_end_time']);
$save['last_up_time'] = $time;
}
}

@ -24,7 +24,7 @@
<div class="tab-content tabcon1711">
<!-- 表单 -->
<form id="form" action="{:U('add')}" method="post" class="form-horizontal">
<form id="form" action="{:U('add')}" method="post" class="form-horizontal" autocomplete="off">
<!-- 基础 -->
<div id="tab1" class="tab-pane in tab1 ">
<table border="0" cellspacing="0" cellpadding="0">
@ -51,6 +51,15 @@
</td>
</tr>
<tr>
<td class="l">结算生效期限:</td>
<td class="r">
<input type="text" class="txt time time3" name="validity_start_time" value="" placeholder="生效开始时间">
-<input type="text" class="txt time time4" name="validity_end_time" value="" placeholder="生效结束时间">
</td>
</tr>
<tr>
<td class="l">渠道费率:</td>
<td class="r" >
@ -77,7 +86,7 @@
</td>
</tr>
<tr>
<!-- <tr>
<td class="l noticeinfo">结算方式:</td>
<td class="r">
<select name="settlement_type" class="select_gallery">
@ -86,7 +95,7 @@
<option value="2">月结</option>
</select>
</td>
</tr>
</tr> -->
<tr>
<td class="l noticeinfo">公司性质:</td>
@ -123,6 +132,20 @@
</td>
</tr>
<tr>
<td class="l">注册地址:</td>
<td class="r" >
<input type="text" class="txt " name="reg_address" value="" placeholder="请输入注册地址">
</td>
</tr>
<tr>
<td class="l">注册电话:</td>
<td class="r" >
<input type="text" class="txt " name="reg_phone" value="" placeholder="请输入注册电话">
</td>
</tr>
<tr>
<td class="l">邮寄地址:</td>
<td class="r" >
@ -138,7 +161,7 @@
</tr>
<tr>
<td class="l">收款方名称:</td>
<td class="l">账户名:</td>
<td class="r" >
<input type="text" class="txt " name="payee_name" value="" placeholder="请输入收款方名称">
</td>
@ -153,7 +176,7 @@
<tr>
<td class="l">开户行:</td>
<td class="l">收款银行:</td>
<td class="r" >
<input type="text" class="txt " name="opening_bank" value="" placeholder="请输入开户行">
</td>
@ -180,6 +203,53 @@
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>是否有预付款:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" class="inp_radio" value="0" name="has_advance_charge" checked>
</label>
<label>
<input type="radio" class="inp_radio" value="1" name="has_advance_charge" >
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>承担服务费:</td>
<td class="r table_radio">
<span class="form_radio table_btn" style="width: auto;">
<label>
<input type="radio" class="inp_radio" value="0" name="has_server_fee" checked>
</label>
<label>
<input type="radio" class="inp_radio" value="1" name="has_server_fee" >
</label>
</span>
<span class="notice-text" id="server_fee_input" style="color: #000;display: none;"><input type="text" class="txt " name="server_fee" value="0" placeholder="请输入服务器费用" style="width: 100px;">&nbsp;&nbsp;</span>
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>合作关系:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" class="inp_radio" value="1" name="cooperation_status" checked> 合作中
</label>
<label>
<input type="radio" class="inp_radio" value="0" name="cooperation_status"> 停止合作
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>显示状态:</td>
<td class="r table_radio">
@ -255,11 +325,18 @@
<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 type="text/javascript">
$("input[type=radio][name=has_server_fee]").on('change', function (e) {
    var v = $(this).val();
if(v == 1){
$("#server_fee_input").show();
}else{
$("#server_fee_input").hide();
}
  });
$('.time1').datetimepicker({
format: 'yyyy-mm-dd',
language:"zh-CN",
minView: "month",
// startDate:new Date(),
autoclose:true
}).change(function(){
var start = new Date($(this).val()).getTime();
@ -276,7 +353,6 @@
format: 'yyyy-mm-dd',
language:"zh-CN",
minView: "month",
// startDate:new Date(),
autoclose:true
}).change(function(){
var end = new Date($(this).val()).getTime();
@ -289,6 +365,38 @@
return false;
});
$('.time3').datetimepicker({
format: 'yyyy-mm-dd',
language:"zh-CN",
minView: "month",
autoclose:true
}).change(function(){
var start = new Date($(this).val()).getTime();
var end = new Date($('.time4').val()).getTime();
if(isNaN(end)) {return false;}
if(start>=end) {layer.msg('开始时间必须小于结束时间');return false;}
return false;
});
$('.time4').datetimepicker({
format: 'yyyy-mm-dd',
language:"zh-CN",
minView: "month",
autoclose:true
}).change(function(){
var end = new Date($(this).val()).getTime();
var start = new Date($('.time3').val()).getTime();
if(isNaN(start)) {return false;}
if(start>=end) {layer.msg('开始时间必须小于结束时间');return false;}
return false;
});
//导航高亮
highlight_subnav("{:U('Partner/lists')}");
</script>

@ -24,7 +24,7 @@
<div class="tab-content tabcon1711">
<!-- 表单 -->
<form id="form" action="{:U('edit')}" method="post" class="form-horizontal">
<form id="form" action="{:U('edit')}" method="post" class="form-horizontal" autocomplete="off">
<!-- 基础 -->
<div id="tab1" class="tab-pane in tab1 ">
<table border="0" cellspacing="0" cellpadding="0">
@ -51,6 +51,14 @@
</td>
</tr>
<tr>
<td class="l">结算生效期限:</td>
<td class="r">
<input type="text" class="txt time time3" name="validity_start_time" value="{$data.validity_start_time}" placeholder="生效开始时间">
-<input type="text" class="txt time time4" name="validity_end_time" value="{$data.validity_end_time}" placeholder="生效结束时间">
</td>
</tr>
<tr>
<td class="l">渠道费率:</td>
<td class="r" >
@ -78,7 +86,7 @@
</td>
</tr>
<tr>
<!-- <tr>
<td class="l noticeinfo">结算方式:</td>
<td class="r">
<select name="settlement_type" class="select_gallery">
@ -87,7 +95,7 @@
<option value="2" <if condition="$data['settlement_type'] eq '2'"> selected="selected"</if>>月结</option>
</select>
</td>
</tr>
</tr> -->
<tr>
<td class="l noticeinfo">公司性质:</td>
@ -124,6 +132,19 @@
</td>
</tr>
<tr>
<td class="l">注册地址:</td>
<td class="r" >
<input type="text" class="txt " name="reg_address" value="{$data.reg_address}" placeholder="请输入注册地址">
</td>
</tr>
<tr>
<td class="l">注册电话:</td>
<td class="r" >
<input type="text" class="txt " name="reg_phone" value="{$data.reg_phone}" placeholder="请输入注册电话">
</td>
</tr>
<tr>
<td class="l">邮寄地址:</td>
<td class="r" >
@ -139,7 +160,7 @@
</tr>
<tr>
<td class="l">收款方名称:</td>
<td class="l">账户名:</td>
<td class="r" >
<input type="text" class="txt " name="payee_name" value="{$data.payee_name}" placeholder="请输入收款方名称">
</td>
@ -154,7 +175,7 @@
<tr>
<td class="l">开户行:</td>
<td class="l">收款银行:</td>
<td class="r" >
<input type="text" class="txt " name="opening_bank" value="{$data.opening_bank}" placeholder="请输入开户行">
</td>
@ -181,15 +202,61 @@
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>是否有预付款:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" class="inp_radio" value="0" name="has_advance_charge" <if condition="$data['has_advance_charge'] eq 0">checked</if>> 否
</label>
<label>
<input type="radio" class="inp_radio" value="1" name="has_advance_charge" <if condition="$data['has_advance_charge'] eq 1">checked</if>> 是
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>承担服务费:</td>
<td class="r table_radio">
<span class="form_radio table_btn" style="width: auto;">
<label>
<input type="radio" class="inp_radio" value="0" name="has_server_fee" <if condition="$data['has_server_fee'] eq 0">checked</if>> 否
</label>
<label>
<input type="radio" class="inp_radio" value="1" name="has_server_fee" <if condition="$data['has_server_fee'] eq 1">checked</if>> 是
</label>
</span>
<span class="notice-text" id="server_fee_input" style="color: #000;<if condition="$data['has_server_fee'] eq 0">display: none;</if>"><input type="text" class="txt " name="server_fee" value="{$data['server_fee']}" placeholder="请输入服务器费用" style="width: 100px;">&nbsp;&nbsp;</span>
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>合作关系:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" class="inp_radio" value="1" name="cooperation_status" <if condition="$data['cooperation_status'] eq 1">checked</if>> 合作中
</label>
<label>
<input type="radio" class="inp_radio" value="0" name="cooperation_status" <if condition="$data['cooperation_status'] eq 0">checked</if>> 停止合作
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>显示状态:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" class="inp_radio" value="1" name="status" checked> 开启
<input type="radio" class="inp_radio" value="1" name="status" <if condition="$data['status'] eq 1">checked</if>> 开启
</label>
<label>
<input type="radio" class="inp_radio" value="0" name="status"> 关闭
<input type="radio" class="inp_radio" value="0" name="status" <if condition="$data['status'] eq 0">checked</if>> 关闭
</label>
</span>
<span class="notice-text"></span>
@ -257,6 +324,14 @@
<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 type="text/javascript">
$("input[type=radio][name=has_server_fee]").on('change', function (e) {
    var v = $(this).val();
if(v == 1){
$("#server_fee_input").show();
}else{
$("#server_fee_input").hide();
}
  });
$('.time1').datetimepicker({
format: 'yyyy-mm-dd',
language:"zh-CN",
@ -291,6 +366,38 @@
return false;
});
$('.time3').datetimepicker({
format: 'yyyy-mm-dd',
language:"zh-CN",
minView: "month",
autoclose:true
}).change(function(){
var start = new Date($(this).val()).getTime();
var end = new Date($('.time4').val()).getTime();
if(isNaN(end)) {return false;}
if(start>=end) {layer.msg('开始时间必须小于结束时间');return false;}
return false;
});
$('.time4').datetimepicker({
format: 'yyyy-mm-dd',
language:"zh-CN",
minView: "month",
autoclose:true
}).change(function(){
var end = new Date($(this).val()).getTime();
var start = new Date($('.time3').val()).getTime();
if(isNaN(start)) {return false;}
if(start>=end) {layer.msg('开始时间必须小于结束时间');return false;}
return false;
});
//导航高亮
highlight_subnav("{:U('Partner/lists')}");
</script>

@ -51,6 +51,14 @@
</td>
</tr>
<tr>
<td class="l">结算生效期限:</td>
<td class="r">
<input type="text" class="txt time time3" name="validity_start_time" value="{$data.validity_start_time}" placeholder="生效开始时间" readonly>
-<input type="text" class="txt time time4" name="validity_end_time" value="{$data.validity_end_time}" placeholder="生效结束时间" readonly>
</td>
</tr>
<tr>
<td class="l">渠道费率:</td>
<td class="r" >
@ -78,7 +86,7 @@
</td>
</tr>
<tr>
<!-- <tr>
<td class="l noticeinfo">结算方式:</td>
<td class="r">
<select name="settlement_type" class="select_gallery" disabled="true">
@ -87,7 +95,7 @@
<option value="2" <if condition="$data['settlement_type'] eq '2'"> selected="selected"</if>>月结</option>
</select>
</td>
</tr>
</tr> -->
<tr>
<td class="l noticeinfo">是否有游戏资质:</td>
@ -113,6 +121,18 @@
<input type="text" class="txt " name="link_phone" value="{$data.link_phone}" placeholder="请输入联系电话" readonly>
</td>
</tr>
<tr>
<td class="l">注册地址:</td>
<td class="r" >
<input type="text" class="txt " name="reg_address" value="{$data.reg_address}" placeholder="请输入注册地址" readonly>
</td>
</tr>
<tr>
<td class="l">注册电话:</td>
<td class="r" >
<input type="text" class="txt " name="reg_phone" value="{$data.reg_phone}" placeholder="请输入注册电话" readonly>
</td>
</tr>
<tr>
<td class="l">邮寄地址:</td>
@ -129,7 +149,7 @@
</tr>
<tr>
<td class="l">收款方名称</td>
<td class="l">账户名</td>
<td class="r" >
<input type="text" class="txt " name="payee_name" value="{$data.payee_name}" placeholder="请输入收款方名称" readonly>
</td>
@ -144,7 +164,7 @@
<tr>
<td class="l">开户行:</td>
<td class="l">收款银行:</td>
<td class="r" >
<input type="text" class="txt " name="opening_bank" value="{$data.opening_bank}" placeholder="请输入开户行" readonly>
</td>
@ -172,14 +192,60 @@
</tr>
<tr>
<td class="l noticeinfo">显示状态:</td>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>是否有预付款:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" class="inp_radio" value="0" name="has_advance_charge" <if condition="$data['has_advance_charge'] eq 0">checked</if> readonly> 否
</label>
<label>
<input type="radio" class="inp_radio" value="1" name="has_advance_charge" <if condition="$data['has_advance_charge'] eq 1">checked</if> readonly> 是
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>承担服务费:</td>
<td class="r table_radio">
<span class="form_radio table_btn" style="width: auto;">
<label>
<input type="radio" class="inp_radio" value="0" name="has_server_fee" <if condition="$data['has_server_fee'] eq 0">checked</if> readonly> 否
</label>
<label>
<input type="radio" class="inp_radio" value="1" name="has_server_fee" <if condition="$data['has_server_fee'] eq 1">checked</if> readonly> 是
</label>
</span>
<span class="notice-text" id="server_fee_input" style="color: #000;<if condition="$data['has_server_fee'] eq 0">display: none;</if>"><input type="text" class="txt " name="server_fee" value="{$data['server_fee']}" placeholder="请输入服务器费用" style="width: 100px;" readonly>&nbsp;&nbsp;</span>
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>合作关系:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" class="inp_radio" value="1" name="cooperation_status" <if condition="$data['cooperation_status'] eq 1">checked</if> readonly> 合作中
</label>
<label>
<input type="radio" class="inp_radio" value="0" name="cooperation_status" <if condition="$data['cooperation_status'] eq 0">checked</if> readonly> 停止合作
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>显示状态:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" class="inp_radio" value="1" name="status" checked readonly> 开启
<input type="radio" class="inp_radio" value="1" name="status" <if condition="$data['status'] eq 1">checked</if> readonly> 开启
</label>
<label>
<input type="radio" class="inp_radio" value="0" name="status" readonly> 关闭
<input type="radio" class="inp_radio" value="0" name="status" <if condition="$data['status'] eq 0">checked</if> readonly> 关闭
</label>
</span>
<span class="notice-text"></span>

@ -2074,4 +2074,18 @@ ADD COLUMN `fax_ratio` varchar(20) NULL COMMENT '开票税率' AFTER `ali_accou
--20200630 cz
ALTER TABLE `tab_promote_company`
ADD COLUMN `game_ids` varchar(300) NOT NULL DEFAULT '' COMMENT '可申请游戏 空值表示没有' AFTER `marketing_director_show`;
ADD COLUMN `game_ids` varchar(300) NOT NULL DEFAULT '' COMMENT '可申请游戏 空值表示没有' AFTER `marketing_director_show`;
ALTER TABLE `tab_partner`
ADD COLUMN `validity_start_time` int(11) NOT NULL DEFAULT 0 COMMENT '生效开始时间' AFTER `company_type`,
ADD COLUMN `validity_end_time` int(11) NOT NULL DEFAULT 0 COMMENT '生效结算时间' AFTER `validity_start_time`,
ADD COLUMN `reg_address` varchar(255) NULL DEFAULT NULL COMMENT '注册地址' AFTER `validity_end_time`,
ADD COLUMN `reg_phone` varchar(24) NULL DEFAULT NULL COMMENT '注册电话' AFTER `reg_address`,
ADD COLUMN `has_advance_charge` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否有预付款 1是 0否' AFTER `reg_phone`,
ADD COLUMN `has_server_fee` tinyint(1) NOT NULL DEFAULT 0 COMMENT '承担服务费1是 0否' AFTER `has_advance_charge`,
ADD COLUMN `server_fee` decimal(10,2) NOT NULL DEFAULT 0.00 COMMENT '服务器费用' AFTER `has_server_fee`,
ADD COLUMN `cooperation_status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '合作关系1合作中 0暂停合作' AFTER `server_fee`;
ALTER TABLE `tab_partner`
MODIFY COLUMN `settlement_type` tinyint(1) NOT NULL DEFAULT 0 COMMENT '结算方式(作废,请查看tab_company_relation表)' AFTER `is_sign_contract`;
Loading…
Cancel
Save