|  |  | 
 |  |  |                     <div class="layui-col-lg6"> | 
 |  |  |                         <label class="layui-form-label febs-form-item-require">需要凭证:</label> | 
 |  |  |                         <div class="layui-input-block"> | 
 |  |  |                             <input type="radio" name="voucherOnOff" value="1" title="是"  /> | 
 |  |  |                             <input type="radio" name="voucherOnOff" value="2" title="否"  checked /> | 
 |  |  |                             <input type="radio" name="voucherOnOff" value="1" title="是"  lay-filter="hasVoucher"/> | 
 |  |  |                             <input type="radio" name="voucherOnOff" value="2" title="否"  lay-filter="hasVoucher" checked /> | 
 |  |  |                         </div> | 
 |  |  |                     </div> | 
 |  |  |  | 
 |  |  |                     <div class="layui-form-item voucher-percent-input febs-hide"> | 
 |  |  |                         <label class="layui-form-label">凭证比例:</label> | 
 |  |  |                         <div class="layui-input-block"> | 
 |  |  |                             <input type="text" name="voucherPercent" placeholder="" autocomplete="off" class="layui-input"> | 
 |  |  |                         </div> | 
 |  |  |                     </div> | 
 |  |  |                     <div class="layui-card-footer"> | 
 |  |  | 
 |  |  |             }); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         form.on('radio(hasVoucher)', function(data){ | 
 |  |  |             if (data.value == 2) { | 
 |  |  |                 $('.voucher-percent-input').hide(); | 
 |  |  |             } else { | 
 |  |  |                 $('.voucher-percent-input').show(); | 
 |  |  |             } | 
 |  |  |         }); | 
 |  |  |  | 
 |  |  |         form.render(); | 
 |  |  |  | 
 |  |  |         function initHlmVoucherButtonValue() { | 
 |  |  |             form.val("hlm-voucher-button-form", { | 
 |  |  |                 "scorePrice": hlmVoucherButton.scorePrice, | 
 |  |  |                 "voucherOnOff": hlmVoucherButton.voucherOnOff, | 
 |  |  |                 "voucherPercent": hlmVoucherButton.voucherPercent, | 
 |  |  |             }); | 
 |  |  |  | 
 |  |  |             if (hlmVoucherButton.voucherOnOff == 1) { | 
 |  |  |                 $(".voucher-percent-input").show(); | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         form.on('submit(hlm-voucher-button-submit)', function (data) { |