(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-55cc3cfd"],{2504:function(t,e,n){},"3729b":function(t,e,n){t.exports=n.p+"img/ruk.8b72611e.png"},4891:function(t,e,n){"use strict";n("2504")},"6c06":function(t,e,n){t.exports=n.p+"img/ruk1.dbfb5a0c.png"},"899f":function(t,e,n){"use strict";n.r(e);n("b0c0");var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"result"},[e("div",{staticClass:"m-head"},[e("i",{staticClass:"iconfont icon-zuobian",on:{click:t.colseResult}}),t._v(" 扫描结果 ")]),e("a-spin",{attrs:{tip:"正在请求数据...",spinning:t.spinning}},[t.showContinue?[t.code_type<3?e("div",{staticClass:"code-ruku"},[e("img",{attrs:{src:n("3729b")}}),t.decodeResultUDI?e("p",[t._v("原始UDI码："+t._s(t.decodeResultUDI))]):t._e(),e("p",[t._v("二维码ID："+t._s(t.decodeResult_)),e("br"),0==t.code_type?e("span",[t._v("入库成功!")]):1==t.code_type?e("span",[t._v("录入患者信息成功!")]):2==t.code_type?e("span",[t._v("填写付费信息成功!")]):e("span",[t._v("二维码已收费!")])]),e("a-button",{attrs:{type:"primary"},on:{click:t.nextOne}},[t._v("继续扫码")])],1):e("div",{staticClass:"code-ruku code-info"},[e("i",{staticClass:"iconfont icon-yizhifu pay"}),e("h2",{staticClass:"title"},[t._v("二维码ID："+t._s(t.codeInfo.id))]),e("div",{staticClass:"info-box"},[e("p",[e("label",[t._v("耗材名称：")]),e("span",{staticStyle:{color:"#0479de","font-weight":"bold"}},[t._v(t._s(t.codeInfo.name))])]),e("p",[e("label",[t._v("耗材原始UDI码：")]),t._v(t._s(t.codeInfo.udi))]),e("p",[e("label",[t._v("患者姓名：")]),t._v(t._s(t.codeInfo.patientName))]),e("p",[e("label",[t._v("患者身份证号码：")]),t._v(t._s(t.codeInfo.patientIdCard))]),e("p",[e("label",[t._v("医院名称：")]),t._v(t._s(t.codeInfo.hospitalName))]),e("p",[e("label",[t._v("住院号/门诊号：")]),t._v(t._s(t.codeInfo.outpatientNo))]),e("p",[e("label",[t._v("使用科室：")]),t._v(t._s(t.codeInfo.department))]),e("p",[e("label",[t._v("入院时间：")]),t._v(t._s(t.codeInfo.admissionTime))]),e("p",[e("label",[t._v("使用时间：")]),t._v(t._s(t.codeInfo.usageTime))]),e("p",[e("label",[t._v("收费时间：")]),t._v(t._s(t.codeInfo.chargeTime))]),e("p",[e("label",[t._v("出院时间：")]),t._v(t._s(t.codeInfo.dischargeTime))]),e("a-button",{attrs:{type:"primary"},on:{click:t.nextOne}},[t._v("继续扫码")])],1)])]:t._e(),t.errorInfo?[e("div",{staticClass:"code-ruku"},[e("img",{attrs:{src:n("6c06")}}),e("p",{staticStyle:{color:"#fa1818"}},[t._v(t._s(t.errorText))]),e("a-button",{attrs:{type:"primary"},on:{click:t.nextOne}},[t._v("继续扫码")])],1)]:t._e(),1!=t.code_type||t.showContinue?t._e():[e("h2",{staticStyle:{"font-size":"0.34rem",margin:".22rem","font-weight":"bold"}},[t._v("患者信息")]),e("div",{staticClass:"form-model code-form"},[e("div",{staticClass:"form-item"},[e("label",[e("i",[t._v("*")]),t._v("二维码ID")]),e("a-input",{attrs:{placeholder:"请输入",disabled:""},model:{value:t.form.id,callback:function(e){t.$set(t.form,"id",e)},expression:"form.id"}})],1),e("div",{staticClass:"form-item"},[e("label",[e("i",[t._v("*")]),t._v("患者姓名")]),e("a-input",{attrs:{placeholder:"请输入"},model:{value:t.form.patientName,callback:function(e){t.$set(t.form,"patientName",e)},expression:"form.patientName"}})],1),e("div",{staticClass:"form-item"},[e("label",[t._v("患者身份证号码")]),e("a-input",{attrs:{placeholder:"请输入"},model:{value:t.form.patientIdCard,callback:function(e){t.$set(t.form,"patientIdCard",e)},expression:"form.patientIdCard"}})],1),e("div",{staticClass:"form-item"},[e("label",[t._v("住院号/门诊号")]),e("a-input",{attrs:{placeholder:"请输入"},model:{value:t.form.outpatientNo,callback:function(e){t.$set(t.form,"outpatientNo",e)},expression:"form.outpatientNo"}})],1),e("div",{staticClass:"form-item"},[e("label",[t._v("使用科室")]),e("a-input",{attrs:{placeholder:"请输入"},model:{value:t.form.department,callback:function(e){t.$set(t.form,"department",e)},expression:"form.department"}})],1)])],2!=t.code_type||t.showContinue?t._e():[e("h2",{staticStyle:{"font-size":"0.34rem",margin:".22rem","font-weight":"bold"}},[t._v("收费信息")]),e("div",{staticClass:"form-model code-form"},[e("div",{staticClass:"form-item"},[e("label",[e("i",[t._v("*")]),t._v("二维码ID")]),e("a-input",{attrs:{placeholder:"请输入",disabled:""},model:{value:t.paymentForm.id,callback:function(e){t.$set(t.paymentForm,"id",e)},expression:"paymentForm.id"}})],1),e("div",{staticClass:"form-item"},[e("label",[e("i",[t._v("*")]),t._v("入院时间")]),e("a-date-picker",{attrs:{"show-time":"",format:"YYYY-MM-DD HH:mm:ss"},on:{change:function(e){return t.changeDateTime(e,"admissionTime")}}})],1),e("div",{staticClass:"form-item"},[e("label",[t._v("出院时间")]),e("a-date-picker",{attrs:{"show-time":"",format:"YYYY-MM-DD HH:mm:ss"},on:{change:function(e){return t.changeDateTime(e,"dischargeTime")}}})],1)])]],2),1==t.code_type&&!t.showContinue||2==t.code_type&&!t.showContinue?e("div",{staticClass:"bottom-btn"},[e("a-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("提交")])],1):t._e()],1)},i=[],s=(n("caad"),n("2532"),n("b7a6")),r=n("c1df"),a=n.n(r),c={name:"result",props:["userType","decodeResult"],data:function(){return{moment:a.a,userType_:this.userType,spinning:!1,form:{id:"",patientName:"",patientIdCard:"",outpatientNo:"",department:""},paymentForm:{id:"",admissionTime:"",dischargeTime:""},hide:null,code_type:null,showContinue:!1,errorInfo:!1,errorText:"",codeInfo:null,decodeResult_:"",decodeResultUDI:""}},watch:{decodeResult:function(t,e){t&&(t.includes("UDI")?(this.decodeResult_=t.split(",")[0].split(":")[1],this.decodeResultUDI=t.split(",")[1].split(":")[1]):(this.decodeResult_=t,this.decodeResultUDI=""),this.getCodeTyp())}},mounted:function(){},created:function(){this.decodeResult&&this.decodeResult.includes("UDI")?(this.decodeResult_=this.decodeResult.split(",")[0].split(":")[1],this.decodeResultUDI=this.decodeResult.split(",")[1].split(":")[1]):(this.decodeResult_=this.decodeResult,this.decodeResultUDI=""),this.getCodeTyp()},methods:{changeDateTime:function(t,e){this.paymentForm[e]=this.moment(t._d).format("YYYY-MM-DD HH:ss:mm")},nextOne:function(){this.$emit("nextOne")},submitForm:function(){1==this.code_type?this.saveForm():this.savePaymentInfo()},savePaymentInfo:function(){var t=this;if(!this.paymentForm.admissionTime)return this.hide=this.$message.warning("请选择入院时间！",0),void setTimeout(this.hide,1200);Object(s["A"])(this.paymentForm).then((function(e){200==e.code&&(setTimeout(t.hide,0),setTimeout((function(e){t.hide=t.$message.success("提交成功！",0),setTimeout(t.hide,1200),t.showContinue=!0}),500))})).catch((function(e){setTimeout(t.hide,0),setTimeout((function(n){t.hide=t.$message.error(e.msg,0),setTimeout(t.hide,1200)}),500)}))},saveForm:function(){var t=this;if(!this.form.patientName)return this.hide=this.$message.warning("请填写患者姓名！",0),void setTimeout(this.hide,1200);this.hide=this.$message.loading("提交中...",0),Object(s["z"])(this.form).then((function(e){200==e.code&&(setTimeout(t.hide,0),setTimeout((function(e){t.hide=t.$message.success("提交成功！",0),setTimeout(t.hide,1200),t.showContinue=!0}),500))})).catch((function(e){setTimeout(t.hide,0),setTimeout((function(n){t.hide=t.$message.error(e.msg,0),setTimeout(t.hide,1200)}),500)}))},colseResult:function(){this.$emit("colseResult")},getCodeTyp:function(){var t=this;this.spinning=!0,Object(s["e"])(this.decodeResult_).then((function(e){200==e.code?(t.code_type=e.data.status,0==t.code_type?t.getInfo():1==t.code_type?(t.form.id=t.decodeResult_,t.spinning=!1):2==t.code_type?(t.paymentForm.id=t.decodeResult_,t.spinning=!1):(t.showContinue=!0,t.spinning=!1,t.codeInfo=e.data)):(t.spinning=!1,t.errorInfo=!0,t.errorText=e.msg)})).catch((function(e){t.code_typ=null,t.spinning=!1,t.errorInfo=!0,t.errorText=e.msg}))},getInfo:function(){var t=this;Object(s["y"])(this.decodeResult_).then((function(e){t.spinning=!1,200==e.code?(t.showContinue=!0,t.hide=t.$message.success("入库成功！",0),setTimeout(t.hide,1200)):(t.errorInfo=!0,t.errorText=e.msg)})).catch((function(e){t.spinning=!1,t.errorInfo=!0,t.errorText=e.msg}))}},beforeDestroy:function(){}},u=c,d=(n("4891"),n("2877")),l=Object(d["a"])(u,o,i,!1,null,"0415a870",null);e["default"]=l.exports},b7a6:function(t,e,n){"use strict";n.d(e,"p",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"i",(function(){return u})),n.d(e,"o",(function(){return d})),n.d(e,"b",(function(){return l})),n.d(e,"h",(function(){return m})),n.d(e,"f",(function(){return p})),n.d(e,"u",(function(){return f})),n.d(e,"d",(function(){return h})),n.d(e,"v",(function(){return b})),n.d(e,"j",(function(){return _})),n.d(e,"a",(function(){return v})),n.d(e,"g",(function(){return g})),n.d(e,"r",(function(){return y})),n.d(e,"q",(function(){return I})),n.d(e,"w",(function(){return C})),n.d(e,"y",(function(){return T})),n.d(e,"e",(function(){return O})),n.d(e,"z",(function(){return j})),n.d(e,"A",(function(){return R})),n.d(e,"s",(function(){return w})),n.d(e,"x",(function(){return D})),n.d(e,"n",(function(){return x})),n.d(e,"t",(function(){return k})),n.d(e,"m",(function(){return N})),n.d(e,"k",(function(){return $})),n.d(e,"l",(function(){return F}));n("99af");var o=n("bc3a"),i=n.n(o),s=n("b775"),r=n("9fb0");function a(){return Object(s["b"])({url:"/api/sys-menu/list",method:"get"})}function c(t,e){return Object(s["b"])({url:"/api/sys-menu",method:e,data:t})}function u(t){var e=t.id;return Object(s["b"])({url:"/api/sys-menu/".concat(e),method:"delete"})}function d(t){return Object(s["b"])({url:"/api/dept/list",method:"post",data:t})}function l(t){return Object(s["b"])({url:"/api/dept/save",method:"post",data:t})}function m(t){var e=t.id;return Object(s["b"])({url:"/api/dept/".concat(e),method:"delete"})}function p(t){var e=t.userId;return Object(s["b"])({url:"/api/user/".concat(e),method:"delete"})}function f(t){return Object(s["b"])({url:"/api/sys/user/resetpwd",method:"post",data:t})}function h(t){return Object(s["b"])({url:"/api/role/save",method:"post",data:t})}function b(){return Object(s["b"])({url:"/api/sys-role/list",method:"get"})}function _(t){var e=t.roleIds;return Object(s["b"])({url:"/api/system/role/".concat(e),method:"delete"})}function v(t){return Object(s["b"])({url:"/api/sys/user/save",method:"post",data:t})}function g(t){var e=t.id;return Object(s["b"])({url:"/api/sys/user/".concat(e),method:"delete"})}function y(t){return Object(s["b"])({url:"/api/consumable/list?udi=".concat(t),method:"get"})}function I(t){return Object(s["b"])({url:"/api/sys-user/list?type=".concat(t),method:"get"})}function C(t){return Object(s["b"])({url:"/api/purchase",method:"post",data:t})}function T(t){return Object(s["b"])({url:"/api/qrcode/scan/".concat(t),method:"get"})}function O(t){return Object(s["b"])({url:"/api/qrcode/".concat(t),method:"get"})}function j(t){return Object(s["b"])({url:"/api/qrcode/usage",method:"post",data:t})}function R(t){return Object(s["b"])({url:"/api/qrcode/charge",method:"post",data:t})}function w(t){return Object(s["b"])({url:"/api/open/qrcode/query?patientIdCard=".concat(t.idCard,"&outpatientNo=").concat(t.outpatientNo),method:"get"})}function D(t){return Object(s["b"])({url:"/api/consumable",method:"post",data:t})}function x(){return Object(s["b"])({url:"/api/sys-dept/list?pid=1",method:"get"})}function k(t){return Object(s["b"])({url:"/api/purchase/batch/".concat(t),method:"get"})}function N(t){return i.a.post("/api/consumable/excel/import",t,{headers:{Authorization:sessionStorage.getItem(r["a"]),"Content-Type":"multipart/form-data"}})}function $(t){var e=t.billCode,n=t.entSendName;return Object(s["b"])({url:"/api/bill/query?billCode=".concat(e,"&entSendName=").concat(n),method:"get"})}function F(t){var e=t.code;return Object(s["b"])({url:"/api/bill/storage/".concat(e),method:"get"})}}}]);