chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
{yun:}include file="$comstyle/header.htm"{/yun}
<div class="w1000">
    <div class="admin_mainbody"> {yun:}include file="$comstyle/left.htm"{/yun}
<div class="com_tit"><span class="com_tit_span">我的发票</span></div>
        <div class=right_box>
         
                     <div class="vip_boxshow">    <div class="vip_boxshow_c">
         
         <div class="report_uaer_list ">
             <div class="report_uaer_list_h1">开通超级会员</div>
             <div class="report_uaer_list_p">为企业提供多样化的套餐服务</div>
              <ul>
                {yun:}if $config.com_vip_type==2{/yun}
                <li><a href="index.php?c=right" >套餐会员</a></li>
                {yun:}/if{/yun}
                
                {yun:}if $config.com_vip_type==1{/yun}
                <li><a href="index.php?c=right&act=time" >时间会员</a></li>
                {yun:}/if{/yun}
                
                {yun:}if $config.com_vip_type==0{/yun}
                <li><a href="index.php?c=right" >套餐会员</a></li>
                <li><a href="index.php?c=right&act=time" >时间会员</a></li>
                {yun:}/if{/yun}
                {yun:}if $statis.rating_type != 2 && !$vipIsDown && $config.com_integral_online != 4 {/yun}
                             <li><a href="index.php?c=right&act=added" >增值包</a></li>
                       {yun:}/if{/yun}
              <li><a href="index.php?c=ad" > 购买广告位</a></li>
              <li><a href="index.php?c=pay" >充值服务</a></li>
              <li><a href="index.php?c=paylogtc" >我的服务</a></li>
              <li><a href="index.php?c=paylog&consume=ok" >订单管理</a></li>
              {yun:}if $config.sy_com_invoice == 1{/yun}
                     <li  class="report_uaer_list_cur"><a href="index.php?c=invoice"  >发票管理</a></li>
                   {yun:}/if{/yun}
              <li><a href="index.php?c=coupon_list" >优惠卡券</a></li>
              <li><a href="index.php?c=jobpack&act=loglist"  >赏金收益</a></li>
                  {yun:}if $config.sy_help_open == 1{/yun}
                  <li><a href="index.php?c=friendhelp" >好友助力</a></li>
                  {yun:}/if{/yun}
              <li><a  href="index.php?c=integral">{yun:}$config.integral_pricename{/yun}管理</a></li>
              </ul>
            </div>
             
                
 
                <div class="hyfw_qh">
                    <ul>
                        <li class="hyfw_qh_cur">
                            <a href="index.php?c=invoice&act=apply">发票索取</a>
                        </li>
                        <li>
                            <a href="index.php?c=invoice">发票列表</a>
                        </li>
                        <li>
                            <a href="index.php?c=invoice&act=info">发票信息管理</a>
                        </li>
                    </ul>
                </div>
 
                 <div class="paylogpc" >
                
          <div  class="com_tablefpbox">
                    
 
                 
                        <iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
 
                        <form action="{yun:}$now_url{/yun}" target="supportiframe" method="post" id='myform' class="layui-form">
 
                       <table width="100%" cellspacing="1" cellpadding="1" class="newcom_table" id="job_checkbokid">
                                    {yun:}if $rows{/yun}
                                    <tr>
                                        <th>&nbsp;</th>
                                        <th>订单编号</th>
                                        <th>支付类型</th>
                                        <th>支付形式</th>
                                        <th>充值金额</th>
                                        <th>支付状态</th>
                                        <th>付款时间</th>
                                        <th>操作</th>
                                    </tr>
                                    {yun:}/if{/yun} {yun:}foreach from=$rows item=log{/yun} {yun:}assign var="state" value=$log.order_state{/yun} {yun:}assign var="type" value=$log.order_type{/yun}
 
                                    <tr>
                                        <td class="">
                                            <input type="checkbox" name="checkboxid[]" value="{yun:}$log.order_id{/yun}" price="{yun:}$log.order_price{/yun}" class="job_hr_list_boxcheckbox_c" lay-skin="primary">
                                        </td>
                                        <td>{yun:}$log.order_id{/yun}</td>
                                        <td align="center">
                                            {yun:}if $log.type==1{/yun}购买会员 {yun:}elseif $log.type=='2'{/yun}{yun:}$config.integral_pricename{/yun}充值 {yun:}elseif $log.type=='3'{/yun}银行转帐 {yun:}elseif $log.type=='4'{/yun}金额充值 {yun:}elseif $log.type=='5'{/yun}增值服务 {yun:}elseif $log.type=='6'{/yun}课程订购 {yun:}elseif $log.type=='7'{/yun}购买小程序 {yun:}elseif $log.type=='8'{/yun}分享红包推广 {yun:}elseif $log.type=='9'{/yun}悬赏红包 {yun:}elseif $log.type=='10'{/yun}职位置顶 {yun:}elseif $log.type=='11'{/yun}紧急招聘 {yun:}elseif $log.type=='12'{/yun}职位推荐 {yun:}elseif $log.type=='13'{/yun}职位自动刷新 {yun:}elseif $log.type=='16'{/yun}职位刷新 {yun:}elseif $log.type=='17'{/yun}兼职刷新 {yun:}elseif $log.type=='18'{/yun}职位刷新 {yun:}elseif $log.type=='19'{/yun}下载简历 {yun:}elseif $log.type=='20'{/yun}发布职位 {yun:}elseif $log.type=='21'{/yun}发布兼职 {yun:}elseif $log.type=='22'{/yun}发布高级职位 {yun:}elseif $log.type=='23'{/yun}面试邀请 {yun:}elseif $log.type=='24'{/yun}兼职推荐 {yun:}elseif $log.type=='26'{/yun}购买广告位 {yun:}/if{/yun}&nbsp;
                                        </td>
                                        <td align="center">{yun:}if $type{/yun}{yun:}$arr_data.pay.$type{/yun}{yun:}else{/yun}手动{yun:}/if{/yun}</td>
                                        <td align="center">{yun:}$log.order_price{/yun}</td>
                                        <td align="center">{yun:}$arr_data.paystate.$state{/yun}</td>
                                        <td align="center">{yun:}$log.order_time|date_format:'%Y-%m-%d %H:%M:%S'{/yun}</td>
                                        <td align="center">
                                            {yun:}if $invoice{/yun}
                                            <a href="javascript:;" order_id="{yun:}$log.order_id{/yun}" price="{yun:}$log.order_price{/yun}" class="invoice com_bth cblue">申请发票</a>
                                            {yun:}else{/yun}
                                            <a href="javascript:;" onclick="addInvoiceInfo();" class="invoice com_bth cblue">申请发票</a>
                                            {yun:}/if{/yun}
                                        </td>
 
                                    </tr>
                                    {yun:}foreachelse{/yun}
                                    <tr>
                                        <td colspan="8" class="table_end">
                                            <div class="msg_no">暂无可申请发票订单记录。</div>
                                        </td>
                                    </tr>
                                    {yun:}/foreach{/yun}
                               
                      
 
                            {yun:}if !empty($rows){/yun}
                           <tr>
                                
                                <td colspan="8" class="">
                                <div class="com_Release_job_bot">
                                    <span class="com_Release_job_qx">
                                        <input id='checkAll'  type="checkbox" lay-filter="allcom" class="com_Release_job_qx_check" lay-skin="primary">全选
                                    </span> {yun:}if $invoice{/yun}
                                    <input class="c_btn_02" type="button" value="索取发票" onclick="return invoice_sq('checkboxid[]');"> {yun:}else{/yun}
                                    <input class="c_btn_02" type="button" value="索取发票" onclick="return addInvoiceInfo();"> {yun:}/if{/yun}
                                </div>
                                <div class="diggg">{yun:}$pagenav{/yun}</div>
                                </td>
                                </tr>
                            {yun:}/if{/yun}
                     
                      
                 
                    </table>    
                      </div>
                       </form>
                </div>    </div>
            </div>
        </div>
    </div>
