printer_template.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <style>
  2. .change_shifts-box .layui-card-header .layui-form-switch{
  3. margin-top: -4px;
  4. margin-left: 5px;
  5. }
  6. </style>
  7. <div class="layui-card card-common card-brief change_shifts-box">
  8. <div class="layui-card-header">
  9. <span class="card-title">收银交班打印
  10. <input type="checkbox" name="change_shifts_open" lay-filter="change_shifts_open" value="1" lay-skin="switch" {if empty($printer_info) || $printer_info['change_shifts_open']} checked {/if} />
  11. </span>
  12. </div>
  13. <div class="layui-card-body change_shifts-content">
  14. <div class="layui-form-item express_company change_shifts_item">
  15. <label class="layui-form-label"><span class="required">*</span>打印模板:</label>
  16. <div class="layui-input-block len-short">
  17. <select name="change_shifts_template_id" lay-verify="required" lay-filter="change_shifts_template_id">
  18. <option value="">请选择</option>
  19. {foreach $template_list as $k=>$v}
  20. {if $v['type'] == 'change_shifts'}
  21. <option value="{$v.template_id}" {if !empty($printer_info) && $printer_info['change_shifts_template_id'] == $v['template_id']} selected {/if}>{$v.template_name}</option>
  22. {/if}
  23. {/foreach}
  24. </select>
  25. </div>
  26. </div>
  27. <div class="layui-form-item change_shifts_item">
  28. <label class="layui-form-label"><span class="required">*</span>打印联数:</label>
  29. <div class="layui-input-block">
  30. <input type="radio" name="change_shifts_print_num" value="1" {if empty($printer_info) || $printer_info['change_shifts_print_num'] == 1} checked {/if} lay-verify="required" autocomplete="off" title="1" class="layui-input len-long">
  31. <input type="radio" name="change_shifts_print_num" value="2" {if !empty($printer_info) && $printer_info['change_shifts_print_num'] == 2} checked {/if} lay-verify="required" autocomplete="off" title="2" class="layui-input len-long">
  32. <input type="radio" name="change_shifts_print_num" value="3" {if !empty($printer_info) && $printer_info['change_shifts_print_num'] == 3} checked {/if} lay-verify="required" autocomplete="off" title="3" class="layui-input len-long">
  33. <input type="radio" name="change_shifts_print_num" value="4" {if !empty($printer_info) && $printer_info['change_shifts_print_num'] == 4} checked {/if} lay-verify="required" autocomplete="off" title="4" class="layui-input len-long">
  34. </div>
  35. </div>
  36. </div>
  37. </div>