44323
2023-10-16 a2c114fb74485d4a9811626587ec1f1ad6acd1e4
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);