| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link href="../css/init.css" rel="stylesheet" />
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link rel="stylesheet" href="../css/WorkOrder/jquery.editable-select.css" />
- <!-- <link rel="stylesheet" href="../js/comboSelect/combo.select.css" /> -->
- <link rel="stylesheet" href="../css/init.css" />
- <!-- <link rel="stylesheet" href="../css/WorkOrder/NewAddWorkOrder.css" /> -->
- <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
- <link href="../css/WorkOrder/Search.css" rel="stylesheet">
- <link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
- <!-- <link rel="stylesheet" href="../js/comboSelect/combo.select.css" /> -->
- <link href="../css/init.css" rel="stylesheet" />
- <title></title>
- <style>
- ul li {
- float: initial;
- list-style: none;
- }
-
- .repeat-btn {
- width: 100%;
- margin: 30px 0 0 0;
- text-align: center;
- }
-
- .ckxq .gdxq ul li {
- width: 100%;
- overflow: hidden;
- }
-
- .ckxq .gdxq ul li .left {
- width: 40%;
- float: left;
- }
-
- .ckxq .gdxq ul li .right {
- width: 60%;
- float: left;
- }
-
- .selDpart1 {
- display: none;
- position: absolute;
- left: 205px;
- top: 145px;
- z-index: 11111;
- width: 280px;
- line-height: 30px;
- background: #FFFFFF;
- }
-
- #sponsor {
- width: 280px;
- border: 1px solid #00a1cb;
- margin: 0;
- padding: 0;
- list-style: none;
- max-height: 212px;
- overflow-x: hidden;
- overflow-y: scroll;
- }
-
- #sponsor li {
- margin: 0;
- padding-left: 10px;
- width: 280px;
- height: 30px;
- line-height: 30px;
- list-style: none;
- }
-
- #sponsor li:hover {
- background: #00a1cb;
- }
-
- .selDpart2 {
- display: none;
- position: absolute;
- left: 205px;
- top: 306px;
- z-index: 11111;
- width: 280px;
- line-height: 30px;
- background: #FFFFFF;
- }
-
- #sponsor2 {
- width: 280px;
- border: 1px solid #00a1cb;
- margin: 0;
- padding: 0;
- list-style: none;
- max-height: 212px;
- overflow-x: hidden;
- overflow-y: scroll;
- }
-
- #sponsor2 li {
- margin: 0;
- padding-left: 10px;
- width: 280px;
- height: 30px;
- line-height: 30px;
- list-style: none;
- }
-
- #sponsor2 li:hover {
- background: #00a1cb;
- }
-
- .thumbnail {
- margin: 0 10px 10px;
- padding: 4px;
- float: left;
- width: 30%;
- height: 200px;
- background-color: #fff;
- border: 1px solid #ddd;
- border-radius: 4px;
- position: relative;
- cursor: pointer;
- }
-
- .thumbnail img {
- width: 100%;
- height: 100%;
- }
-
- .thumbnail .info {
- position: absolute;
- left: 4px;
- bottom: 4px;
- right: 4px;
- height: 35px;
- line-height: 35px;
- text-indent: 5px;
- background: rgba(0, 0, 0, 0.6);
- color: white;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- font-size: 12px;
- z-index: 10;
- display: none;
- }
-
- .thumbnail:hover .info {
- display: block;
- }
-
- b.text_require {
- color: red;
- }
-
- #djtime {
- display: none;
- }
- </style>
- </head>
- <body class="gray-bg">
- <div class="ckxq">
- <div class="gdxq">
- <div class="container wrapper-content animated fadeInRight">
- <div class="form-horizontal">
- <div class="form-group" id="djtime">
- <label for="Szzydjsj" class="col-sm-3 control-label text-right">登记时间</label>
- <div class="col-sm-9">
- <input id="Szzydjsj" type="datetime" class="laydate-icon" name="timeBegin" required value=""></input>
- </div>
- </div>
- <div class="form-group">
- <label for="Szzyzzdw" class="col-sm-3 control-label text-right"><b
- class="text_require">*</b>转诊单位:</label>
- <div class="col-sm-9 ">
- <input list="Szzyzzdw" type="text" class="Szzyzzdw form-control" />
- </div>
- <datalist id="Szzyzzdw">
- </datalist>
- </div>
- <div class="form-group">
- <label for="Szzyzzys" class="col-sm-3 control-label text-right">转诊负责人</label>
- <div class="col-sm-9">
- <input id="Szzyzzys" type="text" value=""></input>
- </div>
- </div>
- <!-- <li>
- <div class="left">联系方式:</div>
- <div class="right"><input id="Yslxfs" type="text" value="" ></input></div>
-
- </li> -->
- <div class="form-group">
- <label for="Hzname" class="col-sm-3 control-label text-right">患者姓名</label>
- <div class="col-sm-9">
- <input id="Hzname" type="text" class="dis" onkeyup="darptSearch()"></input>
- </div>
- <div class="selDpart1">
- <ul id="sponsor">
- </ul>
- </div>
- </div>
- <div class="form-group">
- <label for="HzGender" class="col-sm-3 control-label text-right">性别</label>
- <div class="col-sm-9">
- <input id="HzGender" type="text" class="dis" value=""></input>
- </div>
- </div>
- <div class="form-group">
- <label for="Hzage" class="col-sm-3 control-label text-right">年龄</label>
- <div class="col-sm-9">
- <input id="Hzage" type="text" class="dis" value=""></input>
- </div>
- </div>
- <div class="form-group">
- <label for="Hzzd" class="col-sm-3 control-label text-right">诊断</label>
- <div class="col-sm-9">
- <input id="Hzzd" type="text" class="dis" value=""></input>
- </div>
- </div>
- <div class="form-group">
- <label for="Hzzyks" class="col-sm-3 control-label text-right"><b
- class="text_require">*</b>住院科室:</label>
- <div class="col-sm-9 ">
- <input list="Hzzyks" type="text" class="Hzzyks form-control" />
- </div>
- <datalist id="Hzzyks">
- </datalist>
- </div>
- <div class="form-group">
- <label for="Hzzyh" class="col-sm-3 control-label text-right">住院号</label>
- <div class="col-sm-9">
- <input id="Hzzyh" type="text" class="dis" value=""></input>
- </div>
- </div>
- <!-- <li>
- <div class="left">联系方式:</div>
- <div class="right"><input id="Hzlxfs" type="text" value=""></input></div>
- </li> -->
- <!-- <li>
- <div class="left">转诊目的:</div>
- <div class="right"><input id="Syzzzzmd" type="text" value=""></input></div>
- </li> -->
- <div class="form-group">
- <label for="Syzysj" class="col-sm-3 control-label text-right">住院时间</label>
- <div class="col-sm-9">
- <input id="Syzysj" type="date" class="dis" value=""></input>
- </div>
- </div>
- <div class="form-group">
- <label for="cydatetime" class="col-sm-3 control-label text-right">出院时间</label>
- <div class="col-sm-9">
- <input id="cydatetime" type="date" value=""></input>
- </div>
- </div>
- <div class="form-group">
- <label for="Syzyfy" class="col-sm-3 control-label text-right">住院费用</label>
- <div class="col-sm-9">
- <input id="Syzyfy" type="text" value=""></input>
- </div>
- </div>
- <!-- <li>
- <div class="left">责任人:</div>
- <div class="right"><input id="Syzzzrr" type="text" value=""></input></div>
- </li> -->
- <div class="form-group">
- <label for="Syzzzzfw" class="col-sm-3 control-label text-right">诊中服务</label>
- <div class="col-sm-9">
- <select id="Syzzzzfw" class="dis">
- <option value="患者自来">患者自来</option>
- <option value="120自出">120自出</option>
- <option value="外院120转入">外院120转入</option>
- <option value="科室人员陪同">科室人员陪同</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label for="Syzzzrrs" class="col-sm-3 control-label text-right">责任人</label>
- <div class="col-sm-9">
- <input id="Syzzzrrs" type="text" value=""></input>
- </div>
- </div>
- <!-- <li>
- <div class="left">责任人:</div>
- <div class="right"><input id="Syzzzrrss" type="text" value=""></input></div>
- </li> -->
- </div>
- </div>
- </div>
- </div>
- <div class="repeat-btn">
- <button class="btns" id="HY_save">提 交</button>
- </div>
- <script src="../js/laydate/laydate.js"></script>
- <script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
- <script src="../js/bootstrap-select/js/i18n/defaults-zh_CN.js"></script>
- <!-- <script src="../js/WorkOrder/WorkOrderDetails.js"></script> -->
- <script src="../js/download/download.js"></script>
- <script>
- $(document).ready(function() {
- getHzzyks()
- // 转诊单位
- getdept()
- var ajaxUrl;
- var ids = helper.request.queryString("edit_id");
- if(ids) {
- ajaxUrl = "testusertypeapi/api/TestUserType/upSzzy";
- getValue(ids);
- $('#djtime').show()
- $(".dis").attr('disabled', 'disabled')
- } else {
- ajaxUrl = "testusertypeapi/api/TestUserType/AddSzzy";
- $('#djtime').hide()
- }
- laydate.render({
- elem: '#Szzydjsj',
- theme: '#249fea',
- value: $('#Szzydjsj').val()
- });
- //保存
- $("#HY_save").click(function() {
- // if(!$("#projectid").val()) {
- // layer.confirm('请选择设备状态!', {
- // icon: 2,
- // btn: ['确定'] //按钮
- // });
- // return;
- // }
- // if(!$("#equipname").val()) {
- // layer.confirm('请输入设备名称!', {
- // icon: 2,
- // btn: ['确定'] //按钮
- // });
- // return;
- // }
- addValue(ajaxUrl, ids);
- })
- })
- function getdept() {
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/getyltdeptmanagetwo", //获取数据的Servlet地址
- async: true,
- dataType: 'json',
- data: {
- pageindex: 1,
- pagesize: 1000,
- },
- success: function(data) {
- var equipmentdata = []
- if(data.state.toLowerCase() == 'success') {
- equipmentdata = data.data
- // console.log(equipmentdata.length)
- if(equipmentdata.length > 0) {
- for(var k = 0; k < equipmentdata.length; k++) {
- $(equipmentdata[k]).each(function(q, p) {
- $('#Szzyzzdw')
- .append('<option label="' + p.name + '" value="' + p.name + '"></option>');
- // $("<option value='" + p.equipment_name + "'>" + p.equipment_name + "</option>").appendTo("#equipname");
- $("#Szzyzzdw").selectpicker('refresh');
- // console.log(p.equipment_name)
- });
- }
- } else {
- $("#Szzyzzdw").empty();
- $("#Szzyzzdw").selectpicker('refresh');
- }
- }
- }
- });
- }
- //患者姓名
- function darptSearch() {
- if($('#Hzname').val() == '') {
- $(".selDpart1").css('display', 'none');
- } else {
- $(".selDpart1").css('display', 'block');
- getFormComplainedUnit();
- }
- }
- $("#sponsor").on('click', 'li', function() {
- $(".selDpart1").css('display', 'none');
- $("#Hzname").val($(this).html());
- var a = $(this).attr('index')
- console.log(a)
- // 获取患者信息
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/gethzinflists",
- dataType: 'json',
- async: true,
- data: {
- id: a,
- },
- success: function(data) {
- if(data.state.toLowerCase() == "success") {
- $('#Yslxfs').val(data.data[0].Yslxfs); //
- $('#HzGender').val(data.data[0].HzGender); //
- $('#Hzage').val(data.data[0].Hzage); //
- //$('#Hzzd').val(data.data[0].Hzzd); //
- //$('#Hzzyh').val(data.data[0].Hzzyh); //
- //$('#cydatetime').val(data.data[0].cydatetime); //
- //$('#Szzyzzdw').val(data.data[0].Szzyzzdw); //
- //$('#Hzlxfs').val(data.data[0].Hzlxfs); //
- }
- }
- });
- })
- function getFormComplainedUnit() {
- $("#sponsor").empty();
- console.log($("#Hzname").val())
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/gethzinflists",
- dataType: 'json',
- async: true,
- data: {
- name: $("#Hzname").val(),
- },
- success: function(data) {
- if(data.state.toLowerCase() == "success") {
- var content = data.data;
- if(content.length === 0) {
- $(".selDpart1").css('display', 'none');
- } else {
- $(content).each(function(i, n) {
- $("<li index='" + n.id + "' >" + n.Hzname + "</li>").appendTo(
- "#sponsor");
- })
- }
- }
- }
- });
- }
- //住院科室
- function darptSearch2() {
- if($('#Hzzyks').val() == '') {
- $(".selDpart2").css('display', 'none');
- } else {
- $(".selDpart2").css('display', 'block');
- getFormComplainedUnit2();
- }
- }
- $("#sponsor2").on('click', 'li', function() {
- $(".selDpart2").css('display', 'none');
- $("#Hzzyks").val($(this).html());
- })
- function getFormComplainedUnit2() {
- $("#sponsor2").empty();
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/getalldeptnlists",
- dataType: 'json',
- async: true,
- data: {
- name: $("#Hzzyks").val(),
- },
- success: function(data) {
- if(data.state.toLowerCase() == "success") {
- var content = data.data;
- if(content.length === 0) {
- $(".selDpart2").css('display', 'none');
- } else {
- $(content).each(function(i, n) {
- $("<li index='" + n.name + "' >" + n.name + "</li>").appendTo(
- "#sponsor2");
- })
- }
- }
- }
- });
- }
- function getHzzyks() {
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/getalldeptnlists", //获取数据的Servlet地址
- async: true,
- dataType: 'json',
- data: {
- pageindex: 1,
- pagesize: 1000,
- },
- success: function(data) {
- var equipmentdata = []
- if(data.state.toLowerCase() == 'success') {
- equipmentdata = data.data
- // console.log(equipmentdata.length)
- if(equipmentdata.length > 0) {
- for(var k = 0; k < equipmentdata.length; k++) {
- $(equipmentdata[k]).each(function(q, p) {
- $('#Hzzyks')
- .append('<option label="' + p.name + '" value="' + p.name + '"></option>');
- // $("<option value='" + p.equipment_name + "'>" + p.equipment_name + "</option>").appendTo("#equipname");
- $("#Hzzyks").selectpicker('refresh');
- // console.log(p.equipment_name)
- });
- }
- } else {
- $("#Hzzyks").empty();
- $("#Hzzyks").selectpicker('refresh');
- }
- }
- }
- });
- }
- //获取详情
- function getValue(ids) {
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/GetSzzybyid",
- async: true,
- dataType: 'json',
- data: {
- id: ids
- },
- success: function(data) {
- if(data.state.toLowerCase() == 'success') {
- if(data.data[0].Szzydjsj) {
- var djsj = data.data[0].Szzydjsj.split(' ')
- for(var i = 0; i < djsj.length; i++) {
- $('#Szzydjsj').val(djsj[0]); //
- }
- }
- $('.Szzyzzdw').val(data.data[0].Szzyzzdw); //
- $('#Szzyzzdw').selectpicker('refresh');
- $('#Szzyzzdw').selectpicker('render');
- $('#Szzyzzys').val(data.data[0].Szzyzzys); //
- $('#Yslxfs').val(data.data[0].Yslxfs); //
- $('#Hzname').val(data.data[0].Hzname); //
- $('#HzGender').val(data.data[0].HzGender); //
- $('#Hzage').val(data.data[0].Hzage); //
- $('#Hzzd').val(data.data[0].Hzzd); //
- $('.Hzzyks').val(data.data[0].Hzzyks); //
- $('#Hzzyks').selectpicker('refresh');
- $('#Hzzyks').selectpicker('render');
- $('#Hzzyh').val(data.data[0].Hzzyh); //
- if(data.data[0].cydatetime) {
- var djsj = data.data[0].cydatetime.split(' ')
- for(var i = 0; i < djsj.length; i++) {
- $('#cydatetime').val(djsj[0]); //
- }
- }
- $('#Hzlxfs').val(data.data[0].Hzlxfs); //
- $('#Syzzzzmd').val(data.data[0].Syzzzzmd); //
- if(data.data[0].Syzysj) {
- var zysj = data.data[0].Syzysj.slice(0, 10)
- $('#Syzysj').val(zysj); //
- }
- $('#Syzyfy').val(data.data[0].Syzyfy); //
- // $('#Syzzzrr').val(data.data[0].Syzzzrr); //
- $('#Syzzzzfw').val(data.data[0].Syzzzzfw); //
- $('#Syzzzrrs').val(data.data[0].Syzzzrrs); //
- $('#Syzzzrrss').val(data.data[0].Syzzzrrss); //
- }
- }
- });
- }
- //添加
- function addValue(ajaxUrl, ids) {
- if($('#Hzzyks').text() == '') {
- layer.msg('住院科室不能为空!')
- } else if($('#Szzyzzdw option:selected').text() == '请选择转诊单位') {
- layer.msg('转诊单位不能为空!')
- } else {
- var $storages = window.localStorage;
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + ajaxUrl,
- // url: "http://192.168.1.21:28230/api/Equipment/update",
- async: true,
- dataType: 'json',
- data: {
- id: ids,
- Szzydjsj: $('#Szzydjsj').val(), //登记时间
- Szzyzzdw: $('.Szzyzzdw').val(), //转诊单位
- Szzyzzys: $('#Szzyzzys').val(), //转诊医师
- Yslxfs: $('#Yslxfs').val(), //联系方式
- Hzname: $('#Hzname').val(), //患者姓名
- HzGender: $('#HzGender').val(), //患者性别
- Hzage: $('#Hzage').val(), //患者年龄
- Hzzd: $('#Hzzd').val(), //患者诊断
- Hzzyks: $('.Hzzyks').val(), //住院科室
- Hzzyh: $('#Hzzyh').val(), //住院号
- cydatetime: $('#cydatetime').val(), //出院时间
- Hzlxfs: $('#Hzlxfs').val(), //联系方式
- Syzzzzmd: $('#Syzzzzmd').val(), //转诊目的
- Syzysj: $('#Syzysj').val(), //住院时间
- Syzyfy: $('#Syzyfy').val(), //住院费用
- Syzzzrr: $storages.getItem('userName'), //责任人
- Syzzzzfw: $('#Syzzzzfw').val(), //诊中服务
- Syzzzrrs: $('#Syzzzrrs').val(), //责任人
- Syzzzrrss: $('#Syzzzrrss').val() //责任人
- },
- success: function(data) {
- console.log(1)
- if(data.state.toLowerCase() == 'success') {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- layer.msg(data.message);
- parent.initTable();
- }
- }
- });
- }
- }
- </script>
- </body>
- </html>
|