其他分享
首页 > 其他分享> > F7操作前校验

F7操作前校验

作者:互联网

   checkBeforeF7click: function () {
        var self = this;
        var fields = ["entrys.jobLevel", "entrys.jobGrade"];
        for (var i = 0; i < fields.length; i++) {
            var field = fields[i];
            self.getField(field).shrPromptBox("option", {
                verifyBeforeOpenCallback: function (event) {
                    var hrOrgUnitF7Value = self.getField("hrOrgUnit").shrPromptBox("getValue");
                    if (!hrOrgUnitF7Value || hrOrgUnitF7Value.id == "") {
                        shr.showError({
                            message: jsBizMultLan.emp_shrAffairBillBaseHrManEdit_i18n_8,
                            hideAfter: 6
                        });
                        return false;
                    }
                }
            });
        }
    },

 

标签:entrys,F7,fields,hrOrgUnitF7Value,校验,field,var,self,操作前
来源: https://www.cnblogs.com/zouhuaxin/p/15554627.html