44323
2023-11-09 d469f945b1cc873d6b9ef8104cd184ae466cf2d8
cloud-server-management/src/main/webapp/static/modular/system/coursePackage/coursePackage_info.js
@@ -48,7 +48,9 @@
 * 提交添加用户
 */
CoursePackageInfo.addSubmit = function () {
    let objectType= $('#objectType').val();
    console.log("看看角色类型")
    console.log(objectType)
    let province = $('#provinceCode option:checked').text();
    let provinceCode = $('#provinceCode').val();
    let city = $('#cityCode option:checked').text();
@@ -119,14 +121,18 @@
            couponIds: typeof counpons == "undefined" ? 0 : counpons
        });
    });
    if(null == provinceCode || '' == provinceCode){
        Feng.error("所在省不能为空");
        return
    if (objectType==1){
        if(null == provinceCode || '' == provinceCode){
            Feng.error("所在省不能为空");
            return
        }
        if(null == cityCode || '' == cityCode){
            Feng.error("所在市不能为空");
            return
        }
    }
    if(null == cityCode || '' == cityCode){
        Feng.error("所在市不能为空");
        return
    }
    if(null == storeId || '' == storeId){
        Feng.error("所属门店不能为空");
        return
@@ -148,7 +154,7 @@
        return
    }
    if (type == 1 ) {
        var checkboxes1 = document.getElementsByName('payType');
        var isChecked1 = false;
@@ -160,6 +166,8 @@
            }
        }
    console.log("看看选中")
    console.log(isChecked1)
        if (isChecked1) {
            console.log("At least one checkbox is selected.");
        } else {
@@ -228,7 +236,7 @@
        }
    if (type == 1 ) {
        var elements1 = document.getElementsByClassName('classNumber');
        for (var i = 0; i < elements1.length; i++) {
@@ -419,14 +427,18 @@
        })
    });
    if(null == provinceCode || '' == provinceCode){
        Feng.error("所在省不能为空");
        return
    if ($('#objectType').val() == 1) {
        if (null == provinceCode || '' == provinceCode) {
            Feng.error("所在省不能为空");
            return
        }
        if (null == cityCode || '' == cityCode) {
            Feng.error("所在市不能为空");
            return
        }
    }
    if(null == cityCode || '' == cityCode){
        Feng.error("所在市不能为空");
        return
    }
    if(null == storeId || '' == storeId){
        Feng.error("所属门店不能为空");
        return