| | |
| | | "reqDateTime": new Date(), |
| | | "tokenAuth": "", |
| | | "data": { |
| | | "companyId": "" |
| | | "companyId": "", |
| | | "deptId":"" |
| | | } |
| | | }; |
| | | |
| | |
| | | mui('.mui-off-canvas-wrap').offCanvas().toggle(); |
| | | var id = this.getAttribute("id"); |
| | | var dept = listDept[id]; |
| | | $("#deptName").html("所在库区:" + dept.name); |
| | | localStorage.setItem('selectDeptId', JSON.stringify(dept.id)); |
| | | $("#deptName").html("所在库区:" + dept.deptName); |
| | | localStorage.setItem('selectDeptId', JSON.stringify(dept.deptId)); |
| | | }); |
| | | |
| | | //渲染分库列表 |
| | |
| | | var html = ''; |
| | | $.each(listDept, function(index, item) { |
| | | html += '<li><a id="' + index + '" href="" class="link">'; |
| | | html += '<span class="t">' + item.name + '</span>'; |
| | | html += '<span class="t">' + item.deptName + '</span>'; |
| | | html += '<span class="mui-icon mui-icon-arrowright"></span>'; |
| | | html += '</a></li>'; |
| | | }) |
| | |
| | | |
| | | //获取库区列表 |
| | | function getListDept() { |
| | | console.log(url) |
| | | console.log(JSON.stringify(data.data)) |
| | | //请求 |
| | | mui.ajax(url, { |
| | | type: "POST", |