@ -229,7 +229,7 @@ function initUnitInput(){
//清空药品信息
function clearDrugsInfo(){
var $trs = $("tbody tr");
var $trs = $(".drugs-tr");
for(var i=0; i<9; i++){
var $tr = $($trs[i]),
@ -71,7 +71,7 @@
</div>
<script type="text/html" id="drug_tmp">
{{each dataList as it}}
<tr>
<tr class="drugs-tr">
<td>
<div class="input-group">
<input type="text" class="form-control j-drugName" data-id="{{it.drugsCode}}" value="{{it.drugsName}}" placeholder="请输入药品名称或拼音首码">
@ -102,7 +102,7 @@
</tr>
{{/each}}
{{each emptyList as it}}
<input type="text" class="form-control j-drugName" placeholder="请输入药品名称或拼音首码">
@ -119,7 +119,7 @@
</label>
{{else}}
<input type="{{op.textType}}" value="{{op.value}}" name="{{op.name}}" step="{{op.step}}" maxlength="{{op.maxLength}}" class="form-control input-sm" style="width: {{op.width}};">
<input type="{{op.textType}}" value="{{op.value}}" name="{{op.name}}" {{if op.textType == "number"}}step="{{op.step}}" min="0" {{/if}}maxlength="{{op.maxLength}}" class="form-control input-sm" style="width: {{op.width}};">
{{/if}}
{{if it.unit}}{{it.unit}}{{/if}}