From 1e790795f4e2c365f604ecc0fc1b290e3ff3c35f Mon Sep 17 00:00:00 2001
From: liujie <liujie>
Date: 星期五, 20 十月 2023 09:34:22 +0800
Subject: [PATCH] 更新bug

---
 cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods_info.js |   25 +++++++++++++++++++------
 1 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods_info.js
index 0243903..3fcfaf9 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods_info.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods_info.js
@@ -127,9 +127,10 @@
     this.layerIndex = index;
 }
 TGoodsInfoDlg.selecUserOpt = function (arrays){
-    console.log(arrays)
+
     //获取所有的值
     var subArr= this.storeIds;
+    console.log(subArr)
     $(".timeClass").each(function () {
         subArr.push($(this).find("input[name*='id']").val());
     });
@@ -147,11 +148,12 @@
             str += '<tr class="timeClass">' +
                 '<td><input type="hidden" id="id" name="id" value="'+arrays[i].id+'"><input type="hidden" id="provinceCity" name="provinceCity" value="'+arrays[i].provinceCity+'">' + arrays[i].provinceCity + '</td>' +
                 '<td><input type="hidden" id="accountName" name="accountName" value="'+arrays[i].accountName+'">' + arrays[i].accountName + '</td>' +
-                '<td><input type="hidden" id="name" name="name" value="'+arrays[i].name+'">' + arrays[i].name + '</td><td><button onclick="deleteSub(this)">移除</button></td></tr>';
+                '<td><input type="hidden" id="name" name="name" value="'+arrays[i].name+'">' + arrays[i].name +
+                '<td><input type="hidden" id="ids" name="ids" value="'+arrays[i].ids+'">' + arrays[i].ids +
+                '</td><td><button onclick="deleteSub(this)">移除</button></td></tr>';
         }
     }
     $("#coun").append(str);
-    console.log('storeIds',this.storeIds)
 }
 function deleteSub(e) {
     console.log(e);
@@ -243,6 +245,7 @@
  * 提交添加
  */
 TGoodsInfoDlg.addSubmit = function() {
+
 
     this.clearData();
     this.collectData();
@@ -370,9 +373,12 @@
         //提交信息
         var ajax = new $ax(Feng.ctxPath + "/tGoods/add", function(data){
             if(data=="5001"){
-                Feng.error("改账号已经存在");
-            }else
-            if(data.code == 200){
+                Feng.info("改账号已经存在");
+            }else if(data=="5003"){
+                console.log("请选择相同运营商门店")
+                Feng.info("请选择相同运营商门店");
+
+            }else if(data.code == 200){
                 if(language==1){
                     Feng.success("添加成功!");
                 }else if(language==2){
@@ -545,6 +551,10 @@
         var ajax = new $ax(Feng.ctxPath + "/tGoods/add", function(data){
             if(data=="5001"){
                 Feng.error("改账号已经存在");
+            }else if(data=="5003"){
+                console.log("请选择相同运营商门店")
+                Feng.info("请选择相同运营商门店");
+
             }else
             if(data.code == 200){
                 if(language==1){
@@ -759,6 +769,9 @@
         var ajax = new $ax(Feng.ctxPath + "/tGoods/add", function(data){
             if(data=="5001"){
                 Feng.error("改账号已经存在");
+            }else if(data=="5003"){
+                Feng.info("请选择相同运营商门店");
+
             }else
             if(data.code == 200){
                 if(language==1){

--
Gitblit v1.7.1