| | |
| | | <td> |
| | | <div id="combLToP" onclick="nav(this.id)" class="nav-font-size">立库移库组托</div> |
| | | </td> |
| | | <!-- <td>--> |
| | | <!-- <div id="locNormalOut" onclick="nav(this.id)" class="nav-font-size">平仓成品出库</div>--> |
| | | <!-- </td>--> |
| | | <td> |
| | | <div id="materialReceiveOut" onclick="nav(this.id)" class="nav-font-size">生成领料出库</div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <div id="materialWwOut" onclick="nav(this.id)" class="nav-font-size">委外加工出库</div> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | |
| | |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: 'GET', |
| | | success: function (res) { |
| | | if (res.code === 200){ |
| | | if (res && res.code === 200){ |
| | | console.log(res) |
| | | if (res.data.code === 'a') { |
| | | if (res.data && res.data.code === 'a') { |
| | | $("#combAgv").parent().hide(); |
| | | $("#combProAgv").parent().hide(); |
| | | $("#comb").parent().hide(); |
| | | $("#combPro").parent().hide(); |
| | | $("#locNormalIn").parent().hide(); |
| | | $("#locNormalOut").parent().hide(); |
| | | } else if (res.data.code === 'b') { |
| | | } else if (res.data && res.data.code === 'b') { |
| | | $("#locNormalIn1").parent().hide(); |
| | | $("#locNormalOut1").parent().hide(); |
| | | // $("#locNormalIn").parent().hide(); |
| | | // $("#locNormalOut").parent().hide(); |
| | | } else if (res.data.code === 'c') { |
| | | } else if (res.data && res.data.code === 'c') { |
| | | $("#combAgv").parent().hide(); |
| | | $("#combProAgv").parent().hide(); |
| | | $("#comb").parent().hide(); |
| | |
| | | $("#locNormalIn1").parent().hide(); |
| | | $("#locNormalOut1").parent().hide(); |
| | | } |
| | | } else if (res.code === 403){ |
| | | } else if (res && res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | }else { |
| | | } else if (res && res.msg) { |
| | | layer.msg(res.msg, {icon: 2}); |
| | | } else { |
| | | layer.msg("请求失败,请稍后重试", {icon: 2}); |
| | | } |
| | | }, |
| | | error: function(xhr, status, error) { |
| | | console.error("请求失败:", status, error); |
| | | layer.msg("请求失败,请稍后重试", {icon: 2}); |
| | | } |
| | | }) |
| | | }); |