From 232d3efb20f87f9c60faeda7bae4bc96e5687bd3 Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期三, 11 十月 2023 19:19:47 +0800 Subject: [PATCH] 10.12 --- cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods_info.js | 57 ++++++++++++++++++++++----------------------------------- 1 files changed, 22 insertions(+), 35 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 81f4e90..ee82233 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 @@ -766,7 +766,6 @@ Feng.info("请填写原价") return; } - let type = document.querySelector('input[name="redemptionMethod"]:checked').value; if(type==''){ Feng.info("请选择兑换方式") return; @@ -837,42 +836,30 @@ return; } - let company = document.querySelector('input[name="company"]:checked').value; - var cityIds = []; var cts = ""; - if (company === '2'){ - var myselect=document.getElementById('cityData'); - var seCity = myselect.options[myselect.selectedIndex].value; - if (seCity === null || seCity === undefined || seCity === ''){ - return Feng.error('请选中一个省市'); - } - cityIds.push(seCity); - if (num > 0){ - for (let i = 1; i <= num; i++) { - var insSelect=document.getElementById('cityData'+i); - var inData = insSelect.options[insSelect.selectedIndex].value; - if (inData !== undefined || inData !== null || inData !== ''){ - cityIds.push(inData); - } - } - cts = cityIds.join(','); - }else { - cts = cityIds - } - } + // var myselect=document.getElementById('cityData'); + // var seCity = myselect.options[myselect.selectedIndex].value; + // if (seCity === null || seCity === undefined || seCity === ''){ + // return Feng.error('请选中一个省市'); + // } + // cityIds.push(seCity); + // if (num > 0){ + // for (let i = 1; i <= num; i++) { + // var insSelect=document.getElementById('cityData'+i); + // var inData = insSelect.options[insSelect.selectedIndex].value; + // if (inData !== undefined || inData !== null || inData !== ''){ + // cityIds.push(inData); + // } + // } + // cts = cityIds.join(','); + // }else { + // cts = cityIds + // } 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) @@ -912,7 +899,7 @@ ajax.set("typeAll",typeAll); ajax.set("name",name); ajax.set("price",price); - ajax.set("type",type); + ajax.set("type",3); ajax.set("integral",integral); ajax.set("cash",cash); ajax.set("cover",cover1); @@ -921,9 +908,9 @@ ajax.set("quantityIssued",quantityIssued); ajax.set("pickUpQuantity",pickUpQuantity); ajax.set("startTime",startTime); - ajax.set("useScope",company); + ajax.set("useScope",1); ajax.set("cityIds",cts); - ajax.set("storeIds",stores); + ajax.set("storeIds",""); ajax.set("text",text); ajax.set("sort",sort); ajax.set("cardType",document.querySelector('input[name="type"]:checked').value); -- Gitblit v1.7.1