|
@@ -242,7 +242,7 @@ let vm = new Vue({
|
|
|
});
|
|
|
setTimeout(exportMsg, 100);
|
|
|
},
|
|
|
- sendSelectProduct: function (event) {
|
|
|
+ sendSelectProductByAdd: function (event) {
|
|
|
let mallGoodsProductSns = getSelectedRows();
|
|
|
if (mallGoodsProductSns == null){
|
|
|
return;
|
|
@@ -251,7 +251,7 @@ let vm = new Vue({
|
|
|
confirm('确定要发送选中的产品备案信息?', function () {
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
- url: "../goodsproduct/sendSelectProduct",
|
|
|
+ url: "../goodsproduct/sendSelectProductByAdd",
|
|
|
contentType: "application/json",
|
|
|
data: JSON.stringify(mallGoodsProductSns),
|
|
|
success: function (r) {
|
|
@@ -266,12 +266,56 @@ let vm = new Vue({
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
- sendAllProduct: function (event) {
|
|
|
+ sendAllProductByAdd: function (event) {
|
|
|
|
|
|
confirm('确定要发送所有的产品备案信息?', function () {
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
- url: "../goodsproduct/sendAllProduct",
|
|
|
+ url: "../goodsproduct/sendAllProductByAdd",
|
|
|
+ contentType: "application/json",
|
|
|
+ success: function (r) {
|
|
|
+ if (r.code == 0) {
|
|
|
+ alert(r.msg, function (index) {
|
|
|
+ $("#jqGrid").trigger("reloadGrid");
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ alert(r.msg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ sendSelectProductByUpdate: function (event) {
|
|
|
+ let mallGoodsProductSns = getSelectedRows();
|
|
|
+ if (mallGoodsProductSns == null){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ confirm('确定要发送选中的产品备案信息?', function () {
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: "../goodsproduct/sendSelectProductByUpdate",
|
|
|
+ contentType: "application/json",
|
|
|
+ data: JSON.stringify(mallGoodsProductSns),
|
|
|
+ success: function (r) {
|
|
|
+ if (r.code == 0) {
|
|
|
+ alert(r.msg, function (index) {
|
|
|
+ $("#jqGrid").trigger("reloadGrid");
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ alert(r.msg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+ sendAllProductByUpdate: function (event) {
|
|
|
+
|
|
|
+ confirm('确定要发送所有的产品备案信息?', function () {
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: "../goodsproduct/sendAllProductByUpdate",
|
|
|
contentType: "application/json",
|
|
|
success: function (r) {
|
|
|
if (r.code == 0) {
|