pages_index-patient.854e9fb3.js 7.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages_index-patient"],{"15b1":function(t,n,e){var i=e("a9f4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=e("967d").default;a("6b4b29b4",i,!0,{sourceMap:!1,shadowMode:!1})},"3f54":function(t,n,e){"use strict";e("6a54");var i=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.addPatient=function(t){return o("/app/patient/addPatient",t,"POST","application/json;charset=UTF-8")},n.delPatient=function(t){return o("/app/patient/delPatient",t,"POST","application/json;charset=UTF-8")},n.editPatient=function(t){return o("/app/patient/editPatient",t,"POST","application/json;charset=UTF-8")},n.getPatientById=function(t){return o("/app/patient/getPatientById",t,"GET")},n.getPatientList=function(){return o("/app/patient/getPatientList",null,"GET")};var a=i(e("d4c0")),o=(new a.default).http},"440d":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"inner"},[t._l(t.patient,(function(n,i){return e("v-uni-view",{key:i,staticClass:"peop-item",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.selectPatient(n)}}},[e("v-uni-view",{staticClass:"info"},[e("v-uni-view",{staticClass:"name"},[t._v(t._s(n.patientName))]),e("v-uni-view",{staticClass:"detail"},[1==n.sex?e("v-uni-text",{staticClass:"text"},[t._v("男")]):t._e(),2==n.sex?e("v-uni-text",{staticClass:"text"},[t._v("女")]):t._e(),e("v-uni-text",{staticClass:"text"},[t._v(t._s(t.$getAge(n.birthday))+"岁")]),e("v-uni-text",{staticClass:"text"},[t._v(t._s(t.$parseIdCard(n.idCard)))])],1)],1),e("v-uni-view",{staticClass:"operat-box"},[e("v-uni-image",{attrs:{src:t.imgPath+"/app/commonCourse/del.png",mode:""},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.delPatient(n)}}}),e("v-uni-image",{attrs:{src:t.imgPath+"/app/commonCourse/edit.png",mode:""},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.editPatient(n)}}})],1)],1)})),0==t.patient.length?e("v-uni-view",{staticClass:"no-data-box",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.getPatientList()}}},[e("v-uni-image",{attrs:{src:t.imgPath+"/app/commonCourse/null-data.png",mode:"aspectFit"}}),e("v-uni-view",{staticClass:"empty-title"},[t._v("暂无数据")])],1):t._e()],2),e("v-uni-view",{staticClass:"btn-box"},[e("v-uni-view",{staticClass:"sub-btn",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.addPatient.apply(void 0,arguments)}}},[t._v("创建就诊人")])],1)],1)},a=[]},"500d":function(t,n,e){"use strict";e("6a54"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("3f54"),a={data:function(){return{patient:[]}},onLoad:function(){var t=this;this.getPatientList(),uni.$on("refreshPatient",(function(){t.getPatientList()}))},computed:{imgPath:function(){return this.$store.state.imgpath}},onUnload:function(){uni.$off("refreshPatient")},methods:{selectPatient:function(t){uni.$emit("refreshOrderPatient",t),uni.navigateBack({delta:1})},editPatient:function(t){uni.navigateTo({url:"./addEditPatient?type=edit&patientId="+t.patientId})},delPatient:function(t){var n=this;uni.showModal({title:"提示",content:"确认删除吗?",showCancel:!0,cancelText:"取消",confirmText:"确定",success:function(e){if(e.confirm){var a={patientId:t.patientId};(0,i.delPatient)(a).then((function(t){200==t.code?(uni.showToast({icon:"success",title:"操作成功"}),n.getPatientList()):uni.showToast({icon:"none",title:"请求失败"})}),(function(t){}))}}})},getPatientList:function(){var t=this;(0,i.getPatientList)().then((function(n){uni.hideLoading(),200==n.code?t.patient=n.data:uni.showToast({icon:"none",title:"请求失败"})}),(function(t){}))},addPatient:function(){uni.navigateTo({url:"./addEditPatient?type=add"})}}};n.default=a},a9f4:function(t,n,e){var i=e("c86c");n=i(!1),n.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-3019b04b]{height:100%}.content[data-v-3019b04b]{height:100%;display:flex;flex-direction:column;justify-content:space-between}.content .inner[data-v-3019b04b]{flex:1;padding:%?20?% %?20?% %?160?%}.content .inner .peop-item[data-v-3019b04b]{box-sizing:border-box;height:%?184?%;background:#fff;border-radius:%?16?%;padding:%?50?% %?40?% %?50?% %?30?%;display:flex;align-items:center;justify-content:space-between;margin-bottom:%?20?%}.content .inner .peop-item .info .name[data-v-3019b04b]{font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#111;line-height:1}.content .inner .peop-item .info .detail[data-v-3019b04b]{display:flex;align-items:center;margin-top:%?30?%}.content .inner .peop-item .info .detail .text[data-v-3019b04b]{font-size:%?26?%;font-family:PingFang SC;font-weight:500;color:#999;line-height:1;margin-right:%?30?%}.content .inner .peop-item .info .detail .text[data-v-3019b04b]:last-child{margin-right:0}.content .inner .peop-item .operat-box[data-v-3019b04b]{display:flex;align-items:center}.content .inner .peop-item .operat-box uni-image[data-v-3019b04b]{padding:%?15?%;width:%?30?%;height:%?30?%;margin-left:%?10?%}.content .inner .peop-item .operat-box uni-image[data-v-3019b04b]:first-child{margin-left:0}.content .btn-box[data-v-3019b04b]{z-index:9999;width:100%;padding:%?30?%;position:fixed;bottom:0;left:0;box-sizing:border-box;background:#fff}.content .btn-box .sub-btn[data-v-3019b04b]{width:100%;height:%?88?%;line-height:%?88?%;text-align:center;font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#fff;background:#c39a58;border-radius:%?44?%}',""]),t.exports=n},db79:function(t,n,e){"use strict";e.r(n);var i=e("500d"),a=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=a.a},e1c9:function(t,n,e){"use strict";e.r(n);var i=e("440d"),a=e("db79");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("fe43");var r=e("828b"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"3019b04b",null,!1,i["a"],void 0);n["default"]=s.exports},fe43:function(t,n,e){"use strict";var i=e("15b1"),a=e.n(i);a.a}}]);