</div>
<div class="infoboxp22" id="invoice_div" style="display:none;">
    <div class="invoice_box" style="padding-top:0px;">
        <form action="index.php?c=invoice&act=apply" method="post" target="supportiframe">
            <div class="invoice_tip">重要提示:根据最新增值税管理办法要求,7月1日起如需为企业(包括公司、非公司制企业法人、企业分支机构、个人独资企业、合伙企业和其他企业)开具增值税发票,需提供纳税人识别号或统一社会信用代码,否则该发票无法作为税收凭证。请准确选择发票抬头类型,若企业发票请填写有效税号信息。</div>
            <div class="jb_infobox" style="width: 100%;">
                <div class="invoice_ture" style="padding-bottom:15px;">订单信息 </div>
                <div class="invoice_mumber"><span class="invoice_span">订单编号:</span></div>
                <div class="invoice_money"><span class="invoice_span">实付金额:</span></div>
 
                <div class="invoice_ture" style="padding-bottom:15px;">发票信息 </div>
                <div class="invoice_fpxx">
                    <div>
                        发票类型: <span>{yun:}if $invoice.invoicetype==1{/yun}企业普通发票{yun:}elseif $invoice.invoicetype==2{/yun}增值税专用票{yun:}/if{/yun}</span>
                    </div>
                    <div>
                        发票抬头:
                        <span>{yun:}$invoice.invoicetitle{/yun}</span>
 
                    </div>
                    <a href="index.php?c=invoice&act=info" class="invoice_fpxx_xg">修改</a>
                </div>
                <div class="invoice_list" style="padding-left:0px;">
 
                    <input name='order_price' type='hidden' id='order_price' />
                    <input name='order_id' type='hidden' id='order_id' />
                    <button type="submit" name='submit' value='1' class="invoice_list_bth">提交申请</button></div>
 
            </div>
        </form>
    </div>
