区分 仓库和礼品卡类型
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user