Browse Source

[fix]

销售管理 销售订单
修改插入行方法,修改校验汇率必填弹窗警告方法;
修改销售订单详情页面,添加客户料号字段显示;
dev
王晓迪 4 months ago
parent
commit
56476722c1
  1. 67
      ruoyi-admin/src/main/resources/templates/system/salesOrder/add.html
  2. 6
      ruoyi-admin/src/main/resources/templates/system/salesOrder/detail.html

67
ruoyi-admin/src/main/resources/templates/system/salesOrder/add.html

@ -532,6 +532,55 @@
error: function () {$.modal.msgError("后台出错啦!");}
});
//获取客户信息
var options = [];
// $.ajax({
// type: "get",
// url: ctx + "system/customer/matchCustomerList",
// dataType: "json",
// success: function (res) {
// if (res.code == 0) {
// var resultList = res.data;
// customerList = resultList;
// for (var i = 0, len = resultList.length; i < len; i++) {
// var option = resultList[i];
// option.id = resultList[i]["enterpriseCode"];
// option.text = resultList[i]["enterpriseCode"];
// options.push(option);
// }
// }
// }
// });
// $("select[name='enterpriseCode']").select2({
// theme: "bootstrap",
// allowClear: true,
// placeholder: "请选择客户",
// data: options,
// ajax: {
// type: "get",
// url: ctx + "system/customer/matchCustomerList",
// dataType: "json",
// delay: 250,
// timeout: 10000, // 设置超时时间为10秒
// cache: true,
// processResults: function (res, params) {
// if (res.code == 0) {
// var resultList = res.data;
// customerList = resultList;
// for (var i = 0, len = resultList.length; i < len; i++) {
// var option = resultList[i];
// option.id = resultList[i]["enterpriseCode"];
// option.text = resultList[i]["enterpriseCode"];
// options.push(option);
// }
// }
// return {
// results: options
// };
// },
// escapeMarkup: function (markup) { return markup; },
// minimumInputLength: 1
// }
// });
$("select[name='enterpriseCode']").select2({
theme: "bootstrap",
allowClear: true,
@ -792,16 +841,18 @@
$.modal.alertWarning("请先选择客户");
return;
}
if ($("#taxRate_add").val() == null || $("#taxRate_add").val() == '') {
$.modal.alertWarning("请输入国内的税率");
return;
if($('#usdTax').length!=0){
if ($("#usdTax_add").val() == null || $("#usdTax_add").val() == '') {
$.modal.alertWarning("请输入美元的汇率");
return;
}
}
if ($("#usdTax_add").val() == null || $("#usdTax_add").val() == '') {
$.modal.alertWarning("请输入美元的汇率");
return;
if($('#rmbTax').length!=0){
if ($("#taxRate_add").val() == null || $("#taxRate_add").val() == '') {
$.modal.alertWarning("请输入国内的税率");
return;
}
}
var url = ctx + "erp/material/select";
var options = {
title: '选择料号',

6
ruoyi-admin/src/main/resources/templates/system/salesOrder/detail.html

@ -94,6 +94,12 @@
<input name="enterpriseName" class="form-control" type="text" th:field="*{enterpriseName}" required disabled>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">客户料号:</label>
<div class="col-sm-8">
<input id="enterpriseMaterialNo" name="enterpriseMaterialNo" class="form-control" th:field="*{enterpriseMaterialNo}" type="text" disabled>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">事业部:</label>
<div class="col-sm-8">

Loading…
Cancel
Save