44323
2023-10-16 a2c114fb74485d4a9811626587ec1f1ad6acd1e4
门票管理
2个文件已修改
22 ■■■■■ 已修改文件
cloud-server-management/src/main/webapp/WEB-INF/view/system/ticket/ticket_add.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods_info.js 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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>
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);