区分 仓库和礼品卡类型

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 () {
var infoObj = $("#depotFM").serializeObject();
infoObj.type = 0;
if (checkDepotName()) {
return;
}
@@ -320,7 +322,7 @@
type: "post",
dataType: "json",
data: ({
info: JSON.stringify($("#depotFM").serializeObject())
info: JSON.stringify(infoObj)
}),
success: function(res) {
if(res && res.code === 200) {

View File

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