结算单管理字段名修正

master
zhengyongxing 5 years ago
parent 0c403ddf57
commit a4b53c4e9a

@ -312,9 +312,22 @@ class AjaxController extends ThinkController{
// dump($statementData);die(); // dump($statementData);die();
} else { } else {
$data['address'] = json_decode($data['address'],1);
// dd($data['address']);
$address = '';
if (is_array($data['address'])) {
foreach($data['address'] as $key => $value) {
$address = $address.' '.$value;
}
}
$data['address'] = $address;
if (is_array($data['game_ratio'])) { if (is_array($data['game_ratio'])) {
foreach ($data['game_ratio'] as $key => &$value) { foreach ($data['game_ratio'] as $key => &$value) {
foreach ($value as $k => &$v) { foreach ($value as $k => &$v) {
$v['game_name'] = get_gamename($key); $v['game_name'] = get_gamename($key);
} }

@ -322,11 +322,11 @@
var str = '<option value="">对账类型</option>'; var str = '<option value="">对账类型</option>';
console.log($("#company_id option:selected").attr('company-type')) console.log($("#company_id option:selected").attr('company-type'))
if ($("#company_id option:selected").attr('company-type') == '1') { if ($("#company_id option:selected").attr('company-type') == '1') {
str += ' <option value="1" selected=selected>公会对账单</option>\n' + str += ' <option value="1" selected=selected>下游游对账单</option>\n' +
' <option value="0">CP对账单</option>'; ' <option value="0">上游对账单</option>';
} else if ($("#company_id option:selected").attr('company-type') == '0') { } else if ($("#company_id option:selected").attr('company-type') == '0') {
str += ' <option value="1">公会对账单</option>\n' + str += ' <option value="1">下游对账单</option>\n' +
' <option value="0" selected=selected>CP对账单</option>'; ' <option value="0" selected=selected>上游对账单</option>';
} }

Loading…
Cancel
Save