liujie
2023-10-26 e030255c23c7ba3e2cbad1036a810d6d72fa864f
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