dateils.html 6.24 KB
<form id="edit-form" test="1" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">





	<div class="form-group">
        <label class="control-label col-xs-4 col-sm-2">{:__('客户名称')}:</label>
        <div class="col-xs-4 col-sm-4">
            <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-4 col-sm-2">{:__('项目名称')}:</label>
        <div class="col-xs-4 col-sm-4">
            <input id="c-business_name"  class="form-control" name="row[business_name]" type="text" value="{$row.business_name|htmlentities}">
        </div>
    </div>

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

    <div class="form-group">
        <label class="control-label col-xs-4 col-sm-2">{:__('合同金额')}:</label>
        <div class="col-xs-4 col-sm-4">
            <input id="c-wcvzhwhu" class="form-control" name="row[wcvzhwhu]" type="number" value="{$row.wcvzhwhu|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-4 col-sm-2">{:__('合同编号')}:</label>
        <div class="col-xs-4 col-sm-4">
            <input id="c-cawhvqvv" class="form-control" name="row[cawhvqvv]" type="text" value="{$row.cawhvqvv|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-4 col-sm-2">{:__('签约日期')}:</label>
        <div class="col-xs-4 col-sm-4">
            <input id="c-ecsnlsxg" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[ecsnlsxg]" type="text" value="{$row.ecsnlsxg}">
        </div>
    </div>

     <div class="form-group">
        <label class="control-label col-xs-4 col-sm-2">{:__('签约主体')}:</label>
        <div class="col-xs-4 col-sm-4">
            <input id="c-cawhvqvv" class="form-control" name="row[main_fabhjb]" type="text" value="{$contract.main_fabhjb|htmlentities}">
        </div>
    </div>
	<div class="form-group">  
	<label class="control-label col-xs-4 col-sm-1"></label>
	    <div class="col-xs-6 col-sm-8">
			<div>1、本合同签订后<input type="number" name="row[main_lqogcl]" style="width: 100px" value="{$contract.main_lqogcl}">日内,买方向卖方支付本合同价税合计总金额的
				<input type="number" name="row[main_wyjwsd]" style="width: 100px" value="{$contract.main_wyjwsd}">%作为合同定金,卖方开始备货并发货。</div>
			<div>2、货到项目所在地后<input type="number" name="row[main_fnysuc]" style="width: 100px" value="{$contract.main_fnysuc}">日内,买方向卖方支付本合同价税合计总金额的
				<input type="number" name="row[main_mctrbc]" style="width: 100px" value="{$contract.main_mctrbc}">%作为提货款。</div>
			<div>3、买方提货后<input type="number" name="row[main_pbyeij]" style="width: 100px" value="{$contract.main_pbyeij}">日内,买方向卖方支付本合同价税合计总金额的剩余全部款项。经买卖双方共同确认,此时买方支付的定金可以转化为货款。</div>
		</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>
            {if condition="in_array(1, $role)"}
            <th>{:__('结算价')}</th>
            {/if}
            {if condition="in_array(2, $role)"}
            <th>{:__('成本价')}</th>
            {/if}
            <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>
                {if condition="in_array(1, $role)"}
                <td>{$vo.wholesale_price}</td>
                {/if}
                {if condition="in_array(2, $role)"}
                <td>{$vo.cb_price}</td>
                {/if}
                <td>{$vo.profitrate}</td>
                <td>{$vo.qty}</td>
                <td>{$vo.amount}</td>
            </tr>
            {/volist}
            {/volist}


            <tr>
                <td>合计</td>
                <td></td>
                {if condition="in_array(1, $role)"}
                <th></th>
                {/if}
                {if condition="in_array(2, $role)"}
                <th></th>
                {/if}
                <td></td>
                <td></td>
                <td></td>
                <td>{$row.totalprice}</td>
            </tr>

            {if condition="in_array(1, $role)"}
            <tr>
                <td>销售利润率</td>
                <td></td>
                {if condition="in_array(1, $role)"}
                <th></th>
                {/if}
                {if condition="in_array(2, $role)"}
                <th></th>
                {/if}
                <td></td>
                <td></td>
                <td></td>
                <td>{$row.balance}</td>
            </tr>
            {/if}


            {if condition="in_array(2, $role)"}
            <tr>
                <td>成本利润率</td>
                <td></td>
                {if condition="in_array(1, $role)"}
                <th></th>
                {/if}
                {if condition="in_array(2, $role)"}
                <th></th>
                {/if}
                <td></td>
                <td></td>
                <td></td>
                <td>{$row.profit}</td>
            </tr>
            {/if}
            </tbody>
        </table>
    </div>



</form>