1
0
Fork 0
medical-record-server/public/client/static/js/pages-record-detail.34f2eb5...

3 lines
16 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[487],{2051:function(t,e,n){var r=n(2861);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var i=n(5472).Z;i("5f39aa56",r,!0,{sourceMap:!1,shadowMode:!1})},1435:function(t,e,n){var r=n(3094);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var i=n(5472).Z;i("53d19eea",r,!0,{sourceMap:!1,shadowMode:!1})},3093:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var r,i={"u-Text":n(1153).Z},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-album"},t._l(t.showUrls,(function(e,r){return n("v-uni-view",{key:r,ref:"u-album__row",refInFor:!0,staticClass:"u-album__row",attrs:{forComputedUse:t.albumWidth}},t._l(e,(function(e,i){return n("v-uni-view",{key:i,staticClass:"u-album__row__wrapper",style:[t.imageStyle(r+1,i+1)],on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.previewFullImage&&t.onPreviewTap(t.getSrc(e))}}},[n("v-uni-image",{style:[{width:t.imageWidth,height:t.imageHeight}],attrs:{src:t.getSrc(e),mode:1===t.urls.length?t.imageHeight>0?t.singleMode:"widthFix":t.multipleMode}}),t.showMore&&t.urls.length>t.rowCount*t.showUrls.length&&r===t.showUrls.length-1&&i===t.showUrls[t.showUrls.length-1].length-1?n("v-uni-view",{staticClass:"u-album__row__wrapper__text"},[n("u--text",{attrs:{text:"+"+(t.urls.length-t.maxCount),color:"#fff",size:.3*t.multipleSize,align:"center",customStyle:"justify-content: center"}})],1):t._e()],1)})),1)})),1)},a=[],u={props:{urls:{type:Array,default:uni.$u.props.album.urls},keyName:{type:String,default:uni.$u.props.album.keyName},singleSize:{type:[String,Number],default:uni.$u.props.album.singleSize},multipleSize:{type:[String,Number],default:uni.$u.props.album.multipleSize},space:{type:[String,Number],default:uni.$u.props.album.space},singleMode:{type:String,default:uni.$u.props.album.singleMode},multipleMode:{type:String,default:uni.$u.props.album.multipleMode},maxCount:{type:[String,Number],default:uni.$u.props.album.maxCount},previewFullImage:{type:Boolean,default:uni.$u.props.album.previewFullImage},rowCount:{type:[String,Number],default:uni.$u.props.album.rowCount},showMore:{type:Boolean,default:uni.$u.props.album.showMore}}},s={name:"u-album",mixins:[uni.$u.mpMixin,uni.$u.mixin,u],data(){return{singleWidth:0,singleHeight:0,singlePercent:.6}},watch:{urls:{immediate:!0,handler(t){1===t.length&&this.getImageRect()}}},computed:{imageStyle(){return(t,e)=>{const{space:n,rowCount:r,multipleSize:i,urls:o}=this,{addUnit:a,addStyle:u}=uni.$u,s=this.showUrls.length,l=(this.urls.length,{marginRight:a(n),marginBottom:a(n)});return t===s&&(l.marginBottom=0),(e===r||t===s&&e===this.showUrls[t-1].length)&&(l.marginRight=0),l}},showUrls(){const t=[];return this.urls.map(((e,n)=>{if(n+1<=this.maxCount){const r=Math.floor(n/this.rowCount);t[r]||(t[r]=[]),t[r].push(e)}})),t},imageWidth(){return uni.$u.addUnit(1===this.urls.length?this.singleWidth:this.multipleSize)},imageHeight(){return uni.$u.addUnit(1===this.urls.length?this.singleHeight:this.multipleSize)},albumWidth(){let t=0;return t=1===this.urls.length?this.singleWidth:this.showUrls[0].length*this.multipleSize+this.space*(this.showUrls[0].length-1),this.$emit("albumWidth",t),t}},methods:{onPreviewTap(t){const e=this.urls.map((t=>this.getSrc(t)));uni.previewImage({current:t,urls:e})},getSrc(t){return uni.$u.test.object(t)?this.keyName&&t[this.keyName]||t.src:t},getImageRect(){const t=this.getSrc(this.urls[0]);uni.getImageInfo({src:t,success:t=>{const e=t.width>=t.height;this.singleWidth=e?this.singleSize:t.width/t.height*this.singleSize,this.singleHeight=e?t.height/t.width*this.singleWidth:this.singleSize},fail:()=>{this.getComponentWidth()}})},async getComponentWidth(){await uni.$u.sleep(30),this.$uGetRect(".u-album__row").then((t=>{this.singleWidth=t.width*this.singlePercent}))}}},l=s,c=(n(1435),n(1503)),h=(0,c.Z)(l,o,a,!1,null,"863ddef2",null,!1,i,r),p=h.exports},4480:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return f}});var r,i={uCellGroup:n(156).Z,uCell:n(7981).Z,uAlbum:n(3093).Z},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page"},[n("u-cell-group",{attrs:{border:!1}},[n("u-cell",{attrs:{title:"姓名",value:this.info.patient?this.info.patient.name:""}}),n("u-cell",{attrs:{title:"类别",value:t.info.type?t.info.type.name:""}}),n("u-cell",{attrs:{title:"病种",value:t.info.illness_type?t.info.illness_type.name:""}}),n("u-cell",{attrs:{title:t.type.text+"时间",value:t._f("date")(t.info.treat_at)}}),n("u-cell",{attrs:{title:"划线价",value:t.info.origin_price}}),n("u-cell",{attrs:{title:"实收价",value:t.info.sell_price}}),n("u-cell",{attrs:{title:"收费情况",value:t.info.order_status}}),n("u-cell",{attrs:{title:t.type.text+"医师",value:t.info.doctor?t.info.doctor.name:""}}),n("u-cell",{attrs:{title:t.type.text+"情况"}},[n("v-uni-view",{attrs:{slot:"value"},slot:"value"},[n("v-uni-text",[t._v(t._s(t.info.content))])],1)],1),n("u-cell",{attrs:{title:"图片资料"}},[n("v-uni-view",{attrs:{slot:"value"},slot:"value"},[n("u-album",{attrs:{urls:t.info.images}})],1)],1),n("u-cell",{attrs:{title:"下次就诊时间",value:t._f("date")(t.info.next_treat_at)}})],1)],1)},a=[],u=n(3762),s=n(3062),l={data:function(){return{id:"",info:{patient_id:"",type_id:"",origin_price:"",sell_price:"",notify_remarks:"",is_notified:0},type:{text:""}}},onLoad:function(t){this.id=t.id,this.loadData()},onPullDownRefresh:function(){this.loadData()},methods:{loadData:function(){var t=this;return(0,s.Z)((0,u.Z)().mark((function e(){var n;return(0,u.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.id){e.next=2;break}return e.abrupt("return");case 2:return uni.showLoading(),e.next=5,t.$ajax.get("/api/client/record/".concat(t.id));case 5:n=e.sent,uni.stopPullDownRefresh(),0==n.status&&(t.info=n.data,t.type.text=t.info.type.name);case 8:case"end":return e.stop()}}),e)})))()}}},c=l,h=(n(2051),n(1503)),p=(0,h.Z)(c,o,a,!1,null,"7192923a",null,!1,i,r),f=p.exports},6916:function(t,e,n){var r=n(555);r("asyncIterator")},2861:function(t,e,n){"use strict";n.r(e);var r=n(2916),i=n.n(r),o=n(3282),a=n.n(o),u=a()(i());u.push([t.id,".page[data-v-7192923a]{padding:20px;background:#fff}.btn[data-v-7192923a]{padding:0 10px}.btn .u-button[data-v-7192923a]{margin-top:20px}.text-gray[data-v-7192923a]{color:gray}",""]),e["default"]=u},3094:function(t,e,n){"use strict";n.r(e);var r=n(2916),i=n.n(r),o=n(3282),a=n.n(o),u=a()(i());u.push([t.id,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-view[data-v-863ddef2], uni-scroll-view[data-v-863ddef2], uni-swiper-item[data-v-863ddef2]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-album[data-v-863ddef2]{\ndisplay:flex;\nflex-direction:column}.u-album__row[data-v-863ddef2]{\ndisplay:flex;\nflex-direction:row;flex-wrap:wrap}.u-album__row__wrapper[data-v-863ddef2]{position:relative}.u-album__row__wrapper__text[data-v-863ddef2]{position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.3);\ndisplay:flex;\nflex-direction:row;justify-content:center;align-items:center}',""]),e["default"]=u},6725:function(t,e){"use strict";e.Z={props:{lang:String,sessionFrom:String,sendMessageTitle:String,sendMessagePath:String,sendMessageImg:String,showMessageCard:Boolean,appParameter:String,formType:String,openType:String}}},8987:function(t,e){"use strict";e.Z={props:{openType:String},methods:{onGetUserInfo(t){this.$emit("getuserinfo",t.detail)},onContact(t){this.$emit("contact",t.detail)},onGetPhoneNumber(t){this.$emit("getphonenumber",t.detail)},onError(t){this.$emit("error",t.detail)},onLaunchApp(t){this.$emit("launchapp",t.detail)},onOpenSetting(t){this.$emit("opensetting",t.detail)}}}},3062:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});n(5827);function r(t,e,n,r,i,o,a){try{var u=t[o](a),s=u.value}catch(l){return void n(l)}u.done?e(s):Promise.resolve(s).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function u(t){r(a,i,o,u,s,"next",t)}function s(t){r(a,i,o,u,s,"throw",t)}u(void 0)}))}}},3762:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});n(5231),n(1260),n(3575),n(5827),n(485),n(8023),n(930),n(6916),n(1229),n(7611),n(8283),n(2883),n(6007),n(7143),n(1136),n(9312);var r=n(9684);function i(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
i=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",c=u.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var i=e&&e.prototype instanceof w?e:w,o=Object.create(i.prototype),u=new Z(r||[]);return a(o,"_invoke",{value:C(t,n,u)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var d="suspendedStart",g="suspendedYield",m="executing",v="completed",y={};function w(){}function b(){}function _(){}var x={};h(x,s,(function(){return this}));var S=Object.getPrototypeOf,L=S&&S(S(j([])));L&&L!==n&&o.call(L,s)&&(x=L);var $=_.prototype=w.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,a,u,s){var l=f(t[i],t,a);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==(0,r.Z)(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,u,s)}),(function(t){n("throw",t,u,s)})):e.resolve(h).then((function(t){c.value=t,u(c)}),(function(t){return n("throw",t,u,s)}))}s(l.arg)}var i;a(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function C(e,n,r){var i=d;return function(o,a){if(i===m)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var u=r.delegate;if(u){var s=M(u,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var l=f(e,n,r);if("normal"===l.type){if(i=r.done?v:g,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=v,r.method="throw",r.arg=l.arg)}}}function M(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator["return"]&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Z(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function j(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError((0,r.Z)(e)+" is not iterable")}return b.prototype=_,a($,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=h(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,"GeneratorFunction")),t.prototype=Object.create($),t},e.awrap=function(t){return{__await:t}},E(k.prototype),h(k.prototype,l,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(p(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E($),h($,c,"Generator"),h($,s,(function(){return this})),h($,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=j,Z.prototype={constructor:Z,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return u.type="throw",u.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}}}]);