|
@ -53,18 +53,9 @@ |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label class="col-sm-4 control-label is-required">美元汇率:</label> |
|
|
<label class="col-sm-4 control-label is-required">美元汇率:</label> |
|
|
<div class="col-sm-8"> |
|
|
<div class="col-sm-8"> |
|
|
<input name="usdTax" id="usdTax_add" class="form-control" type="number" placeholder="美元对人民币汇率" required> |
|
|
<input name="usdTax" id="usdTax_add" class="form-control" type="number" placeholder="当前未配置美元汇率,请联系总经理" required readonly> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<!-- <div class="form-group">--> |
|
|
|
|
|
<!-- <label class="col-sm-4 control-label is-required">是否含税:</label>--> |
|
|
|
|
|
<!-- <div class="radio-box" th:each="dict : ${@dict.getType('sys_confirm_tax')}">--> |
|
|
|
|
|
<!-- <input required type="radio" th:id="${'confirmFax_' + dict.dictCode}"--> |
|
|
|
|
|
<!-- name="confirmFax" th:value="${dict.dictValue}" >--> |
|
|
|
|
|
<!-- <label th:for="${'confirmFax_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>--> |
|
|
|
|
|
<!-- </div>--> |
|
|
|
|
|
<!-- </div>--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label class="col-sm-4 control-label is-required">是否含税:</label> |
|
|
<label class="col-sm-4 control-label is-required">是否含税:</label> |
|
@ -79,18 +70,6 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <div class="form-group">--> |
|
|
|
|
|
<!-- <label class="col-sm-4 control-label is-required">是否含税:</label>--> |
|
|
|
|
|
<!-- <div class="radio-box">--> |
|
|
|
|
|
<!-- <input required type="radio" id="confirmTax_yes" name="confirmTax" value="0">--> |
|
|
|
|
|
<!-- <label for="confirmTax_yes">含税</label>--> |
|
|
|
|
|
<!-- </div>--> |
|
|
|
|
|
<!-- <div class="radio-box">--> |
|
|
|
|
|
<!-- <input required type="radio" id="confirmTax_no" name="confirmTax" value="1">--> |
|
|
|
|
|
<!-- <label for="confirmTax_no">不含税</label>--> |
|
|
|
|
|
<!-- </div>--> |
|
|
|
|
|
<!-- </div>--> |
|
|
|
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label class="col-sm-4 control-label">国内税率:</label> |
|
|
<label class="col-sm-4 control-label">国内税率:</label> |
|
|
<div class="col-sm-8"> |
|
|
<div class="col-sm-8"> |
|
@ -176,7 +155,10 @@ |
|
|
var loginName = [[${@permission.getPrincipalProperty('loginName')}]]; |
|
|
var loginName = [[${@permission.getPrincipalProperty('loginName')}]]; |
|
|
var prefix = ctx + "system/customerQuote"; |
|
|
var prefix = ctx + "system/customerQuote"; |
|
|
var commonCurrency = $("#commonCurrency_add option:selected").val(); |
|
|
var commonCurrency = $("#commonCurrency_add option:selected").val(); |
|
|
$("#form-customerQuote-add").validate({focusCleanup: true}); |
|
|
$("#form-customerQuote-add").validate( |
|
|
|
|
|
{ |
|
|
|
|
|
focusCleanup: true} |
|
|
|
|
|
); |
|
|
function submitHandler() { |
|
|
function submitHandler() { |
|
|
if ($.validate.form()) { |
|
|
if ($.validate.form()) { |
|
|
var formData = $("#form-customerQuote-add").serializeArray(); |
|
|
var formData = $("#form-customerQuote-add").serializeArray(); |
|
@ -245,6 +227,9 @@ |
|
|
$(document).ready(function() { |
|
|
$(document).ready(function() { |
|
|
// 初始化时默认加载客户编号列表 |
|
|
// 初始化时默认加载客户编号列表 |
|
|
loadCustomerIds(); |
|
|
loadCustomerIds(); |
|
|
|
|
|
|
|
|
|
|
|
//初始化美元汇率 |
|
|
|
|
|
loadLatestUsdTax(); |
|
|
}); |
|
|
}); |
|
|
// 假设的加载客户编号列表函数 |
|
|
// 假设的加载客户编号列表函数 |
|
|
function loadCustomerIds() { |
|
|
function loadCustomerIds() { |
|
@ -344,7 +329,7 @@ |
|
|
return $.table.selectDictLabel(sysUnitClassDatas, value); |
|
|
return $.table.selectDictLabel(sysUnitClassDatas, value); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{title: '半成品类型',field: 'processMethod',align: 'center', |
|
|
{title: '加工方式',field: 'processMethod',align: 'center', |
|
|
formatter: function(value, row, index) { |
|
|
formatter: function(value, row, index) { |
|
|
return $.table.selectDictLabel(processMethodDatas, value); |
|
|
return $.table.selectDictLabel(processMethodDatas, value); |
|
|
} |
|
|
} |
|
@ -376,8 +361,8 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{title: '国内税率',field: 'countTax',align: 'center',}, |
|
|
// {title: '国内税率',field: 'countTax',align: 'center',}, |
|
|
{ title: '美元汇率',field: 'usdTax', align: 'center',}, |
|
|
// { title: '美元汇率',field: 'usdTax', align: 'center',}, |
|
|
{ title: '物料的不含税单价(RMB)', |
|
|
{ title: '物料的不含税单价(RMB)', |
|
|
field: 'materialNoRmb', |
|
|
field: 'materialNoRmb', |
|
|
align: 'center', |
|
|
align: 'center', |
|
@ -753,7 +738,7 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if ($("#usdTax_add").val() == null || $("#usdTax_add").val() == '') { |
|
|
if ($("#usdTax_add").val() == null || $("#usdTax_add").val() == '') { |
|
|
$.modal.alertWarning("请输入美元汇率"); |
|
|
$.modal.alertWarning("当前未配置美元汇率,请联系总经理"); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -848,7 +833,19 @@ |
|
|
$.modal.open("最新报价历史", url); |
|
|
$.modal.open("最新报价历史", url); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//from的最新美元汇率 |
|
|
|
|
|
function loadLatestUsdTax() { |
|
|
|
|
|
var url = ctx + 'system/exchangeRate/getLatestUsdTax'; |
|
|
|
|
|
$.ajax({ |
|
|
|
|
|
type: 'GET', // 请求类型 |
|
|
|
|
|
url: url, // 后端接口URL |
|
|
|
|
|
dataType: 'json', // 预期服务器返回的数据类型 |
|
|
|
|
|
success: function(data) { |
|
|
|
|
|
console.log(data) |
|
|
|
|
|
$("#usdTax_add").val(data.data); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|