|
@ -130,10 +130,15 @@ |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label class="col-sm-6 control-label is-required">报价币种:</label> |
|
|
<label class="col-sm-6 control-label is-required">报价币种:</label> |
|
|
<div class="col-sm-6"> |
|
|
<div class="col-sm-6"> |
|
|
<div class="radio-box" th:each="dict : ${@dict.getType('sys_common_currency')}"> |
|
|
<div class="checkbox"> |
|
|
<input type="radio" th:id="${'commonCurrency_' + dict.dictCode}" |
|
|
<label> |
|
|
name="commonCurrency" th:value="${dict.dictValue}" th:checked="${dict.default}" th:field="*{commonCurrency}" required disabled> |
|
|
<input disabled type="checkbox" id="rmb" name="currency" value="1" th:field="*{currency}" th:checked="${currency != null and #lists.contains(currency, '1')}"/> rmb/含税 |
|
|
<label th:for="${'commonCurrency_' + dict.dictCode}" th:text="${dict.dictLabel}" ></label> |
|
|
</label> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="checkbox"> |
|
|
|
|
|
<label> |
|
|
|
|
|
<input disabled type="checkbox" id="usd" name="currency" value="2" th:field="*{currency}" th:checked="${currency != null and #lists.contains(currency, '2')}"/> 美元/不含税 |
|
|
|
|
|
</label> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -148,24 +153,20 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <div class="form-group">--> |
|
|
|
|
|
<!-- <label class="col-sm-6 control-label is-required">是否含税:</label>--> |
|
|
|
|
|
<!-- <div class="col-sm-6">--> |
|
|
|
|
|
<!-- <div class="radio-box" th:each="dict : ${@dict.getType('sys_confirm_tax')}">--> |
|
|
|
|
|
<!-- <input type="radio" th:id="${'confirmTax_' + dict.dictCode}" name="confirmTax" th:value="${dict.dictValue}" disabled--> |
|
|
|
|
|
<!-- th:checked="${dict.default}" th:field="*{confirmTax}">--> |
|
|
|
|
|
<!-- <label th:for="${'confirmTax_' + dict.dictCode}" th:text="${dict.dictLabel}" ></label>--> |
|
|
|
|
|
<!-- </div>--> |
|
|
|
|
|
<!-- </div>--> |
|
|
|
|
|
<!-- </div>--> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label class="col-sm-6 control-label is-required">是否含税:</label> |
|
|
<label class="col-sm-6 control-label" id="taxLable">国内税率:</label> |
|
|
<div class="col-sm-6"> |
|
|
|
|
|
<div class="radio-box" th:each="dict : ${@dict.getType('sys_confirm_tax')}"> |
|
|
|
|
|
<input type="radio" th:id="${'confirmTax_' + dict.dictCode}" name="confirmTax" th:value="${dict.dictValue}" disabled |
|
|
|
|
|
th:checked="${dict.default}" th:field="*{confirmTax}"> |
|
|
|
|
|
<label th:for="${'confirmTax_' + dict.dictCode}" th:text="${dict.dictLabel}" ></label> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="form-group"> |
|
|
|
|
|
<label class="col-sm-6 control-label is-required" >国内税率:</label> |
|
|
|
|
|
<div class="col-sm-6"> |
|
|
<div class="col-sm-6"> |
|
|
<div class="input-group percentage"> |
|
|
<input name="taxRate" th:field="*{taxRate}" class="form-control" placeholder="%" type="text" readonly/> |
|
|
<input name="taxRate" th:field="*{taxRate}" class="form-control" type="text" readonly required /> |
|
|
|
|
|
<span class="input-group-addon">%<i class="fa fa-percentage"></i></span> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
@ -317,6 +318,14 @@ |
|
|
var customer = [[${formData}]]; |
|
|
var customer = [[${formData}]]; |
|
|
$("#form-customer-zozjAudit").validate({focusCleanup: true}); |
|
|
$("#form-customer-zozjAudit").validate({focusCleanup: true}); |
|
|
$(function(){ |
|
|
$(function(){ |
|
|
|
|
|
var currencyList = customer.currency; |
|
|
|
|
|
var taxLable = $('#taxLable')[0]; |
|
|
|
|
|
var oldClass = taxLable.className.split(' '); |
|
|
|
|
|
if(currencyList.includes('1')){ |
|
|
|
|
|
if (!oldClass.includes('is-required')) { |
|
|
|
|
|
taxLable.classList.add('is-required'); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
$.ajax({ |
|
|
$.ajax({ |
|
|
url: ctx + 'system/salesOrder/getBinessMembers', |
|
|
url: ctx + 'system/salesOrder/getBinessMembers', |
|
|
type: 'get', |
|
|
type: 'get', |
|
@ -337,9 +346,9 @@ |
|
|
}) |
|
|
}) |
|
|
function submitHandler() { |
|
|
function submitHandler() { |
|
|
if ($.validate.form()) { |
|
|
if ($.validate.form()) { |
|
|
$("select[name='exportSales']").removeAttr("disable"); |
|
|
$("select[name='exportSales']").removeAttr("disabled"); |
|
|
$("select[name='integrityRating']").removeAttr("disable"); |
|
|
$("select[name='integrityRating']").removeAttr("disabled"); |
|
|
$("select[name='businessMembers']").removeAttr("disable"); |
|
|
$("select[name='businessMembers']").removeAttr("disabled"); |
|
|
if ($('textarea[name="comment"]').val()) { |
|
|
if ($('textarea[name="comment"]').val()) { |
|
|
$('input[name="p_COM_comment"]').val($('textarea[name="comment"]').val()); |
|
|
$('input[name="p_COM_comment"]').val($('textarea[name="comment"]').val()); |
|
|
} |
|
|
} |
|
|