</div>
<script>
    layui.use(['form','layer', 'laydate'], function(){
        var $ = layui.$,
            form = layui.form,
            laydate = layui.laydate,
            layer = layui.layer;
        
        form.on('checkbox(allcom)', function (data) {
                $("input[name='checkboxid[]']").each(function () {
                this.checked = data.elem.checked;
            });
            form.render('checkbox');
          });
    });
    var sy_com_invoice = "{yun:}$config.sy_com_invoice{/yun}";
 
    function addInvoiceInfo() {
        layer.confirm("您尚未添加发票信息,请先添加。", function() {
            window.location.href = 'index.php?c=invoice&act=info';
            window.event.returnValue = false;
            return false;
        });
    }
 
    function invoice_sq(name) {
        if(sy_com_invoice == '1') {
 
            var chk_value = [];
            var i = 0;
            var price_sum = 0;
 
            $('input[name="' + name + '"]:checked').each(function() {
                chk_value.push($(this).val());
                price_sum = accAdd(price_sum, $(this).attr("price"));
                i++;
            });
 
            if(i > 0) {
                var order_id = chk_value;
                var ordernum = chk_value.length;
 
                if(order_id) {
                    $("#order_id").val(order_id);
                    $("#order_price").val(price_sum);
                    $(".invoice_mumber").html('<span class="invoice_span">订单信息:</span> 你选择了' + ordernum + '份订单');
                    $(".invoice_money").html('<span class="invoice_span">实付金额:</span>¥' + price_sum);
                    $.layer({
                        type: 1,
                        title: '申请发票',
                        closeBtn: [0, true],
                        border: [10, 0.3, '#000', true],
                        area: ['640px', 'auto'],
                        page: {
                            dom: "#invoice_div"
                        }
                    });
                }
            } else {
                layer.msg("请选择所需开票定单!", 2, 9);
                return false;
            }
        } else {
            var i = layer.confirm('网站未开启发票申请,请联系管理员!', {
                    btn: ['确定']
                },
                function() {
                    layer.close(i);
                }
            );
        }
    }
 
    $(document).ready(function() {
        $(".invoice").click(function() {
            if(sy_com_invoice == '1') {
                var order_id = $(this).attr("order_id");
                var price = $(this).attr("price");
                if(order_id) {
                    $("#order_id").val(order_id);
                    $("#order_price").val(price);
                    $(".invoice_mumber").html('<span class="invoice_span">订单编号:</span>' + order_id);
                    $(".invoice_money").html('<span class="invoice_span">实付金额:</span>¥' + $(this).attr("price"));
                    $.layer({
                        type: 1,
                        title: '申请发票',
                        closeBtn: [0, true],
                        border: [10, 0.3, '#000', true],
                        area: ['640px', 'auto'],
                        page: {
                            dom: "#invoice_div"
                        }
                    });
 
                }
            } else {
                var i = layer.confirm('网站未开发票申请,请联系管理员开启!', {
                        btn: ['确定']
                    },
                    function() {
                        layer.close(i);
                    }
                );
            }
        });
    });
</script>
 
{yun:}include file="$comstyle/footer.htm"{/yun}