| | |
| | | } else { |
| | | layer.msg('获取角色失败', { |
| | | icon: 2, |
| | | time: 500 |
| | | time: 2000 |
| | | }); |
| | | } |
| | | }, 'GET'); |
| | |
| | | $("#" + username_id).val("") |
| | | layer.msg("该登录帐号已经使用", { |
| | | icon: 2, |
| | | time: 500 |
| | | time: 2000 |
| | | }) |
| | | } |
| | | } else { |
| | | layer.msg(data.msg, { |
| | | icon: 2, |
| | | time: 500 |
| | | time: 2000 |
| | | }); |
| | | } |
| | | }, 'post'); |
| | |
| | | } |
| | | // data.field.hospitalId = ""+data.field.hospitalId; |
| | | data.field.roleId = null; |
| | | debugger |
| | | console.log(data.field, "data.fielddata.fielddata.fielddata.field") |
| | | admin.req('api-user/sysdoctor', JSON.stringify(data.field), function (data) { |
| | | layer.closeAll('loading'); |
| | | if (data.code == 0) { |
| | |
| | | } else { |
| | | layer.msg(data.msg, { |
| | | icon: 2, |
| | | time: 500 |
| | | time: 2000 |
| | | }); |
| | | } |
| | | }, 'get'); |
| | |
| | | //职称添加数据 |
| | | var getZhiCheng = function () { |
| | | admin.req('api-user/sysdictionaries/findAll', JSON.stringify({ |
| | | dictionariesClassId: "1248150699682988034" |
| | | dictionariesClassId: "DOCTOR_RANK" |
| | | }), function (data) { |
| | | layer.closeAll('loading'); |
| | | if (0 === data.code) { |
| | |
| | | } else { |
| | | layer.msg(data.msg, { |
| | | icon: 2, |
| | | time: 500 |
| | | time: 2000 |
| | | }); |
| | | } |
| | | }, 'Post'); |
| | |
| | | } else { |
| | | layer.msg(data.msg, { |
| | | icon: 2, |
| | | time: 500 |
| | | time: 2000 |
| | | }); |
| | | } |
| | | }, 'get'); |
| | |
| | | var doctor = admin.getTempData('t_doctor'); |
| | | $('#app-form-add').attr('method', 'POST'); |
| | | if (doctor) { |
| | | console.log("doctordoctordoctor",doctor); |
| | | //重新装载科室 |
| | | getdepartment(doctor.hospitalId); |
| | | //获取职称的 |