diff --git a/app/Admin/Controllers/PatientRecordController.php b/app/Admin/Controllers/PatientRecordController.php index 2e79706..c727d9a 100644 --- a/app/Admin/Controllers/PatientRecordController.php +++ b/app/Admin/Controllers/PatientRecordController.php @@ -115,7 +115,7 @@ class PatientRecordController extends AdminController amisMake()->SelectControl()->options($this->getAdminUserOptions())->searchable()->name('notify_user_id')->label(__('patient-record.notify_user_id')), amisMake()->DateControl()->name('notify_at')->label(__('patient-record.notify_at')), // amisMake()->TextControl()->name('notify_remarks')->label(__('patient-record.notify_remarks')), - amisMake()->TextControl()->label(__('patient-record.creator_id'))->name('creator_id')->value($this->user()->name)->readonly(), + // amisMake()->TextControl()->label(__('patient-record.creator_id'))->name('creator_id')->value($this->user()->name)->readonly(), ]); } @@ -143,8 +143,10 @@ class PatientRecordController extends AdminController ['label' => __('patient-record.saler_ratio'), 'content' => '${saler_ratio}'], ['label' => __('patient-record.saler_money'), 'content' => '${saler_money}'], - ['label' => __('patient-record.content'), 'content' => amisMake()->TextareaControl()->name('content')->static(), 'span' => 3], - ['label' => __('patient-record.images'), 'content' => amisMake()->Images()->source('${images}'), 'span' => 3], + ['label' => __('patient-record.illness_type_id'), 'content' => '${illness_type.name}', 'span' => 3], + + ['label' => __('patient-record.content'), 'content' => amisMake()->Tpl()->tpl('${content | raw}'), 'span' => 3], + ['label' => __('patient-record.images'), 'content' => amisMake()->Images()->source('${images}')->defaultImage(null), 'span' => 3], ['label' => __('patient-record.next_treat_at'), 'content' => '${next_treat_at}'], ['label' => __('patient-record.is_notified'), 'content' => amisMake()->Status()->value('${is_notified}')->source([ diff --git a/app/Admin/Controllers/TotalIllnessTypeController.php b/app/Admin/Controllers/TotalIllnessTypeController.php index d453f21..b6318c8 100644 --- a/app/Admin/Controllers/TotalIllnessTypeController.php +++ b/app/Admin/Controllers/TotalIllnessTypeController.php @@ -6,6 +6,7 @@ use App\Admin\Services\TotalIllnessTypeService; use App\Models\Keyword; use App\Models\PatientRecord; use Slowlyo\OwlAdmin\Controllers\AdminController; +use Slowlyo\OwlAdmin\Support\Excel\AdminExport; /** * 病种统计 @@ -22,7 +23,9 @@ class TotalIllnessTypeController extends AdminController ->filterTogglable(false) ->columnsTogglable(false) ->alwaysShowPagination() - ->headerToolbar([]) + ->headerToolbar([ + $this->exportAction(), + ]) ->filter($this->baseFilter()->actions()->body([ amisMake()->SelectControl()->options($this->getIllness())->name('id')->label(__('total-illness-type.id'))->size('md')->clearable(), amisMake()->DateRangeControl()->name('treat_range')->label(__('total-illness-type.treat_at'))->clearable()->size('md'), @@ -50,4 +53,68 @@ class TotalIllnessTypeController extends AdminController return $this->illness; } + protected function exportAction($disableSelectedItem = false) + { + $event = fn($script) => ['click' => ['actions' => [['actionType' => 'custom', 'script' => $script]]]]; + $downloadPath = '/' . admin_url('_download_export', true); + $exportPath = $this->getExportPath(); + $doAction = <<onEvent( + $event(<<DropdownButton() + ->label(__('admin.export.title')) + ->set('icon', 'fa-solid fa-download') + ->buttons($buttons) + ->align('right') + ->closeOnClick(); + } + + protected function export() + { + // 默认在 storage/app/ 下 + $path = sprintf('%s-%s.xlsx', $this->exportFileName(), date('YmdHis')); + + // 导出本页和导出选中项都是通过 _ids 查询 + $ids = request()->input('_ids'); + + // listQuery() 为列表查询条件,与获取列表数据一致 + $query = $this->service->listQuery() + ->when($ids, fn($query) => $query->whereIn($this->service->primaryKey(), explode(',', $ids))); + + // 此处使用 laravel-excel 导出,可自行修改 + AdminExport::make($query) + ->setHeadings([ + __('total-illness-type.id'), + __('total-illness-type.count'), + ]) + ->setMap(fn($row) => [ + $row->name, + $row->illnessTypeRecords->count() + ]) + ->store($path); + + return $this->response()->success(compact('path')); + } } diff --git a/app/Admin/Controllers/TotalPatientController.php b/app/Admin/Controllers/TotalPatientController.php index c79f922..966f90b 100644 --- a/app/Admin/Controllers/TotalPatientController.php +++ b/app/Admin/Controllers/TotalPatientController.php @@ -6,6 +6,7 @@ use Slowlyo\OwlAdmin\Controllers\AdminController; use App\Models\{Keyword, Patient, PatientRecord}; use Illuminate\Support\Facades\DB; use App\Admin\Services\TotalPatientService; +use Slowlyo\OwlAdmin\Support\Excel\AdminExport; /** * 客户统计 @@ -24,7 +25,9 @@ class TotalPatientController extends AdminController ->filterTogglable(false) ->columnsTogglable(false) ->alwaysShowPagination() - ->headerToolbar([]) + ->headerToolbar([ + $this->exportAction(), + ]) ->filter($this->baseFilter()->actions()->body([ amisMake()->SelectControl()->options($this->getPatientOptions())->searchable()->name('id')->label(__('total-record.name'))->size('md')->clearable(), amisMake()->SelectControl()->options($this->getTypeOptions())->name('type_id')->label(__('patient-record.type_id'))->size('md')->clearable(), @@ -66,5 +69,77 @@ class TotalPatientController extends AdminController return $this->typeOptions; } + + protected function exportAction($disableSelectedItem = false) + { + $event = fn($script) => ['click' => ['actions' => [['actionType' => 'custom', 'script' => $script]]]]; + $downloadPath = '/' . admin_url('_download_export', true); + $exportPath = $this->getExportPath(); + $doAction = <<onEvent( + $event(<<DropdownButton() + ->label(__('admin.export.title')) + ->set('icon', 'fa-solid fa-download') + ->buttons($buttons) + ->align('right') + ->closeOnClick(); + } + + protected function export() + { + // 默认在 storage/app/ 下 + $path = sprintf('%s-%s.xlsx', $this->exportFileName(), date('YmdHis')); + + // 导出本页和导出选中项都是通过 _ids 查询 + $ids = request()->input('_ids'); + + // listQuery() 为列表查询条件,与获取列表数据一致 + $query = $this->service->listQuery() + ->when($ids, fn($query) => $query->whereIn($this->service->primaryKey(), explode(',', $ids))); + + // 此处使用 laravel-excel 导出,可自行修改 + AdminExport::make($query) + ->setHeadings([ + __('total-record.name'), + __('total-record.type_id'), + __('total-record.records_count'), + __('total-record.origin_price'), + __('total-record.sell_price'), + ]) + ->setMap(fn($row) => [ + $row->name, + $row->type?->name, + $row->records->count(), + round($row->records->sum('sell_price'), 2, PHP_ROUND_HALF_DOWN), + round($row->records->sum('origin_price'), 2, PHP_ROUND_HALF_DOWN), + ]) + ->store($path); + + return $this->response()->success(compact('path')); + } + } diff --git a/app/Admin/Controllers/TotalProfitController.php b/app/Admin/Controllers/TotalProfitController.php index 52c297a..2dfec34 100644 --- a/app/Admin/Controllers/TotalProfitController.php +++ b/app/Admin/Controllers/TotalProfitController.php @@ -6,6 +6,7 @@ use App\Admin\Services\TotalProfitService; use App\Models\Keyword; use Slowlyo\OwlAdmin\Controllers\AdminController; use Slowlyo\OwlAdmin\Services\AdminUserService; +use Slowlyo\OwlAdmin\Support\Excel\AdminExport; /** * 提成统计 @@ -24,7 +25,9 @@ class TotalProfitController extends AdminController ->filterTogglable(false) ->columnsTogglable(false) ->alwaysShowPagination() - ->headerToolbar([]) + ->headerToolbar([ + $this->exportAction(), + ]) ->filter($this->baseFilter()->actions()->body([ amisMake()->SelectControl()->options($this->getAdminUserOptions())->searchable()->name('id')->label(__('total-profit.id'))->clearable()->size('md'), amisMake()->SelectControl()->options($this->getTypeOptions())->name('type_id')->label(__('total-profit.type_id'))->size('md')->clearable(), @@ -38,6 +41,7 @@ class TotalProfitController extends AdminController amisMake()->Column()->name('doctor_money')->label(__('total-profit.doctor_money')), amisMake()->Column()->name('inviter_money')->label(__('total-profit.inviter_money')), amisMake()->Column()->name('saler_money')->label(__('total-profit.saler_money')), + amisMake()->Column()->name('total_money')->label(__('total-profit.total_money')), ]) ->affixRowClassName('text-info-dk') ->affixRow([ @@ -46,6 +50,7 @@ class TotalProfitController extends AdminController ['type' => 'text', 'text' => __('total-profit.doctor_money'). ': ${doctor_money}'], ['type' => 'text', 'text' => __('total-profit.inviter_money'). ': ${inviter_money}'], ['type' => 'text', 'text' => __('total-profit.saler_money'). ': ${saler_money}'], + ['type' => 'text', 'text' => __('total-profit.total_money'). ': ${total_money}'], ]); return $this->baseList($crud); @@ -68,4 +73,84 @@ class TotalProfitController extends AdminController return $this->typeOptions; } + + protected function exportAction($disableSelectedItem = false) + { + $event = fn($script) => ['click' => ['actions' => [['actionType' => 'custom', 'script' => $script]]]]; + $downloadPath = '/' . admin_url('_download_export', true); + $exportPath = $this->getExportPath(); + $doAction = <<onEvent( + $event(<<DropdownButton() + ->label(__('admin.export.title')) + ->set('icon', 'fa-solid fa-download') + ->buttons($buttons) + ->align('right') + ->closeOnClick(); + } + + protected function export() + { + // 默认在 storage/app/ 下 + $path = sprintf('%s-%s.xlsx', $this->exportFileName(), date('YmdHis')); + + // 导出本页和导出选中项都是通过 _ids 查询 + $ids = request()->input('_ids'); + + // listQuery() 为列表查询条件,与获取列表数据一致 + $query = $this->service->listQuery() + ->when($ids, fn($query) => $query->whereIn($this->service->primaryKey(), explode(',', $ids))); + + // 此处使用 laravel-excel 导出,可自行修改 + AdminExport::make($query) + ->setHeadings([ + __('total-profit.id'), + __('total-profit.records_count'), + __('total-profit.doctor_money'), + __('total-profit.inviter_money'), + __('total-profit.saler_money'), + __('total-profit.total_money'), + ]) + ->setMap(function ($item) { + $doctor_money = round($item->doctors->sum('doctor_money'), 2, PHP_ROUND_HALF_DOWN); + $inviter_money = round($item->inviters->sum('inviter_money'), 2, PHP_ROUND_HALF_DOWN); + $saler_money = round($item->salers->sum('saler_money'), 2, PHP_ROUND_HALF_DOWN); + $records_count = floor($item->doctors->count() + $item->inviters->count() + $item->salers->count()); + $total_money = round($doctor_money + $inviter_money + $saler_money, 2, PHP_ROUND_HALF_DOWN); + return [ + $item->name, + $records_count, + $doctor_money, + $inviter_money, + $saler_money, + $total_money, + ]; + }) + ->store($path); + + return $this->response()->success(compact('path')); + } } diff --git a/app/Admin/Services/TotalProfitService.php b/app/Admin/Services/TotalProfitService.php index a1300a0..a2f3fc9 100644 --- a/app/Admin/Services/TotalProfitService.php +++ b/app/Admin/Services/TotalProfitService.php @@ -48,6 +48,7 @@ class TotalProfitService extends BaseService $item['inviter_money'] = round($item->inviters->sum('inviter_money'), 2, PHP_ROUND_HALF_DOWN); $item['saler_money'] = round($item->salers->sum('saler_money'), 2, PHP_ROUND_HALF_DOWN); $item['records_count'] = floor($item->doctors->count() + $item->inviters->count() + $item->salers->count()); + $item['total_money'] = round($item['doctor_money'] + $item['inviter_money'] + $item['saler_money'], 2, PHP_ROUND_HALF_DOWN); return $item; }); $allList = (clone $query)->get(); @@ -55,10 +56,11 @@ class TotalProfitService extends BaseService $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); - return compact('items', 'total', 'records_count', 'doctor_money', 'inviter_money', 'saler_money'); + return compact('items', 'total', 'records_count', 'doctor_money', 'inviter_money', 'saler_money', 'total_money'); } } diff --git a/public/h5/index.html b/public/h5/index.html index 2e12d7d..a5160f4 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/index.2acbe9ee.js b/public/h5/static/js/index.db70b582.js similarity index 97% rename from public/h5/static/js/index.2acbe9ee.js rename to public/h5/static/js/index.db70b582.js index d7468ed..d5ca809 100644 --- a/public/h5/static/js/index.2acbe9ee.js +++ b/public/h5/static/js/index.db70b582.js @@ -1 +1 @@ -(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:"/h5/"},o.g.__uniConfig.publicPath="/h5/",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(432),o.e(981),o.e(58)]).then(function(){return n(o(4769))}.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(8289))}.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-login",(function(n){var e={component:Promise.all([o.e(432),o.e(885),o.e(159),o.e(696),o.e(449)]).then(function(){return n(o(814))}.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-index",(function(n){var e={component:Promise.all([o.e(432),o.e(885),o.e(981),o.e(695),o.e(30),o.e(35),o.e(268),o.e(225)]).then(function(){return n(o(4605))}.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(432),o.e(885),o.e(981),o.e(695),o.e(30),o.e(35),o.e(995),o.e(159),o.e(810)]).then(function(){return n(o(4803))}.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-form",(function(n){var e={component:Promise.all([o.e(432),o.e(885),o.e(981),o.e(695),o.e(30),o.e(35),o.e(995),o.e(159),o.e(696),o.e(611)]).then(function(){return n(o(8414))}.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-form",(function(n){var e={component:Promise.all([o.e(432),o.e(885),o.e(981),o.e(695),o.e(35),o.e(995),o.e(696),o.e(37),o.e(668)]).then(function(){return n(o(1960))}.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(432),o.e(885),o.e(981),o.e(695),o.e(30),o.e(268),o.e(492)]).then(function(){return n(o(9688))}.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(432),o.e(885),o.e(981),o.e(695),o.e(30),o.e(35),o.e(995),o.e(159),o.e(37),o.e(487)]).then(function(){return n(o(7069))}.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/login",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"登录"})},[n("pages-login-login",{slot:"page"})])}},meta:{name:"pages-login-login",isNVue:!1,maxWidth:0,pagePath:"pages/login/login",windowTop:0}},{path:"/pages/patient/index",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"病人管理",enablePullDownRefresh:!0})},[n("pages-patient-index",{slot:"page"})])}},meta:{name:"pages-patient-index",isNVue:!1,maxWidth:0,pagePath:"pages/patient/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/patient/form",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"病人表单"})},[n("pages-patient-form",{slot:"page"})])}},meta:{name:"pages-patient-form",isNVue:!1,maxWidth:0,pagePath:"pages/patient/form",windowTop:0}},{path:"/pages/record/form",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"病历表单"})},[n("pages-record-form",{slot:"page"})])}},meta:{name:"pages-record-form",isNVue:!1,maxWidth:0,pagePath:"pages/record/form",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_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:"d6c29419",159:"672f40f9",225:"c1d9ae12",268:"22e1db63",432:"318d7fe6",449:"37904698",487:"9ba03a72",492:"8c8ae3c5",545:"9d00bff3",611:"dcdd546e",668:"2584657d",695:"9e93b8ed",696:"af72a6ec",810:"17beccc3",885:"deb7a36f",981:"925b79b6",995:"7cb326b5"}[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:"9026f80e",58:"2b960175",159:"672f40f9",225:"c1d9ae12",268:"22e1db63",432:"318d7fe6",449:"37904698",487:"9ba03a72",492:"b7febb11",545:"9d00bff3",611:"dcdd546e",668:"2584657d",695:"9e93b8ed",696:"af72a6ec",810:"0205c348",885:"deb7a36f",981:"925b79b6",995:"7cb326b5"}[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;l2){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},4769: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(4485),n(1503)),s=(0,l.Z)(o,A,r,!1,null,"5c93247f",null,!1,a,i),c=s.exports},8719: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-5c93247f]{padding:0 10px}.info[data-v-5c93247f]{margin-top:%?100?%;background:#fff}.btns[data-v-5c93247f]{margin-top:%?300?%;display:flex;flex-direction:column;align-items:center}.btns .btn[data-v-5c93247f]{width:100%;margin-top:20px}.footer[data-v-5c93247f]{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 +(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[58],{4563:function(t,e,n){var i=n(8644);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var a=n(5472).Z;a("f6eb01d6",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},7637: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(4563),n(1503)),s=(0,l.Z)(o,A,r,!1,null,"074e0e45",null,!1,a,i),c=s.exports},8644: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-074e0e45]{padding:0 10px}.info[data-v-074e0e45]{margin-top:%?100?%;background:#fff}.btns[data-v-074e0e45]{margin-top:%?300?%;display:flex;flex-direction:column;align-items:center}.btns .btn[data-v-074e0e45]{width:100%;margin-top:20px}.footer[data-v-074e0e45]{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.17beccc3.js b/public/h5/static/js/pages-patient-detail.0205c348.js similarity index 69% rename from public/h5/static/js/pages-patient-detail.17beccc3.js rename to public/h5/static/js/pages-patient-detail.0205c348.js index 6e8b15f..cf047d9 100644 --- a/public/h5/static/js/pages-patient-detail.17beccc3.js +++ b/public/h5/static/js/pages-patient-detail.0205c348.js @@ -1 +1 @@ -(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[810],{4393:function(t,e,n){var i=n(6300);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var a=n(5472).Z;a("7987baf3",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 f}});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,d=(n(7304),n(1503)),r=(0,d.Z)(u,o,l,!1,null,"38668d34",null,!1,a,i),f=r.exports},4803:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return m}});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.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.type?t.info.type.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,rightIcon:"edit-pen"}},[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.handleCall(t.info.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))])],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:"初诊时间",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:"初诊医生",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:{title:"性别",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)}}})],1)},l=[],s=n(159),c=(n(423),n(262),n(8770),n(9299),n(8059)),u=n(2973),d=n(7744),r=n(7679),f={components:{SelectAdminUser:u.Z,CuEditor:d.Z,CuImage:r.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:""}}},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("-","/"):""}),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,e.info[n].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)}))},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:"删除 "+this.info.name,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){console.log(t),window.open("tel:".concat(t),"_blank")}}},p=f,h=(n(4393),n(1503)),v=(0,h.Z)(p,o,l,!1,null,"4f08ffa2",null,!1,a,i),m=v.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},6300: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-4f08ffa2]{padding:20px;background:#fff}.u-cell-group[data-v-4f08ffa2]{background:#fff}.btn[data-v-4f08ffa2]{padding:0 10px}.btn .u-button[data-v-4f08ffa2]{margin-top:20px}.page[data-v-4f08ffa2] .u-upload__wrap{justify-content:flex-end}.text-gray[data-v-4f08ffa2]{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 +(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[810],{7599:function(t,e,n){var i=n(2706);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var a=n(5472).Z;a("9b7dd070",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 p}});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,d=(n(7304),n(1503)),r=(0,d.Z)(u,o,l,!1,null,"38668d34",null,!1,a,i),p=r.exports},1618:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return m}});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.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.type?t.info.type.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,rightIcon:"edit-pen"}},[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.handleCall(t.info.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))])],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:"初诊时间",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:"初诊医生",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:{title:"性别",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)}}})],1)},l=[],s=n(159),c=(n(423),n(262),n(8770),n(9299),n(8059)),u=n(2973),d=n(7744),r=n(7679),p={components:{SelectAdminUser:u.Z,CuEditor:d.Z,CuImage:r.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:""}}},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("-","/"):""}),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)}))},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:"删除 "+this.info.name,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){window.open("tel:".concat(t),"_blank")}}},f=p,h=(n(7599),n(1503)),v=(0,h.Z)(f,o,l,!1,null,"89536be0",null,!1,a,i),m=v.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},2706: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-89536be0]{padding:20px;background:#fff}.u-cell-group[data-v-89536be0]{background:#fff}.btn[data-v-89536be0]{padding:0 10px}.btn .u-button[data-v-89536be0]{margin-top:20px}.page[data-v-89536be0] .u-upload__wrap{justify-content:flex-end}.text-gray[data-v-89536be0]{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-index.8c8ae3c5.js b/public/h5/static/js/pages-record-index.8c8ae3c5.js deleted file mode 100644 index 356b32b..0000000 --- a/public/h5/static/js/pages-record-index.8c8ae3c5.js +++ /dev/null @@ -1,3 +0,0 @@ -(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[492],{6890:function(t,e,n){var i=n(4610);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var r=n(5472).Z;r("bbce7d14",i,!0,{sourceMap:!1,shadowMode:!1})},2333:function(t,e,n){var i=n(8783);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var r=n(5472).Z;r("511a4259",i,!0,{sourceMap:!1,shadowMode:!1})},8570:function(t,e,n){"use strict";var i;n.d(e,{Z:function(){return p}});var r,o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{ref:"u-subsection",staticClass:"u-subsection",class:["u-subsection--"+t.mode],style:[t.$u.addStyle(t.customStyle),t.wrapperStyle]},[n("v-uni-view",{ref:"u-subsection__bar",staticClass:"u-subsection__bar",class:["button"===t.mode&&"u-subsection--button__bar",0===t.current&&"subsection"===t.mode&&"u-subsection__bar--first",t.current>0&&t.current{const e={};return"subsection"===this.mode&&(e.borderColor=this.activeColor,e.borderWidth="1px",e.borderStyle="solid"),e}},textStyle(t){return t=>{const e={};return e.fontWeight=this.bold&&this.current===t?"bold":"normal",e.fontSize=uni.$u.addUnit(this.fontSize),"subsection"===this.mode?e.color=this.current===t?"#fff":this.inactiveColor:e.color=this.current===t?this.activeColor:this.inactiveColor,e}}},mounted(){this.init()},methods:{init(){uni.$u.sleep().then((()=>this.getRect()))},getText(t){return"object"===typeof t?t[this.keyName]:t},getRect(){this.$uGetRect(".u-subsection__item--0").then((t=>{this.itemRect=t}))},clickHandler(t){this.$emit("change",t)}}},c=u,l=(n(2333),n(1503)),d=(0,l.Z)(c,o,a,!1,null,"9665f2ea",null,!1,i,r),p=d.exports},9688:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return h}});var i,r={uSubsection:n(8570).Z,uButton:n(7344).Z,uList:n(4307).Z,uSwipeAction:n(3309).Z,uListItem:n(8556).Z,uSwipeActionItem:n(8268).Z,uCell:n(7981).Z,uIcon:n(5862).Z,uActionSheet:n(7030).Z},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page"},[n("u-subsection",{attrs:{list:t.typeList,current:t.typeIndex,fontSize:"16"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeType.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"add-button"},[n("u-button",{attrs:{type:"primary",icon:"plus",shape:"circle",size:"large"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.add.apply(void 0,arguments)}}})],1),n("u-list",{staticClass:"list",on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.reachBottom.apply(void 0,arguments)}}},[n("u-swipe-action",t._l(t.list,(function(e){return n("u-list-item",{key:e.id},[n("u-swipe-action-item",{attrs:{options:t.swipeOption,name:e.id},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.swipeClick.apply(void 0,arguments)}}},[n("u-cell",{attrs:{size:"large",url:"/pages/record/detail?id="+e.id}},[n("v-uni-view",{staticClass:"title",attrs:{slot:"title"},slot:"title"},[n("v-uni-view",{staticClass:"list-item-title"},[t._v(t._s(e.doctor?e.doctor.name:""))]),n("v-uni-view",{staticClass:"list-item-price"},[n("v-uni-text",{staticStyle:{color:"#dd524d","font-size":"19px"}},[n("u-icon",{attrs:{name:"rmb",color:"#dd524d",size:"19px"}}),t._v(t._s(e.sell_price))],1),n("v-uni-text",{staticStyle:{color:"#c0c0c0","text-decoration":"line-through"}},[t._v(t._s(e.origin_price))])],1)],1),n("v-uni-view",{staticClass:"label",attrs:{slot:"label"},slot:"label"},[n("v-uni-view",[t._v("就诊时间: "+t._s(e.treat_at))])],1)],1)],1)],1)})),1)],1),n("u-action-sheet",{attrs:{actions:t.option.list,title:t.option.title,show:t.option.show,closeOnClickOverlay:!0},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.closeOption.apply(void 0,arguments)},select:function(e){arguments[0]=e=t.$handleEvent(e),t.chooseOption.apply(void 0,arguments)}}})],1)},a=[],s=n(3762),u=n(3062),c=(n(6228),{data:function(){return{patient_id:"",patient:{},typeIndex:0,perPage:20,typeList:[],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"}}]}},onLoad:function(t){this.patient_id=t.patient,this.init()},onShow:function(){this.loadData(!0)},onPullDownRefresh:function(){this.loadData(!0)},methods:{init:function(){var t=this;return(0,u.Z)((0,s.Z)().mark((function e(){var n;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$ajax.get("/admin-api/patient/".concat(t.patient_id),{params:{_action:"getData"}});case 2:return n=e.sent,0==n.status&&(t.patient=n.data,uni.setNavigationBarTitle({title:"".concat(t.patient.name,"-病历记录")})),e.next=6,t.$ajax.get("/admin-api/category",{params:{_action:"getData"}});case 6:n=e.sent,0==n.status&&(t.typeList=n.data.items),t.loadData(!0);case 9:case"end":return e.stop()}}),e)})))()},changeType:function(t){this.typeIndex=t,this.loadData(!0)},loadData:function(t){var e=this;if(t&&(this.list=[],this.page=1),0!=this.typeList.length){uni.showLoading();var n=this.typeList[this.typeIndex],i={_action:"getData",page:this.page,perPage:this.perPage,type_id:n.id,patient_id:this.patient_id};this.$ajax.get("/admin-api/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=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;j(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:D(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),y}},e}}}]); \ No newline at end of file diff --git a/public/h5/static/js/pages-record-index.b7febb11.js b/public/h5/static/js/pages-record-index.b7febb11.js new file mode 100644 index 0000000..644dc1f --- /dev/null +++ b/public/h5/static/js/pages-record-index.b7febb11.js @@ -0,0 +1,3 @@ +(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[492],{4946:function(t,e,n){var i=n(5270);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var r=n(5472).Z;r("5b0d3a82",i,!0,{sourceMap:!1,shadowMode:!1})},2498:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return f}});var i,r={uButton:n(7344).Z,uList:n(4307).Z,uSwipeAction:n(3309).Z,uListItem:n(8556).Z,uSwipeActionItem:n(8268).Z,uCell:n(7981).Z,uIcon:n(5862).Z,uActionSheet:n(7030).Z},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page"},[n("v-uni-view",{staticClass:"add-button"},[n("u-button",{attrs:{type:"primary",icon:"plus",shape:"circle",size:"large"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.add.apply(void 0,arguments)}}})],1),n("u-list",{staticClass:"list",on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.reachBottom.apply(void 0,arguments)}}},[n("u-swipe-action",t._l(t.list,(function(e){return n("u-list-item",{key:e.id},[n("u-swipe-action-item",{attrs:{options:t.swipeOption,name:e.id},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.swipeClick.apply(void 0,arguments)}}},[n("u-cell",{attrs:{size:"large",url:"/pages/record/detail?id="+e.id}},[n("v-uni-view",{staticClass:"title",attrs:{slot:"title"},slot:"title"},[n("v-uni-view",{staticClass:"list-item-title"},[t._v("医师: "+t._s(e.doctor?e.doctor.name:""))]),n("v-uni-view",{staticClass:"list-item-price"},[n("v-uni-text",{staticStyle:{color:"#dd524d","font-size":"19px"}},[n("u-icon",{attrs:{name:"rmb",color:"#dd524d",size:"19px"}}),t._v(t._s(e.sell_price))],1),n("v-uni-text",{staticStyle:{color:"#c0c0c0","text-decoration":"line-through"}},[t._v(t._s(e.origin_price))])],1)],1),n("v-uni-view",{staticClass:"label",attrs:{slot:"label"},slot:"label"},[t._v("时间: "+t._s(e.treat_at))])],1)],1)],1)})),1)],1),n("u-action-sheet",{attrs:{actions:t.option.list,title:t.option.title,show:t.option.show,closeOnClickOverlay:!0},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.closeOption.apply(void 0,arguments)},select:function(e){arguments[0]=e=t.$handleEvent(e),t.chooseOption.apply(void 0,arguments)}}})],1)},a=[],c=n(3762),s=n(3062),u=(n(6228),{data:function(){return{patient_id:"",patient:{},typeIndex:0,perPage:20,typeList:[],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"}}]}},onLoad:function(t){this.patient_id=t.patient,this.init()},onShow:function(){this.loadData(!0)},onPullDownRefresh:function(){this.loadData(!0)},methods:{init:function(){var t=this;return(0,s.Z)((0,c.Z)().mark((function e(){var n;return(0,c.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$ajax.get("/admin-api/patient/".concat(t.patient_id),{params:{_action:"getData"}});case 2:n=e.sent,0==n.status&&(t.patient=n.data,uni.setNavigationBarTitle({title:"".concat(t.patient.name,"-病历记录")})),t.loadData(!0);case 5:case"end":return e.stop()}}),e)})))()},changeType:function(t){this.typeIndex=t,this.loadData(!0)},loadData:function(t){var e=this;t&&(this.list=[],this.page=1),uni.showLoading();var n={_action:"getData",page:this.page,perPage:this.perPage,patient_id:this.patient_id};this.$ajax.get("/admin-api/record?",{params:n}).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=0;--r){var a=this.tryEntries[r],c=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),D(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;D(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:S(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}}}]); \ No newline at end of file