You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
ymww_backend/application/admin/view/order/split.html

55 lines
3.5 KiB

<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Order_sn')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-order_sn" data-rule="required" class="form-control" name="row[order_sn]" type="text" value="{$row.order_sn|htmlentities}" readonly>
</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-goods_id" data-rule="" data-source="goods/selectpage" data-primary-key="id" data-field="name" data-max-select-limit="1000"data-multiple="false" class="form-control selectpage" name="row[goods_id]" type="text" value="{$row.goods_id|htmlentities}" data-order-by="id" data-params='{"custom[goods_type]":"1"}' readonly>
</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-user_id" data-rule="" data-source="user/user/selectpage" data-primary-key="id" data-field="nickname" data-max-select-limit="1000"data-multiple="false" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}" data-order-by="id" data-format-item="{nickname} - <img class='img-sm img-center img-circle' src='{avatar}'> - {mobile}" readonly>
</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-pay_amount" data-rule="required" class="form-control" step="0.01" name="row[pay_amount]" type="number" value="{$row.pay_amount|htmlentities}" readonly>
</div>
</div>
<div class="form-group" id="setmeal_json">
<label class="control-label col-xs-12 col-sm-2">{:__('套餐佣金')}:</label>
<div class="col-xs-12 col-sm-8">
<dl class="fieldlist" data-name="row[datajson]" data-template="templatetpl">
<dd>
<ins style="width:200px;">{:__('商品')}</ins>
<ins style="width:150px;">{:__('价格')}</ins>
</dd>
<dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
<textarea name="row[datajson]" class="form-control hide" cols="30" rows="5"></textarea>
</dl>
</div>
</div>
<script type="text/html" id="templatetpl">
<dd class="form-inline">
<input type="text" name="row[<%=index%>][goods_id]" class="form-control selectpage" data-source="goods/selectpage" data-field="name" value="" style="width:200px;" data-params='{"custom[status]":"hidden"}'>
<input type="text" name="row[<%=index%>][price]" class="form-control" value="" type="number">
<span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
</dd>
</script>
<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">
<button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
</div>
</div>
</form>