| | |
| | | if ((value == "" || value == "null" || value == null || value=="pb_xinzen")) { |
| | | // 在编辑状态下必录 |
| | | if ((hasSta && isHasValue(col[1], "" + statu + "", ";")) || !hasSta) { |
| | | try{ |
| | | layer.msg(this.panInfo[col[0]].title +'--不能为空!'); |
| | | }catch (e) { |
| | | $.messager.alert(this.panInfo[col[0]].title +'--不能为空!'); |
| | | if (this.panInfo[col[0]] == null) {//没有检查到此字段的存在。 |
| | | layer.msg('页面存在必录字段没有录入,必录的字段是:' + col[0]); |
| | | return false; |
| | | } |
| | | try { |
| | | layer.msg(this.panInfo[col[0]].title + '--不能为空!'); |
| | | } catch (e) { |
| | | $.messager.alert(this.panInfo[col[0]].title + '--不能为空!'); |
| | | } |
| | | // try{ |
| | | // $.messager.show({ |
| | |
| | | var sel_value = value.toLowerCase().Trim(); |
| | | var notHas = true; |
| | | if (typeof sel_options != "undefined" && sel_options != null) { |
| | | for ( var i = 0; i < sel_options.length; i++) { |
| | | for (var i = 0; i < sel_options.length; i++) { |
| | | if (sel_options[i].value.toLowerCase() == sel_value |
| | | || sel_options[i].text.toLowerCase() == sel_value) { |
| | | sel_options[i].selected = true; |
| | | notHas = false; |
| | | if(panMain[panIndex].panInfo[id].controltype==46){ |
| | | if (panMain[panIndex].panInfo[id] != null && panMain[panIndex].panInfo[id].controltype == 46) { |
| | | setDoc(id, ".value='" + value + "'"); |
| | | setDoc(id, ".style.backgroundColor ='" + value + "'"); |
| | | } |