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/WEB-INF/view/system/ticket/ticket_add.html | 6 +++---
cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods_info.js | 16 ++++++++++++----
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/cloud-server-management/src/main/webapp/WEB-INF/view/system/ticket/ticket_add.html b/cloud-server-management/src/main/webapp/WEB-INF/view/system/ticket/ticket_add.html
index 289f424..e6ac85a 100644
--- a/cloud-server-management/src/main/webapp/WEB-INF/view/system/ticket/ticket_add.html
+++ b/cloud-server-management/src/main/webapp/WEB-INF/view/system/ticket/ticket_add.html
@@ -131,17 +131,17 @@
<label class="col-sm-3">*兑换地点: </label>
<div class="col-sm-2" id="belongsNationwide" >
<input class="col-sm-1" onclick="scopeOfApplication1()" name="company" type="radio"
- value="0" checked style="margin-top: 10px"/>
+ value="1" checked style="margin-top: 10px"/>
<label class="col-sm-1" style="width: 38%;margin-top: 7px">全国通用</label>
</div>
<div class="col-sm-2" id="belongsCity" >
<input class="col-sm-1" name="company" onclick="scopeOfApplication2()" type="radio"
- value="1" style="margin-top: 10px"/>
+ value="2" style="margin-top: 10px"/>
<label class="col-sm-1" style="width: 38%;margin-top: 7px">指定城市</label>
</div>
<div class="col-sm-2" id="belongsStore" >
<input class="col-sm-1" name="company" onclick="scopeOfApplication3()" type="radio"
- value="1" style="margin-left: 4%;margin-top: 10px;width: 13px;height: 13px"/>
+ value="3" style="margin-left: 4%;margin-top: 10px;width: 13px;height: 13px"/>
<label class="col-sm-1" style="width: 38%;margin-top: 6px;">指定门店</label>
</div>
</div>
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