diff --git a/app/Admin/Controllers/CategoryController.php b/app/Admin/Controllers/CategoryController.php index 7d02555..63f964c 100644 --- a/app/Admin/Controllers/CategoryController.php +++ b/app/Admin/Controllers/CategoryController.php @@ -48,7 +48,6 @@ class CategoryController extends AdminController ->footerToolbar([]) ->headerToolbar([ $this->createButton(true, 'lg'), - amis('reload')->align('right'), ]) ->filter($this->baseFilter()->actions()->body([ amisMake()->TextControl()->name('name')->label(__('category.name'))->size('md')->clearable(), diff --git a/app/Admin/Controllers/PatientController.php b/app/Admin/Controllers/PatientController.php index 9823e15..47dcac0 100644 --- a/app/Admin/Controllers/PatientController.php +++ b/app/Admin/Controllers/PatientController.php @@ -32,7 +32,6 @@ class PatientController extends AdminController ->columnsTogglable(false) ->headerToolbar([ $this->createButton(), - amis('reload')->align('right'), $this->exportAction(), ]) ->filter($this->baseFilter()->actions()->body([ @@ -214,27 +213,20 @@ class PatientController extends AdminController } ]) JS; - $buttons = [ - amisMake()->VanillaAction()->label(__('admin.export.all'))->onEvent( - $event(<<DropdownButton() + return amisMake()->VanillaAction() ->label(__('admin.export.title')) ->set('icon', 'fa-solid fa-download') - ->buttons($buttons) ->align('right') - ->closeOnClick(); + ->onEvent($event( + <<columnsTogglable(false) ->headerToolbar([ $this->createButton(true, 'lg'), - amis('reload')->align('right'), $this->exportAction(), ]) ->filter($this->baseFilter()->actions()->body([ @@ -212,27 +211,20 @@ class PatientRecordController extends AdminController } ]) JS; - $buttons = [ - amisMake()->VanillaAction()->label(__('admin.export.all'))->onEvent( - $event(<<DropdownButton() + return amisMake()->VanillaAction() ->label(__('admin.export.title')) ->set('icon', 'fa-solid fa-download') - ->buttons($buttons) ->align('right') - ->closeOnClick(); + ->onEvent($event( + <<exportAction(), ]) ->filter($this->baseFilter()->actions()->body([ - amisMake()->SelectControl()->options($this->getIllness())->name('id')->label(__('total-illness-type.id'))->size('md')->clearable(), + amisMake()->SelectControl()->options($this->getIllness())->name('id')->label(__('total-illness-type.id'))->multiple()->size('md')->clearable(), amisMake()->DateRangeControl()->name('treat_range')->label(__('total-illness-type.treat_at'))->clearable()->size('md'), // amisMake()->Button()->label(__('admin.reset'))->actionType('clear-and-submit'), amisMake()->Component()->setType('submit')->label(__('admin.search'))->level('primary'), @@ -68,27 +68,20 @@ class TotalIllnessTypeController extends AdminController } ]) JS; - $buttons = [ - amisMake()->VanillaAction()->label(__('admin.export.all'))->onEvent( - $event(<<DropdownButton() + return amisMake()->VanillaAction() ->label(__('admin.export.title')) ->set('icon', 'fa-solid fa-download') - ->buttons($buttons) ->align('right') - ->closeOnClick(); + ->onEvent($event( + <<VanillaAction()->label(__('admin.export.all'))->onEvent( - $event(<<DropdownButton() + return amisMake()->VanillaAction() ->label(__('admin.export.title')) ->set('icon', 'fa-solid fa-download') - ->buttons($buttons) ->align('right') - ->closeOnClick(); + ->onEvent($event( + <<VanillaAction()->label(__('admin.export.all'))->onEvent( - $event(<<DropdownButton() + return amisMake()->VanillaAction() ->label(__('admin.export.title')) ->set('icon', 'fa-solid fa-download') - ->buttons($buttons) ->align('right') - ->closeOnClick(); + ->onEvent($event( + <<VanillaAction()->label(__('admin.export.all'))->onEvent( - $event(<<DropdownButton() + return amisMake()->VanillaAction() ->label(__('admin.export.title')) ->set('icon', 'fa-solid fa-download') - ->buttons($buttons) ->align('right') - ->closeOnClick(); + ->onEvent($event( + <<illnessTypeRecords->count(); return $item; }); - $allList = (clone $query)->get(); - $count = round($allList->sum(fn ($item) => $item->illnessTypeRecords->count()), 2, PHP_ROUND_HALF_DOWN);; + $count = PatientRecord::filter([ + 'illness_type_id' => request('id'), + 'treat_range' => request('treat_range'), + ])->count(); + // $allList = (clone $query)->get(); + // $count = round($allList->sum(fn ($item) => $item->illnessTypeRecords->count()), 2, PHP_ROUND_HALF_DOWN);; $total = $list->total(); - $this->sortable($query); return compact('items', 'total', 'count'); } diff --git a/app/Admin/Services/TotalPatientService.php b/app/Admin/Services/TotalPatientService.php index f206849..acc57a1 100644 --- a/app/Admin/Services/TotalPatientService.php +++ b/app/Admin/Services/TotalPatientService.php @@ -49,10 +49,18 @@ class TotalPatientService extends BaseService $item['records_count'] = $item->records->count(); return $item; }); - $allList = (clone $query)->get(); - $records_count = round($allList->sum(fn($item) => $item->records->count()), 2, PHP_ROUND_HALF_DOWN); - $origin_price = round($allList->sum(fn($item) => $item->records->sum('origin_price')), 2, PHP_ROUND_HALF_DOWN); - $sell_price = round($allList->sum(fn($item) => $item->records->sum('sell_price')), 2, PHP_ROUND_HALF_DOWN); + $filter = [ + 'patient_id' => request('id'), + 'type_id' => request('type_id'), + 'treat_range' => request('treat_range'), + ]; + $records_count = PatientRecord::filter($filter)->count(); + $origin_price = PatientRecord::filter($filter)->sum('origin_price'); + $sell_price = PatientRecord::filter($filter)->sum('sell_price'); + // $allList = (clone $query)->get(); + // $records_count = round($allList->sum(fn($item) => $item->records->count()), 2, PHP_ROUND_HALF_DOWN); + // $origin_price = round($allList->sum(fn($item) => $item->records->sum('origin_price')), 2, PHP_ROUND_HALF_DOWN); + // $sell_price = round($allList->sum(fn($item) => $item->records->sum('sell_price')), 2, PHP_ROUND_HALF_DOWN); $total = $list->total(); return compact('items', 'total', 'sell_price', 'origin_price', 'records_count'); diff --git a/app/Admin/Services/TotalProfitService.php b/app/Admin/Services/TotalProfitService.php index 4ec33a5..6819cc7 100644 --- a/app/Admin/Services/TotalProfitService.php +++ b/app/Admin/Services/TotalProfitService.php @@ -3,6 +3,7 @@ namespace App\Admin\Services; use App\Models\AdminUser; +use App\Models\PatientRecord; class TotalProfitService extends BaseService { @@ -52,12 +53,32 @@ class TotalProfitService extends BaseService $item['total_money'] = round($item['doctor_money'] + $item['inviter_money'] + $item['saler_money'], 2, PHP_ROUND_HALF_DOWN); return $item; }); - $allList = (clone $query)->get(); - $records_count = $allList->sum(fn ($item) => $item->doctors->count() + $item->inviters->count() + $item->salers->count()); - $doctor_money = round($allList->sum(fn ($item) => $item->doctors->sum('doctor_money')), 2, PHP_ROUND_HALF_DOWN); - $inviter_money = round($allList->sum(fn ($item) => $item->inviters->sum('inviter_money')), 2, PHP_ROUND_HALF_DOWN); - $saler_money = round($allList->sum(fn ($item) => $item->salers->sum('saler_money')), 2, PHP_ROUND_HALF_DOWN); - $total_money = round($allList->sum(fn ($item) => $item->salers->sum('saler_money') + $item->inviters->sum('inviter_money') + $item->doctors->sum('doctor_money')), 2, PHP_ROUND_HALF_DOWN); + $doctorQuery = PatientRecord::filter([ + 'type_id' => request('type_id'), + 'treat_range' => request('treat_range'), + 'doctor_id' => request('id') + ]); + $inviterQuery = PatientRecord::filter([ + 'type_id' => request('type_id'), + 'treat_range' => request('treat_range'), + 'inviter_id' => request('id') + ]); + $salerQuery = PatientRecord::filter([ + 'type_id' => request('type_id'), + 'treat_range' => request('treat_range'), + 'saler_id' => request('id') + ]); + $records_count = $doctorQuery->count() + $inviterQuery->count() + $salerQuery->count(); + $doctor_money = $doctorQuery->sum('doctor_money'); + $inviter_money = $inviterQuery->sum('inviter_money'); + $saler_money = $salerQuery->sum('saler_money'); + $total_money = round($doctor_money + $inviter_money + $saler_money, 2, PHP_ROUND_HALF_DOWN); + // $allList = (clone $query)->get(); + // $records_count = $allList->sum(fn ($item) => $item->doctors->count() + $item->inviters->count() + $item->salers->count()); + // $doctor_money = round($allList->sum(fn ($item) => $item->doctors->sum('doctor_money')), 2, PHP_ROUND_HALF_DOWN); + // $inviter_money = round($allList->sum(fn ($item) => $item->inviters->sum('inviter_money')), 2, PHP_ROUND_HALF_DOWN); + // $saler_money = round($allList->sum(fn ($item) => $item->salers->sum('saler_money')), 2, PHP_ROUND_HALF_DOWN); + // $total_money = round($allList->sum(fn ($item) => $item->salers->sum('saler_money') + $item->inviters->sum('inviter_money') + $item->doctors->sum('doctor_money')), 2, PHP_ROUND_HALF_DOWN); $total = $list->total(); $this->sortable($query); diff --git a/app/Admin/Services/UserService.php b/app/Admin/Services/UserService.php index 980df44..be7fe52 100644 --- a/app/Admin/Services/UserService.php +++ b/app/Admin/Services/UserService.php @@ -27,7 +27,6 @@ class UserService extends BaseService } if ($filter) { - logger('request', request()->input()); $query->filter(request()->input(), $filter); } diff --git a/app/Console/Commands/PatientRecordNotify.php b/app/Console/Commands/PatientRecordNotify.php index 4102649..5fb841c 100644 --- a/app/Console/Commands/PatientRecordNotify.php +++ b/app/Console/Commands/PatientRecordNotify.php @@ -36,15 +36,6 @@ class PatientRecordNotify extends Command ->whereNotNull('next_treat_at') ->where('notify_at', '<=', $now->copy()->endOfDay()) ->get(); - $app = EasyWeChat::officialAccount(); - $app->setAccessToken(new \App\Services\WechatOfficialAccessToken( - appId: $app->getAccount()->getAppId(), - secret: $app->getAccount()->getSecret(), - cache: $app->getCache(), - httpClient: $app->getHttpClient(), - stable: $app->getConfig()->get('use_stable_access_token', false), - )); - $api = $app->getClient(); // 微信公众号关联账户 $adminUsers = UserSocialite::where('user_type', (new AdminUser)->getMorphClass()) ->where('type', SocialiteType::WxOfficial) @@ -57,7 +48,7 @@ class PatientRecordNotify extends Command foreach ($list as $item) { $adminUser = $adminUsers->firstWhere('user_id', $item->notify_user_id); if ($adminUser) { - $response = $api->postJson('/cgi-bin/message/template/send', [ + $this->wechatNotify([ 'touser' => $adminUser->openid, 'template_id' => 'zdkOoIk7bfyzpW9Tuu-pxqh2no-93FCcqstFKLOTfu0', 'url' => url('/h5/pages/record/detail?id=' . $item->id), @@ -73,13 +64,10 @@ class PatientRecordNotify extends Command ] ] ]); - if ($response->isFailed()) { - logger('病历记录: 通知医师, 模板消息发送, 失败', $response->toArray(false)); - } } $user = $users->firstWhere('user_id', $item->user_id); if ($user) { - $response = $api->postJson('/cgi-bin/message/template/send', [ + $this->wechatNotify([ 'touser' => $user->openid, 'template_id' => 'zdkOoIk7bfyzpW9Tuu-pxqh2no-93FCcqstFKLOTfu0', 'url' => url('/client/pages/record/detail?id=' . $item->id), @@ -95,11 +83,29 @@ class PatientRecordNotify extends Command ] ] ]); - if ($response->isFailed()) { - logger('病历记录: 通知用户, 模板消息发送, 失败', $response->toArray(false)); - } } $item->update(['is_notified' => 1]); } } + + protected function wechatNotify($params) + { + $debug = config('app.env') == 'local'; + if ($debug) { + return logger('病历记录通知', $params); + } + $app = EasyWeChat::officialAccount(); + $app->setAccessToken(new \App\Services\WechatOfficialAccessToken( + appId: $app->getAccount()->getAppId(), + secret: $app->getAccount()->getSecret(), + cache: $app->getCache(), + httpClient: $app->getHttpClient(), + stable: $app->getConfig()->get('use_stable_access_token', false), + )); + $api = $app->getClient(); + $response = $api->postJson('/cgi-bin/message/template/send', $params); + if ($response->isFailed()) { + logger('病历记录: 模板消息发送, 失败', $response->toArray(false)); + } + } } diff --git a/app/ModelFilters/PatientRecordFilter.php b/app/ModelFilters/PatientRecordFilter.php index e3b76bd..8828a0d 100644 --- a/app/ModelFilters/PatientRecordFilter.php +++ b/app/ModelFilters/PatientRecordFilter.php @@ -17,7 +17,7 @@ class PatientRecordFilter extends ModelFilter public function patient($key) { - $this->where('patient_id', $key); + $this->whereIn('patient_id', is_array($key) ? $key : explode(',', $key)); } public function type($key) @@ -27,19 +27,19 @@ class PatientRecordFilter extends ModelFilter public function doctor($key) { - $this->where('doctor_id', $key); + $this->whereIn('doctor_id', is_array($key) ? $key : explode(',', $key)); } public function inviter($key) { - $this->where('inviter_id', $key); + $this->whereIn('inviter_id', is_array($key) ? $key : explode(',', $key)); } public function saler($key) { - $this->where('saler_id', $key); + $this->whereIn('saler_id', is_array($key) ? $key : explode(',', $key)); } public function illnessType($key) { - $this->where('illness_type_id', $key); + $this->whereIn('illness_type_id', is_array($key) ? $key : explode(',', $key)); } public function treatRange($key) diff --git a/public/client/index.html b/public/client/index.html index 88a8509..02e0327 100644 --- a/public/client/index.html +++ b/public/client/index.html @@ -1,2 +1,2 @@ 宝芝堂
\ No newline at end of file + document.write('')
\ No newline at end of file diff --git a/public/client/static/js/index.19d8df64.js b/public/client/static/js/index.19d8df64.js deleted file mode 100644 index 482b301..0000000 --- a/public/client/static/js/index.19d8df64.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var n={1398:function(n,e,o){var t=o(8703);t.__esModule&&(t=t.default),"string"===typeof t&&(t=[[n.id,t,""]]),t.locals&&(n.exports=t.locals);var i=o(5472).Z;i("99d79208",t,!0,{sourceMap:!1,shadowMode:!1})},4427:function(n,e,o){"use strict";var t=o(159),i=(o(7966),o(4554),o(3167),o(3482),o(206),o(5827),o(498),o(930),o(423),o(262),o(6075)),r={keys:function(){return[]}};o.g["____828F200____"]=!0,delete o.g["____828F200____"],o.g.__uniConfig={globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"宝芝堂",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8",navigationStyle:"custom"},easycom:{"^u-(.*)":"uview-ui/components/u-$1/u-$1.vue","^unicloud-db$":"@dcloudio/uni-cli-shared/components/unicloud-db.vue","^uniad$":"@dcloudio/uni-cli-shared/components/uniad.vue","^ad-rewarded-video$":"@dcloudio/uni-cli-shared/components/ad-rewarded-video.vue","^ad-fullscreen-video$":"@dcloudio/uni-cli-shared/components/ad-fullscreen-video.vue","^ad-interstitial$":"@dcloudio/uni-cli-shared/components/ad-interstitial.vue","^ad-interactive$":"@dcloudio/uni-cli-shared/components/ad-interactive.vue","^page-meta$":"@dcloudio/uni-cli-shared/components/page-meta.vue","^navigation-bar$":"@dcloudio/uni-cli-shared/components/navigation-bar.vue","^uni-match-media$":"@dcloudio/uni-cli-shared/components/uni-match-media.vue"}},o.g.__uniConfig.compilerVersion="3.6.14",o.g.__uniConfig.darkmode=!1,o.g.__uniConfig.themeConfig={},o.g.__uniConfig.uniPlatform="h5",o.g.__uniConfig.appId="__UNI__828F200",o.g.__uniConfig.appName="宝芝堂",o.g.__uniConfig.appVersion="1.0.0",o.g.__uniConfig.appVersionCode="100",o.g.__uniConfig.router={mode:"history",base:"/client/"},o.g.__uniConfig.publicPath="/client/",o.g.__uniConfig["async"]={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4},o.g.__uniConfig.debug=!1,o.g.__uniConfig.networkTimeout={request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},o.g.__uniConfig.sdkConfigs={},o.g.__uniConfig.qqMapKey=void 0,o.g.__uniConfig.googleMapKey=void 0,o.g.__uniConfig.aMapKey=void 0,o.g.__uniConfig.aMapSecurityJsCode=void 0,o.g.__uniConfig.aMapServiceHost=void 0,o.g.__uniConfig.locale="",o.g.__uniConfig.fallbackLocale=void 0,o.g.__uniConfig.locales=r.keys().reduce((function(n,e){var o=e.replace(/\.\/(uni-app.)?(.*).json/,"$2"),t=r(e);return Object.assign(n[o]||(n[o]={}),t.common||t),n}),{}),o.g.__uniConfig.nvue={"flex-direction":"column"},o.g.__uniConfig.__webpack_chunk_load__=o.e,i["default"].component("pages-index-index",(function(n){var e={component:Promise.all([o.e(297),o.e(202),o.e(981),o.e(787),o.e(344),o.e(125),o.e(58)]).then(function(){return n(o(4188))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),i["default"].component("pages-index-welcome",(function(n){var e={component:o.e(545).then(function(){return n(o(3233))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),i["default"].component("pages-login-index",(function(n){var e={component:Promise.all([o.e(297),o.e(202),o.e(344),o.e(241),o.e(102),o.e(607)]).then(function(){return n(o(7354))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),i["default"].component("pages-register-index",(function(n){var e={component:Promise.all([o.e(297),o.e(202),o.e(344),o.e(241),o.e(56),o.e(102),o.e(913)]).then(function(){return n(o(8773))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),i["default"].component("pages-user-index",(function(n){var e={component:Promise.all([o.e(297),o.e(202),o.e(981),o.e(787),o.e(241),o.e(56),o.e(125),o.e(905)]).then(function(){return n(o(6323))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),i["default"].component("pages-patient-detail",(function(n){var e={component:Promise.all([o.e(297),o.e(202),o.e(981),o.e(787),o.e(344),o.e(93),o.e(810)]).then(function(){return n(o(6824))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),i["default"].component("pages-record-index",(function(n){var e={component:Promise.all([o.e(297),o.e(981),o.e(492)]).then(function(){return n(o(4102))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),i["default"].component("pages-record-detail",(function(n){var e={component:Promise.all([o.e(297),o.e(981),o.e(787),o.e(93),o.e(487)]).then(function(){return n(o(2501))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),o.g.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{render:function(n){return n("Page",{props:Object.assign({isQuit:!0,isEntry:!0},__uniConfig.globalStyle,{navigationBarTitleText:"宝芝堂"})},[n("pages-index-index",{slot:"page"})])}},meta:{id:1,name:"pages-index-index",isNVue:!1,maxWidth:0,pagePath:"pages/index/index",isQuit:!0,isEntry:!0,windowTop:0}},{path:"/pages/index/welcome",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"宝芝堂"})},[n("pages-index-welcome",{slot:"page"})])}},meta:{name:"pages-index-welcome",isNVue:!1,maxWidth:0,pagePath:"pages/index/welcome",windowTop:0}},{path:"/pages/login/index",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"登录"})},[n("pages-login-index",{slot:"page"})])}},meta:{name:"pages-login-index",isNVue:!1,maxWidth:0,pagePath:"pages/login/index",windowTop:0}},{path:"/pages/register/index",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"注册"})},[n("pages-register-index",{slot:"page"})])}},meta:{name:"pages-register-index",isNVue:!1,maxWidth:0,pagePath:"pages/register/index",windowTop:0}},{path:"/pages/user/index",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"账户信息"})},[n("pages-user-index",{slot:"page"})])}},meta:{name:"pages-user-index",isNVue:!1,maxWidth:0,pagePath:"pages/user/index",windowTop:0}},{path:"/pages/patient/detail",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"初诊信息",enablePullDownRefresh:!0})},[n("pages-patient-detail",{slot:"page"})])}},meta:{name:"pages-patient-detail",isNVue:!1,maxWidth:0,pagePath:"pages/patient/detail",windowTop:0}},{path:"/pages/record/index",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"病历记录",enablePullDownRefresh:!0})},[n("pages-record-index",{slot:"page"})])}},meta:{name:"pages-record-index",isNVue:!1,maxWidth:0,pagePath:"pages/record/index",windowTop:0}},{path:"/pages/record/detail",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"病历详细",enablePullDownRefresh:!0})},[n("pages-record-detail",{slot:"page"})])}},meta:{name:"pages-record-detail",isNVue:!1,maxWidth:0,pagePath:"pages/record/detail",windowTop:0}},{path:"/choose-location",component:{render:function(n){return n("Page",{props:{navigationStyle:"custom"}},[n("system-choose-location",{slot:"page"})])}},meta:{name:"choose-location",pagePath:"/choose-location"}},{path:"/open-location",component:{render:function(n){return n("Page",{props:{navigationStyle:"custom"}},[n("system-open-location",{slot:"page"})])}},meta:{name:"open-location",pagePath:"/open-location"}}],o.g.UniApp&&new o.g.UniApp;o(1026);var a,u,c=function(){var n=this,e=n.$createElement,o=n._self._c||e;return o("App",{attrs:{keepAliveInclude:n.keepAliveInclude}})},d=[],l={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}},s=l,g=(o(1398),o(1503)),p=(0,g.Z)(s,c,d,!1,null,null,null,!1,a,u),f=p.exports,m=(o(7846),o(3124)),b=o(5682);o(8996),o(7480),o(5329),o(4302),o(5621),o(1199),o(9289),o(9312);function _(){var n,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd HH:mm:ss";if(!e)return"";n=e?/^\d{10}$/.test(e.toString().trim())?new Date(1e3*e):"string"===typeof e&&/^\d+$/.test(e.trim())?new Date(Number(e)):new Date("string"===typeof e?e.replace(/-/g,"/"):e):new Date;var t={y:n.getFullYear().toString(),M:(n.getMonth()+1).toString().padStart(2,"0"),d:n.getDate().toString().padStart(2,"0"),H:n.getHours().toString().padStart(2,"0"),m:n.getMinutes().toString().padStart(2,"0"),s:n.getSeconds().toString().padStart(2,"0")};for(var i in t){var r=new RegExp("".concat(i,"+")).exec(o)||[],a=(0,b.Z)(r,1),u=a[0];if(u){var c="y"===i&&2===u.length?2:0;o=o.replace(u,t[i].slice(c))}}return o}i["default"].config.productionTip=!1,i["default"].use(m.Z),i["default"].filter("date",(function(n,e){return e||(e="yyyy-MM-dd HH:mm:ss"),_(n,e)})),i["default"].config.productionTip=!1,f.mpType="app";var y=new i["default"]((0,t.Z)({},f));o(926)(),i["default"].prototype.$ajax=uni.$u.http,y.$mount()},7846:function(n,e,o){var t=o(3087)["default"];o(5827),uni.addInterceptor({returnValue:function(n){return!n||"object"!==t(n)&&"function"!==typeof n||"function"!==typeof n.then?n:new Promise((function(e,o){n.then((function(n){return n[0]?o(n[0]):e(n[1])}))}))}})},926:function(n,e,o){o(5827),n.exports=function(){uni.$u.http.setConfig((function(n){return n.baseURL="http://www.xbzt.cc",n.custom={toast:!0,loading:!1},n})),uni.$u.http.interceptors.request.use((function(n){var e=uni.getStorageSync("medical_record_client_auth_token");return e&&(n.header["Authorization"]="Bearer ".concat(e)),n.header["Accept"]="application/json",n.custom.loading&&uni.showLoading(),n}),(function(n){return Promise.reject(n)})),uni.$u.http.interceptors.response.use((function(n){uni.hideLoading();var e=n.data;return n.config.custom.toast&&0!=e.status&&1!=e.doNotDisplayToast&&uni.showModal({title:e.msg,showCancel:!1}),401==e.status&&uni.reLaunch({url:"/pages/login/index"}),e}),(function(n){return uni.hideLoading(),Promise.reject(n)}))}},8703:function(n,e,o){"use strict";o.r(e);var t=o(2916),i=o.n(t),r=o(3282),a=o.n(r),u=a()(i());u.push([n.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/* 文章场景相关 */\n/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */.u-line-1{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important\n}.u-line-2{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important\n}.u-line-3{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important\n}.u-line-4{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important\n}.u-line-5{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important\n}.u-border{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button{padding:0;background-color:initial;\nfont-size:inherit;line-height:inherit;color:inherit;\n}\n.u-reset-button::after{border:none}\n.u-hover-class{opacity:.7}.u-primary-light{color:#ecf5ff}.u-warning-light{color:#fdf6ec}.u-success-light{color:#f5fff0}.u-error-light{color:#fef0f0}.u-info-light{color:#f4f4f5}.u-primary-light-bg{background-color:#ecf5ff}.u-warning-light-bg{background-color:#fdf6ec}.u-success-light-bg{background-color:#f5fff0}.u-error-light-bg{background-color:#fef0f0}.u-info-light-bg{background-color:#f4f4f5}.u-primary-dark{color:#398ade}.u-warning-dark{color:#f1a532}.u-success-dark{color:#53c21d}.u-error-dark{color:#e45656}.u-info-dark{color:#767a82}.u-primary-dark-bg{background-color:#398ade}.u-warning-dark-bg{background-color:#f1a532}.u-success-dark-bg{background-color:#53c21d}.u-error-dark-bg{background-color:#e45656}.u-info-dark-bg{background-color:#767a82}.u-primary-disabled{color:#9acafc}.u-warning-disabled{color:#f9d39b}.u-success-disabled{color:#a9e08f}.u-error-disabled{color:#f7b2b2}.u-info-disabled{color:#c4c6c9}.u-primary{color:#3c9cff}.u-warning{color:#f9ae3d}.u-success{color:#5ac725}.u-error{color:#f56c6c}.u-info{color:#909399}.u-primary-bg{background-color:#3c9cff}.u-warning-bg{background-color:#f9ae3d}.u-success-bg{background-color:#5ac725}.u-error-bg{background-color:#f56c6c}.u-info-bg{background-color:#909399}.u-main-color{color:#303133}.u-content-color{color:#606266}.u-tips-color{color:#909193}.u-light-color{color:#c0c4cc}.u-safe-area-inset-top{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}\nuni-toast{z-index:10090}uni-toast .uni-toast{z-index:10090}\n::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}body{background-color:#f3f4f6}',""]),e["default"]=u}},e={};function o(t){var i=e[t];if(void 0!==i)return i.exports;var r=e[t]={id:t,loaded:!1,exports:{}};return n[t].call(r.exports,r,r.exports,o),r.loaded=!0,r.exports}o.m=n,function(){o.amdD=function(){throw new Error("define cannot be used indirect")}}(),function(){var n=[];o.O=function(e,t,i,r){if(!t){var a=1/0;for(l=0;l=r)&&Object.keys(o.O).every((function(n){return o.O[n](t[c])}))?t.splice(c--,1):(u=!1,r0&&n[l-1][2]>r;l--)n[l]=n[l-1];n[l]=[t,i,r]}}(),function(){o.n=function(n){var e=n&&n.__esModule?function(){return n["default"]}:function(){return n};return o.d(e,{a:e}),e}}(),function(){o.d=function(n,e){for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})}}(),function(){o.f={},o.e=function(n){return Promise.all(Object.keys(o.f).reduce((function(e,t){return o.f[t](n,e),e}),[]))}}(),function(){o.u=function(n){return"static/js/"+({58:"pages-index-index",487:"pages-record-detail",492:"pages-record-index",545:"pages-index-welcome",607:"pages-login-index",810:"pages-patient-detail",905:"pages-user-index",913:"pages-register-index"}[n]||n)+"."+{56:"8a0d84b8",58:"5bec1417",93:"8e102193",102:"03435c48",125:"0b6c7a32",202:"7e8e9e5c",241:"ca33bc23",297:"0381efa6",344:"bc29a90f",487:"991f1af6",492:"a0254065",545:"2b4587f4",607:"238b6ee6",787:"ef344ac6",810:"04fc4b6d",905:"54ed4327",913:"2344e4b7",981:"925b79b6"}[n]+".js"}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"===typeof window)return window}}()}(),function(){o.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}}(),function(){var n={},e="uniapp:";o.l=function(t,i,r,a){if(n[t])n[t].push(i);else{var u,c;if(void 0!==r)for(var d=document.getElementsByTagName("script"),l=0;l0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd HH:mm:ss";if(!e)return"";n=e?/^\d{10}$/.test(e.toString().trim())?new Date(1e3*e):"string"===typeof e&&/^\d+$/.test(e.trim())?new Date(Number(e)):new Date("string"===typeof e?e.replace(/-/g,"/"):e):new Date;var t={y:n.getFullYear().toString(),M:(n.getMonth()+1).toString().padStart(2,"0"),d:n.getDate().toString().padStart(2,"0"),H:n.getHours().toString().padStart(2,"0"),m:n.getMinutes().toString().padStart(2,"0"),s:n.getSeconds().toString().padStart(2,"0")};for(var i in t){var r=new RegExp("".concat(i,"+")).exec(o)||[],a=(0,b.Z)(r,1),u=a[0];if(u){var c="y"===i&&2===u.length?2:0;o=o.replace(u,t[i].slice(c))}}return o}i["default"].config.productionTip=!1,i["default"].use(m.Z),i["default"].filter("date",(function(n,e){return e||(e="yyyy-MM-dd HH:mm:ss"),_(n,e)})),i["default"].config.productionTip=!1,f.mpType="app";var y=new i["default"]((0,t.Z)({},f));o(926)(),i["default"].prototype.$ajax=uni.$u.http,y.$mount()},7846:function(n,e,o){var t=o(3087)["default"];o(5827),uni.addInterceptor({returnValue:function(n){return!n||"object"!==t(n)&&"function"!==typeof n||"function"!==typeof n.then?n:new Promise((function(e,o){n.then((function(n){return n[0]?o(n[0]):e(n[1])}))}))}})},926:function(n,e,o){o(5827),n.exports=function(){uni.$u.http.setConfig((function(n){return n.baseURL="http://www.xbzt.cc",n.custom={toast:!0,loading:!1},n})),uni.$u.http.interceptors.request.use((function(n){var e=uni.getStorageSync("medical_record_client_auth_token");return e&&(n.header["Authorization"]="Bearer ".concat(e)),n.header["Accept"]="application/json",n.custom.loading&&uni.showLoading(),n}),(function(n){return Promise.reject(n)})),uni.$u.http.interceptors.response.use((function(n){uni.hideLoading();var e=n.data;return n.config.custom.toast&&0!=e.status&&1!=e.doNotDisplayToast&&uni.showModal({title:e.msg,showCancel:!1}),401==e.status&&uni.reLaunch({url:"/pages/login/index"}),e}),(function(n){return uni.hideLoading(),Promise.reject(n)}))}},8703:function(n,e,o){"use strict";o.r(e);var t=o(2916),i=o.n(t),r=o(3282),a=o.n(r),u=a()(i());u.push([n.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/* 文章场景相关 */\n/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */.u-line-1{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important\n}.u-line-2{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important\n}.u-line-3{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important\n}.u-line-4{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important\n}.u-line-5{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important\n}.u-border{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button{padding:0;background-color:initial;\nfont-size:inherit;line-height:inherit;color:inherit;\n}\n.u-reset-button::after{border:none}\n.u-hover-class{opacity:.7}.u-primary-light{color:#ecf5ff}.u-warning-light{color:#fdf6ec}.u-success-light{color:#f5fff0}.u-error-light{color:#fef0f0}.u-info-light{color:#f4f4f5}.u-primary-light-bg{background-color:#ecf5ff}.u-warning-light-bg{background-color:#fdf6ec}.u-success-light-bg{background-color:#f5fff0}.u-error-light-bg{background-color:#fef0f0}.u-info-light-bg{background-color:#f4f4f5}.u-primary-dark{color:#398ade}.u-warning-dark{color:#f1a532}.u-success-dark{color:#53c21d}.u-error-dark{color:#e45656}.u-info-dark{color:#767a82}.u-primary-dark-bg{background-color:#398ade}.u-warning-dark-bg{background-color:#f1a532}.u-success-dark-bg{background-color:#53c21d}.u-error-dark-bg{background-color:#e45656}.u-info-dark-bg{background-color:#767a82}.u-primary-disabled{color:#9acafc}.u-warning-disabled{color:#f9d39b}.u-success-disabled{color:#a9e08f}.u-error-disabled{color:#f7b2b2}.u-info-disabled{color:#c4c6c9}.u-primary{color:#3c9cff}.u-warning{color:#f9ae3d}.u-success{color:#5ac725}.u-error{color:#f56c6c}.u-info{color:#909399}.u-primary-bg{background-color:#3c9cff}.u-warning-bg{background-color:#f9ae3d}.u-success-bg{background-color:#5ac725}.u-error-bg{background-color:#f56c6c}.u-info-bg{background-color:#909399}.u-main-color{color:#303133}.u-content-color{color:#606266}.u-tips-color{color:#909193}.u-light-color{color:#c0c4cc}.u-safe-area-inset-top{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}\nuni-toast{z-index:10090}uni-toast .uni-toast{z-index:10090}\n::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}body{background-color:#f3f4f6}',""]),e["default"]=u}},e={};function o(t){var i=e[t];if(void 0!==i)return i.exports;var r=e[t]={id:t,loaded:!1,exports:{}};return n[t].call(r.exports,r,r.exports,o),r.loaded=!0,r.exports}o.m=n,function(){o.amdD=function(){throw new Error("define cannot be used indirect")}}(),function(){var n=[];o.O=function(e,t,i,r){if(!t){var a=1/0;for(l=0;l=r)&&Object.keys(o.O).every((function(n){return o.O[n](t[c])}))?t.splice(c--,1):(u=!1,r0&&n[l-1][2]>r;l--)n[l]=n[l-1];n[l]=[t,i,r]}}(),function(){o.n=function(n){var e=n&&n.__esModule?function(){return n["default"]}:function(){return n};return o.d(e,{a:e}),e}}(),function(){o.d=function(n,e){for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})}}(),function(){o.f={},o.e=function(n){return Promise.all(Object.keys(o.f).reduce((function(e,t){return o.f[t](n,e),e}),[]))}}(),function(){o.u=function(n){return"static/js/"+({58:"pages-index-index",487:"pages-record-detail",492:"pages-record-index",545:"pages-index-welcome",607:"pages-login-index",810:"pages-patient-detail",905:"pages-user-index",913:"pages-register-index"}[n]||n)+"."+{56:"8a0d84b8",58:"5bec1417",93:"8e102193",102:"03435c48",125:"0b6c7a32",202:"7e8e9e5c",241:"ca33bc23",297:"0381efa6",344:"bc29a90f",487:"7f5c9b4c",492:"8e7cbbf3",545:"2b4587f4",607:"238b6ee6",787:"ef344ac6",810:"ab48b8d6",905:"652d1e65",913:"2344e4b7",981:"925b79b6"}[n]+".js"}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"===typeof window)return window}}()}(),function(){o.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}}(),function(){var n={},e="uniapp:";o.l=function(t,i,r,a){if(n[t])n[t].push(i);else{var u,c;if(void 0!==r)for(var d=document.getElementsByTagName("script"),l=0;l=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),G(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;G(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}}}]); \ No newline at end of file +o=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),u=new T(n||[]);return a(i,"_invoke",{value:Z(t,r,u)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",v="suspendedYield",y="executing",g="completed",m={};function w(){}function x(){}function b(){}var _={};f(_,c,(function(){return this}));var L=Object.getPrototypeOf,E=L&&L(L(N([])));E&&E!==r&&i.call(E,c)&&(_=E);var k=b.prototype=w.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,u,c){var s=p(t[o],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.Z)(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):e.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return r("throw",t,u,c)}))}c(s.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function Z(e,r,n){var o=d;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=j(u,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?g:v,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=g,n.method="throw",n.arg=s.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(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 G(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),G(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;G(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}}}]); \ No newline at end of file diff --git a/public/client/static/js/pages-record-index.8e7cbbf3.js b/public/client/static/js/pages-record-index.8e7cbbf3.js new file mode 100644 index 0000000..8a26c59 --- /dev/null +++ b/public/client/static/js/pages-record-index.8e7cbbf3.js @@ -0,0 +1 @@ +(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[492],{5047:function(t,e,i){var n=i(2862);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var s=i(5472).Z;s("39145137",n,!0,{sourceMap:!1,shadowMode:!1})},7995:function(t,e,i){var n=i(6620);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var s=i(5472).Z;s("67543b74",n,!0,{sourceMap:!1,shadowMode:!1})},928:function(t,e,i){var n=i(1169);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var s=i(5472).Z;s("3dede4f9",n,!0,{sourceMap:!1,shadowMode:!1})},8556:function(t,e,i){"use strict";var n;i.d(e,{Z:function(){return d}});var s,l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{ref:"u-list-item-"+t.anchor,staticClass:"u-list-item",class:["u-list-item-"+t.anchor],attrs:{anchor:"u-list-item-"+t.anchor}},[t._t("default")],2)},a=[],o={props:{anchor:{type:[String,Number],default:uni.$u.props.listItem.anchor}}},r={name:"u-list-item",mixins:[uni.$u.mpMixin,uni.$u.mixin,o],data(){return{rect:{},index:0,show:!0,sys:uni.$u.sys()}},computed:{},inject:["uList"],watch:{"uList.innerScrollTop"(t){const e=this.uList.preLoadScreen,i=this.sys.windowHeight;t<=i*e?this.parent.updateOffsetFromChild(0):this.rect.top<=t-i*e&&this.parent.updateOffsetFromChild(this.rect.top)}},created(){this.parent={}},mounted(){this.init()},methods:{init(){this.updateParentData(),this.index=this.parent.children.indexOf(this),this.resize()},updateParentData(){this.getParentData("u-list")},resize(){this.queryRect(`u-list-item-${this.anchor}`).then((t=>{const e=this.parent.children[this.index-1];this.rect=t;const i=this.uList.preLoadScreen,n=this.sys.windowHeight;e&&(this.rect.top=e.rect.top+e.rect.height),t.top>=this.uList.innerScrollTop+(1+i)*n&&(this.show=!1)}))},queryRect(t){return new Promise((e=>{this.$uGetRect(`.${t}`).then((t=>{e(t)}))}))}}},u=r,p=(i(7995),i(1503)),c=(0,p.Z)(u,l,a,!1,null,"1727a615",null,!1,n,s),d=c.exports},4307:function(t,e,i){"use strict";var n;i.d(e,{Z:function(){return d}});var s,l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-scroll-view",{staticClass:"u-list",style:[t.listStyle],attrs:{"scroll-into-view":t.scrollIntoView,"scroll-y":!0,"scroll-top":Number(t.scrollTop),"lower-threshold":Number(t.lowerThreshold),"upper-threshold":Number(t.upperThreshold),"show-scrollbar":t.showScrollbar,"enable-back-to-top":t.enableBackToTop,"scroll-with-animation":t.scrollWithAnimation},on:{scroll:function(e){arguments[0]=e=t.$handleEvent(e),t.onScroll.apply(void 0,arguments)},scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltolower.apply(void 0,arguments)},scrolltoupper:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltoupper.apply(void 0,arguments)}}},[i("v-uni-view",[t._t("default")],2)],1)},a=[],o={props:{showScrollbar:{type:Boolean,default:uni.$u.props.list.showScrollbar},lowerThreshold:{type:[String,Number],default:uni.$u.props.list.lowerThreshold},upperThreshold:{type:[String,Number],default:uni.$u.props.list.upperThreshold},scrollTop:{type:[String,Number],default:uni.$u.props.list.scrollTop},offsetAccuracy:{type:[String,Number],default:uni.$u.props.list.offsetAccuracy},enableFlex:{type:Boolean,default:uni.$u.props.list.enableFlex},pagingEnabled:{type:Boolean,default:uni.$u.props.list.pagingEnabled},scrollable:{type:Boolean,default:uni.$u.props.list.scrollable},scrollIntoView:{type:String,default:uni.$u.props.list.scrollIntoView},scrollWithAnimation:{type:Boolean,default:uni.$u.props.list.scrollWithAnimation},enableBackToTop:{type:Boolean,default:uni.$u.props.list.enableBackToTop},height:{type:[String,Number],default:uni.$u.props.list.height},width:{type:[String,Number],default:uni.$u.props.list.width},preLoadScreen:{type:[String,Number],default:uni.$u.props.list.preLoadScreen}}},r={name:"u-list",mixins:[uni.$u.mpMixin,uni.$u.mixin,o],watch:{scrollIntoView(t){this.scrollIntoViewById(t)}},data(){return{innerScrollTop:0,offset:0,sys:uni.$u.sys()}},computed:{listStyle(){const t={},e=uni.$u.addUnit;return 0!=this.width&&(t.width=e(this.width)),0!=this.height&&(t.height=e(this.height)),t.height||(t.height=e(this.sys.windowHeight,"px")),uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}},provide(){return{uList:this}},created(){this.refs=[],this.children=[],this.anchors=[]},mounted(){},methods:{updateOffsetFromChild(t){this.offset=t},onScroll(t){let e=0;e=t.detail.scrollTop,this.innerScrollTop=e,this.$emit("scroll",Math.abs(e))},scrollIntoViewById(t){},scrolltolower(t){uni.$u.sleep(30).then((()=>{this.$emit("scrolltolower")}))},scrolltoupper(t){uni.$u.sleep(30).then((()=>{this.$emit("scrolltoupper"),this.offset=0}))}}},u=r,p=(i(928),i(1503)),c=(0,p.Z)(u,l,a,!1,null,"390d4fd5",null,!1,n,s),d=c.exports},416:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return c}});var n,s={uList:i(4307).Z,uListItem:i(8556).Z,uCell:i(7981).Z},l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page"},[i("v-uni-view",{staticClass:"list"},[i("u-list",{attrs:{height:t.listHeight},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.reachBottom.apply(void 0,arguments)}}},t._l(t.list,(function(e){return i("u-list-item",{key:e.id},[i("u-cell",{attrs:{size:"large",url:"/pages/record/detail?id="+e.id}},[i("v-uni-view",{staticClass:"title",attrs:{slot:"title"},slot:"title"},[i("v-uni-view",{staticClass:"list-item-title"},[t._v("患者: "+t._s(e.patient?e.patient.name:""))])],1),i("v-uni-view",{staticClass:"label",attrs:{slot:"label"},slot:"label"},[t._v("时间: "+t._s(e.treat_at))])],1)],1)})),1)],1)],1)},a=[],o=(i(6228),{data:function(){return{patient_id:"",patient:{},page:1,perPage:20,list:[],option:{id:"",show:!1,list:[{name:"详细",color:"#4cd964",action:"detail"},{name:"修改",color:"#007aff",action:"edit"},{name:"删除",color:"#dd524d",action:"delete"}],title:""},swipeOption:[{text:"删除",style:{backgroundColor:"#dd524d"}}],listHeight:0}},onLoad:function(t){var e=this;this.patient_id=t.patient,uni.getSystemInfo({success:function(t){e.listHeight=t.safeArea.height-20}}),this.loadData(!0)},onPullDownRefresh:function(){this.loadData(!0)},methods:{loadData:function(t){var e=this;t&&(this.list=[],this.page=1),uni.showLoading();var i={page:this.page,perPage:this.perPage,patient_id:this.patient_id};this.$ajax.get("/api/client/record",{params:i}).then((function(t){uni.stopPullDownRefresh(),0==t.status&&(e.list=e.list.concat(t.data.items),e.total=t.data.total)})).catch((function(t){uni.stopPullDownRefresh()}))},reachBottom:function(){this.list.length{const e=this.parent.children[this.index-1];this.rect=t;const i=this.uList.preLoadScreen,n=this.sys.windowHeight;e&&(this.rect.top=e.rect.top+e.rect.height),t.top>=this.uList.innerScrollTop+(1+i)*n&&(this.show=!1)}))},queryRect(t){return new Promise((e=>{this.$uGetRect(`.${t}`).then((t=>{e(t)}))}))}}},u=r,c=(i(7995),i(1503)),p=(0,c.Z)(u,l,o,!1,null,"1727a615",null,!1,n,s),d=p.exports},4307:function(t,e,i){"use strict";var n;i.d(e,{Z:function(){return d}});var s,l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-scroll-view",{staticClass:"u-list",style:[t.listStyle],attrs:{"scroll-into-view":t.scrollIntoView,"scroll-y":!0,"scroll-top":Number(t.scrollTop),"lower-threshold":Number(t.lowerThreshold),"upper-threshold":Number(t.upperThreshold),"show-scrollbar":t.showScrollbar,"enable-back-to-top":t.enableBackToTop,"scroll-with-animation":t.scrollWithAnimation},on:{scroll:function(e){arguments[0]=e=t.$handleEvent(e),t.onScroll.apply(void 0,arguments)},scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltolower.apply(void 0,arguments)},scrolltoupper:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltoupper.apply(void 0,arguments)}}},[i("v-uni-view",[t._t("default")],2)],1)},o=[],a={props:{showScrollbar:{type:Boolean,default:uni.$u.props.list.showScrollbar},lowerThreshold:{type:[String,Number],default:uni.$u.props.list.lowerThreshold},upperThreshold:{type:[String,Number],default:uni.$u.props.list.upperThreshold},scrollTop:{type:[String,Number],default:uni.$u.props.list.scrollTop},offsetAccuracy:{type:[String,Number],default:uni.$u.props.list.offsetAccuracy},enableFlex:{type:Boolean,default:uni.$u.props.list.enableFlex},pagingEnabled:{type:Boolean,default:uni.$u.props.list.pagingEnabled},scrollable:{type:Boolean,default:uni.$u.props.list.scrollable},scrollIntoView:{type:String,default:uni.$u.props.list.scrollIntoView},scrollWithAnimation:{type:Boolean,default:uni.$u.props.list.scrollWithAnimation},enableBackToTop:{type:Boolean,default:uni.$u.props.list.enableBackToTop},height:{type:[String,Number],default:uni.$u.props.list.height},width:{type:[String,Number],default:uni.$u.props.list.width},preLoadScreen:{type:[String,Number],default:uni.$u.props.list.preLoadScreen}}},r={name:"u-list",mixins:[uni.$u.mpMixin,uni.$u.mixin,a],watch:{scrollIntoView(t){this.scrollIntoViewById(t)}},data(){return{innerScrollTop:0,offset:0,sys:uni.$u.sys()}},computed:{listStyle(){const t={},e=uni.$u.addUnit;return 0!=this.width&&(t.width=e(this.width)),0!=this.height&&(t.height=e(this.height)),t.height||(t.height=e(this.sys.windowHeight,"px")),uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}},provide(){return{uList:this}},created(){this.refs=[],this.children=[],this.anchors=[]},mounted(){},methods:{updateOffsetFromChild(t){this.offset=t},onScroll(t){let e=0;e=t.detail.scrollTop,this.innerScrollTop=e,this.$emit("scroll",Math.abs(e))},scrollIntoViewById(t){},scrolltolower(t){uni.$u.sleep(30).then((()=>{this.$emit("scrolltolower")}))},scrolltoupper(t){uni.$u.sleep(30).then((()=>{this.$emit("scrolltoupper"),this.offset=0}))}}},u=r,c=(i(928),i(1503)),p=(0,c.Z)(u,l,o,!1,null,"390d4fd5",null,!1,n,s),d=p.exports},4102:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return p}});var n,s={uList:i(4307).Z,uListItem:i(8556).Z,uCell:i(7981).Z},l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page"},[i("v-uni-view",{staticClass:"list"},[i("u-list",{attrs:{height:t.listHeight},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.reachBottom.apply(void 0,arguments)}}},t._l(t.list,(function(e){return i("u-list-item",{key:e.id},[i("u-cell",{attrs:{size:"large",url:"/pages/record/detail?id="+e.id}},[i("v-uni-view",{staticClass:"title",attrs:{slot:"title"},slot:"title"},[i("v-uni-view",{staticClass:"list-item-title"},[t._v("医师: "+t._s(e.doctor?e.doctor.name:""))])],1),i("v-uni-view",{staticClass:"label",attrs:{slot:"label"},slot:"label"},[t._v("时间: "+t._s(e.treat_at))])],1)],1)})),1)],1)],1)},o=[],a=(i(6228),{data:function(){return{patient_id:"",patient:{},page:1,perPage:20,list:[],option:{id:"",show:!1,list:[{name:"详细",color:"#4cd964",action:"detail"},{name:"修改",color:"#007aff",action:"edit"},{name:"删除",color:"#dd524d",action:"delete"}],title:""},swipeOption:[{text:"删除",style:{backgroundColor:"#dd524d"}}],listHeight:0}},onLoad:function(t){var e=this;this.patient_id=t.patient,uni.getSystemInfo({success:function(t){e.listHeight=t.safeArea.height-20}}),this.loadData(!0)},onPullDownRefresh:function(){this.loadData(!0)},methods:{loadData:function(t){var e=this;t&&(this.list=[],this.page=1),uni.showLoading();var i={page:this.page,perPage:this.perPage,patient_id:this.patient_id};this.$ajax.get("/api/client/record",{params:i}).then((function(t){uni.stopPullDownRefresh(),0==t.status&&(e.list=e.list.concat(t.data.items),e.total=t.data.total)})).catch((function(t){uni.stopPullDownRefresh()}))},reachBottom:function(){this.list.lengtht.length?-1:""===e?n:t.indexOf(e,n)};o({target:"String",proto:!0},{replaceAll:function(t,e){var n,o,u,h,v,m,y,g,_,w=r(this),x=0,b=0,k="";if(null!=t){if(n=a(t),n&&(o=String(r("flags"in d?t.flags:i.call(t))),!~o.indexOf("g")))throw TypeError("`.replaceAll` does not allow non-global regexes");if(u=t[s],void 0!==u)return u.call(t,w,e);if(c&&n)return String(w).replace(t,e)}h=String(w),v=String(t),m="function"===typeof e,m||(e=String(e)),y=v.length,g=p(1,y),x=f(h,v,0);while(-1!==x)_=m?String(e(v,x,h)):l(v,h,x,[],void 0,e),k+=h.slice(b,x)+_,b=x+y,x=f(h,v,x+g);return bt.length?-1:""===e?n:t.indexOf(e,n)};o({target:"String",proto:!0},{replaceAll:function(t,e){var n,o,u,h,v,m,y,g,_,w=r(this),x=0,b=0,k="";if(null!=t){if(n=a(t),n&&(o=String(r("flags"in d?t.flags:i.call(t))),!~o.indexOf("g")))throw TypeError("`.replaceAll` does not allow non-global regexes");if(u=t[s],void 0!==u)return u.call(t,w,e);if(c&&n)return String(w).replace(t,e)}h=String(w),v=String(t),m="function"===typeof e,m||(e=String(e)),y=v.length,g=p(1,y),x=f(h,v,0);while(-1!==x)_=m?String(e(v,x,h)):l(v,h,x,[],void 0,e),k+=h.slice(b,x)+_,b=x+y,x=f(h,v,x+g);return b=0;--r){var i=this.tryEntries[r],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),Z(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;Z(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,o){return this.delegate={iterator:j(e),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=t),g}},e}}}]); \ No newline at end of file diff --git a/public/h5/index.html b/public/h5/index.html index ccc5ca8..8572287 100644 --- a/public/h5/index.html +++ b/public/h5/index.html @@ -1,2 +1,2 @@ 宝芝堂
\ No newline at end of file + document.write('')
\ No newline at end of file diff --git a/public/h5/static/js/37.9026f80e.js b/public/h5/static/js/37.1402b8e6.js similarity index 96% rename from public/h5/static/js/37.9026f80e.js rename to public/h5/static/js/37.1402b8e6.js index 9b4e4e3..a145d55 100644 --- a/public/h5/static/js/37.9026f80e.js +++ b/public/h5/static/js/37.1402b8e6.js @@ -1 +1 @@ -(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[37],{8397:function(t,i,e){var n=e(205);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var a=e(5472).Z;a("4ee8f5ee",n,!0,{sourceMap:!1,shadowMode:!1})},3094:function(t,i,e){"use strict";e.d(i,{Z:function(){return p}});var n,a={uLoadingIcon:e(8264).Z},s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"u-switch",class:[t.disabled&&"u-switch--disabled"],style:[t.switchStyle,t.$u.addStyle(t.customStyle)],on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.clickHandler.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"u-switch__bg",style:[t.bgStyle]}),e("v-uni-view",{ref:"u-switch__node",staticClass:"u-switch__node",class:[t.value&&"u-switch__node--on"],style:[t.nodeStyle]},[e("u-loading-icon",{attrs:{show:t.loading,mode:"circle",timingFunction:"linear",color:t.value?t.activeColor:"#AAABAD",size:.6*t.size}})],1)],1)},o=[],r={props:{loading:{type:Boolean,default:uni.$u.props.switch.loading},disabled:{type:Boolean,default:uni.$u.props.switch.disabled},size:{type:[String,Number],default:uni.$u.props.switch.size},activeColor:{type:String,default:uni.$u.props.switch.activeColor},inactiveColor:{type:String,default:uni.$u.props.switch.inactiveColor},value:{type:[Boolean,String,Number],default:uni.$u.props.switch.value},activeValue:{type:[String,Number,Boolean],default:uni.$u.props.switch.activeValue},inactiveValue:{type:[String,Number,Boolean],default:uni.$u.props.switch.inactiveValue},asyncChange:{type:Boolean,default:uni.$u.props.switch.asyncChange},space:{type:[String,Number],default:uni.$u.props.switch.space}}},u={name:"u-switch",mixins:[uni.$u.mpMixin,uni.$u.mixin,r],watch:{value:{immediate:!0,handler(t){t!==this.inactiveValue&&t!==this.activeValue&&uni.$u.error("v-model绑定的值必须为inactiveValue、activeValue二者之一")}}},data(){return{bgColor:"#ffffff"}},computed:{isActive(){return this.value===this.activeValue},switchStyle(){let t={};return t.width=uni.$u.addUnit(2*this.size+2),t.height=uni.$u.addUnit(Number(this.size)+2),this.customInactiveColor&&(t.borderColor="rgba(0, 0, 0, 0)"),t.backgroundColor=this.isActive?this.activeColor:this.inactiveColor,t},nodeStyle(){let t={};t.width=uni.$u.addUnit(this.size-this.space),t.height=uni.$u.addUnit(this.size-this.space);const i=this.isActive?uni.$u.addUnit(this.space):uni.$u.addUnit(this.size);return t.transform=`translateX(-${i})`,t},bgStyle(){let t={};return t.width=uni.$u.addUnit(2*Number(this.size)-this.size/2),t.height=uni.$u.addUnit(this.size),t.backgroundColor=this.inactiveColor,t.transform=`scale(${this.isActive?0:1})`,t},customInactiveColor(){return"#fff"!==this.inactiveColor&&"#ffffff"!==this.inactiveColor}},methods:{clickHandler(){if(!this.disabled&&!this.loading){const t=this.isActive?this.inactiveValue:this.activeValue;this.asyncChange||this.$emit("input",t),this.$nextTick((()=>{this.$emit("change",t)}))}}}},c=u,l=(e(8397),e(1503)),d=(0,l.Z)(c,s,o,!1,null,"a206101c",null,!1,a,n),p=d.exports},7438:function(t,i,e){"use strict";e(5827),e(6007),e(444);var n={none:{value:0,text:"未收"},success:{value:1,text:"已收"},options:[],map:{}};Object.keys(n).forEach((function(t){void 0!==n[t]&&void 0!==n[t].value&&(n.options.push({name:n[t].text,value:n[t].value}),n.map[n[t].value]=n[t].text)})),i.Z=n},205:function(t,i,e){"use strict";e.r(i);var n=e(2916),a=e.n(n),s=e(3282),o=e.n(s),r=o()(a());r.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-a206101c], uni-scroll-view[data-v-a206101c], uni-swiper-item[data-v-a206101c]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-switch[data-v-a206101c]{\ndisplay:flex;\nflex-direction:row;box-sizing:border-box;position:relative;background-color:#fff;border-width:1px;border-radius:100px;transition:background-color .4s;border-color:rgba(0,0,0,.12);border-style:solid;justify-content:flex-end;align-items:center;overflow:hidden}.u-switch__node[data-v-a206101c]{\ndisplay:flex;\nflex-direction:row;align-items:center;justify-content:center;border-radius:100px;background-color:#fff;border-radius:100px;box-shadow:1px 1px 1px 0 rgba(0,0,0,.25);transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;transition-duration:.4s;transition-timing-function:cubic-bezier(.3,1.05,.4,1.05)}.u-switch__bg[data-v-a206101c]{position:absolute;border-radius:100px;background-color:#fff;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;transition-duration:.4s;border-top-left-radius:0;border-bottom-left-radius:0;transition-timing-function:ease}.u-switch--disabled[data-v-a206101c]{opacity:.6}',""]),i["default"]=r}}]); \ No newline at end of file +(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[37],{8397:function(t,i,e){var n=e(708);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var a=e(5472).Z;a("4ee8f5ee",n,!0,{sourceMap:!1,shadowMode:!1})},3094:function(t,i,e){"use strict";e.d(i,{Z:function(){return p}});var n,a={uLoadingIcon:e(8264).Z},s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"u-switch",class:[t.disabled&&"u-switch--disabled"],style:[t.switchStyle,t.$u.addStyle(t.customStyle)],on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.clickHandler.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"u-switch__bg",style:[t.bgStyle]}),e("v-uni-view",{ref:"u-switch__node",staticClass:"u-switch__node",class:[t.value&&"u-switch__node--on"],style:[t.nodeStyle]},[e("u-loading-icon",{attrs:{show:t.loading,mode:"circle",timingFunction:"linear",color:t.value?t.activeColor:"#AAABAD",size:.6*t.size}})],1)],1)},o=[],r={props:{loading:{type:Boolean,default:uni.$u.props.switch.loading},disabled:{type:Boolean,default:uni.$u.props.switch.disabled},size:{type:[String,Number],default:uni.$u.props.switch.size},activeColor:{type:String,default:uni.$u.props.switch.activeColor},inactiveColor:{type:String,default:uni.$u.props.switch.inactiveColor},value:{type:[Boolean,String,Number],default:uni.$u.props.switch.value},activeValue:{type:[String,Number,Boolean],default:uni.$u.props.switch.activeValue},inactiveValue:{type:[String,Number,Boolean],default:uni.$u.props.switch.inactiveValue},asyncChange:{type:Boolean,default:uni.$u.props.switch.asyncChange},space:{type:[String,Number],default:uni.$u.props.switch.space}}},u={name:"u-switch",mixins:[uni.$u.mpMixin,uni.$u.mixin,r],watch:{value:{immediate:!0,handler(t){t!==this.inactiveValue&&t!==this.activeValue&&uni.$u.error("v-model绑定的值必须为inactiveValue、activeValue二者之一")}}},data(){return{bgColor:"#ffffff"}},computed:{isActive(){return this.value===this.activeValue},switchStyle(){let t={};return t.width=uni.$u.addUnit(2*this.size+2),t.height=uni.$u.addUnit(Number(this.size)+2),this.customInactiveColor&&(t.borderColor="rgba(0, 0, 0, 0)"),t.backgroundColor=this.isActive?this.activeColor:this.inactiveColor,t},nodeStyle(){let t={};t.width=uni.$u.addUnit(this.size-this.space),t.height=uni.$u.addUnit(this.size-this.space);const i=this.isActive?uni.$u.addUnit(this.space):uni.$u.addUnit(this.size);return t.transform=`translateX(-${i})`,t},bgStyle(){let t={};return t.width=uni.$u.addUnit(2*Number(this.size)-this.size/2),t.height=uni.$u.addUnit(this.size),t.backgroundColor=this.inactiveColor,t.transform=`scale(${this.isActive?0:1})`,t},customInactiveColor(){return"#fff"!==this.inactiveColor&&"#ffffff"!==this.inactiveColor}},methods:{clickHandler(){if(!this.disabled&&!this.loading){const t=this.isActive?this.inactiveValue:this.activeValue;this.asyncChange||this.$emit("input",t),this.$nextTick((()=>{this.$emit("change",t)}))}}}},c=u,l=(e(8397),e(1503)),d=(0,l.Z)(c,s,o,!1,null,"a206101c",null,!1,a,n),p=d.exports},7438:function(t,i,e){"use strict";e(5827),e(6007),e(444);var n={none:{value:0,text:"未收"},success:{value:1,text:"已收"},options:[],map:{}};Object.keys(n).forEach((function(t){void 0!==n[t]&&void 0!==n[t].value&&(n.options.push({name:n[t].text,value:n[t].value}),n.map[n[t].value]=n[t].text)})),i.Z=n},708:function(t,i,e){"use strict";e.r(i);var n=e(2916),a=e.n(n),s=e(3282),o=e.n(s),r=o()(a());r.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-a206101c], uni-scroll-view[data-v-a206101c], uni-swiper-item[data-v-a206101c]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-switch[data-v-a206101c]{\ndisplay:flex;\nflex-direction:row;box-sizing:border-box;position:relative;background-color:#fff;border-width:1px;border-radius:100px;transition:background-color .4s;border-color:rgba(0,0,0,.12);border-style:solid;justify-content:flex-end;align-items:center;overflow:hidden}.u-switch__node[data-v-a206101c]{\ndisplay:flex;\nflex-direction:row;align-items:center;justify-content:center;border-radius:100px;background-color:#fff;border-radius:100px;box-shadow:1px 1px 1px 0 rgba(0,0,0,.25);transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;transition-duration:.4s;transition-timing-function:cubic-bezier(.3,1.05,.4,1.05)}.u-switch__bg[data-v-a206101c]{position:absolute;border-radius:100px;background-color:#fff;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;transition-duration:.4s;border-top-left-radius:0;border-bottom-left-radius:0;transition-timing-function:ease}.u-switch--disabled[data-v-a206101c]{opacity:.6}',""]),i["default"]=r}}]); \ No newline at end of file diff --git a/public/h5/static/js/787.ef344ac6.js b/public/h5/static/js/787.ef344ac6.js new file mode 100644 index 0000000..cd872a1 --- /dev/null +++ b/public/h5/static/js/787.ef344ac6.js @@ -0,0 +1 @@ +(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[787],{7304:function(e,t,n){var i=n(2727);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var u=n(5472).Z;u("6e323258",i,!0,{sourceMap:!1,shadowMode:!1})},1855:function(e,t,n){var i=n(7139);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var u=n(5472).Z;u("4e58467c",i,!0,{sourceMap:!1,shadowMode:!1})},3369:function(e,t,n){var i=n(3303);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var u=n(5472).Z;u("79ca4570",i,!0,{sourceMap:!1,shadowMode:!1})},1153:function(e,t,n){"use strict";var i;n.d(t,{Z:function(){return $}});var u,l,o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uvText",{attrs:{type:e.type,show:e.show,text:e.text,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon,mode:e.mode,href:e.href,format:e.format,call:e.call,openType:e.openType,bold:e.bold,block:e.block,lines:e.lines,color:e.color,decoration:e.decoration,size:e.size,iconStyle:e.iconStyle,margin:e.margin,lineHeight:e.lineHeight,align:e.align,wordWrap:e.wordWrap,customStyle:e.customStyle},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.$emit("click")}}})},a=[],r={uIcon:n(5862).Z,uLink:n(6663).Z},s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("v-uni-view",{staticClass:"u-text",class:[],style:{margin:e.margin,justifyContent:"left"===e.align?"flex-start":"center"===e.align?"center":"flex-end"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clickHandler.apply(void 0,arguments)}}},["price"===e.mode?n("v-uni-text",{class:["u-text__price",e.type&&"u-text__value--"+e.type],style:[e.valueStyle]},[e._v("¥")]):e._e(),e.prefixIcon?n("v-uni-view",{staticClass:"u-text__prefix-icon"},[n("u-icon",{attrs:{name:e.prefixIcon,customStyle:e.$u.addStyle(e.iconStyle)}})],1):e._e(),"link"===e.mode?n("u-link",{attrs:{text:e.value,href:e.href,underLine:!0}}):e.openType&&e.isMp?[n("v-uni-button",{staticClass:"u-reset-button u-text__value",style:[e.valueStyle],attrs:{"data-index":e.index,openType:e.openType,lang:e.lang,"session-from":e.sessionFrom,"send-message-title":e.sendMessageTitle,"send-message-path":e.sendMessagePath,"send-message-img":e.sendMessageImg,"show-message-card":e.showMessageCard,"app-parameter":e.appParameter},on:{getuserinfo:function(t){arguments[0]=t=e.$handleEvent(t),e.onGetUserInfo.apply(void 0,arguments)},contact:function(t){arguments[0]=t=e.$handleEvent(t),e.onContact.apply(void 0,arguments)},getphonenumber:function(t){arguments[0]=t=e.$handleEvent(t),e.onGetPhoneNumber.apply(void 0,arguments)},error:function(t){arguments[0]=t=e.$handleEvent(t),e.onError.apply(void 0,arguments)},launchapp:function(t){arguments[0]=t=e.$handleEvent(t),e.onLaunchApp.apply(void 0,arguments)},opensetting:function(t){arguments[0]=t=e.$handleEvent(t),e.onOpenSetting.apply(void 0,arguments)}}},[e._v(e._s(e.value))])]:n("v-uni-text",{staticClass:"u-text__value",class:[e.type&&"u-text__value--"+e.type,e.lines&&"u-line-"+e.lines],style:[e.valueStyle]},[e._v(e._s(e.value))]),e.suffixIcon?n("v-uni-view",{staticClass:"u-text__suffix-icon"},[n("u-icon",{attrs:{name:e.suffixIcon,customStyle:e.$u.addStyle(e.iconStyle)}})],1):e._e()],2):e._e()},p=[],c={computed:{value(){const{text:e,mode:t,format:n,href:i}=this;return"price"===t?(/^\d+(\.\d+)?$/.test(e)||uni.$u.error("金额模式下,text参数需要为金额格式"),uni.$u.test.func(n)?n(e):uni.$u.priceFormat(e,2)):"date"===t?(!uni.$u.test.date(e)&&uni.$u.error("日期模式下,text参数需要为日期或时间戳格式"),uni.$u.test.func(n)?n(e):n?uni.$u.timeFormat(e,n):uni.$u.timeFormat(e,"yyyy-mm-dd")):"phone"===t?uni.$u.test.func(n)?n(e):"encrypt"===n?`${e.substr(0,3)}****${e.substr(7)}`:e:"name"===t?("string"!==typeof e&&uni.$u.error("姓名模式下,text参数需要为字符串格式"),uni.$u.test.func(n)?n(e):"encrypt"===n?this.formatName(e):e):"link"===t?(!uni.$u.test.url(i)&&uni.$u.error("超链接模式下,href参数需要为URL格式"),e):e}},methods:{formatName(e){let t="";if(2===e.length)t=e.substr(0,1)+"*";else if(e.length>2){let n="";for(let t=0,i=e.length-2;t0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd HH:mm:ss";if(!e)return"";n=e?/^\d{10}$/.test(e.toString().trim())?new Date(1e3*e):"string"===typeof e&&/^\d+$/.test(e.trim())?new Date(Number(e)):new Date("string"===typeof e?e.replace(/-/g,"/"):e):new Date;var t={y:n.getFullYear().toString(),M:(n.getMonth()+1).toString().padStart(2,"0"),d:n.getDate().toString().padStart(2,"0"),H:n.getHours().toString().padStart(2,"0"),m:n.getMinutes().toString().padStart(2,"0"),s:n.getSeconds().toString().padStart(2,"0")};for(var i in t){var r=new RegExp("".concat(i,"+")).exec(o)||[],a=(0,b.Z)(r,1),u=a[0];if(u){var c="y"===i&&2===u.length?2:0;o=o.replace(u,t[i].slice(c))}}return o}i["default"].config.productionTip=!1,i["default"].use(m.Z),i["default"].filter("date",(function(n,e){return e||(e="yyyy-MM-dd HH:mm:ss"),_(n,e)})),i["default"].config.productionTip=!1,f.mpType="app";var y=new i["default"]((0,t.Z)({},f));o(926)(),i["default"].prototype.$ajax=uni.$u.http,y.$mount()},7846:function(n,e,o){var t=o(3087)["default"];o(5827),uni.addInterceptor({returnValue:function(n){return!n||"object"!==t(n)&&"function"!==typeof n||"function"!==typeof n.then?n:new Promise((function(e,o){n.then((function(n){return n[0]?o(n[0]):e(n[1])}))}))}})},926:function(n,e,o){o(5827),n.exports=function(){uni.$u.http.setConfig((function(n){return n.baseURL="http://www.xbzt.cc",n.custom={toast:!0,loading:!1},n})),uni.$u.http.interceptors.request.use((function(n){var e=uni.getStorageSync("medical_record_auth_token");return e&&(n.header["Authorization"]="Bearer ".concat(e)),n.header["Accept"]="application/json",n.custom.loading&&uni.showLoading(),n}),(function(n){return Promise.reject(n)})),uni.$u.http.interceptors.response.use((function(n){uni.hideLoading();var e=n.data;return n.config.custom.toast&&0!=e.status&&1!=e.doNotDisplayToast&&uni.showModal({title:e.msg,showCancel:!1}),401==e.code&&uni.reLaunch({url:"/pages/login/login"}),e}),(function(n){return uni.hideLoading(),Promise.reject(n)}))}},8703:function(n,e,o){"use strict";o.r(e);var t=o(2916),i=o.n(t),r=o(3282),a=o.n(r),u=a()(i());u.push([n.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/* 文章场景相关 */\n/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */.u-line-1{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important\n}.u-line-2{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important\n}.u-line-3{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important\n}.u-line-4{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important\n}.u-line-5{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important\n}.u-border{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button{padding:0;background-color:initial;\nfont-size:inherit;line-height:inherit;color:inherit;\n}\n.u-reset-button::after{border:none}\n.u-hover-class{opacity:.7}.u-primary-light{color:#ecf5ff}.u-warning-light{color:#fdf6ec}.u-success-light{color:#f5fff0}.u-error-light{color:#fef0f0}.u-info-light{color:#f4f4f5}.u-primary-light-bg{background-color:#ecf5ff}.u-warning-light-bg{background-color:#fdf6ec}.u-success-light-bg{background-color:#f5fff0}.u-error-light-bg{background-color:#fef0f0}.u-info-light-bg{background-color:#f4f4f5}.u-primary-dark{color:#398ade}.u-warning-dark{color:#f1a532}.u-success-dark{color:#53c21d}.u-error-dark{color:#e45656}.u-info-dark{color:#767a82}.u-primary-dark-bg{background-color:#398ade}.u-warning-dark-bg{background-color:#f1a532}.u-success-dark-bg{background-color:#53c21d}.u-error-dark-bg{background-color:#e45656}.u-info-dark-bg{background-color:#767a82}.u-primary-disabled{color:#9acafc}.u-warning-disabled{color:#f9d39b}.u-success-disabled{color:#a9e08f}.u-error-disabled{color:#f7b2b2}.u-info-disabled{color:#c4c6c9}.u-primary{color:#3c9cff}.u-warning{color:#f9ae3d}.u-success{color:#5ac725}.u-error{color:#f56c6c}.u-info{color:#909399}.u-primary-bg{background-color:#3c9cff}.u-warning-bg{background-color:#f9ae3d}.u-success-bg{background-color:#5ac725}.u-error-bg{background-color:#f56c6c}.u-info-bg{background-color:#909399}.u-main-color{color:#303133}.u-content-color{color:#606266}.u-tips-color{color:#909193}.u-light-color{color:#c0c4cc}.u-safe-area-inset-top{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}\nuni-toast{z-index:10090}uni-toast .uni-toast{z-index:10090}\n::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}body{background-color:#f3f4f6}',""]),e["default"]=u}},e={};function o(t){var i=e[t];if(void 0!==i)return i.exports;var r=e[t]={id:t,loaded:!1,exports:{}};return n[t].call(r.exports,r,r.exports,o),r.loaded=!0,r.exports}o.m=n,function(){o.amdD=function(){throw new Error("define cannot be used indirect")}}(),function(){var n=[];o.O=function(e,t,i,r){if(!t){var a=1/0;for(l=0;l=r)&&Object.keys(o.O).every((function(n){return o.O[n](t[c])}))?t.splice(c--,1):(u=!1,r0&&n[l-1][2]>r;l--)n[l]=n[l-1];n[l]=[t,i,r]}}(),function(){o.n=function(n){var e=n&&n.__esModule?function(){return n["default"]}:function(){return n};return o.d(e,{a:e}),e}}(),function(){o.d=function(n,e){for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})}}(),function(){o.f={},o.e=function(n){return Promise.all(Object.keys(o.f).reduce((function(e,t){return o.f[t](n,e),e}),[]))}}(),function(){o.u=function(n){return"static/js/"+({58:"pages-index-index",225:"pages-patient-index",449:"pages-login-login",487:"pages-record-detail",492:"pages-record-index",545:"pages-index-welcome",611:"pages-patient-form",668:"pages-record-form",810:"pages-patient-detail"}[n]||n)+"."+{30:"7b4523bf",35:"aa39851c",37:"9026f80e",58:"c3e7c321",159:"672f40f9",225:"e1090ae7",268:"22e1db63",356:"4b9acf26",432:"318d7fe6",449:"37904698",487:"adbfbe50",492:"11521a89",545:"9d00bff3",611:"d1ce29f4",668:"b05fe531",695:"9e93b8ed",696:"af72a6ec",810:"b5420eae",885:"deb7a36f",981:"925b79b6"}[n]+".js"}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"===typeof window)return window}}()}(),function(){o.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}}(),function(){var n={},e="uniapp:";o.l=function(t,i,r,a){if(n[t])n[t].push(i);else{var u,c;if(void 0!==r)for(var d=document.getElementsByTagName("script"),l=0;l0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd HH:mm:ss";if(!e)return"";n=e?/^\d{10}$/.test(e.toString().trim())?new Date(1e3*e):"string"===typeof e&&/^\d+$/.test(e.trim())?new Date(Number(e)):new Date("string"===typeof e?e.replace(/-/g,"/"):e):new Date;var t={y:n.getFullYear().toString(),M:(n.getMonth()+1).toString().padStart(2,"0"),d:n.getDate().toString().padStart(2,"0"),H:n.getHours().toString().padStart(2,"0"),m:n.getMinutes().toString().padStart(2,"0"),s:n.getSeconds().toString().padStart(2,"0")};for(var i in t){var r=new RegExp("".concat(i,"+")).exec(o)||[],a=(0,b.Z)(r,1),u=a[0];if(u){var c="y"===i&&2===u.length?2:0;o=o.replace(u,t[i].slice(c))}}return o}i["default"].config.productionTip=!1,i["default"].use(m.Z),i["default"].filter("date",(function(n,e){return e||(e="yyyy-MM-dd HH:mm:ss"),_(n,e)})),i["default"].config.productionTip=!1,f.mpType="app";var y=new i["default"]((0,t.Z)({},f));o(926)(),i["default"].prototype.$ajax=uni.$u.http,y.$mount()},7846:function(n,e,o){var t=o(3087)["default"];o(5827),uni.addInterceptor({returnValue:function(n){return!n||"object"!==t(n)&&"function"!==typeof n||"function"!==typeof n.then?n:new Promise((function(e,o){n.then((function(n){return n[0]?o(n[0]):e(n[1])}))}))}})},926:function(n,e,o){o(5827),n.exports=function(){uni.$u.http.setConfig((function(n){return n.baseURL="http://www.xbzt.cc",n.custom={toast:!0,loading:!1},n})),uni.$u.http.interceptors.request.use((function(n){var e=uni.getStorageSync("medical_record_auth_token");return e&&(n.header["Authorization"]="Bearer ".concat(e)),n.header["Accept"]="application/json",n.custom.loading&&uni.showLoading(),n}),(function(n){return Promise.reject(n)})),uni.$u.http.interceptors.response.use((function(n){uni.hideLoading();var e=n.data;return n.config.custom.toast&&0!=e.status&&1!=e.doNotDisplayToast&&uni.showModal({title:e.msg,showCancel:!1}),401==e.code&&uni.reLaunch({url:"/pages/login/login"}),e}),(function(n){return uni.hideLoading(),Promise.reject(n)}))}},8703:function(n,e,o){"use strict";o.r(e);var t=o(2916),i=o.n(t),r=o(3282),a=o.n(r),u=a()(i());u.push([n.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/* 文章场景相关 */\n/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */.u-line-1{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important\n}.u-line-2{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important\n}.u-line-3{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important\n}.u-line-4{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important\n}.u-line-5{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important\n}.u-border{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button{padding:0;background-color:initial;\nfont-size:inherit;line-height:inherit;color:inherit;\n}\n.u-reset-button::after{border:none}\n.u-hover-class{opacity:.7}.u-primary-light{color:#ecf5ff}.u-warning-light{color:#fdf6ec}.u-success-light{color:#f5fff0}.u-error-light{color:#fef0f0}.u-info-light{color:#f4f4f5}.u-primary-light-bg{background-color:#ecf5ff}.u-warning-light-bg{background-color:#fdf6ec}.u-success-light-bg{background-color:#f5fff0}.u-error-light-bg{background-color:#fef0f0}.u-info-light-bg{background-color:#f4f4f5}.u-primary-dark{color:#398ade}.u-warning-dark{color:#f1a532}.u-success-dark{color:#53c21d}.u-error-dark{color:#e45656}.u-info-dark{color:#767a82}.u-primary-dark-bg{background-color:#398ade}.u-warning-dark-bg{background-color:#f1a532}.u-success-dark-bg{background-color:#53c21d}.u-error-dark-bg{background-color:#e45656}.u-info-dark-bg{background-color:#767a82}.u-primary-disabled{color:#9acafc}.u-warning-disabled{color:#f9d39b}.u-success-disabled{color:#a9e08f}.u-error-disabled{color:#f7b2b2}.u-info-disabled{color:#c4c6c9}.u-primary{color:#3c9cff}.u-warning{color:#f9ae3d}.u-success{color:#5ac725}.u-error{color:#f56c6c}.u-info{color:#909399}.u-primary-bg{background-color:#3c9cff}.u-warning-bg{background-color:#f9ae3d}.u-success-bg{background-color:#5ac725}.u-error-bg{background-color:#f56c6c}.u-info-bg{background-color:#909399}.u-main-color{color:#303133}.u-content-color{color:#606266}.u-tips-color{color:#909193}.u-light-color{color:#c0c4cc}.u-safe-area-inset-top{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}\nuni-toast{z-index:10090}uni-toast .uni-toast{z-index:10090}\n::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}body{background-color:#f3f4f6}',""]),e["default"]=u}},e={};function o(t){var i=e[t];if(void 0!==i)return i.exports;var r=e[t]={id:t,loaded:!1,exports:{}};return n[t].call(r.exports,r,r.exports,o),r.loaded=!0,r.exports}o.m=n,function(){o.amdD=function(){throw new Error("define cannot be used indirect")}}(),function(){var n=[];o.O=function(e,t,i,r){if(!t){var a=1/0;for(l=0;l=r)&&Object.keys(o.O).every((function(n){return o.O[n](t[c])}))?t.splice(c--,1):(u=!1,r0&&n[l-1][2]>r;l--)n[l]=n[l-1];n[l]=[t,i,r]}}(),function(){o.n=function(n){var e=n&&n.__esModule?function(){return n["default"]}:function(){return n};return o.d(e,{a:e}),e}}(),function(){o.d=function(n,e){for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})}}(),function(){o.f={},o.e=function(n){return Promise.all(Object.keys(o.f).reduce((function(e,t){return o.f[t](n,e),e}),[]))}}(),function(){o.u=function(n){return"static/js/"+({58:"pages-index-index",225:"pages-patient-index",449:"pages-login-login",487:"pages-record-detail",492:"pages-record-index",545:"pages-index-welcome",611:"pages-patient-form",668:"pages-record-form",810:"pages-patient-detail"}[n]||n)+"."+{30:"7b4523bf",35:"aa39851c",37:"1402b8e6",58:"487d3753",159:"672f40f9",225:"e1090ae7",268:"22e1db63",356:"4b9acf26",432:"318d7fe6",449:"37904698",487:"4d03253d",492:"11521a89",545:"9d00bff3",611:"d1ce29f4",668:"b05fe531",695:"9e93b8ed",696:"af72a6ec",787:"ef344ac6",810:"94c2e0e3",885:"deb7a36f",981:"925b79b6"}[n]+".js"}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"===typeof window)return window}}()}(),function(){o.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}}(),function(){var n={},e="uniapp:";o.l=function(t,i,r,a){if(n[t])n[t].push(i);else{var u,c;if(void 0!==r)for(var d=document.getElementsByTagName("script"),l=0;l=0}}},s=u,l=(e(4186),e(1503)),c=(0,l.Z)(s,i,r,!1,null,"4025ac66",null,!1,n,a),d=c.exports},6175:function(A,t,e){"use strict";e.r(t),e.d(t,{default:function(){return c}});var a,n={uCellGroup:e(156).Z,uCell:e(7981).Z,uAvatar:e(8125).Z,uEmpty:e(4555).Z,uButton:e(7344).Z},i=function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("v-uni-view",{staticClass:"page"},[e("v-uni-view",{staticClass:"info"},[e("u-cell-group",[e("u-cell",{attrs:{title:A.info.name}},[e("v-uni-view",{attrs:{slot:"icon"},slot:"icon"},[e("u-avatar",{attrs:{src:A.info.avatar}})],1)],1)],1)],1),e("v-uni-view",{staticClass:"btns"},[0==A.list.length?e("u-empty",{attrs:{mode:"list",text:"暂无分类"}}):A._e(),A._l(A.list,(function(t){return e("v-uni-view",{key:t.id,staticClass:"btn"},[e("u-button",{attrs:{icon:t.image,text:t.name,size:"large"},on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.itemClick(t.id)}}})],1)}))],2),e("v-uni-view",{staticClass:"footer"},[e("u-button",{attrs:{text:"退出登录",type:"error"},on:{click:function(t){arguments[0]=t=A.$handleEvent(t),A.logout.apply(void 0,arguments)}}})],1)],1)},r=[],o={data:function(){return{info:{},list:[]}},onLoad:function(){this.init()},methods:{init:function(){var A=this;this.$ajax.get("/admin-api/api/category/permission-list",{custom:{loading:!0}}).then((function(t){0==t.status&&(A.list=t.data.items)})),this.$ajax.get("/admin-api/current-user").then((function(t){0==t.status&&(A.info=t.data)}))},itemClick:function(A){uni.setStorageSync("medical_record_treat_type_id",A),uni.navigateTo({url:"/pages/patient/index"})},logout:function(){var A=this;uni.showModal({title:"退出登录",content:"是否确定?",success:function(t){t.confirm&&A.$ajax.get("/admin-api/logout").then((function(A){0==A.status&&(uni.removeStorageSync("medical_record_auth_token"),uni.reLaunch({url:"/pages/login/login"}))}))}})}}},u=o,s=(e(5233),e(1503)),l=(0,s.Z)(u,i,r,!1,null,"4fda39a0",null,!1,n,a),c=l.exports},1784:function(A,t,e){"use strict";e.r(t);var a=e(2916),n=e.n(a),i=e(3282),r=e.n(i),o=r()(n());o.push([A.id,".page[data-v-4fda39a0]{padding:20px 10px;box-sizing:border-box}.info[data-v-4fda39a0]{background:#fff}.btns[data-v-4fda39a0]{margin-top:%?300?%;display:flex;flex-direction:column;align-items:center}.btns .btn[data-v-4fda39a0]{width:100%;margin-top:20px}.footer[data-v-4fda39a0]{margin-top:%?100?%}",""]),t["default"]=o},9835:function(A,t,e){"use strict";e.r(t);var a=e(2916),n=e.n(a),i=e(3282),r=e.n(i),o=r()(n());o.push([A.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-f22f5e26], uni-scroll-view[data-v-f22f5e26], uni-swiper-item[data-v-f22f5e26]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-avatar[data-v-f22f5e26]{\ndisplay:flex;\nflex-direction:row;align-items:center;justify-content:center}.u-avatar--circle[data-v-f22f5e26]{border-radius:100px}.u-avatar--square[data-v-f22f5e26]{border-radius:4px}.u-avatar__image--circle[data-v-f22f5e26]{border-radius:100px}.u-avatar__image--square[data-v-f22f5e26]{border-radius:4px}',""]),t["default"]=o},1910:function(A,t,e){"use strict";e.r(t);var a=e(2916),n=e.n(a),i=e(3282),r=e.n(i),o=r()(n());o.push([A.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-4025ac66], uni-scroll-view[data-v-4025ac66], uni-swiper-item[data-v-4025ac66]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-empty[data-v-4025ac66]{\ndisplay:flex;\nflex-direction:row;flex-direction:column;justify-content:center;align-items:center}.u-empty__text[data-v-4025ac66]{\ndisplay:flex;\nflex-direction:row;justify-content:center;align-items:center;margin-top:%?20?%}.u-slot-wrap[data-v-4025ac66]{\ndisplay:flex;\nflex-direction:row;justify-content:center;align-items:center;margin-top:%?20?%}',""]),t["default"]=o}}]); \ No newline at end of file diff --git a/public/h5/static/js/pages-index-index.c3e7c321.js b/public/h5/static/js/pages-index-index.c3e7c321.js deleted file mode 100644 index 996e86e..0000000 --- a/public/h5/static/js/pages-index-index.c3e7c321.js +++ /dev/null @@ -1 +0,0 @@ -(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[58],{5233:function(t,e,n){var i=n(1784);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var a=n(5472).Z;a("be552aaa",i,!0,{sourceMap:!1,shadowMode:!1})},7254:function(t,e,n){var i=n(9835);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var a=n(5472).Z;a("7da3d416",i,!0,{sourceMap:!1,shadowMode:!1})},7304:function(t,e,n){var i=n(2727);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var a=n(5472).Z;a("6e323258",i,!0,{sourceMap:!1,shadowMode:!1})},4186:function(t,e,n){var i=n(1910);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var a=n(5472).Z;a("f31422a4",i,!0,{sourceMap:!1,shadowMode:!1})},1855:function(t,e,n){var i=n(7139);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var a=n(5472).Z;a("4e58467c",i,!0,{sourceMap:!1,shadowMode:!1})},3369:function(t,e,n){var i=n(3303);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var a=n(5472).Z;a("79ca4570",i,!0,{sourceMap:!1,shadowMode:!1})},1153:function(t,e,n){"use strict";var i;n.d(e,{Z:function(){return b}});var a,A,r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uvText",{attrs:{type:t.type,show:t.show,text:t.text,prefixIcon:t.prefixIcon,suffixIcon:t.suffixIcon,mode:t.mode,href:t.href,format:t.format,call:t.call,openType:t.openType,bold:t.bold,block:t.block,lines:t.lines,color:t.color,decoration:t.decoration,size:t.size,iconStyle:t.iconStyle,margin:t.margin,lineHeight:t.lineHeight,align:t.align,wordWrap:t.wordWrap,customStyle:t.customStyle},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$emit("click")}}})},u=[],o={uIcon:n(5862).Z,uLink:n(6663).Z},l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.show?n("v-uni-view",{staticClass:"u-text",class:[],style:{margin:t.margin,justifyContent:"left"===t.align?"flex-start":"center"===t.align?"center":"flex-end"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickHandler.apply(void 0,arguments)}}},["price"===t.mode?n("v-uni-text",{class:["u-text__price",t.type&&"u-text__value--"+t.type],style:[t.valueStyle]},[t._v("¥")]):t._e(),t.prefixIcon?n("v-uni-view",{staticClass:"u-text__prefix-icon"},[n("u-icon",{attrs:{name:t.prefixIcon,customStyle:t.$u.addStyle(t.iconStyle)}})],1):t._e(),"link"===t.mode?n("u-link",{attrs:{text:t.value,href:t.href,underLine:!0}}):t.openType&&t.isMp?[n("v-uni-button",{staticClass:"u-reset-button u-text__value",style:[t.valueStyle],attrs:{"data-index":t.index,openType:t.openType,lang:t.lang,"session-from":t.sessionFrom,"send-message-title":t.sendMessageTitle,"send-message-path":t.sendMessagePath,"send-message-img":t.sendMessageImg,"show-message-card":t.showMessageCard,"app-parameter":t.appParameter},on:{getuserinfo:function(e){arguments[0]=e=t.$handleEvent(e),t.onGetUserInfo.apply(void 0,arguments)},contact:function(e){arguments[0]=e=t.$handleEvent(e),t.onContact.apply(void 0,arguments)},getphonenumber:function(e){arguments[0]=e=t.$handleEvent(e),t.onGetPhoneNumber.apply(void 0,arguments)},error:function(e){arguments[0]=e=t.$handleEvent(e),t.onError.apply(void 0,arguments)},launchapp:function(e){arguments[0]=e=t.$handleEvent(e),t.onLaunchApp.apply(void 0,arguments)},opensetting:function(e){arguments[0]=e=t.$handleEvent(e),t.onOpenSetting.apply(void 0,arguments)}}},[t._v(t._s(t.value))])]:n("v-uni-text",{staticClass:"u-text__value",class:[t.type&&"u-text__value--"+t.type,t.lines&&"u-line-"+t.lines],style:[t.valueStyle]},[t._v(t._s(t.value))]),t.suffixIcon?n("v-uni-view",{staticClass:"u-text__suffix-icon"},[n("u-icon",{attrs:{name:t.suffixIcon,customStyle:t.$u.addStyle(t.iconStyle)}})],1):t._e()],2):t._e()},s=[],c={computed:{value(){const{text:t,mode:e,format:n,href:i}=this;return"price"===e?(/^\d+(\.\d+)?$/.test(t)||uni.$u.error("金额模式下,text参数需要为金额格式"),uni.$u.test.func(n)?n(t):uni.$u.priceFormat(t,2)):"date"===e?(!uni.$u.test.date(t)&&uni.$u.error("日期模式下,text参数需要为日期或时间戳格式"),uni.$u.test.func(n)?n(t):n?uni.$u.timeFormat(t,n):uni.$u.timeFormat(t,"yyyy-mm-dd")):"phone"===e?uni.$u.test.func(n)?n(t):"encrypt"===n?`${t.substr(0,3)}****${t.substr(7)}`:t:"name"===e?("string"!==typeof t&&uni.$u.error("姓名模式下,text参数需要为字符串格式"),uni.$u.test.func(n)?n(t):"encrypt"===n?this.formatName(t):t):"link"===e?(!uni.$u.test.url(i)&&uni.$u.error("超链接模式下,href参数需要为URL格式"),t):t}},methods:{formatName(t){let e="";if(2===t.length)e=t.substr(0,1)+"*";else if(t.length>2){let n="";for(let e=0,i=t.length-2;e=0}}},l=o,s=(n(4186),n(1503)),c=(0,s.Z)(l,A,r,!1,null,"4025ac66",null,!1,a,i),p=c.exports},6663:function(t,e,n){"use strict";var i;n.d(e,{Z:function(){return p}});var a,A=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-text",{staticClass:"u-link",style:[t.linkStyle,t.$u.addStyle(t.customStyle)],on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.openLink.apply(void 0,arguments)}}},[t._v(t._s(t.text))])},r=[],u={props:{color:{type:String,default:uni.$u.props.link.color},fontSize:{type:[String,Number],default:uni.$u.props.link.fontSize},underLine:{type:Boolean,default:uni.$u.props.link.underLine},href:{type:String,default:uni.$u.props.link.href},mpTips:{type:String,default:uni.$u.props.link.mpTips},lineColor:{type:String,default:uni.$u.props.link.lineColor},text:{type:String,default:uni.$u.props.link.text}}},o={name:"u-link",mixins:[uni.$u.mpMixin,uni.$u.mixin,u],computed:{linkStyle(){const t={color:this.color,fontSize:uni.$u.addUnit(this.fontSize),lineHeight:uni.$u.addUnit(uni.$u.getPx(this.fontSize)+2),textDecoration:this.underLine?"underline":"none"};return t}},methods:{openLink(){window.open(this.href),this.$emit("click")}}},l=o,s=(n(1855),n(1503)),c=(0,s.Z)(l,A,r,!1,null,"06618542",null,!1,i,a),p=c.exports},6175:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return c}});var i,a={uCellGroup:n(156).Z,uCell:n(7981).Z,uAvatar:n(8125).Z,uEmpty:n(4555).Z,uButton:n(7344).Z},A=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page"},[n("v-uni-view",{staticClass:"info"},[n("u-cell-group",[n("u-cell",{attrs:{title:t.info.name}},[n("v-uni-view",{attrs:{slot:"icon"},slot:"icon"},[n("u-avatar",{attrs:{src:t.info.avatar}})],1)],1)],1)],1),n("v-uni-view",{staticClass:"btns"},[0==t.list.length?n("u-empty",{attrs:{mode:"list",text:"暂无分类"}}):t._e(),t._l(t.list,(function(e){return n("v-uni-view",{key:e.id,staticClass:"btn"},[n("u-button",{attrs:{icon:e.image,text:e.name,size:"large"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.itemClick(e.id)}}})],1)}))],2),n("v-uni-view",{staticClass:"footer"},[n("u-button",{attrs:{text:"退出登录",type:"error"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.logout.apply(void 0,arguments)}}})],1)],1)},r=[],u={data:function(){return{info:{},list:[]}},onLoad:function(){this.init()},methods:{init:function(){var t=this;this.$ajax.get("/admin-api/api/category/permission-list",{custom:{loading:!0}}).then((function(e){0==e.status&&(t.list=e.data.items)})),this.$ajax.get("/admin-api/current-user").then((function(e){0==e.status&&(t.info=e.data)}))},itemClick:function(t){uni.setStorageSync("medical_record_treat_type_id",t),uni.navigateTo({url:"/pages/patient/index"})},logout:function(){var t=this;uni.showModal({title:"退出登录",content:"是否确定?",success:function(e){e.confirm&&t.$ajax.get("/admin-api/logout").then((function(t){0==t.status&&(uni.removeStorageSync("medical_record_auth_token"),uni.reLaunch({url:"/pages/login/login"}))}))}})}}},o=u,l=(n(5233),n(1503)),s=(0,l.Z)(o,A,r,!1,null,"4fda39a0",null,!1,a,i),c=s.exports},1784:function(t,e,n){"use strict";n.r(e);var i=n(2916),a=n.n(i),A=n(3282),r=n.n(A),u=r()(a());u.push([t.id,".page[data-v-4fda39a0]{padding:20px 10px;box-sizing:border-box}.info[data-v-4fda39a0]{background:#fff}.btns[data-v-4fda39a0]{margin-top:%?300?%;display:flex;flex-direction:column;align-items:center}.btns .btn[data-v-4fda39a0]{width:100%;margin-top:20px}.footer[data-v-4fda39a0]{margin-top:%?100?%}",""]),e["default"]=u},9835:function(t,e,n){"use strict";n.r(e);var i=n(2916),a=n.n(i),A=n(3282),r=n.n(A),u=r()(a());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-f22f5e26], uni-scroll-view[data-v-f22f5e26], uni-swiper-item[data-v-f22f5e26]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-avatar[data-v-f22f5e26]{\ndisplay:flex;\nflex-direction:row;align-items:center;justify-content:center}.u-avatar--circle[data-v-f22f5e26]{border-radius:100px}.u-avatar--square[data-v-f22f5e26]{border-radius:4px}.u-avatar__image--circle[data-v-f22f5e26]{border-radius:100px}.u-avatar__image--square[data-v-f22f5e26]{border-radius:4px}',""]),e["default"]=u},2727:function(t,e,n){"use strict";n.r(e);var i=n(2916),a=n.n(i),A=n(3282),r=n.n(A),u=r()(a());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-38668d34], uni-scroll-view[data-v-38668d34], uni-swiper-item[data-v-38668d34]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-cell-group[data-v-38668d34]{flex:1}.u-cell-group__title[data-v-38668d34]{padding:16px 16px 8px}.u-cell-group__title__text[data-v-38668d34]{font-size:15px;line-height:16px;color:#303133}.u-cell-group__wrapper[data-v-38668d34]{position:relative}',""]),e["default"]=u},1910:function(t,e,n){"use strict";n.r(e);var i=n(2916),a=n.n(i),A=n(3282),r=n.n(A),u=r()(a());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-4025ac66], uni-scroll-view[data-v-4025ac66], uni-swiper-item[data-v-4025ac66]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-empty[data-v-4025ac66]{\ndisplay:flex;\nflex-direction:row;flex-direction:column;justify-content:center;align-items:center}.u-empty__text[data-v-4025ac66]{\ndisplay:flex;\nflex-direction:row;justify-content:center;align-items:center;margin-top:%?20?%}.u-slot-wrap[data-v-4025ac66]{\ndisplay:flex;\nflex-direction:row;justify-content:center;align-items:center;margin-top:%?20?%}',""]),e["default"]=u},7139:function(t,e,n){"use strict";n.r(e);var i=n(2916),a=n.n(i),A=n(3282),r=n.n(A),u=r()(a());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-06618542], uni-scroll-view[data-v-06618542], uni-swiper-item[data-v-06618542]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-link[data-v-06618542]{line-height:1;\ndisplay:flex;\nflex-direction:row;flex-wrap:wrap;flex:1}',""]),e["default"]=u},3303:function(t,e,n){"use strict";n.r(e);var i=n(2916),a=n.n(i),A=n(3282),r=n.n(A),u=r()(a());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-478adf5b], uni-scroll-view[data-v-478adf5b], uni-swiper-item[data-v-478adf5b]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-text[data-v-478adf5b]{\ndisplay:flex;\nflex-direction:row;align-items:center;flex-wrap:nowrap;flex:1;width:100%}.u-text__price[data-v-478adf5b]{font-size:14px;color:#606266}.u-text__value[data-v-478adf5b]{font-size:14px;\ndisplay:flex;\nflex-direction:row;color:#606266;flex-wrap:wrap;text-overflow:ellipsis;align-items:center}.u-text__value--primary[data-v-478adf5b]{color:#3c9cff}.u-text__value--warning[data-v-478adf5b]{color:#f9ae3d}.u-text__value--success[data-v-478adf5b]{color:#5ac725}.u-text__value--info[data-v-478adf5b]{color:#909399}.u-text__value--error[data-v-478adf5b]{color:#f56c6c}.u-text__value--main[data-v-478adf5b]{color:#303133}.u-text__value--content[data-v-478adf5b]{color:#606266}.u-text__value--tips[data-v-478adf5b]{color:#909193}.u-text__value--light[data-v-478adf5b]{color:#c0c4cc}',""]),e["default"]=u}}]); \ No newline at end of file diff --git a/public/h5/static/js/pages-patient-detail.94c2e0e3.js b/public/h5/static/js/pages-patient-detail.94c2e0e3.js new file mode 100644 index 0000000..e8845ed --- /dev/null +++ b/public/h5/static/js/pages-patient-detail.94c2e0e3.js @@ -0,0 +1 @@ +(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[810],{5934:function(t,e,n){var i=n(4746);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var a=n(5472).Z;a("1fb88acc",i,!0,{sourceMap:!1,shadowMode:!1})},205:function(t,e,n){var i=n(7751);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var a=n(5472).Z;a("52bf32f5",i,!0,{sourceMap:!1,shadowMode:!1})},1355:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i,a={uPopup:n(2061).Z,uSearch:n(8035).Z,uList:n(4307).Z,uListItem:n(8556).Z,uCell:n(7981).Z,uLoadmore:n(9829).Z},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("u-popup",{attrs:{show:t.show,mode:"right",safeAreaInsetTop:!0},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)},open:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[n("u-search",{attrs:{placeholder:"输入 姓名/手机号 搜索",clearabled:!0,showAction:!1,margin:"10px 0"},on:{search:function(e){arguments[0]=e=t.$handleEvent(e),t.load(!0)},change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeSearch.apply(void 0,arguments)}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),n("u-list",{attrs:{width:300,height:t.listHeight},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.reachBottom.apply(void 0,arguments)}}},t._l(t.list,(function(e,i){return n("u-list-item",{key:e.id},[n("u-cell",{attrs:{title:e.name,name:i,value:e.phone,clickable:!0},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}})],1)})),1),t.loading?n("v-uni-view",{staticClass:"loading"},[n("u-loadmore",{attrs:{status:t.status}})],1):t._e()],1)},l=[],s=(n(423),n(101),n(6228),{name:"SelectAdminUser",data:function(){return{search:"",show:!1,list:[],page:1,perPage:20,loading:!0,status:"loadmore",listHeight:0}},created:function(){var t=this;this.load(!0),uni.getSystemInfo({success:function(e){t.listHeight=e.safeArea.height-54}})},methods:{open:function(){this.show=!0},close:function(){this.show=!1},click:function(t){this.$emit("select",this.list[t.name])},load:function(t){var e=this;if(t&&(this.page=1,this.list=[],this.status="loadmore"),"nomore"!=this.status){this.loading=!0,this.status="loading";var n={_action:"getData",page:this.page,perPage:this.perPage,keyword:this.search};this.$ajax.get("/admin-api/user",{params:n}).then((function(t){e.loading=!1,0==t.status&&(e.list=e.list.concat(t.data.items),e.list.length>=t.data.total&&(e.status="nomore"))})).catch((function(t){e.loading=!1,e.status="nomore"}))}},reachBottom:function(){this.page++,this.load()},changeSearch:function(t){t||this.load(!0)}}}),c=s,u=(n(5934),n(1503)),d=(0,u.Z)(c,o,l,!1,null,"5f2403ad",null,!1,a,i),r=d.exports},3419:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return g}});var i,a={uCellGroup:n(156).Z,uCell:n(7981).Z,uIcon:n(5862).Z,"u-Text":n(1153).Z,uButton:n(7344).Z,uModal:n(5912).Z,"u-Input":n(4159).Z,uActionSheet:n(7030).Z,uDatetimePicker:n(2632).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:t.info.type?t.info.type.name:""}}),n("u-cell",{attrs:{title:"客户",value:t.info.user?t.info.user.name+"("+t.info.user.phone+")":"",isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openUser.apply(void 0,arguments)}}}),n("u-cell",{attrs:{title:"姓名",value:t.info.name,isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openModal("姓名","name")}}}),n("u-cell",{attrs:{title:"性别",value:t.info.sex_text,isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleGender.apply(void 0,arguments)}}}),n("u-cell",{attrs:{isLink:!0}},[n("v-uni-view",{attrs:{slot:"icon"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleCall(t.info.phone)}},slot:"icon"},[n("u-icon",{attrs:{name:"phone"}})],1),n("v-uni-view",{attrs:{slot:"title"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openModal("联系方式","phone")}},slot:"title"},[t._v("联系方式")]),n("v-uni-view",{attrs:{slot:"value"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openModal("联系方式","phone")}},slot:"value"},[t._v(t._s(t.info.phone))]),n("v-uni-view",{attrs:{slot:"right-icon"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openModal("联系方式","phone")}},slot:"right-icon"},[n("u-icon",{attrs:{name:"edit-pen"}})],1)],1),n("u-cell",{attrs:{title:"地址",value:t.info.address,clickable:!0,isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openModal("地址","address")}}}),n("u-cell",{attrs:{title:"出生年月",value:t._f("date")(t.info.birthday,"yyyy-MM-dd"),isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleBirthday("birthday")}}}),n("u-cell",{attrs:{title:t.type+"时间",value:t._f("date")(t.info.treat_at,"yyyy-MM-dd"),isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleBirthday("treat_at")}}}),n("u-cell",{attrs:{title:t.type+"医生",value:t.info.doctor?t.info.doctor.name:"",isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.opendDoctor("doctor")}}}),n("u-cell",{attrs:{title:"邀请人",value:t.info.inviter?t.info.inviter.name:"",isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.opendDoctor("inviter")}}}),n("u-cell",{attrs:{title:"业务员",value:t.info.saler?t.info.saler.name:"",isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.opendDoctor("saler")}}}),n("u-cell",{attrs:{title:"病情描述",isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openEditor.apply(void 0,arguments)}}},[n("v-uni-view",{attrs:{slot:"label"},slot:"label"},[n("u--text",{attrs:{text:t.info.illness,type:"info",wordWrap:"anywhere"}})],1)],1),n("u-cell",{attrs:{title:"图片资料"}},[n("v-uni-view",{attrs:{slot:"value"},slot:"value"},[n("cu-image",{ref:"images",on:{update:function(e){arguments[0]=e=t.$handleEvent(e),t.updateImages.apply(void 0,arguments)}}})],1)],1),n("u-cell",{attrs:{title:"录入时间",value:t.info.created_at}})],1),n("div",{staticClass:"btn"},[n("u-button",{attrs:{text:"添加病历",type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addRecord.apply(void 0,arguments)}}}),n("u-button",{attrs:{text:"病历记录",type:"success"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.listRecord.apply(void 0,arguments)}}}),n("u-button",{attrs:{text:"删除病人",type:"error"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.deletePatient.apply(void 0,arguments)}}})],1),n("u-modal",{attrs:{show:t.modal.show,title:t.modal.title,showCancelButton:!0,closeOnClickOverlay:!0,asyncClose:!0},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmModal.apply(void 0,arguments)},cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.closeModal.apply(void 0,arguments)},close:function(e){arguments[0]=e=t.$handleEvent(e),t.closeModal.apply(void 0,arguments)}}},[n("u--input",{attrs:{border:"surround"},model:{value:t.modal.value,callback:function(e){t.$set(t.modal,"value",e)},expression:"modal.value"}})],1),n("u-action-sheet",{attrs:{show:t.genderSheet.show,actions:t.gender.options,closeOnClickOverlay:!0},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleGender.apply(void 0,arguments)},select:function(e){arguments[0]=e=t.$handleEvent(e),t.selectGender.apply(void 0,arguments)}}}),n("u-datetime-picker",{attrs:{mode:"date",show:t.datePicker.show,closeOnClickOverlay:!0,minDate:t.datePicker.minDate},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleBirthday.apply(void 0,arguments)},cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleBirthday.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.selectBirthday.apply(void 0,arguments)}},model:{value:t.datePicker.value,callback:function(e){t.$set(t.datePicker,"value",e)},expression:"datePicker.value"}}),n("select-admin-user",{ref:"select-admin-user",on:{select:function(e){arguments[0]=e=t.$handleEvent(e),t.selectDoctor.apply(void 0,arguments)}}}),n("cu-editor",{ref:"editor",on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmEditor.apply(void 0,arguments)}}}),n("select-user",{ref:"select-user",on:{select:function(e){arguments[0]=e=t.$handleEvent(e),t.selectUser.apply(void 0,arguments)}}})],1)},l=[],s=n(159),c=(n(423),n(262),n(8770),n(9299),n(8059)),u=n(8272),d=n(7744),r=n(7679),h=n(1355),f={components:{SelectAdminUser:u.Z,CuEditor:d.Z,CuImage:r.Z,SelectUser:h.Z},data:function(){return{id:"",info:{images:[],doctor_id:"",doctor:{}},modal:{type:"text",show:!1,title:"",key:"",value:""},gender:c.Z,genderSheet:{show:!1},datePicker:{show:!1,name:"",value:(new Date).getTime(),minDate:new Date("1900/1/1").getTime()},adminUser:{key:""},type:""}},onLoad:function(t){this.id=t.id,this.loadData()},onPullDownRefresh:function(){this.loadData()},methods:{loadData:function(){var t=this;if(this.id){uni.showLoading();var e={_action:"getData"};this.$ajax.get("/admin-api/patient/".concat(this.id),{params:e}).then((function(e){uni.stopPullDownRefresh(),0==e.status&&(t.info=(0,s.Z)((0,s.Z)({},e.data),{},{birthday:e.data.birthday?e.data.birthday.replaceAll("-","/"):"",treat_at:e.data.treat_at?e.data.treat_at.replaceAll("-","/"):""}),t.type=t.info.type?t.info.type.name:"",e.data.images&&t.$refs["images"].setList(e.data.images.map((function(t){return{url:t}}))),uni.setNavigationBarTitle({title:t.info.name}))})).catch((function(t){uni.stopPullDownRefresh()}))}},openModal:function(t,e){this.modal.title=t,this.modal.key=e,this.modal.show=!0,this.modal.value=this.info[e]},confirmModal:function(){var t=this,e=this.modal.key,n=this.modal.value,i={};i[e]=n,this.update(i).then((function(i){t.modal.show=!1,0==i.status&&(t.info[e]=n)}))},closeModal:function(){this.modal.show=!1},openEditor:function(){this.$refs["editor"].open(this.info.illness)},confirmEditor:function(t){var e=this;this.update({illness:t}).then((function(n){0==n.status&&(e.info.illness=t)}))},toggleGender:function(){this.genderSheet.show=!this.genderSheet.show},selectGender:function(t){var e=this;this.update({sex:t.value}).then((function(n){0==n.status&&(e.info.sex=t.value,e.info.sex_text=t.name)}))},toggleBirthday:function(t){t&&(this.datePicker.name=t,this.datePicker.value=new Date(this.info[t]).getTime()),this.datePicker.show=!this.datePicker.show},selectBirthday:function(t){var e=this,n=Math.floor(t.value/1e3),i=this.datePicker.name,a={};a[i]=n,this.update(a).then((function(n){0==n.status&&(e.info[i]=t.value,e.toggleBirthday())}))},opendDoctor:function(t){this.adminUser.key=t,this.$refs["select-admin-user"].open()},closeDoctor:function(){this.$refs["select-admin-user"].close()},selectDoctor:function(t){var e=this,n=this.adminUser.key,i={};i["".concat(n,"_id")]=t.id,this.update(i).then((function(i){0==i.status&&(e.info["".concat(n,"_id")]=t.id,e.info[n]={id:t.id,name:t.name})})),this.closeDoctor()},updateImages:function(t){var e=t.map((function(t){return t.url}));this.update({images:e}).then((function(t){0==t.status&&console.log(t)}))},openUser:function(){this.$refs["select-user"].open()},closeUser:function(){this.$refs["select-user"].close()},selectUser:function(t){var e=this;this.closeUser(),this.update({user_id:t.id}).then((function(n){0==n.status&&(e.info.user_id=t.id,e.info.user=t)}))},addRecord:function(){return uni.navigateTo({url:"/pages/record/form?patient=".concat(this.id)})},listRecord:function(){return uni.navigateTo({url:"/pages/record/index?patient=".concat(this.id)})},deletePatient:function(){var t=this;uni.showModal({title:"删除病人档案信息",content:"同时会删除相关联的病历记录!",success:function(e){e.confirm&&t.delete(t.info.id)}})},update:function(t){var e=Object.assign({id:this.id},t);return this.$ajax.put("/admin-api/patient/".concat(this.id),e,{custom:{loading:!0}})},delete:function(t){uni.showLoading(),this.$ajax.delete("/admin-api/patient/".concat(t)).then((function(t){0==t.status&&(uni.showToast({title:"删除成功",icon:"success"}),setTimeout((function(){uni.navigateBack()}),1e3))}))},handleCall:function(t){t?window.open("tel:".concat(t),"_blank"):this.openModal("联系方式","phone")}}},p=f,v=(n(205),n(1503)),m=(0,v.Z)(p,o,l,!1,null,"719eb0a6",null,!1,a,i),g=m.exports},8059:function(t,e,n){"use strict";n(5827),n(6007),n(444);var i={none:{value:0,text:"未知"},male:{value:1,text:"男"},female:{value:2,text:"女"},options:[],map:{}};Object.keys(i).forEach((function(t){void 0!==i[t]&&void 0!==i[t].value&&(i.options.push({name:i[t].text,value:i[t].value}),i.map[i[t].value]=i[t].text)})),e.Z=i},4746:function(t,e,n){"use strict";n.r(e);var i=n(2916),a=n.n(i),o=n(3282),l=n.n(o),s=l()(a());s.push([t.id,".loading[data-v-5f2403ad]{position:fixed;bottom:0;background-color:#fff;width:300px}",""]),e["default"]=s},7751:function(t,e,n){"use strict";n.r(e);var i=n(2916),a=n.n(i),o=n(3282),l=n.n(o),s=l()(a());s.push([t.id,".page[data-v-719eb0a6]{padding:20px;background:#fff}.u-cell-group[data-v-719eb0a6]{background:#fff}.btn[data-v-719eb0a6]{padding:0 10px}.btn .u-button[data-v-719eb0a6]{margin-top:20px}.page[data-v-719eb0a6] .u-upload__wrap{justify-content:flex-end}.text-gray[data-v-719eb0a6]{color:gray}",""]),e["default"]=s}}]); \ No newline at end of file diff --git a/public/h5/static/js/pages-patient-detail.b5420eae.js b/public/h5/static/js/pages-patient-detail.b5420eae.js deleted file mode 100644 index db095fe..0000000 --- a/public/h5/static/js/pages-patient-detail.b5420eae.js +++ /dev/null @@ -1 +0,0 @@ -(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[810],{5934:function(t,e,n){var i=n(4746);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var a=n(5472).Z;a("1fb88acc",i,!0,{sourceMap:!1,shadowMode:!1})},4572:function(t,e,n){var i=n(9544);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var a=n(5472).Z;a("e7f1ae36",i,!0,{sourceMap:!1,shadowMode:!1})},7304:function(t,e,n){var i=n(2727);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var a=n(5472).Z;a("6e323258",i,!0,{sourceMap:!1,shadowMode:!1})},156:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var i,a={uLine:n(4060).Z},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-cell-group",class:[t.customClass],style:[t.$u.addStyle(t.customStyle)]},[t.title?n("v-uni-view",{staticClass:"u-cell-group__title"},[t._t("title",[n("v-uni-text",{staticClass:"u-cell-group__title__text"},[t._v(t._s(t.title))])])],2):t._e(),n("v-uni-view",{staticClass:"u-cell-group__wrapper"},[t.border?n("u-line"):t._e(),t._t("default")],2)],1)},l=[],s={props:{title:{type:String,default:uni.$u.props.cellGroup.title},border:{type:Boolean,default:uni.$u.props.cellGroup.border}}},c={name:"u-cell-group",mixins:[uni.$u.mpMixin,uni.$u.mixin,s]},u=c,r=(n(7304),n(1503)),d=(0,r.Z)(u,o,l,!1,null,"38668d34",null,!1,a,i),h=d.exports},1355:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var i,a={uPopup:n(2061).Z,uSearch:n(8035).Z,uList:n(4307).Z,uListItem:n(8556).Z,uCell:n(7981).Z,uLoadmore:n(9829).Z},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("u-popup",{attrs:{show:t.show,mode:"right",safeAreaInsetTop:!0},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)},open:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[n("u-search",{attrs:{placeholder:"输入 姓名/手机号 搜索",clearabled:!0,showAction:!1,margin:"10px 0"},on:{search:function(e){arguments[0]=e=t.$handleEvent(e),t.load(!0)},change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeSearch.apply(void 0,arguments)}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),n("u-list",{attrs:{width:300,height:t.listHeight},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.reachBottom.apply(void 0,arguments)}}},t._l(t.list,(function(e,i){return n("u-list-item",{key:e.id},[n("u-cell",{attrs:{title:e.name,name:i,value:e.phone,clickable:!0},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}})],1)})),1),t.loading?n("v-uni-view",{staticClass:"loading"},[n("u-loadmore",{attrs:{status:t.status}})],1):t._e()],1)},l=[],s=(n(423),n(101),n(6228),{name:"SelectAdminUser",data:function(){return{search:"",show:!1,list:[],page:1,perPage:20,loading:!0,status:"loadmore",listHeight:0}},created:function(){var t=this;this.load(!0),uni.getSystemInfo({success:function(e){t.listHeight=e.safeArea.height-54}})},methods:{open:function(){this.show=!0},close:function(){this.show=!1},click:function(t){this.$emit("select",this.list[t.name])},load:function(t){var e=this;if(t&&(this.page=1,this.list=[],this.status="loadmore"),"nomore"!=this.status){this.loading=!0,this.status="loading";var n={_action:"getData",page:this.page,perPage:this.perPage,keyword:this.search};this.$ajax.get("/admin-api/user",{params:n}).then((function(t){e.loading=!1,0==t.status&&(e.list=e.list.concat(t.data.items),e.list.length>=t.data.total&&(e.status="nomore"))})).catch((function(t){e.loading=!1,e.status="nomore"}))}},reachBottom:function(){this.page++,this.load()},changeSearch:function(t){t||this.load(!0)}}}),c=s,u=(n(5934),n(1503)),r=(0,u.Z)(c,o,l,!1,null,"5f2403ad",null,!1,a,i),d=r.exports},3606:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return g}});var i,a={uCellGroup:n(156).Z,uCell:n(7981).Z,uIcon:n(5862).Z,uButton:n(7344).Z,uModal:n(5912).Z,"u-Input":n(4159).Z,uActionSheet:n(7030).Z,uDatetimePicker:n(2632).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:t.info.type?t.info.type.name:""}}),n("u-cell",{attrs:{title:"客户",value:t.info.user?t.info.user.name+"("+t.info.user.phone+")":"",isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openUser.apply(void 0,arguments)}}}),n("u-cell",{attrs:{title:"姓名",value:t.info.name,isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openModal("姓名","name")}}}),n("u-cell",{attrs:{title:"性别",value:t.info.sex_text,isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleGender.apply(void 0,arguments)}}}),n("u-cell",{attrs:{isLink:!0}},[n("v-uni-view",{attrs:{slot:"icon"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleCall(t.info.phone)}},slot:"icon"},[n("u-icon",{attrs:{name:"phone"}})],1),n("v-uni-view",{attrs:{slot:"title"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openModal("联系方式","phone")}},slot:"title"},[t._v("联系方式")]),n("v-uni-view",{attrs:{slot:"value"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openModal("联系方式","phone")}},slot:"value"},[t._v(t._s(t.info.phone))]),n("v-uni-view",{attrs:{slot:"right-icon"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openModal("联系方式","phone")}},slot:"right-icon"},[n("u-icon",{attrs:{name:"edit-pen"}})],1)],1),n("u-cell",{attrs:{title:"地址",value:t.info.address,clickable:!0,isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openModal("地址","address")}}}),n("u-cell",{attrs:{title:"出生年月",value:t._f("date")(t.info.birthday,"yyyy-MM-dd"),isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleBirthday("birthday")}}}),n("u-cell",{attrs:{title:t.type+"时间",value:t._f("date")(t.info.treat_at,"yyyy-MM-dd"),isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleBirthday("treat_at")}}}),n("u-cell",{attrs:{title:t.type+"医生",value:t.info.doctor?t.info.doctor.name:"",isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.opendDoctor("doctor")}}}),n("u-cell",{attrs:{title:"邀请人",value:t.info.inviter?t.info.inviter.name:"",isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.opendDoctor("inviter")}}}),n("u-cell",{attrs:{title:"业务员",value:t.info.saler?t.info.saler.name:"",isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.opendDoctor("saler")}}}),n("u-cell",{attrs:{title:"病情描述",isLink:!0,rightIcon:"edit-pen"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openEditor.apply(void 0,arguments)}}},[n("v-uni-view",{attrs:{slot:"value"},slot:"value"},[n("v-uni-text",[t._v(t._s(t.info.illness))])],1)],1),n("u-cell",{attrs:{title:"图片资料"}},[n("v-uni-view",{attrs:{slot:"value"},slot:"value"},[n("cu-image",{ref:"images",on:{update:function(e){arguments[0]=e=t.$handleEvent(e),t.updateImages.apply(void 0,arguments)}}})],1)],1),n("u-cell",{attrs:{title:"录入时间",value:t.info.created_at}})],1),n("div",{staticClass:"btn"},[n("u-button",{attrs:{text:"添加病历",type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addRecord.apply(void 0,arguments)}}}),n("u-button",{attrs:{text:"病历记录",type:"success"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.listRecord.apply(void 0,arguments)}}}),n("u-button",{attrs:{text:"删除病人",type:"error"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.deletePatient.apply(void 0,arguments)}}})],1),n("u-modal",{attrs:{show:t.modal.show,title:t.modal.title,showCancelButton:!0,closeOnClickOverlay:!0,asyncClose:!0},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmModal.apply(void 0,arguments)},cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.closeModal.apply(void 0,arguments)},close:function(e){arguments[0]=e=t.$handleEvent(e),t.closeModal.apply(void 0,arguments)}}},[n("u--input",{attrs:{border:"surround"},model:{value:t.modal.value,callback:function(e){t.$set(t.modal,"value",e)},expression:"modal.value"}})],1),n("u-action-sheet",{attrs:{show:t.genderSheet.show,actions:t.gender.options,closeOnClickOverlay:!0},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleGender.apply(void 0,arguments)},select:function(e){arguments[0]=e=t.$handleEvent(e),t.selectGender.apply(void 0,arguments)}}}),n("u-datetime-picker",{attrs:{mode:"date",show:t.datePicker.show,closeOnClickOverlay:!0,minDate:t.datePicker.minDate},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleBirthday.apply(void 0,arguments)},cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleBirthday.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.selectBirthday.apply(void 0,arguments)}},model:{value:t.datePicker.value,callback:function(e){t.$set(t.datePicker,"value",e)},expression:"datePicker.value"}}),n("select-admin-user",{ref:"select-admin-user",on:{select:function(e){arguments[0]=e=t.$handleEvent(e),t.selectDoctor.apply(void 0,arguments)}}}),n("cu-editor",{ref:"editor",on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmEditor.apply(void 0,arguments)}}}),n("select-user",{ref:"select-user",on:{select:function(e){arguments[0]=e=t.$handleEvent(e),t.selectUser.apply(void 0,arguments)}}})],1)},l=[],s=n(159),c=(n(423),n(262),n(8770),n(9299),n(8059)),u=n(8272),r=n(7744),d=n(7679),h=n(1355),p={components:{SelectAdminUser:u.Z,CuEditor:r.Z,CuImage:d.Z,SelectUser:h.Z},data:function(){return{id:"",info:{images:[],doctor_id:"",doctor:{}},modal:{type:"text",show:!1,title:"",key:"",value:""},gender:c.Z,genderSheet:{show:!1},datePicker:{show:!1,name:"",value:(new Date).getTime(),minDate:new Date("1900/1/1").getTime()},adminUser:{key:""},type:""}},onLoad:function(t){this.id=t.id,this.loadData()},onPullDownRefresh:function(){this.loadData()},methods:{loadData:function(){var t=this;if(this.id){uni.showLoading();var e={_action:"getData"};this.$ajax.get("/admin-api/patient/".concat(this.id),{params:e}).then((function(e){uni.stopPullDownRefresh(),0==e.status&&(t.info=(0,s.Z)((0,s.Z)({},e.data),{},{birthday:e.data.birthday?e.data.birthday.replaceAll("-","/"):"",treat_at:e.data.treat_at?e.data.treat_at.replaceAll("-","/"):""}),t.type=t.info.type?t.info.type.name:"",e.data.images&&t.$refs["images"].setList(e.data.images.map((function(t){return{url:t}}))),uni.setNavigationBarTitle({title:t.info.name}))})).catch((function(t){uni.stopPullDownRefresh()}))}},openModal:function(t,e){this.modal.title=t,this.modal.key=e,this.modal.show=!0,this.modal.value=this.info[e]},confirmModal:function(){var t=this,e=this.modal.key,n=this.modal.value,i={};i[e]=n,this.update(i).then((function(i){t.modal.show=!1,0==i.status&&(t.info[e]=n)}))},closeModal:function(){this.modal.show=!1},openEditor:function(){this.$refs["editor"].open(this.info.illness)},confirmEditor:function(t){var e=this;this.update({illness:t}).then((function(n){0==n.status&&(e.info.illness=t)}))},toggleGender:function(){this.genderSheet.show=!this.genderSheet.show},selectGender:function(t){var e=this;this.update({sex:t.value}).then((function(n){0==n.status&&(e.info.sex=t.value,e.info.sex_text=t.name)}))},toggleBirthday:function(t){t&&(this.datePicker.name=t,this.datePicker.value=new Date(this.info[t]).getTime()),this.datePicker.show=!this.datePicker.show},selectBirthday:function(t){var e=this,n=Math.floor(t.value/1e3),i=this.datePicker.name,a={};a[i]=n,this.update(a).then((function(n){0==n.status&&(e.info[i]=t.value,e.toggleBirthday())}))},opendDoctor:function(t){this.adminUser.key=t,this.$refs["select-admin-user"].open()},closeDoctor:function(){this.$refs["select-admin-user"].close()},selectDoctor:function(t){var e=this,n=this.adminUser.key,i={};i["".concat(n,"_id")]=t.id,this.update(i).then((function(i){0==i.status&&(e.info["".concat(n,"_id")]=t.id,e.info[n]={id:t.id,name:t.name})})),this.closeDoctor()},updateImages:function(t){var e=t.map((function(t){return t.url}));this.update({images:e}).then((function(t){0==t.status&&console.log(t)}))},openUser:function(){this.$refs["select-user"].open()},closeUser:function(){this.$refs["select-user"].close()},selectUser:function(t){var e=this;this.closeUser(),this.update({user_id:t.id}).then((function(n){0==n.status&&(e.info.user_id=t.id,e.info.user=t)}))},addRecord:function(){return uni.navigateTo({url:"/pages/record/form?patient=".concat(this.id)})},listRecord:function(){return uni.navigateTo({url:"/pages/record/index?patient=".concat(this.id)})},deletePatient:function(){var t=this;uni.showModal({title:"删除病人档案信息",content:"同时会删除相关联的病历记录!",success:function(e){e.confirm&&t.delete(t.info.id)}})},update:function(t){var e=Object.assign({id:this.id},t);return this.$ajax.put("/admin-api/patient/".concat(this.id),e,{custom:{loading:!0}})},delete:function(t){uni.showLoading(),this.$ajax.delete("/admin-api/patient/".concat(t)).then((function(t){0==t.status&&(uni.showToast({title:"删除成功",icon:"success"}),setTimeout((function(){uni.navigateBack()}),1e3))}))},handleCall:function(t){t?window.open("tel:".concat(t),"_blank"):this.openModal("联系方式","phone")}}},f=p,v=(n(4572),n(1503)),m=(0,v.Z)(f,o,l,!1,null,"cecf99d8",null,!1,a,i),g=m.exports},8059:function(t,e,n){"use strict";n(5827),n(6007),n(444);var i={none:{value:0,text:"未知"},male:{value:1,text:"男"},female:{value:2,text:"女"},options:[],map:{}};Object.keys(i).forEach((function(t){void 0!==i[t]&&void 0!==i[t].value&&(i.options.push({name:i[t].text,value:i[t].value}),i.map[i[t].value]=i[t].text)})),e.Z=i},4746:function(t,e,n){"use strict";n.r(e);var i=n(2916),a=n.n(i),o=n(3282),l=n.n(o),s=l()(a());s.push([t.id,".loading[data-v-5f2403ad]{position:fixed;bottom:0;background-color:#fff;width:300px}",""]),e["default"]=s},9544:function(t,e,n){"use strict";n.r(e);var i=n(2916),a=n.n(i),o=n(3282),l=n.n(o),s=l()(a());s.push([t.id,".page[data-v-cecf99d8]{padding:20px;background:#fff}.u-cell-group[data-v-cecf99d8]{background:#fff}.btn[data-v-cecf99d8]{padding:0 10px}.btn .u-button[data-v-cecf99d8]{margin-top:20px}.page[data-v-cecf99d8] .u-upload__wrap{justify-content:flex-end}.text-gray[data-v-cecf99d8]{color:gray}",""]),e["default"]=s},2727:function(t,e,n){"use strict";n.r(e);var i=n(2916),a=n.n(i),o=n(3282),l=n.n(o),s=l()(a());s.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-38668d34], uni-scroll-view[data-v-38668d34], uni-swiper-item[data-v-38668d34]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-cell-group[data-v-38668d34]{flex:1}.u-cell-group__title[data-v-38668d34]{padding:16px 16px 8px}.u-cell-group__title__text[data-v-38668d34]{font-size:15px;line-height:16px;color:#303133}.u-cell-group__wrapper[data-v-38668d34]{position:relative}',""]),e["default"]=s}}]); \ No newline at end of file diff --git a/public/h5/static/js/pages-record-detail.4d03253d.js b/public/h5/static/js/pages-record-detail.4d03253d.js new file mode 100644 index 0000000..b10af97 --- /dev/null +++ b/public/h5/static/js/pages-record-detail.4d03253d.js @@ -0,0 +1 @@ +(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[487],{7561:function(e,t,n){var a=n(5473);a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals);var i=n(5472).Z;i("67c6f05c",a,!0,{sourceMap:!1,shadowMode:!1})},9287:function(e,t,n){var a=n(8233);a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals);var i=n(5472).Z;i("e9666474",a,!0,{sourceMap:!1,shadowMode:!1})},3625:function(e,t,n){"use strict";var a;n.d(t,{Z:function(){return b}});var i,o,l,r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uvTextarea",{attrs:{value:e.value,placeholder:e.placeholder,height:e.height,confirmType:e.confirmType,disabled:e.disabled,count:e.count,focus:e.focus,autoHeight:e.autoHeight,fixed:e.fixed,cursorSpacing:e.cursorSpacing,cursor:e.cursor,showConfirmBar:e.showConfirmBar,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd,adjustPosition:e.adjustPosition,disableDefaultPadding:e.disableDefaultPadding,holdKeyboard:e.holdKeyboard,maxlength:e.maxlength,border:e.border,customStyle:e.customStyle,formatter:e.formatter,ignoreCompositionEvent:e.ignoreCompositionEvent},on:{focus:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.$emit("focus")}.apply(void 0,arguments)},blur:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.$emit("blur")}.apply(void 0,arguments)},linechange:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.$emit("linechange",t)}.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.$emit("confirm")}.apply(void 0,arguments)},input:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.$emit("input",t)}.apply(void 0,arguments)},keyboardheightchange:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.$emit("keyboardheightchange")}.apply(void 0,arguments)}}})},s=[],u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"u-textarea",class:e.textareaClass,style:[e.textareaStyle]},[n("v-uni-textarea",{staticClass:"u-textarea__field",style:{height:e.$u.addUnit(e.height)},attrs:{value:e.innerValue,placeholder:e.placeholder,"placeholder-style":e.$u.addStyle(e.placeholderStyle,"string"),"placeholder-class":e.placeholderClass,disabled:e.disabled,focus:e.focus,autoHeight:e.autoHeight,fixed:e.fixed,cursorSpacing:e.cursorSpacing,cursor:e.cursor,showConfirmBar:e.showConfirmBar,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd,adjustPosition:e.adjustPosition,disableDefaultPadding:e.disableDefaultPadding,holdKeyboard:e.holdKeyboard,maxlength:e.maxlength,confirmType:e.confirmType,ignoreCompositionEvent:e.ignoreCompositionEvent},on:{focus:function(t){arguments[0]=t=e.$handleEvent(t),e.onFocus.apply(void 0,arguments)},blur:function(t){arguments[0]=t=e.$handleEvent(t),e.onBlur.apply(void 0,arguments)},linechange:function(t){arguments[0]=t=e.$handleEvent(t),e.onLinechange.apply(void 0,arguments)},input:function(t){arguments[0]=t=e.$handleEvent(t),e.onInput.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.onConfirm.apply(void 0,arguments)},keyboardheightchange:function(t){arguments[0]=t=e.$handleEvent(t),e.onKeyboardheightchange.apply(void 0,arguments)}}}),e.count?n("v-uni-text",{staticClass:"u-textarea__count",style:{"background-color":e.disabled?"transparent":"#fff"}},[e._v(e._s(e.innerValue.length)+"/"+e._s(e.maxlength))]):e._e()],1)},c=[],d={props:{value:{type:[String,Number],default:uni.$u.props.textarea.value},placeholder:{type:[String,Number],default:uni.$u.props.textarea.placeholder},placeholderClass:{type:String,default:uni.$u.props.input.placeholderClass},placeholderStyle:{type:[String,Object],default:uni.$u.props.input.placeholderStyle},height:{type:[String,Number],default:uni.$u.props.textarea.height},confirmType:{type:String,default:uni.$u.props.textarea.confirmType},disabled:{type:Boolean,default:uni.$u.props.textarea.disabled},count:{type:Boolean,default:uni.$u.props.textarea.count},focus:{type:Boolean,default:uni.$u.props.textarea.focus},autoHeight:{type:Boolean,default:uni.$u.props.textarea.autoHeight},fixed:{type:Boolean,default:uni.$u.props.textarea.fixed},cursorSpacing:{type:Number,default:uni.$u.props.textarea.cursorSpacing},cursor:{type:[String,Number],default:uni.$u.props.textarea.cursor},showConfirmBar:{type:Boolean,default:uni.$u.props.textarea.showConfirmBar},selectionStart:{type:Number,default:uni.$u.props.textarea.selectionStart},selectionEnd:{type:Number,default:uni.$u.props.textarea.selectionEnd},adjustPosition:{type:Boolean,default:uni.$u.props.textarea.adjustPosition},disableDefaultPadding:{type:Boolean,default:uni.$u.props.textarea.disableDefaultPadding},holdKeyboard:{type:Boolean,default:uni.$u.props.textarea.holdKeyboard},maxlength:{type:[String,Number],default:uni.$u.props.textarea.maxlength},border:{type:String,default:uni.$u.props.textarea.border},formatter:{type:[Function,null],default:uni.$u.props.textarea.formatter},ignoreCompositionEvent:{type:Boolean,default:!0}}},p={name:"u-textarea",mixins:[uni.$u.mpMixin,uni.$u.mixin,d],data(){return{innerValue:"",focused:!1,firstChange:!0,changeFromInner:!1,innerFormatter:e=>e}},watch:{value:{immediate:!0,handler(e,t){this.innerValue=e,!1===this.firstChange&&!1===this.changeFromInner&&this.valueChange(),this.firstChange=!1,this.changeFromInner=!1}}},computed:{textareaClass(){let e=[],{border:t,disabled:n,shape:a}=this;return"surround"===t&&(e=e.concat(["u-border","u-textarea--radius"])),"bottom"===t&&(e=e.concat(["u-border-bottom","u-textarea--no-radius"])),n&&e.push("u-textarea--disabled"),e.join(" ")},textareaStyle(){const e={};return uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))}},methods:{setFormatter(e){this.innerFormatter=e},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e),uni.$u.formValidate(this,"blur")},onLinechange(e){this.$emit("linechange",e)},onInput(e){let{value:t=""}=e.detail||{};const n=this.formatter||this.innerFormatter,a=n(t);this.innerValue=t,this.$nextTick((()=>{this.innerValue=a,this.valueChange()}))},valueChange(){const e=this.innerValue;this.$nextTick((()=>{this.$emit("input",e),this.changeFromInner=!0,this.$emit("change",e),uni.$u.formValidate(this,"change")}))},onConfirm(e){this.$emit("confirm",e)},onKeyboardheightchange(e){this.$emit("keyboardheightchange",e)}}},f=p,h=(n(9287),n(1503)),m=(0,h.Z)(f,u,c,!1,null,"2cb119ec",null,!1,i,o),v=m.exports,y={name:"u--textarea",mixins:[uni.$u.mpMixin,d,uni.$u.mixin],components:{uvTextarea:v}},g=y,x=(0,h.Z)(g,r,s,!1,null,null,null,!1,a,l),b=x.exports},5003:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var a,i={uCellGroup:n(156).Z,uCell:n(7981).Z,"u-Text":n(1153).Z,uSwitch:n(3094).Z,uButton:n(7344).Z,uActionSheet:n(7030).Z,uDatetimePicker:n(2632).Z,uModal:n(5912).Z,"u-Input":n(4159).Z,"u-Textarea":n(3625).Z,uPicker:n(2206).Z},o=function(){var e=this,t=e.$createElement,n=e._self._c||t;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:e.type.text}}),n("u-cell",{attrs:{title:"病种",value:e.illnessType.label,isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.openIllnessType.apply(void 0,arguments)}}}),n("u-cell",{attrs:{title:e.type.text+"时间",value:e._f("date")(e.info.treat_at),isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleDatePicker("treat_at")}}}),n("u-cell",{attrs:{title:"划线价",value:e.info.origin_price,isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.openModal("划线价","origin_price","number")}}}),n("u-cell",{attrs:{title:"实收价",value:e.info.sell_price,isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.openModal("实收价","sell_price","number")}}}),n("u-cell",{attrs:{title:"收费情况",value:e.orderStatus.text,isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleOrderStatus.apply(void 0,arguments)}}}),n("u-cell",{attrs:{title:e.type.text+"医师",value:e.adminUser.doctor_name,label:"提成金额: "+e.info.doctor_money,isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.opendAdminUser("doctor")}}}),n("u-cell",{attrs:{title:"邀请人",value:e.info.inviter?e.info.inviter.name:"",label:"提成金额: "+e.info.inviter_money}}),n("u-cell",{attrs:{title:"业务员",value:e.info.saler?e.info.saler.name:"",label:"提成金额: "+e.info.saler_money}}),n("u-cell",{attrs:{title:e.type.text+"情况",isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.openEditor.apply(void 0,arguments)}}},[n("v-uni-view",{attrs:{slot:"label"},slot:"label"},[n("u--text",{attrs:{text:e.info.content,type:"info",wordWrap:"anywhere"}})],1)],1),n("u-cell",{attrs:{title:"图片资料"}},[n("v-uni-view",{attrs:{slot:"value"},slot:"value"},[n("cu-image",{ref:"images",on:{update:function(t){arguments[0]=t=e.$handleEvent(t),e.updateImages.apply(void 0,arguments)}}})],1)],1),n("u-cell",{attrs:{title:"下次就诊时间",value:e._f("date")(e.info.next_treat_at),isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleDatePicker("next_treat_at","datetime")}}}),n("u-cell",{attrs:{title:"开启通知"}},[n("v-uni-view",{attrs:{slot:"value"},slot:"value"},[n("u-switch",{attrs:{activeValue:0,inactiveValue:1,asyncChange:!0},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.updateSwitch.apply(void 0,arguments)}},model:{value:e.info.is_notified,callback:function(t){e.$set(e.info,"is_notified",t)},expression:"info.is_notified"}})],1)],1),0==e.info.is_notified?n("u-cell",{attrs:{title:"通知医师",value:e.adminUser.notify_user_name,isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.opendAdminUser("notify_user")}}}):e._e(),0==e.info.is_notified?n("u-cell",{attrs:{title:"通知时间",value:e._f("date")(e.info.notify_at,"yyyy-MM-dd"),isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleDatePicker("notify_at","date")}}}):e._e(),n("u-cell",{attrs:{title:"录入时间",value:e.info.created_at}})],1),n("v-uni-view",{staticClass:"btn"},[n("u-button",{attrs:{text:"病人信息",type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.patientDetail.apply(void 0,arguments)}}}),n("u-button",{attrs:{text:"删除病历",type:"error"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.deleteRecord.apply(void 0,arguments)}}})],1),n("select-admin-user",{ref:"select-admin-user",on:{select:function(t){arguments[0]=t=e.$handleEvent(t),e.selectAdminUser.apply(void 0,arguments)}}}),n("u-action-sheet",{attrs:{title:e.type.title,show:e.type.show,actions:e.type.options,closeOnClickOverlay:!0},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleType.apply(void 0,arguments)},select:function(t){arguments[0]=t=e.$handleEvent(t),e.selectType.apply(void 0,arguments)}}}),n("u-datetime-picker",{attrs:{mode:e.datePicker.mode,show:e.datePicker.show,closeOnClickOverlay:!0,minDate:e.datePicker.minDate},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleDatePicker.apply(void 0,arguments)},cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleDatePicker.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.selectDatePicker.apply(void 0,arguments)}},model:{value:e.datePicker.value,callback:function(t){e.$set(e.datePicker,"value",t)},expression:"datePicker.value"}}),n("u-modal",{attrs:{show:e.modal.show,title:e.modal.title,showCancelButton:!0,closeOnClickOverlay:!0,asyncClose:!1},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.confirmModal.apply(void 0,arguments)},cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.closeModal.apply(void 0,arguments)},close:function(t){arguments[0]=t=e.$handleEvent(t),e.closeModal.apply(void 0,arguments)}}},["text"==e.modal.type?n("u--input",{attrs:{border:"surround"},model:{value:e.modal.value,callback:function(t){e.$set(e.modal,"value",t)},expression:"modal.value"}}):e._e(),"number"==e.modal.type?n("u--input",{attrs:{type:"number",border:"surround"},model:{value:e.modal.value,callback:function(t){e.$set(e.modal,"value",t)},expression:"modal.value"}}):e._e(),"textarea"==e.modal.type?n("u--textarea",{attrs:{showConfirmBar:!1},model:{value:e.modal.value,callback:function(t){e.$set(e.modal,"value",t)},expression:"modal.value"}}):e._e()],1),n("u-action-sheet",{attrs:{title:e.orderStatus.title,show:e.orderStatus.show,actions:e.orderStatus.options,closeOnClickOverlay:!0},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleOrderStatus.apply(void 0,arguments)},select:function(t){arguments[0]=t=e.$handleEvent(t),e.selectOrderStatus.apply(void 0,arguments)}}}),n("cu-editor",{ref:"editor",on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.confirmEditor.apply(void 0,arguments)}}}),n("u-picker",{attrs:{show:e.illnessType.show,columns:e.illnessType.list,keyName:"label",closeOnClickOverlay:!0},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.closeIllnessType.apply(void 0,arguments)},cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.closeIllnessType.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.confirmIllnessType.apply(void 0,arguments)}}})],1)},l=[],r=n(159),s=n(3762),u=n(3062),c=(n(423),n(262),n(8770),n(9299),n(7744)),d=n(8272),p=n(7438),f=n(7679),h={components:{SelectAdminUser:d.Z,CuEditor:c.Z,CuImage:f.Z},data:function(){return{id:"",info:{patient_id:"",type_id:"",origin_price:"",sell_price:"",notify_remarks:"",is_notified:0},adminUser:{key:"",doctor_name:"",notify_user_name:""},type:{text:"",title:"类别",show:!1,options:[]},datePicker:{show:!1,mode:"datetime",name:"",value:(new Date).getTime(),minDate:new Date("1900/1/1").getTime()},modal:{type:"text",show:!1,title:"",key:"",value:""},orderStatus:{title:"收费情况",show:!1,text:"",options:p.Z.options},illnessType:{show:!1,value:"",label:"",list:[]}}},onLoad:function(e){this.id=e.id,this.init()},onPullDownRefresh:function(){this.loadData()},methods:{init:function(){var e=this;return(0,u.Z)((0,s.Z)().mark((function t(){var n,a;return(0,s.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.loadData();case 2:return t.next=4,e.$ajax.get("/admin-api/api/keywords/list",{params:{type_key:"illness_type",value:null===(n=e.info)||void 0===n||null===(n=n.type)||void 0===n?void 0:n.key}});case 4:a=t.sent,0==a.status&&(e.illnessType.list=[a.data]);case 6:case"end":return t.stop()}}),t)})))()},loadData:function(){var e=this;return(0,u.Z)((0,s.Z)().mark((function t(){var n,a,i;return(0,s.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.id){t.next=2;break}return t.abrupt("return");case 2:return uni.showLoading(),n={_action:"getData"},t.next=6,e.$ajax.get("/admin-api/record/".concat(e.id),{params:n});case 6:a=t.sent,uni.stopPullDownRefresh(),0==a.status&&(e.info=(0,r.Z)((0,r.Z)({},a.data),{},{treat_at:a.data.treat_at?a.data.treat_at.replaceAll("-","/"):"",next_treat_at:a.data.next_treat_at?a.data.next_treat_at.replaceAll("-","/"):"",notify_at:a.data.notify_at?a.data.notify_at.replaceAll("-","/"):""}),a.data.images&&e.$refs["images"].setList(a.data.images.map((function(e){return{url:e}}))),e.type.text=e.info.type?e.info.type.name:"",e.adminUser.doctor_name=e.info.doctor?e.info.doctor.name:"",e.orderStatus.text=p.Z.map[e.info.order_status],e.adminUser.notify_user_name=e.info.notify_user?e.info.notify_user.name:"",a.data.illness_type&&(i=a.data.illness_type,e.illnessType.label=i.name,e.illnessType.value=i.id));case 9:case"end":return t.stop()}}),t)})))()},update:function(e,t){var n={id:this.id};return n[e]=t,this.$ajax.put("/admin-api/record/".concat(this.id),n,{custom:{loading:!0}})},opendAdminUser:function(e){this.adminUser.key=e,this.$refs["select-admin-user"].open()},closeAdminUser:function(){this.adminUser.key="",this.$refs["select-admin-user"].close()},selectAdminUser:function(e){var t=this,n=this.adminUser.key,a=e.id;this.update("".concat(n,"_id"),a).then((function(i){t.closeAdminUser(),0==i.status&&(t.info["".concat(n,"_id")]=a,t.adminUser["".concat(n,"_name")]=e.name)}))},toggleType:function(){this.type.show=!this.type.show},selectType:function(e){var t=this;this.update("type_id",e.id).then((function(n){0==n.status&&(t.type.text=e.name,t.info.type_id=e.id)}))},toggleDatePicker:function(e,t){if(e){this.datePicker.name=e;var n=this.info[e];n&&(this.datePicker.value=new Date(n).getTime())}t&&(this.datePicker.mode=t),this.datePicker.show=!this.datePicker.show},selectDatePicker:function(e){var t=this,n=uni.$u.timeFormat(e.value,"yyyy-mm-dd hh:MM"),a=this.datePicker.name;this.update(a,n).then((function(e){0==e.status&&(t.info[a]=n,t.toggleDatePicker())}))},openModal:function(e,t,n){this.modal.type=n||"text",this.modal.title=e,this.modal.key=t,this.modal.show=!0,this.modal.value=this.info[t]},confirmModal:function(){var e=this,t=this.modal.key,n=this.modal.value;this.update(t,n).then((function(a){e.closeModal(),0==a.status&&(e.info[t]=n)}))},closeModal:function(){this.modal.show=!1},toggleOrderStatus:function(){this.orderStatus.show=!this.orderStatus.show},selectOrderStatus:function(e){var t=this,n="order_status",a=e.value,i=e.name;this.update(n,a).then((function(e){0==e.status&&(t.orderStatus.text=i,t.info[n]=a)}))},openEditor:function(){this.$refs["editor"].open(this.info.content)},confirmEditor:function(e){var t=this,n=e,a="content";this.update(a,n).then((function(e){0==e.status&&(t.info[a]=n)}))},updateImages:function(e){var t=e.map((function(e){return e.url}));this.update("images",t).then((function(e){0==e.status&&console.log(e)}))},updateSwitch:function(e){var t=this;this.update("is_notified",e).then((function(n){0==n.status&&(t.info.is_notified=e)}))},deleteRecord:function(){var e=this;uni.showModal({title:"删除病历记录",content:"是否确定?",success:function(t){t.confirm&&e.handleDelete(e.id)}})},handleDelete:function(e){uni.showLoading(),this.$ajax.delete("/admin-api/record/".concat(e)).then((function(e){0==e.status&&(uni.showToast({title:"删除成功",icon:"success"}),setTimeout((function(){uni.navigateBack()}),1e3))}))},patientDetail:function(){return uni.navigateTo({url:"/pages/patient/detail?id=".concat(this.info.patient_id)})},openIllnessType:function(){this.illnessType.show=!0},closeIllnessType:function(){this.illnessType.show=!1},confirmIllnessType:function(e){var t=this,n=e.value[0];n&&(this.closeIllnessType(),this.update("illness_type_id",n.value).then((function(e){0==e.status&&(t.info.illness_type_id=n.value,t.illnessType.value=n.value,t.illnessType.label=n.label)})))}}},m=h,v=(n(7561),n(1503)),y=(0,v.Z)(m,o,l,!1,null,"1f8cdd11",null,!1,i,a),g=y.exports},5473:function(e,t,n){"use strict";n.r(t);var a=n(2916),i=n.n(a),o=n(3282),l=n.n(o),r=l()(i());r.push([e.id,".page[data-v-1f8cdd11]{padding:20px;background:#fff}.btn[data-v-1f8cdd11]{padding:0 10px}.btn .u-button[data-v-1f8cdd11]{margin-top:20px}.text-gray[data-v-1f8cdd11]{color:gray}",""]),t["default"]=r},8233:function(e,t,n){"use strict";n.r(t);var a=n(2916),i=n.n(a),o=n(3282),l=n.n(o),r=l()(i());r.push([e.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-2cb119ec], uni-scroll-view[data-v-2cb119ec], uni-swiper-item[data-v-2cb119ec]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-textarea[data-v-2cb119ec]{border-radius:4px;background-color:#fff;position:relative;\ndisplay:flex;\nflex-direction:row;flex:1;padding:9px}.u-textarea--radius[data-v-2cb119ec]{border-radius:4px}.u-textarea--no-radius[data-v-2cb119ec]{border-radius:0}.u-textarea--disabled[data-v-2cb119ec]{background-color:#f5f7fa}.u-textarea__field[data-v-2cb119ec]{flex:1;font-size:15px;color:#606266;width:100%}.u-textarea__count[data-v-2cb119ec]{position:absolute;right:5px;bottom:2px;font-size:12px;color:#909193;background-color:#fff;padding:1px 4px}',""]),t["default"]=r}}]); \ No newline at end of file diff --git a/public/h5/static/js/pages-record-detail.adbfbe50.js b/public/h5/static/js/pages-record-detail.adbfbe50.js deleted file mode 100644 index 80824bc..0000000 --- a/public/h5/static/js/pages-record-detail.adbfbe50.js +++ /dev/null @@ -1 +0,0 @@ -(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[487],{8446:function(e,t,n){var i=n(8062);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(5472).Z;a("ac993a88",i,!0,{sourceMap:!1,shadowMode:!1})},7304:function(e,t,n){var i=n(2727);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(5472).Z;a("6e323258",i,!0,{sourceMap:!1,shadowMode:!1})},9287:function(e,t,n){var i=n(8233);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(5472).Z;a("e9666474",i,!0,{sourceMap:!1,shadowMode:!1})},3625:function(e,t,n){"use strict";var i;n.d(t,{Z:function(){return _}});var a,o,l,s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uvTextarea",{attrs:{value:e.value,placeholder:e.placeholder,height:e.height,confirmType:e.confirmType,disabled:e.disabled,count:e.count,focus:e.focus,autoHeight:e.autoHeight,fixed:e.fixed,cursorSpacing:e.cursorSpacing,cursor:e.cursor,showConfirmBar:e.showConfirmBar,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd,adjustPosition:e.adjustPosition,disableDefaultPadding:e.disableDefaultPadding,holdKeyboard:e.holdKeyboard,maxlength:e.maxlength,border:e.border,customStyle:e.customStyle,formatter:e.formatter,ignoreCompositionEvent:e.ignoreCompositionEvent},on:{focus:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.$emit("focus")}.apply(void 0,arguments)},blur:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.$emit("blur")}.apply(void 0,arguments)},linechange:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.$emit("linechange",t)}.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.$emit("confirm")}.apply(void 0,arguments)},input:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.$emit("input",t)}.apply(void 0,arguments)},keyboardheightchange:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.$emit("keyboardheightchange")}.apply(void 0,arguments)}}})},r=[],u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"u-textarea",class:e.textareaClass,style:[e.textareaStyle]},[n("v-uni-textarea",{staticClass:"u-textarea__field",style:{height:e.$u.addUnit(e.height)},attrs:{value:e.innerValue,placeholder:e.placeholder,"placeholder-style":e.$u.addStyle(e.placeholderStyle,"string"),"placeholder-class":e.placeholderClass,disabled:e.disabled,focus:e.focus,autoHeight:e.autoHeight,fixed:e.fixed,cursorSpacing:e.cursorSpacing,cursor:e.cursor,showConfirmBar:e.showConfirmBar,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd,adjustPosition:e.adjustPosition,disableDefaultPadding:e.disableDefaultPadding,holdKeyboard:e.holdKeyboard,maxlength:e.maxlength,confirmType:e.confirmType,ignoreCompositionEvent:e.ignoreCompositionEvent},on:{focus:function(t){arguments[0]=t=e.$handleEvent(t),e.onFocus.apply(void 0,arguments)},blur:function(t){arguments[0]=t=e.$handleEvent(t),e.onBlur.apply(void 0,arguments)},linechange:function(t){arguments[0]=t=e.$handleEvent(t),e.onLinechange.apply(void 0,arguments)},input:function(t){arguments[0]=t=e.$handleEvent(t),e.onInput.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.onConfirm.apply(void 0,arguments)},keyboardheightchange:function(t){arguments[0]=t=e.$handleEvent(t),e.onKeyboardheightchange.apply(void 0,arguments)}}}),e.count?n("v-uni-text",{staticClass:"u-textarea__count",style:{"background-color":e.disabled?"transparent":"#fff"}},[e._v(e._s(e.innerValue.length)+"/"+e._s(e.maxlength))]):e._e()],1)},c=[],d={props:{value:{type:[String,Number],default:uni.$u.props.textarea.value},placeholder:{type:[String,Number],default:uni.$u.props.textarea.placeholder},placeholderClass:{type:String,default:uni.$u.props.input.placeholderClass},placeholderStyle:{type:[String,Object],default:uni.$u.props.input.placeholderStyle},height:{type:[String,Number],default:uni.$u.props.textarea.height},confirmType:{type:String,default:uni.$u.props.textarea.confirmType},disabled:{type:Boolean,default:uni.$u.props.textarea.disabled},count:{type:Boolean,default:uni.$u.props.textarea.count},focus:{type:Boolean,default:uni.$u.props.textarea.focus},autoHeight:{type:Boolean,default:uni.$u.props.textarea.autoHeight},fixed:{type:Boolean,default:uni.$u.props.textarea.fixed},cursorSpacing:{type:Number,default:uni.$u.props.textarea.cursorSpacing},cursor:{type:[String,Number],default:uni.$u.props.textarea.cursor},showConfirmBar:{type:Boolean,default:uni.$u.props.textarea.showConfirmBar},selectionStart:{type:Number,default:uni.$u.props.textarea.selectionStart},selectionEnd:{type:Number,default:uni.$u.props.textarea.selectionEnd},adjustPosition:{type:Boolean,default:uni.$u.props.textarea.adjustPosition},disableDefaultPadding:{type:Boolean,default:uni.$u.props.textarea.disableDefaultPadding},holdKeyboard:{type:Boolean,default:uni.$u.props.textarea.holdKeyboard},maxlength:{type:[String,Number],default:uni.$u.props.textarea.maxlength},border:{type:String,default:uni.$u.props.textarea.border},formatter:{type:[Function,null],default:uni.$u.props.textarea.formatter},ignoreCompositionEvent:{type:Boolean,default:!0}}},p={name:"u-textarea",mixins:[uni.$u.mpMixin,uni.$u.mixin,d],data(){return{innerValue:"",focused:!1,firstChange:!0,changeFromInner:!1,innerFormatter:e=>e}},watch:{value:{immediate:!0,handler(e,t){this.innerValue=e,!1===this.firstChange&&!1===this.changeFromInner&&this.valueChange(),this.firstChange=!1,this.changeFromInner=!1}}},computed:{textareaClass(){let e=[],{border:t,disabled:n,shape:i}=this;return"surround"===t&&(e=e.concat(["u-border","u-textarea--radius"])),"bottom"===t&&(e=e.concat(["u-border-bottom","u-textarea--no-radius"])),n&&e.push("u-textarea--disabled"),e.join(" ")},textareaStyle(){const e={};return uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))}},methods:{setFormatter(e){this.innerFormatter=e},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e),uni.$u.formValidate(this,"blur")},onLinechange(e){this.$emit("linechange",e)},onInput(e){let{value:t=""}=e.detail||{};const n=this.formatter||this.innerFormatter,i=n(t);this.innerValue=t,this.$nextTick((()=>{this.innerValue=i,this.valueChange()}))},valueChange(){const e=this.innerValue;this.$nextTick((()=>{this.$emit("input",e),this.changeFromInner=!0,this.$emit("change",e),uni.$u.formValidate(this,"change")}))},onConfirm(e){this.$emit("confirm",e)},onKeyboardheightchange(e){this.$emit("keyboardheightchange",e)}}},f=p,h=(n(9287),n(1503)),v=(0,h.Z)(f,u,c,!1,null,"2cb119ec",null,!1,a,o),m=v.exports,y={name:"u--textarea",mixins:[uni.$u.mpMixin,d,uni.$u.mixin],components:{uvTextarea:m}},g=y,x=(0,h.Z)(g,s,r,!1,null,null,null,!1,i,l),_=x.exports},156:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i,a={uLine:n(4060).Z},o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"u-cell-group",class:[e.customClass],style:[e.$u.addStyle(e.customStyle)]},[e.title?n("v-uni-view",{staticClass:"u-cell-group__title"},[e._t("title",[n("v-uni-text",{staticClass:"u-cell-group__title__text"},[e._v(e._s(e.title))])])],2):e._e(),n("v-uni-view",{staticClass:"u-cell-group__wrapper"},[e.border?n("u-line"):e._e(),e._t("default")],2)],1)},l=[],s={props:{title:{type:String,default:uni.$u.props.cellGroup.title},border:{type:Boolean,default:uni.$u.props.cellGroup.border}}},r={name:"u-cell-group",mixins:[uni.$u.mpMixin,uni.$u.mixin,s]},u=r,c=(n(7304),n(1503)),d=(0,c.Z)(u,o,l,!1,null,"38668d34",null,!1,a,i),p=d.exports},7102:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var i,a={uCellGroup:n(156).Z,uCell:n(7981).Z,uSwitch:n(3094).Z,uButton:n(7344).Z,uActionSheet:n(7030).Z,uDatetimePicker:n(2632).Z,uModal:n(5912).Z,"u-Input":n(4159).Z,"u-Textarea":n(3625).Z,uPicker:n(2206).Z},o=function(){var e=this,t=e.$createElement,n=e._self._c||t;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:e.type.text}}),n("u-cell",{attrs:{title:"病种",value:e.illnessType.label,isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.openIllnessType.apply(void 0,arguments)}}}),n("u-cell",{attrs:{title:e.type.text+"时间",value:e._f("date")(e.info.treat_at),isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleDatePicker("treat_at")}}}),n("u-cell",{attrs:{title:"划线价",value:e.info.origin_price,isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.openModal("划线价","origin_price","number")}}}),n("u-cell",{attrs:{title:"实收价",value:e.info.sell_price,isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.openModal("实收价","sell_price","number")}}}),n("u-cell",{attrs:{title:"收费情况",value:e.orderStatus.text,isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleOrderStatus.apply(void 0,arguments)}}}),n("u-cell",{attrs:{title:e.type.text+"医师",value:e.adminUser.doctor_name,label:"提成金额: "+e.info.doctor_money,isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.opendAdminUser("doctor")}}}),n("u-cell",{attrs:{title:"邀请人",value:e.info.inviter?e.info.inviter.name:"",label:"提成金额: "+e.info.inviter_money}}),n("u-cell",{attrs:{title:"业务员",value:e.info.saler?e.info.saler.name:"",label:"提成金额: "+e.info.saler_money}}),n("u-cell",{attrs:{title:e.type.text+"情况",isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.openEditor.apply(void 0,arguments)}}},[n("v-uni-view",{attrs:{slot:"value"},slot:"value"},[n("v-uni-text",[e._v(e._s(e.info.content))])],1)],1),n("u-cell",{attrs:{title:"图片资料"}},[n("v-uni-view",{attrs:{slot:"value"},slot:"value"},[n("cu-image",{ref:"images",on:{update:function(t){arguments[0]=t=e.$handleEvent(t),e.updateImages.apply(void 0,arguments)}}})],1)],1),n("u-cell",{attrs:{title:"下次就诊时间",value:e._f("date")(e.info.next_treat_at),isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleDatePicker("next_treat_at","datetime")}}}),n("u-cell",{attrs:{title:"开启通知"}},[n("v-uni-view",{attrs:{slot:"value"},slot:"value"},[n("u-switch",{attrs:{activeValue:0,inactiveValue:1,asyncChange:!0},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.updateSwitch.apply(void 0,arguments)}},model:{value:e.info.is_notified,callback:function(t){e.$set(e.info,"is_notified",t)},expression:"info.is_notified"}})],1)],1),0==e.info.is_notified?n("u-cell",{attrs:{title:"通知医师",value:e.adminUser.notify_user_name,isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.opendAdminUser("notify_user")}}}):e._e(),0==e.info.is_notified?n("u-cell",{attrs:{title:"通知时间",value:e._f("date")(e.info.notify_at,"yyyy-MM-dd"),isLink:!0,rightIcon:"edit-pen"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleDatePicker("notify_at","date")}}}):e._e(),n("u-cell",{attrs:{title:"录入时间",value:e.info.created_at}})],1),n("v-uni-view",{staticClass:"btn"},[n("u-button",{attrs:{text:"病人信息",type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.patientDetail.apply(void 0,arguments)}}}),n("u-button",{attrs:{text:"删除病历",type:"error"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.deleteRecord.apply(void 0,arguments)}}})],1),n("select-admin-user",{ref:"select-admin-user",on:{select:function(t){arguments[0]=t=e.$handleEvent(t),e.selectAdminUser.apply(void 0,arguments)}}}),n("u-action-sheet",{attrs:{title:e.type.title,show:e.type.show,actions:e.type.options,closeOnClickOverlay:!0},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleType.apply(void 0,arguments)},select:function(t){arguments[0]=t=e.$handleEvent(t),e.selectType.apply(void 0,arguments)}}}),n("u-datetime-picker",{attrs:{mode:e.datePicker.mode,show:e.datePicker.show,closeOnClickOverlay:!0,minDate:e.datePicker.minDate},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleDatePicker.apply(void 0,arguments)},cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleDatePicker.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.selectDatePicker.apply(void 0,arguments)}},model:{value:e.datePicker.value,callback:function(t){e.$set(e.datePicker,"value",t)},expression:"datePicker.value"}}),n("u-modal",{attrs:{show:e.modal.show,title:e.modal.title,showCancelButton:!0,closeOnClickOverlay:!0,asyncClose:!1},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.confirmModal.apply(void 0,arguments)},cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.closeModal.apply(void 0,arguments)},close:function(t){arguments[0]=t=e.$handleEvent(t),e.closeModal.apply(void 0,arguments)}}},["text"==e.modal.type?n("u--input",{attrs:{border:"surround"},model:{value:e.modal.value,callback:function(t){e.$set(e.modal,"value",t)},expression:"modal.value"}}):e._e(),"number"==e.modal.type?n("u--input",{attrs:{type:"number",border:"surround"},model:{value:e.modal.value,callback:function(t){e.$set(e.modal,"value",t)},expression:"modal.value"}}):e._e(),"textarea"==e.modal.type?n("u--textarea",{attrs:{showConfirmBar:!1},model:{value:e.modal.value,callback:function(t){e.$set(e.modal,"value",t)},expression:"modal.value"}}):e._e()],1),n("u-action-sheet",{attrs:{title:e.orderStatus.title,show:e.orderStatus.show,actions:e.orderStatus.options,closeOnClickOverlay:!0},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleOrderStatus.apply(void 0,arguments)},select:function(t){arguments[0]=t=e.$handleEvent(t),e.selectOrderStatus.apply(void 0,arguments)}}}),n("cu-editor",{ref:"editor",on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.confirmEditor.apply(void 0,arguments)}}}),n("u-picker",{attrs:{show:e.illnessType.show,columns:e.illnessType.list,keyName:"label",closeOnClickOverlay:!0},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.closeIllnessType.apply(void 0,arguments)},cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.closeIllnessType.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.confirmIllnessType.apply(void 0,arguments)}}})],1)},l=[],s=n(159),r=n(3762),u=n(3062),c=(n(423),n(262),n(8770),n(9299),n(7744)),d=n(8272),p=n(7438),f=n(7679),h={components:{SelectAdminUser:d.Z,CuEditor:c.Z,CuImage:f.Z},data:function(){return{id:"",info:{patient_id:"",type_id:"",origin_price:"",sell_price:"",notify_remarks:"",is_notified:0},adminUser:{key:"",doctor_name:"",notify_user_name:""},type:{text:"",title:"类别",show:!1,options:[]},datePicker:{show:!1,mode:"datetime",name:"",value:(new Date).getTime(),minDate:new Date("1900/1/1").getTime()},modal:{type:"text",show:!1,title:"",key:"",value:""},orderStatus:{title:"收费情况",show:!1,text:"",options:p.Z.options},illnessType:{show:!1,value:"",label:"",list:[]}}},onLoad:function(e){this.id=e.id,this.init()},onPullDownRefresh:function(){this.loadData()},methods:{init:function(){var e=this;return(0,u.Z)((0,r.Z)().mark((function t(){var n,i;return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.loadData();case 2:return t.next=4,e.$ajax.get("/admin-api/api/keywords/list",{params:{type_key:"illness_type",value:null===(n=e.info)||void 0===n||null===(n=n.type)||void 0===n?void 0:n.key}});case 4:i=t.sent,0==i.status&&(e.illnessType.list=[i.data]);case 6:case"end":return t.stop()}}),t)})))()},loadData:function(){var e=this;return(0,u.Z)((0,r.Z)().mark((function t(){var n,i,a;return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.id){t.next=2;break}return t.abrupt("return");case 2:return uni.showLoading(),n={_action:"getData"},t.next=6,e.$ajax.get("/admin-api/record/".concat(e.id),{params:n});case 6:i=t.sent,uni.stopPullDownRefresh(),0==i.status&&(e.info=(0,s.Z)((0,s.Z)({},i.data),{},{treat_at:i.data.treat_at?i.data.treat_at.replaceAll("-","/"):"",next_treat_at:i.data.next_treat_at?i.data.next_treat_at.replaceAll("-","/"):"",notify_at:i.data.notify_at?i.data.notify_at.replaceAll("-","/"):""}),i.data.images&&e.$refs["images"].setList(i.data.images.map((function(e){return{url:e}}))),e.type.text=e.info.type?e.info.type.name:"",e.adminUser.doctor_name=e.info.doctor?e.info.doctor.name:"",e.orderStatus.text=p.Z.map[e.info.order_status],e.adminUser.notify_user_name=e.info.notify_user?e.info.notify_user.name:"",i.data.illness_type&&(a=i.data.illness_type,e.illnessType.label=a.name,e.illnessType.value=a.id));case 9:case"end":return t.stop()}}),t)})))()},update:function(e,t){var n={id:this.id};return n[e]=t,this.$ajax.put("/admin-api/record/".concat(this.id),n,{custom:{loading:!0}})},opendAdminUser:function(e){this.adminUser.key=e,this.$refs["select-admin-user"].open()},closeAdminUser:function(){this.adminUser.key="",this.$refs["select-admin-user"].close()},selectAdminUser:function(e){var t=this,n=this.adminUser.key,i=e.id;this.update("".concat(n,"_id"),i).then((function(a){t.closeAdminUser(),0==a.status&&(t.info["".concat(n,"_id")]=i,t.adminUser["".concat(n,"_name")]=e.name)}))},toggleType:function(){this.type.show=!this.type.show},selectType:function(e){var t=this;this.update("type_id",e.id).then((function(n){0==n.status&&(t.type.text=e.name,t.info.type_id=e.id)}))},toggleDatePicker:function(e,t){if(e){this.datePicker.name=e;var n=this.info[e];n&&(this.datePicker.value=new Date(n).getTime())}t&&(this.datePicker.mode=t),this.datePicker.show=!this.datePicker.show},selectDatePicker:function(e){var t=this,n=uni.$u.timeFormat(e.value,"yyyy-mm-dd hh:MM"),i=this.datePicker.name;this.update(i,n).then((function(e){0==e.status&&(t.info[i]=n,t.toggleDatePicker())}))},openModal:function(e,t,n){this.modal.type=n||"text",this.modal.title=e,this.modal.key=t,this.modal.show=!0,this.modal.value=this.info[t]},confirmModal:function(){var e=this,t=this.modal.key,n=this.modal.value;this.update(t,n).then((function(i){e.closeModal(),0==i.status&&(e.info[t]=n)}))},closeModal:function(){this.modal.show=!1},toggleOrderStatus:function(){this.orderStatus.show=!this.orderStatus.show},selectOrderStatus:function(e){var t=this,n="order_status",i=e.value,a=e.name;this.update(n,i).then((function(e){0==e.status&&(t.orderStatus.text=a,t.info[n]=i)}))},openEditor:function(){this.$refs["editor"].open(this.info.content)},confirmEditor:function(e){var t=this,n=e,i="content";this.update(i,n).then((function(e){0==e.status&&(t.info[i]=n)}))},updateImages:function(e){var t=e.map((function(e){return e.url}));this.update("images",t).then((function(e){0==e.status&&console.log(e)}))},updateSwitch:function(e){var t=this;this.update("is_notified",e).then((function(n){0==n.status&&(t.info.is_notified=e)}))},deleteRecord:function(){var e=this;uni.showModal({title:"删除病历记录",content:"是否确定?",success:function(t){t.confirm&&e.handleDelete(e.id)}})},handleDelete:function(e){uni.showLoading(),this.$ajax.delete("/admin-api/record/".concat(e)).then((function(e){0==e.status&&(uni.showToast({title:"删除成功",icon:"success"}),setTimeout((function(){uni.navigateBack()}),1e3))}))},patientDetail:function(){return uni.navigateTo({url:"/pages/patient/detail?id=".concat(this.info.patient_id)})},openIllnessType:function(){this.illnessType.show=!0},closeIllnessType:function(){this.illnessType.show=!1},confirmIllnessType:function(e){var t=this,n=e.value[0];n&&(this.closeIllnessType(),this.update("illness_type_id",n.value).then((function(e){0==e.status&&(t.info.illness_type_id=n.value,t.illnessType.value=n.value,t.illnessType.label=n.label)})))}}},v=h,m=(n(8446),n(1503)),y=(0,m.Z)(v,o,l,!1,null,"696e300a",null,!1,a,i),g=y.exports},8062:function(e,t,n){"use strict";n.r(t);var i=n(2916),a=n.n(i),o=n(3282),l=n.n(o),s=l()(a());s.push([e.id,".page[data-v-696e300a]{padding:20px;background:#fff}.btn[data-v-696e300a]{padding:0 10px}.btn .u-button[data-v-696e300a]{margin-top:20px}.text-gray[data-v-696e300a]{color:gray}",""]),t["default"]=s},2727:function(e,t,n){"use strict";n.r(t);var i=n(2916),a=n.n(i),o=n(3282),l=n.n(o),s=l()(a());s.push([e.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-38668d34], uni-scroll-view[data-v-38668d34], uni-swiper-item[data-v-38668d34]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-cell-group[data-v-38668d34]{flex:1}.u-cell-group__title[data-v-38668d34]{padding:16px 16px 8px}.u-cell-group__title__text[data-v-38668d34]{font-size:15px;line-height:16px;color:#303133}.u-cell-group__wrapper[data-v-38668d34]{position:relative}',""]),t["default"]=s},8233:function(e,t,n){"use strict";n.r(t);var i=n(2916),a=n.n(i),o=n(3282),l=n.n(o),s=l()(a());s.push([e.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-2cb119ec], uni-scroll-view[data-v-2cb119ec], uni-swiper-item[data-v-2cb119ec]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-textarea[data-v-2cb119ec]{border-radius:4px;background-color:#fff;position:relative;\ndisplay:flex;\nflex-direction:row;flex:1;padding:9px}.u-textarea--radius[data-v-2cb119ec]{border-radius:4px}.u-textarea--no-radius[data-v-2cb119ec]{border-radius:0}.u-textarea--disabled[data-v-2cb119ec]{background-color:#f5f7fa}.u-textarea__field[data-v-2cb119ec]{flex:1;font-size:15px;color:#606266;width:100%}.u-textarea__count[data-v-2cb119ec]{position:absolute;right:5px;bottom:2px;font-size:12px;color:#909193;background-color:#fff;padding:1px 4px}',""]),t["default"]=s}}]); \ No newline at end of file