From a2c114fb74485d4a9811626587ec1f1ad6acd1e4 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期一, 16 十月 2023 11:28:18 +0800
Subject: [PATCH] 门票管理

---
 cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods_info.js |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 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 fedba1f..1878d56 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
@@ -588,7 +588,7 @@
 
 }
 TGoodsInfoDlg.addSubmit1 = function() {
-
+    let company = document.querySelector('input[name="company"]:checked').value;
     this.clearData();
     this.collectData();
     if(!this.validate()){
@@ -700,7 +700,15 @@
         const commaSeparatedString = this.goodsPicArray.join(',');
 
 
-
+    var stores = "";
+    if (company === '3'){
+        console.log('3---this.storeIds',this.storeIds);
+        if (TGoodsInfoDlg.storeIds.length === 0 ){
+            return Feng.error('请至少选择一个门店');
+        }
+        stores = this.storeIds.join(',');
+        console.log('stores--===--',stores)
+    }
         let text  = TGoodsInfoDlg.editor.getContent();
         console.log(text)
         if(text==""){
@@ -748,9 +756,9 @@
         ajax.set("quantityIssued",quantityIssued);
         ajax.set("pickUpQuantity",pickUpQuantity);
         ajax.set("startTime",startTime);
-        ajax.set("useScope",1);
+        ajax.set("useScope",company);
         ajax.set("cityIds",cts);
-        ajax.set("storeIds","");
+        ajax.set("storeIds",stores);
         ajax.set("text",text);
         ajax.set("sort",sort);
         ajax.set("cardType",document.querySelector('input[name="type"]:checked').value);

--
Gitblit v1.7.1