diff --git a/ruoyi-admin/src/main/resources/templates/manage/order/add.html b/ruoyi-admin/src/main/resources/templates/manage/order/add.html
index 7d8d943c..eba56013 100644
--- a/ruoyi-admin/src/main/resources/templates/manage/order/add.html
+++ b/ruoyi-admin/src/main/resources/templates/manage/order/add.html
@@ -184,6 +184,8 @@
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-order-add').serialize());
+ }else{
+ $.modal.alertWarning("请完善表单必填项");
}
}
@@ -218,7 +220,7 @@
align: 'center',
title: 'BOM编码',
formatter: function (value, row, index) {
- var html = $.common.sprintf("", index, value);
+ var html = $.common.sprintf("", index, value);
return html;
}
},
@@ -227,7 +229,7 @@
align: 'center',
title: '产品名称',
formatter: function (value, row, index) {
- var html = $.common.sprintf("", index, value);
+ var html = $.common.sprintf("", index, value);
return html;
}
},
@@ -236,7 +238,7 @@
align: 'center',
title: '数量',
formatter: function (value, row, index) {
- var html = $.common.sprintf("", index, value);
+ var html = $.common.sprintf("", index, value);
return html;
}
},
@@ -245,7 +247,7 @@
align: 'center',
title: '单价',
formatter: function (value, row, index) {
- var html = $.common.sprintf("", index, value);
+ var html = $.common.sprintf("", index, value);
return html;
}
},
@@ -255,7 +257,7 @@
title: '折扣',
width: 90,
formatter: function (value, row, index) {
- var html = $.common.sprintf("", index, value);
+ var html = $.common.sprintf("", index, value);
return html;
}
},
@@ -264,7 +266,7 @@
align: 'center',
title: '总价',
formatter: function (value, row, index) {
- var html = $.common.sprintf("", index, value);
+ var html = $.common.sprintf("", index, value);
return html;
}
},
diff --git a/ruoyi-admin/src/main/resources/templates/manage/order/edit.html b/ruoyi-admin/src/main/resources/templates/manage/order/edit.html
index 5f82f359..3f3558d3 100644
--- a/ruoyi-admin/src/main/resources/templates/manage/order/edit.html
+++ b/ruoyi-admin/src/main/resources/templates/manage/order/edit.html
@@ -192,6 +192,8 @@
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-order-edit').serialize());
+ }else{
+ $.modal.alertWarning("请完善表单必填项");
}
}
@@ -272,7 +274,7 @@
return;
}
$('[name="orderPartnerCode"]').val(rows[0].partnerCode);
- $('[name="orderPartnerName"]').val(rows[0].partnerCode);
+ $('[name="orderPartnerName"]').val(rows[0].partnerName);
$.modal.close(index);
@@ -408,7 +410,7 @@
align: 'center',
title: '数量',
formatter: function (value, row, index) {
- var html = $.common.sprintf("", index, value);
+ var html = $.common.sprintf("", index, value);
return html;
}
},
@@ -417,7 +419,7 @@
align: 'center',
title: '单价',
formatter: function (value, row, index) {
- var html = $.common.sprintf("", index, value);
+ var html = $.common.sprintf("", index, value);
return html;
}
},
@@ -427,7 +429,7 @@
title: '折扣',
width:90,
formatter: function (value, row, index) {
- var html = $.common.sprintf("", index, value);
+ var html = $.common.sprintf("", index, value);
return html;
}
},
@@ -437,7 +439,7 @@
align: 'center',
title: '总价',
formatter: function (value, row, index) {
- var html = $.common.sprintf("", index, value);
+ var html = $.common.sprintf("", index, value);
return html;
}
},