区分 仓库和礼品卡类型

This commit is contained in:
季圣华
2018-12-22 21:32:00 +08:00
parent 9750415a38
commit 71fbc8a573
3 changed files with 7 additions and 2 deletions

View File

@@ -312,6 +312,8 @@
//保存信息 //保存信息
$("#saveDepot").off("click").on("click", function () { $("#saveDepot").off("click").on("click", function () {
var infoObj = $("#depotFM").serializeObject();
infoObj.type = 0;
if (checkDepotName()) { if (checkDepotName()) {
return; return;
} }
@@ -320,7 +322,7 @@
type: "post", type: "post",
dataType: "json", dataType: "json",
data: ({ data: ({
info: JSON.stringify($("#depotFM").serializeObject()) info: JSON.stringify(infoObj)
}), }),
success: function(res) { success: function(res) {
if(res && res.code === 200) { if(res && res.code === 200) {

View File

@@ -306,6 +306,8 @@
//保存信息 //保存信息
$("#saveDepot").off("click").on("click", function () { $("#saveDepot").off("click").on("click", function () {
var infoObj = $("#depotFM").serializeObject();
infoObj.type = 1;
if (checkDepotName()) { if (checkDepotName()) {
return; return;
} }
@@ -314,7 +316,7 @@
type: "post", type: "post",
dataType: "json", dataType: "json",
data: ({ data: ({
info: JSON.stringify($("#depotFM").serializeObject()) info: JSON.stringify(infoObj)
}), }),
success: function(res) { success: function(res) {
if(res && res.code === 200) { if(res && res.code === 200) {

View File

@@ -14,6 +14,7 @@
<if test="remark != null"> <if test="remark != null">
and remark like '%${remark}%' and remark like '%${remark}%'
</if> </if>
order by sort asc
<if test="offset != null and rows != null"> <if test="offset != null and rows != null">
limit #{offset},#{rows} limit #{offset},#{rows}
</if> </if>