Browse Source

[fix]销售管理

新增1、美元汇率,业务自己不可手动维护,根据报价单的当前时间,美元汇率从【基础资料-汇率管理】中获取当前时间的美元忽略
1.1、获取到美元汇率,则显示美元汇率
1.2、未获取到美元汇率,则显示“当前未配置美元汇率,请联系总经理”
三、确定
3、点击【新增物料】时,若当前时间未获取到当前的【美元汇率】,弹窗提示“当前未配置美元汇率,请联系总经理”
销售估价相关的所有页面,美元汇率去掉 %号后缀
dev
liuxiaoxu 3 weeks ago
parent
commit
15700ab18e
  1. 30
      ruoyi-admin/src/main/resources/templates/sales/estimate/add.html
  2. 3
      ruoyi-admin/src/main/resources/templates/sales/estimate/addDetail.html
  3. 3
      ruoyi-admin/src/main/resources/templates/sales/estimate/ceoAdd.html
  4. 3
      ruoyi-admin/src/main/resources/templates/sales/estimate/ceoAddDetail.html
  5. 3
      ruoyi-admin/src/main/resources/templates/sales/estimate/engineeringAdd.html
  6. 3
      ruoyi-admin/src/main/resources/templates/sales/estimate/engineeringAddDetail.html
  7. 3
      ruoyi-admin/src/main/resources/templates/sales/estimate/purchaseAdd.html
  8. 3
      ruoyi-admin/src/main/resources/templates/sales/estimate/purchaseAddDetail.html

30
ruoyi-admin/src/main/resources/templates/sales/estimate/add.html

@ -48,10 +48,7 @@
<div class="form-group">
<label class="col-sm-4 control-label is-required">美元汇率:</label>
<div class="col-sm-8">
<div class="input-group">
<input name="usdRate" id="usdRate_add" class="form-control" type="text" required>
<span class="input-group-addon">%</span>
</div>
<input name="usdRate" id="usdRate_add" class="form-control" type="text" placeholder="当前未配置美元汇率,请联系总经理" readonly required>
</div>
</div>
@ -198,6 +195,13 @@
// 点击选择物料按钮
function insertMaterialRow() {
if ($("#usdRate_add").val() == null || $("#usdRate_add").val() == '') {
$.modal.alertWarning("当前未配置美元汇率,请联系总经理");
return;
}
var url = prefix + '/estimateMaterialSelect';
var options = {
title: '选择物料',
@ -463,6 +467,11 @@
//获取客户信息
$(document).ready(function() {
//加载美元汇率
loadLatestUsdTax();
// 初始化时默认加载客户编号列表
loadCustomerIds();
@ -610,7 +619,18 @@
// $("input[name='allTaxDollar']").val(allTaxDollar);
// }
//from的最新美元汇率
function loadLatestUsdTax() {
var url = ctx + 'system/exchangeRate/getLatestUsdTax';
$.ajax({
type: 'GET', // 请求类型
url: url, // 后端接口URL
dataType: 'json', // 预期服务器返回的数据类型
success: function(data) {
$("#usdRate_add").val(data.data);
}
});
}
</script>
</body>

3
ruoyi-admin/src/main/resources/templates/sales/estimate/addDetail.html

@ -47,10 +47,7 @@
<div class="form-group">
<label class="col-sm-4 control-label is-required">美元汇率:</label>
<div class="col-sm-8">
<div class="input-group">
<input name="usdRate" th:field="*{usdRate}" id="usdRate_add" class="form-control" type="text" required readonly>
<span class="input-group-addon">%</span>
</div>
</div>
</div>

3
ruoyi-admin/src/main/resources/templates/sales/estimate/ceoAdd.html

@ -47,10 +47,7 @@
<div class="form-group">
<label class="col-sm-4 control-label is-required">美元汇率:</label>
<div class="col-sm-8">
<div class="input-group">
<input name="usdRate" th:field="*{usdRate}" id="usdRate_add" class="form-control" type="text" required readonly>
<span class="input-group-addon">%</span>
</div>
</div>
</div>

3
ruoyi-admin/src/main/resources/templates/sales/estimate/ceoAddDetail.html

@ -47,10 +47,7 @@
<div class="form-group">
<label class="col-sm-4 control-label is-required">美元汇率:</label>
<div class="col-sm-8">
<div class="input-group">
<input name="usdRate" th:field="*{usdRate}" id="usdRate_add" class="form-control" type="text" required readonly>
<span class="input-group-addon">%</span>
</div>
</div>
</div>

3
ruoyi-admin/src/main/resources/templates/sales/estimate/engineeringAdd.html

@ -47,10 +47,7 @@
<div class="form-group">
<label class="col-sm-4 control-label is-required">美元汇率:</label>
<div class="col-sm-8">
<div class="input-group">
<input name="usdRate" th:field="*{usdRate}" id="usdRate_add" class="form-control" type="text" required readonly>
<span class="input-group-addon">%</span>
</div>
</div>
</div>

3
ruoyi-admin/src/main/resources/templates/sales/estimate/engineeringAddDetail.html

@ -47,10 +47,7 @@
<div class="form-group">
<label class="col-sm-4 control-label is-required">美元汇率:</label>
<div class="col-sm-8">
<div class="input-group">
<input name="usdRate" th:field="*{usdRate}" id="usdRate_add" class="form-control" type="text" required readonly>
<span class="input-group-addon">%</span>
</div>
</div>
</div>

3
ruoyi-admin/src/main/resources/templates/sales/estimate/purchaseAdd.html

@ -47,10 +47,7 @@
<div class="form-group">
<label class="col-sm-4 control-label is-required">美元汇率:</label>
<div class="col-sm-8">
<div class="input-group">
<input name="usdRate" th:field="*{usdRate}" id="usdRate_add" class="form-control" type="text" required readonly>
<span class="input-group-addon">%</span>
</div>
</div>
</div>

3
ruoyi-admin/src/main/resources/templates/sales/estimate/purchaseAddDetail.html

@ -47,10 +47,7 @@
<div class="form-group">
<label class="col-sm-4 control-label is-required">美元汇率:</label>
<div class="col-sm-8">
<div class="input-group">
<input name="usdRate" th:field="*{usdRate}" id="usdRate_add" class="form-control" type="text" required readonly>
<span class="input-group-addon">%</span>
</div>
</div>
</div>

Loading…
Cancel
Save