invoice.html 10.9 KB
{if $row.check_status=="2"}
<div class="alert alert-danger-light">
    <p><i class="fa fa-info"></i> {:__('已经审核通过的只能修改备注')}</p>
</div>
{/if}
<style>
    .form-group .col-sm-2{
        min-width: 140px;
    }
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="row">

        <div class="col-md-6 col-xs-12 form-group business_id_div ">
            <label for="c-contract_id" class="control-label col-xs-12 col-sm-2">{:__('选择合同')}:</label>
            <div class="col-xs-12 col-sm-8">

                <div class="clickbox">

                    <label class="control-label">
                        {:isset($row->contract)?htmlentities($row->contract['name'].'-'.$row->contract['number']):__('选择合同')}
                    </label>
                </div>

            </div>
        </div>

        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-invoice_body" class="control-label col-xs-12 col-sm-2">{:__('开票主体')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-invoice_body" data-rule="required" readonly type="text" class="form-control" name="row[invoice_body]" value="{$row.invoice_body|htmlentities}"/>
            </div>
        </div>

        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-invoice_name" class="control-label col-xs-12 col-sm-2">{:__('发票抬头')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-invoice_name" data-rule="required" readonly type="text" class="form-control" name="row[invoice_name]" value="{$row.invoice_name|htmlentities}"/>
            </div>
        </div>

        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-invoice_issue" class="control-label col-xs-12 col-sm-2">{:__('抬头类型')}:</label>
            <div class="col-xs-12 col-sm-8">
                {:build_radios('row[invoice_issue]', ['1'=>__('企业'), '2'=>__('个人'), '3'=>__('事业单位')],$row['invoice_issue'])}
            </div>
        </div>
        <div class="invoice_issue" {if $row['invoice_issue']=='2'}style="display: none"{/if}>
            <div class="col-md-6 col-xs-12 form-group">
                <label for="c-invoice_type" class="control-label col-xs-12 col-sm-2">{:__('发票类型')}:</label>
                <div class="col-xs-12 col-sm-8">
                    {:build_radios('row[invoice_type]', ['1'=>__('增值税普票'), '2'=>__('增值税专票')],$row['invoice_type'])}
                </div>
            </div>
            <div class="col-md-6 col-xs-12 form-group">
                <label for="c-register_no" class="control-label col-xs-12 col-sm-2">{:__('统一社会信用代码')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-register_no"  readonly type="text" class="form-control" name="row[register_no]" value="{$row.register_no|htmlentities}"/>
                </div>
            </div>

            <div class="col-md-6 col-xs-12 form-group">
                <label for="c-bank_name" class="control-label col-xs-12 col-sm-2">{:__('开户行名称')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-bank_name" readonly  type="text" class="form-control" name="row[bank_name]" value="{$row.bank_name|htmlentities}"/>
                </div>
            </div>
            <div class="col-md-6 col-xs-12 form-group">
                <label for="c-bank_name" class="control-label col-xs-12 col-sm-2">{:__('开户账号')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-bank_no" readonly  type="text" class="form-control" name="row[bank_no]" value="{$row.bank_no|htmlentities}"/>
                </div>
            </div>

        </div>

        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-money" class="control-label col-xs-12 col-sm-2">{:__('开票金额')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-money"  readonly type="number" data-rule="required" class="form-control" name="row[money]" value="{$row.money|htmlentities}"/>
                <span class="help-block hepl-money">合同金额:{$row.contract.money|htmlentities},已收款:{$row.contract.return_money|htmlentities},已开票:{$row.contract.invoice_money|htmlentities}</span>
            </div>
        </div>
        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-tax_rate" class="control-label col-xs-12 col-sm-2">{:__('开票税率')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-tax_rate" readonly  type="number" data-rule="required" class="form-control" name="row[tax_rate]" value="{$row.tax_rate|htmlentities}"/>
                <span class="help-block">不用输入%</span>
            </div>
        </div>

        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('开票内容')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-content"  type="text" readonly class="form-control" name="row[content]" value="{$row.content|htmlentities}"/>
            </div>
        </div>

        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-email" class="control-label col-xs-12 col-sm-2">{:__('接收邮箱')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-email"  readonly type="text" class="form-control" name="row[email]" value="{$row.email|htmlentities}"/>
                <span class="help-block">可空,输入客户邮箱完成开票时,会把附件自动发送给客户。</span>
            </div>
        </div>

        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-user_name" class="control-label col-xs-12 col-sm-2">{:__('收件人')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-user_name" readonly  type="text" class="form-control" name="row[user_name]" value="{$row.user_name|htmlentities}"/>
                <span class="help-block">如需要邮寄请填写</span>
            </div>
        </div>
        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-user_phone" class="control-label col-xs-12 col-sm-2">{:__('手机')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-user_phone" readonly  type="text" class="form-control" name="row[user_phone]" value="{$row.user_phone|htmlentities}"/>
                <span class="help-block">如需要邮寄请填写</span>
            </div>
        </div>
        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-user_address" class="control-label col-xs-12 col-sm-2">{:__('邮寄地址')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-user_address" readonly  type="text" class="form-control" name="row[user_address]" value="{$row.user_address|htmlentities}"/>
                <span class="help-block">如需要邮寄请填写</span>
            </div>
        </div>


        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-remarks" class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
            <div class="col-xs-12 col-sm-8">
                <textarea id="c-remarks" readonly class="form-control" name="row[remarks]">{$row.remarks|htmlentities}</textarea>
            </div>
        </div>



        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-flow_admin_id" class="control-label col-xs-12 col-sm-2">{:__('审批人')}:</label>
            <div class="col-xs-12 col-sm-8">
                {if($flow)}
                <input id="c-flow_admin_id"  value="{$row.flow_admin_id|htmlentities}"  data-source="facrm/common/selectpage/model/admin/type/all" data-field="nickname" data-multiple="true" {if $row.check_status=="2"}disabled{/if}  {$flow->config==1?'disabled ':'data-rule="required"'}
                class="form-control selectpage" name="row[flow_admin_id]" type="text" value="{if $flow->config==1}{$flow->step[0]['admin_ids']}{/if}">
                {else/}
                <label  class="control-label">审批流程已被删除</label>
                {/if}
            </div>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            {if $flow->config==0}
            <button type="button" class="btn btn-primary btn-embossed  " data-toggle="modal"  data-target="#modelProduct">{:__('审核')}</button>
            {else/}
            <button type="button" class="btn btn-success btn-embossed  ">{:__('审核通过')}</button>
            {/if}


            <button type="button" class="btn btn-danger btn-embossed btn-reject">{:__('驳回')}</button>
        </div>
    </div>


    {if $flow->config==0}
    <!-- Modal -->
    <style>
        .modal-backdrop{z-index: 1;}
        .modal {z-index: 2;}
    </style>
    <div class="modal fade" id="modelProduct"  role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document" >
            <div class="modal-content" >
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                    </button>
                    <h4 class="modal-title" id="myModalLabel">{:__('审核提示')}</h4>
                </div>
                <div class="modal-body">
                    <div id="lays-row" class="row">

                        <div class="col-md-4 col-xs-12 form-group">
                            <label for="c-next_admin_id" class="control-label col-xs-12 col-sm-4">{:__('下个审批人')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                <input id="c-next_admin_id"   data-source="facrm/common/selectpage/model/admin/type/all" data-field="nickname" data-multiple="true"
                                       class="form-control selectpage" name="next_admin_id" type="text" value="">
                                <span class="text-red">*如果要结束审批请不要选择审批人</span>
                            </div>
                        </div>

                        <div class="col-md-4 col-xs-12 form-group">
                            <label class="control-label col-xs-12 col-sm-4"></label>
                            <div class="col-xs-12 col-sm-8">
                                <button type="button" class="btn btn-success btn-embossed  ">{:__('审核通过')}</button>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
    {/if}

</form>

<script>
    var ids={:input('ids')};
    var types="{:input('types','','htmlentities')}";
</script>