detail2.html 3.09 KB


<script></script>

<form id="edit-form" class="form-horizontal col-sm-12" role="form" data-toggle="validator" method="POST" action="">





    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('报价单名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('关联客户')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-customer_name"  class="form-control" name="row[customer_name]" type="text" value="{$row.customer_name|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('关联项目')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-business_name" class="form-control" name="row[business_name]" type="text" value="{$row.business_name|htmlentities}">
        </div>
    </div>


    <div class="table-responsive">
        <table id="table"  class="table table-striped table-bordered table-hover table-nowrap">
            <thead>
            <td></td>
            <th>{:__('商品名称')}</th>

            <th>{:__('单位')}</th>
            <th>{:__('单价')}</th>
            <th>{:__('结算价')}</th>
            <th>{:__('成本价')}</th>
            <th>{:__('数量')}</th>
            <th>{:__('总价')}</th>
            </thead>
            <tbody>
            {volist name="row.goods_list" id="list" key="k"}
            <tr>
                <td>{$key}</td>
            </tr>
            {volist name="$row.goods_list[$key]" id="vo" key="k"}
            <tr>
                <td></td>
                <td>{$vo.productName}</td>
                <td>{$vo.unit}</td>
                <td>{$vo.unitPrice}</td>


                <td>{$vo.wholesale_price}</td>
                <td>{$vo.cb_price}</td>

                <td>{$vo.qty}</td>
                <td>{$vo.amount}</td>
            </tr>
            {/volist}
            {/volist}

            <tr>
                <td>合计</td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>

                <td>{$row.totalprice}</td>
            </tr>

            <tr>
                <td>成本利润率</td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>

                <td></td>
                <td></td>
                <td>{$row.profit}</td>
            </tr>
            <tr>
                <td>销售利润率</td>
                <td></td>
                <td></td>
                <td></td>

                <td></td>
                <td></td>
                <td></td>
                <td>{$row.balance}</td>
            </tr>


            </tbody>
        </table>
    </div>







</form>