| | |
| | | </button> |
| | | <ul class="dropdown-menu" style="height: 320px; overflow: auto;"> |
| | | <li v-for='items in shelfRack' style="font-size: 20px"> |
| | | <a href="#" onclick="$('#shelfRankInput').val($(this).text())">{{items[0]}}</a> |
| | | <a href="#" onclick="$('#shelfRankInput').val($(this).text())">{{items['0_number']}}</a> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | |
| | | </button> |
| | | <ul class="dropdown-menu" style="height: 280px; overflow: auto;background-color:bule"> |
| | | <li v-for='color in colors' style="font-size: 20px;background-color:bule"><a href="#" |
| | | onclick="$('#colors').val($(this).text())">{{color[0]}}</a></li> |
| | | onclick="$('#colors').val($(this).text())">{{color['0_glass_id']}}</a></li> |
| | | </ul> |
| | | </div> |
| | | |
| | |
| | | </body> |
| | | |
| | | <script type="text/javascript" src="../static/bootstrap/3.3.7/js/bootstrap.min.js"></script> |
| | | <script src="../js/vue.min.js"></script> |
| | | <script src="../js/axios.min.js"></script> |
| | | <script src="../js/mixins.js"></script> |
| | | <script src="../js/vue.min.js"></script> |
| | | |
| | | <script> |
| | | Vue.prototype.$http= axios |
| | | let app = new Vue({ |
| | | el:'#app', |
| | | mixins:[mixin], |
| | | data:{ |
| | | shuzu:[], |
| | | shuzu1:[], |
| | | shelfRack:<%= DBHelper.getDBHelper("mes").query(false,"SELECT number from storage_rack where state='使用中' and falg='启用';") %>, |
| | | colors:<%= DBHelper.getDBHelper("mes").query(false,"SELECT glass_id from glass_number_color ") %>, |
| | | shelfRack:[{}], |
| | | colors:[{}], |
| | | updateGlassId:"", |
| | | pieces:"", |
| | | clearGlassMsg:{ |
| | |
| | | this.shuzu1=""; |
| | | let sql="{call AXJ_qiegeguanli_shangpianwei_chaxun()}"; |
| | | let flag=2; |
| | | loadAjxs('仓储任务上面查询',sql,flag,"shuzu"); |
| | | this.loadAjxss('仓储任务上面查询',sql,flag,"shuzu"); |
| | | let sql1="{call AXJ_qiegeguanli_shangpianwei_chaxun1()}"; |
| | | |
| | | loadAjxs('仓储任务上面查询',sql1,flag,"shuzu1"); |
| | | this.loadAjxss('仓储任务上面查询',sql1,flag,"shuzu1"); |
| | | sql="{call AXJ_liaojiaguanli_colors(?)}"; |
| | | this.loadAjxss('上片位颜色查询',sql,flag,"colors"); |
| | | sql="{call AXJ_liaojiaguanli_shelfrack_shangpianwei()}"; |
| | | this.loadAjxss('上片位架子查询',sql,flag,"shelfRack"); |
| | | } |
| | | |
| | | }) |