|
|
@ -83,7 +83,7 @@ |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label">客户名称:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
|
<input id="enterpriseName" name="enterpriseName" class="form-control" type="text"> |
|
|
|
<input id="enterpriseName" name="enterpriseName" class="form-control" type="text" readonly> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
@ -181,13 +181,26 @@ |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- <div class="form-group">--> |
|
|
|
<!-- <label class="col-sm-3 control-label is-required">是否含税:</label>--> |
|
|
|
<!-- <div class="col-sm-8">--> |
|
|
|
<!-- <div class="radio-box" th:each="dict : ${@dict.getType('sys_whether')}">--> |
|
|
|
<!-- <input required type="radio" th:id="${'confirmTax_' + dict.dictCode}"--> |
|
|
|
<!-- name="confirmTax" th:value="${dict.dictValue}" th:checked="${dict.default}">--> |
|
|
|
<!-- <label th:for="${'confirmTax_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>--> |
|
|
|
<!-- </div>--> |
|
|
|
<!-- </div>--> |
|
|
|
<!-- </div>--> |
|
|
|
|
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label is-required">是否含税:</label> |
|
|
|
<label class="col-sm-4 control-label is-required">是否含税:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
|
<div class="radio-box" th:each="dict : ${@dict.getType('sys_whether')}"> |
|
|
|
<input required type="radio" th:id="${'confirmTax_' + dict.dictCode}" |
|
|
|
name="confirmTax" th:value="${dict.dictValue}" th:checked="${dict.default}"> |
|
|
|
<label th:for="${'confirmTax_' + dict.dictCode}" th:text="${dict.dictLabel}"></label> |
|
|
|
<!-- 报价币种单选按钮 --> |
|
|
|
<div class="radio-inline"> |
|
|
|
<label><input type="radio" name="confirmTax" value="0">不含税</label> |
|
|
|
</div> |
|
|
|
<div class="radio-inline"> |
|
|
|
<label><input type="radio" name="confirmTax" value="1">含税</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -748,6 +761,34 @@ |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function() { |
|
|
|
$("#commonCurrency_add").on('change', function() { |
|
|
|
var selectedValue = $(this).val(); |
|
|
|
var $radioTax = $('input:radio[name="confirmTax"][value="1"]'); |
|
|
|
var $radioNo = $('input:radio[name="confirmTax"][value="0"]'); |
|
|
|
// 设置含税单选按钮选中 |
|
|
|
if(selectedValue ==="1"){ |
|
|
|
console.log("1:"+selectedValue); |
|
|
|
$radioNo.removeAttr('checked'); |
|
|
|
$radioTax.prop('checked','checked'); |
|
|
|
|
|
|
|
// $("input[name='confirmFax']").val(1); |
|
|
|
console.log($radioTax.prop('checked')); |
|
|
|
}else if(selectedValue ==="2"){ |
|
|
|
console.log("2:"+selectedValue); |
|
|
|
$radioTax.removeAttr('checked',false); |
|
|
|
$radioNo.prop('checked',true); |
|
|
|
// $radioTax.removeAttr('checked'); |
|
|
|
// $radioNo.attr('checked','checked'); |
|
|
|
console.log($radioNo.prop('checked')); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#enterpriseCode').on('select2:select', function (e) { |
|
|
|
var data = e.params.data; |
|
|
|
$("input[name='enterpriseName']").val(data.enterpriseName); |
|
|
|