From 5319d5b95497b5b546947ac340c14c71e5b54ca6 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期三, 10 十二月 2025 09:57:58 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/patient/index.vue | 853 ++++++++++++++++++++++++++++++++++++++-----------------
1 files changed, 584 insertions(+), 269 deletions(-)
diff --git a/src/views/patient/patient/index.vue b/src/views/patient/patient/index.vue
index c46f861..3092bca 100644
--- a/src/views/patient/patient/index.vue
+++ b/src/views/patient/patient/index.vue
@@ -1,7 +1,7 @@
<template>
<div class="Questionnairemanagement">
<!-- 宸︿晶鏍� -->
- <div class="sidecolumn">
+ <!-- <div class="sidecolumn">
<div class="sidecolumn-top">
<div class="top-wj">鍖婚櫌鎮h��</div>
</div>
@@ -12,17 +12,16 @@
v-model="queryParams.allhosp"
@tab-click="handleClick"
>
- <el-tab-pane label="鎮h�呭垪琛�" name="0"></el-tab-pane>
- <el-tab-pane label="浣忛櫌鎮h��" name="1"></el-tab-pane>
+ <el-tab-pane label="鍑哄叆闄㈡偅鑰�" name="1"></el-tab-pane>
<el-tab-pane label="闂ㄨ瘖鎮h��" name="2"></el-tab-pane>
<el-tab-pane label="浣撴鎮h��" name="3"></el-tab-pane>
</el-tabs>
</div>
- </div>
+ </div> -->
<!-- 鍙充晶鏁版嵁 -->
<div class="leftvlue">
- <div>
+ <!-- <div>
<el-row :gutter="10">
<el-col :span="2.5" v-for="(item, index) in cardlist" :key="index">
<el-card
@@ -45,7 +44,7 @@
</el-card>
</el-col>
</el-row>
- </div>
+ </div> -->
<div class="leftvlue-bg">
<el-row :gutter="20">
<!--鐢ㄦ埛鏁版嵁-->
@@ -58,54 +57,35 @@
v-show="showSearch"
label-width="98px"
>
- <!-- <el-form-item label="闄㈠尯" prop="userName">
- <el-select v-model="queryParams.value1" placeholder="璇烽�夋嫨">
- <el-option
- v-for="item in options"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- >
- </el-option>
- </el-select>
- </el-form-item> -->
- <!-- <el-form-item label="绉戝/鐥呭尯" prop="userName">
- <el-select v-model="queryParams.value2" placeholder="璇烽�夋嫨">
- <el-option
- v-for="item in options"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- >
- </el-option>
- </el-select>
- </el-form-item> -->
- <el-form-item
- label-width="138px"
- label="涓绘不鍖荤敓"
- prop="userName"
- >
- <el-input
- v-model="queryParams.drname"
- placeholder="璇疯緭鍏ュ尰鐢熷鍚�"
- maxlength="30"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
-
- <el-form-item label="闂ㄨ瘖缂栧彿" prop="visitno">
- <el-input
- v-model="queryParams.visitno"
- placeholder="璇疯緭鍏ョ紪鍙�"
- maxlength="30"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="濮撳悕" prop="name">
+ <el-form-item label="鎮h�呭鍚�" prop="name">
<el-input
v-model="queryParams.name"
placeholder="璇疯緭鍏ュ鍚�"
maxlength="30"
+ @keyup.enter.native="handleQuery"
+ />
+ </el-form-item>
+ <el-form-item label="鎮h�呮爣绛�" prop="tagname">
+ <el-input
+ v-model="queryParams.tagname"
+ placeholder="杈撳叆杩涜妯$硦鏌ヨ"
+ maxlength="30"
+ @keyup.enter.native="handleQuery"
+ />
+ </el-form-item>
+ <el-form-item label="鎮h�呮�у埆" prop="tagId">
+ <el-select
+ v-model="queryParams.sex"
+ placeholder="璇烽�夋嫨鎮h�呮�у埆"
+ >
+ <el-option label="鐢�" :value="1"> </el-option>
+ <el-option label="濂�" :value="2"> </el-option>
+ </el-select>
+ </el-form-item>
+ <el-form-item label="鎮h�呭勾榫�" prop="telcode">
+ <el-input
+ v-model="queryParams.age"
+ placeholder="璇疯緭鍏ユ煡璇㈠勾榫�"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
@@ -136,7 +116,7 @@
</el-form>
<el-row :gutter="10" class="mb8">
- <el-col :span="1.5">
+ <!-- <el-col :span="1.5">
<el-button
type="primary"
plain
@@ -146,19 +126,8 @@
v-hasPermi="['system:user:add']"
>鏂板</el-button
>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="success"
- plain
- icon="el-icon-edit"
- size="medium"
- :disabled="single"
- @click="handleUpdate"
- v-hasPermi="['system:user:edit']"
- >淇敼</el-button
- >
- </el-col>
+ </el-col> -->
+
<el-col :span="1.5">
<el-button
type="danger"
@@ -212,16 +181,10 @@
<el-table
v-loading="loading"
:data="userList"
+ height="660"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="50" align="center" />
- <el-table-column
- fixed
- label="搴忓彿"
- align="center"
- key="id"
- prop="id"
- />
<el-table-column
fixed
label="濮撳悕"
@@ -229,6 +192,14 @@
key="name"
prop="name"
/>
+ <el-table-column
+ label="鎮h�呯紪鍙�"
+ align="center"
+ key="patientno"
+ prop="patientno"
+ width="180"
+ />
+
<el-table-column label="鎬у埆" align="center" key="sex" prop="sex">
<template slot-scope="scope">
<span>{{ scope.row.sex == 1 ? "鐢�" : "濂�" }}</span>
@@ -239,14 +210,22 @@
align="center"
key="age"
prop="age"
- width="120"
- />
+ width="160"
+ >
+ <template slot-scope="scope">
+ <span v-if="scope.row.age"
+ >{{ scope.row.age }}{{ scope.row.ageUnit }}</span
+ ><span v-if="scope.row.age2"
+ >{{ scope.row.age2 }}{{ scope.row.ageUnit2 }}</span
+ >
+ </template>
+ </el-table-column>
<el-table-column
label="鍑虹敓骞存湀"
align="center"
key="birthdate"
prop="birthdate"
- width="160"
+ width="120"
>
</el-table-column>
<el-table-column
@@ -254,7 +233,8 @@
align="center"
key="placeOfResidence"
prop="placeOfResidence"
- width="120"
+ width="150"
+ :show-overflow-tooltip="true"
/>
<el-table-column
label="鎮h�呮爣绛�"
@@ -271,12 +251,6 @@
</template>
</el-table-column>
<el-table-column
- label="璇佷欢绫诲瀷"
- align="center"
- key="idcardtype"
- prop="idcardtype"
- width="120"
- /><el-table-column
label="璇佷欢鍙风爜"
align="center"
key="idcardno"
@@ -298,6 +272,9 @@
prop="createTime"
width="160"
>
+ <template slot-scope="scope">
+ <span>{{ formatTime(scope.row.createTime) }}</span>
+ </template>
</el-table-column>
<el-table-column
label="鏇存柊鏃ユ湡"
@@ -306,7 +283,7 @@
width="160"
>
<template slot-scope="scope">
- <span>{{ parseTime(scope.row.createTime) }}</span>
+ <span>{{ formatTime(scope.row.archivetime) }}</span>
</template>
</el-table-column>
<el-table-column
@@ -326,29 +303,34 @@
query: { id: scope.row.id },
})
"
- v-hasPermi="['system:user:edit']"
><span class="button-textsc"
><i class="el-icon-zoom-in"></i>璇︽儏缂栬緫</span
+ ></el-button
+ >
+ <el-button
+ size="medium"
+ type="text"
+ @click="handleUpdate(scope.row)"
+ ><span class="button-textxga"
+ ><i class="el-icon-edit"></i>鎮h�呰繃婊�</span
+ ></el-button
+ >
+ <el-button
+ size="medium"
+ type="text"
+ @click="openContractDialog(scope.row)"
+ ><span class="button-textxg"
+ ><i class="el-icon-menu"></i>鎮h�呯绾�</span
></el-button
>
<!-- <el-button
size="medium"
type="text"
- @click="handleUpdate(scope.row)"
- v-hasPermi="['system:user:edit']"
- ><span class="button-textxga"
- ><i class="el-icon-edit"></i>淇敼</span
+ @click="RiskMarker(scope.row)"
+ ><span class="button-textxg"
+ ><i class="el-icon-menu"></i>椋庨櫓鏍囪</span
></el-button
> -->
- <el-button
- size="medium"
- type="text"
- @click="Distributionservice(scope.row)"
- v-hasPermi="['system:user:edit']"
- ><span class="button-textxg"
- ><i class="el-icon-menu"></i>鏈嶅姟</span
- ></el-button
- >
</template>
</el-table-column>
</el-table>
@@ -437,7 +419,7 @@
width="160"
>
<template slot-scope="scope">
- <span>{{ parseTime(scope.row.createTime) }}</span>
+ <span>{{ formatTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column
@@ -507,7 +489,7 @@
<el-form-item label="鎬у埆" prop="sex">
<el-select v-model="form.sex" placeholder="璇烽�夋嫨鎬у埆">
<el-option
- v-for="dict in dict.type.sys_user_sex"
+ v-for="dict in sextype"
:key="dict.value"
:label="dict.label"
:value="dict.value"
@@ -525,7 +507,7 @@
</el-form-item>
</el-col>
</el-row>
- <el-row>
+ <el-row v-if="!amendtag">
<el-col :span="8">
<el-form-item label="姘戞棌" prop="name">
<el-input
@@ -554,32 +536,10 @@
</el-form-item>
</el-col>
</el-row>
- <el-row>
+
+ <el-row v-if="!amendtag">
<el-col :span="12">
- <el-form-item label="璇佷欢绫诲瀷" prop="idcardtype">
- <el-select v-model="form.idcardtype" placeholder="璇烽�夋嫨鎬у埆">
- <el-option
- v-for="item in paperstypes"
- :key="item.papersname"
- :label="item.papersname"
- :value="item.papersname"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="璇佷欢鍙�" prop="idcardno">
- <el-input
- v-model="form.idcardno"
- placeholder="璇疯緭鍏ヨ瘉浠跺彿"
- maxlength="50"
- />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="12">
- <el-form-item label="鍑虹敓鍦�" prop="idcardno">
+ <el-form-item label="鍑虹敓鍦�" prop="birthplace">
<el-input
v-model="form.birthplace"
placeholder="鍥姐�佺渷銆佸湴甯傘�佸尯鍘裤�佽閬撶瓑璇︾粏淇℃伅"
@@ -587,7 +547,7 @@
/>
</el-form-item> </el-col
><el-col :span="12">
- <el-form-item label="灞呬綇鍦�" prop="idcardno">
+ <el-form-item label="灞呬綇鍦�" prop="placeOfResidence">
<el-input
v-model="form.placeOfResidence"
placeholder="鍥姐�佺渷銆佸湴甯傘�佸尯鍘裤�佽閬撶瓑璇︾粏淇℃伅"
@@ -596,8 +556,9 @@
</el-form-item>
</el-col>
</el-row>
+
<el-row>
- <el-col :span="24">
+ <el-col :span="amendtag ? 12 : 24" v-if="!amendtag">
<el-form-item label="鎮h�呯被鍨�">
<el-select v-model="form.pattype" placeholder="璇烽�夋嫨绫诲瀷">
<el-option
@@ -609,9 +570,32 @@
</el-select>
</el-form-item>
</el-col>
+ <!-- <el-col :span="12" v-if="amendtag">
+ <el-form-item label="杩囨护璇存槑">
+ <el-select v-model="form.notrequiredreason" placeholder="璇烽�夋嫨杩囨护绫诲瀷">
+ <el-option
+ v-for="item in dict.type.futter_patient"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ ></el-option>
+ </el-select>
+ </el-form-item>
+ </el-col> -->
</el-row>
<el-row>
- <el-col :span="24">
+ <el-col :span="24" v-if="amendtag">
+ <el-form-item label="杩囨护鍘熷洜">
+ <el-input
+ v-model="form.notrequiredreason"
+ type="textarea"
+ placeholder="璇疯緭鍏ヨ繃婊ゅ師鍥�"
+ ></el-input>
+ </el-form-item>
+ </el-col>
+ </el-row>
+ <el-row>
+ <el-col :span="24" v-if="!amendtag">
<el-form-item label="澶囨敞">
<el-input
v-model="form.remark"
@@ -648,20 +632,19 @@
:limit="1"
accept=".xlsx, .xls"
:headers="upload.headers"
- :action="upload.url + '?updateSupport=' + upload.updateSupport"
+ :action="upload.url"
:disabled="upload.isUploading"
:on-progress="handleFileUploadProgress"
:on-success="handleFileSuccess"
- :auto-upload="false"
drag
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">灏嗘枃浠舵嫋鍒版澶勶紝鎴�<em>鐐瑰嚮涓婁紶</em></div>
<div class="el-upload__tip text-center" slot="tip">
- <div class="el-upload__tip" slot="tip">
+ <!-- <div class="el-upload__tip" slot="tip">
<el-checkbox v-model="upload.updateSupport" />
鏄惁鏇存柊宸茬粡瀛樺湪鐨勭敤鎴锋暟鎹�
- </div>
+ </div> -->
<span>浠呭厑璁稿鍏ls銆亁lsx鏍煎紡鏂囦欢銆�</span>
<el-link
type="primary"
@@ -670,15 +653,15 @@
@click="importTemplate"
>涓嬭浇妯℃澘
</el-link>
- <el-link
+ <!-- <el-link
type="success"
:underline="false"
style="font-size: 24px; vertical-align: baseline"
href="http://m.qpic.cn/psc?/V50ZTolo1AIhq00dqrJP2169QM2VHGTU/ruAMsa53pVQWN7FLK88i5qfmCJclyMduqqL6kjE4h7TXDAjimVtmLmTyGVfF4qlkyOISsYQ4Mxx705X2tkXEIUPrfCS4L4yK.f11SmO8Tq0!/b&bo=twb0AgAAAAADB2U!&rf=viewer_4"
target="_blank"
>
- 鏌ョ湅妯$増</el-link
- >
+ 鏌ョ湅妯℃澘</el-link
+ > -->
</div>
</el-upload>
</div>
@@ -688,8 +671,7 @@
<el-table-column prop="serial" label="搴忓彿"> </el-table-column>
<el-table-column prop="name" label="濮撳悕"> </el-table-column>
<el-table-column prop="sex" label="鎬у埆"> </el-table-column>
- <el-table-column prop="certificate" label="璇佷欢绫诲瀷">
- </el-table-column>
+
<el-table-column prop="certificatenum" label="璇佷欢鍙风爜">
</el-table-column>
<el-table-column prop="goday" label="鍑虹敓鏃ユ湡"> </el-table-column>
@@ -728,8 +710,6 @@
<el-table-column prop="serial" label="搴忓彿"> </el-table-column>
<el-table-column prop="name" label="濮撳悕"> </el-table-column>
<el-table-column prop="sex" label="鎬у埆"> </el-table-column>
- <el-table-column prop="certificate" label="璇佷欢绫诲瀷">
- </el-table-column>
<el-table-column prop="certificatenum" label="璇佷欢鍙风爜">
</el-table-column>
<el-table-column prop="goday" label="鍑虹敓鏃ユ湡"> </el-table-column>
@@ -760,20 +740,149 @@
</div>
</el-dialog>
<!-- 璺宠浆鏈嶅姟瀵硅瘽妗� -->
- <el-dialog title="閫夋嫨鏈嶅姟绫诲瀷" :visible.sync="serviceVisible">
- <el-card class="box-card">
- <el-radio-group v-model="serviceradio">
- <el-radio :label="1">瀹f暀闅忚</el-radio>
- <el-radio :label="2">闂ㄨ瘖鏈嶅姟</el-radio>
- <el-radio :label="3">鍑洪櫌鏈嶅姟</el-radio>
- <el-radio :label="4">澶嶈瘖鏈嶅姟</el-radio>
- <el-radio :label="5">浣撴閫氱煡</el-radio>
- <el-radio :label="6">闂嵎鏈嶅姟</el-radio>
+ <!-- 绠�鍖栫増鎮h�呯绾﹀璇濇 -->
+ <el-dialog
+ title="鎮h�呯绾︽湇鍔�"
+ :visible.sync="contractDialogVisible"
+ width="600px"
+ >
+ <!-- 姝ラ鎸囩ず鍣� -->
+ <el-steps
+ :active="contractStep"
+ align-center
+ simple
+ style="margin-bottom: 20px"
+ >
+ <el-step title="閫夋嫨鏈嶅姟" icon="el-icon-document"></el-step>
+ <el-step title="纭绛剧害" icon="el-icon-finished"></el-step>
+ </el-steps>
+
+ <!-- 姝ラ1: 鏈嶅姟閫夋嫨 -->
+ <div v-if="contractStep === 1" class="step-content">
+ <h4>璇蜂负 {{ currentPatient.name }} 閫夋嫨绛剧害鏈嶅姟濂楅锛�</h4>
+
+ <el-radio-group
+ v-model="tempContractData.servicePackage"
+ style="width: 100%"
+ >
+ <el-row :gutter="16">
+ <el-col :span="8" v-for="pkg in servicePackages" :key="pkg.id">
+ <el-card
+ :class="[
+ 'package-card',
+ { active: tempContractData.servicePackage === pkg.id },
+ ]"
+ @click.native="tempContractData.servicePackage = pkg.id"
+ shadow="hover"
+ style="margin-bottom: 16px; cursor: pointer"
+ >
+ <div style="text-align: center">
+ <h4>{{ pkg.name }}</h4>
+ <p style="color: #666; font-size: 12px; margin: 8px 0">
+ {{ pkg.description }}
+ </p>
+ <p style="color: #e6a23c; font-weight: bold">
+ {{ pkg.price > 0 ? `楼${pkg.price}/骞碻 : "鍏嶈垂" }}
+ </p>
+ <el-tag
+ v-for="feature in pkg.features"
+ :key="feature"
+ size="mini"
+ style="margin: 2px"
+ type="info"
+ >{{ feature }}</el-tag
+ >
+ </div>
+ </el-card>
+ </el-col>
+ </el-row>
</el-radio-group>
+
+ <el-form label-width="80px" style="margin-top: 20px">
+ <el-form-item label="绛剧害鍛ㄦ湡">
+ <el-select
+ v-model="tempContractData.contractPeriod"
+ placeholder="璇烽�夋嫨"
+ >
+ <el-option label="1骞�" :value="1"></el-option>
+ <el-option label="2骞�" :value="2"></el-option>
+ <el-option label="3骞�" :value="3"></el-option>
+ </el-select>
+ </el-form-item>
+ <el-form-item label="澶囨敞淇℃伅">
+ <el-input
+ type="textarea"
+ :rows="2"
+ v-model="tempContractData.remark"
+ placeholder="鍙~鍐欑壒娈婂仴搴烽渶姹傛垨澶囨敞淇℃伅"
+ ></el-input>
+ </el-form-item>
+ </el-form>
+ </div>
+
+ <!-- 姝ラ2: 绛剧害纭 -->
+ <div v-if="contractStep === 2" class="step-content">
+ <el-card>
+ <h4>绛剧害淇℃伅纭</h4>
+ <el-descriptions :column="1" border>
+ <el-descriptions-item label="鎮h�呭鍚�">{{
+ currentPatient.name
+ }}</el-descriptions-item>
+ <el-descriptions-item label="鎮h�呯紪鍙�">{{
+ currentPatient.patientno
+ }}</el-descriptions-item>
+ <el-descriptions-item label="鏈嶅姟濂楅">
+ {{ getSelectedPackage().name }}
+ </el-descriptions-item>
+ <el-descriptions-item label="绛剧害鍛ㄦ湡"
+ >{{ tempContractData.contractPeriod }}骞�</el-descriptions-item
+ >
+ <el-descriptions-item label="绛剧害鏃ユ湡">{{
+ new Date().toLocaleDateString()
+ }}</el-descriptions-item>
+ <el-descriptions-item label="澶囨敞淇℃伅">{{
+ tempContractData.remark || "鏃�"
+ }}</el-descriptions-item>
+ </el-descriptions>
+ </el-card>
+ </div>
+
+ <div slot="footer" class="dialog-footer">
+ <el-button @click="prevStep" v-if="contractStep > 1">涓婁竴姝�</el-button>
+ <el-button @click="closeContractDialog">鍙栨秷</el-button>
+ <el-button
+ type="primary"
+ @click="nextStep"
+ :disabled="contractStep === 1 && !tempContractData.servicePackage"
+ >
+ {{ contractStep === 2 ? "纭绛剧害" : "涓嬩竴姝�" }}
+ </el-button>
+ </div>
+ </el-dialog>
+ <!-- 椋庨櫓绫诲瀷 -->
+ <el-dialog title="閫夋嫨椋庨櫓绫诲瀷" :visible.sync="RiskVisible">
+ <el-card class="box-card">
+ <el-form>
+ <el-form-item label="椋庨櫓绫诲瀷">
+ <el-radio-group v-model="Riskradio">
+ <el-radio :label="1">姝e父</el-radio>
+ <el-radio :label="2">杞诲井</el-radio>
+ <el-radio :label="3">楂樺嵄</el-radio>
+ </el-radio-group>
+ </el-form-item>
+ <el-form-item label="娲诲姩鎬ц川">
+ <el-checkbox-group v-model="Risklist">
+ <el-checkbox label="鎯呭喌1" name="type"></el-checkbox>
+ <el-checkbox label="鎯呭喌2" name="type"></el-checkbox>
+ <el-checkbox label="鎯呭喌3" name="type"></el-checkbox>
+ <el-checkbox label="鎯呭喌4" name="type"></el-checkbox>
+ </el-checkbox-group>
+ </el-form-item>
+ </el-form>
</el-card>
<div slot="footer" class="dialog-footer">
- <el-button @click="serviceVisible = false">鍙� 娑�</el-button>
- <el-button type="primary" @click="CreateService">鍒涘缓鏈嶅姟</el-button>
+ <el-button @click="RiskVisible = false">鍙� 娑�</el-button>
+ <el-button type="primary" @click="RiskService">纭淇敼</el-button>
</div>
</el-dialog>
</div>
@@ -799,8 +908,13 @@
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default {
- name: "Userhuanze",
- dicts: ["sys_normal_disable", "task_status", "sys_user_sex"],
+ name: "Patient",
+ dicts: [
+ "sys_normal_disable",
+ "task_status",
+ "sys_user_sex",
+ "futter_patient",
+ ],
components: { Treeselect },
data() {
return {
@@ -817,6 +931,7 @@
// 鎬绘潯鏁�
total: 0,
tasktotal: 0,
+ Risklist: [],
// 鐢ㄦ埛琛ㄦ牸鏁版嵁
userList: null,
taskuserList: null,
@@ -835,18 +950,88 @@
serviceVisible: false,
serviceradio: 1,
distributeVisible: false,
- tasktopic: "5", //鏂板绫诲瀷
+ RiskVisible: false,
+ tasktopic: "2", //鏂板绫诲瀷
+ Riskradio: 1,
+ RiskObj: {},
// 鏌ヨ鍙傛暟
topqueryParams: {
pageNum: 1,
pageSize: 10,
+ type: 2,
userName: undefined,
tagid: undefined,
topic: undefined,
},
// 鏃ユ湡鑼冨洿
dateRange: [],
- taskoptions: [],
+ contractDialogVisible: false, // 鎺у埗绛剧害瀵硅瘽妗嗘樉绀�
+ contractStep: 1, // 绛剧害姝ラ锛�1-閫夋嫨鏈嶅姟 2-纭淇℃伅
+ currentPatient: {}, // 褰撳墠绛剧害鐨勬偅鑰呬俊鎭�
+ tempContractData: {
+ // 涓存椂瀛樺偍鐨勭绾︽暟鎹�
+ servicePackage: null, // 閫変腑鐨勬湇鍔″椁�
+ contractPeriod: 1, // 绛剧害鍛ㄦ湡锛堝勾锛�
+ remark: "", // 澶囨敞淇℃伅
+ },
+ // 妯℃嫙鏁版嵁锛氬彲閫夌殑绛剧害鏈嶅姟濂楅
+ servicePackages: [
+ {
+ id: 1,
+ name: "鍩虹鍋ュ悍绠$悊鍖�",
+ description: "鍖呭惈瀹氭湡鍋ュ悍璇勪及銆佸熀鏈挩璇�",
+ price: 0,
+ features: ["骞村害鍋ュ悍璇勪及", "鍦ㄧ嚎鍜ㄨ"],
+ },
+ {
+ id: 2,
+ name: "鎱㈡�х梾绠$悊鍖�",
+ description: "涓撲负鎱㈡�х梾鎮h�呰璁�",
+ price: 299,
+ features: ["涓撳睘鍖荤敓", "鐢ㄨ嵂鎻愰啋", "瀹氭湡闅忚"],
+ },
+ {
+ id: 3,
+ name: "鑰佸勾浜哄仴搴峰寘",
+ description: "鍏虫敞鑰佸勾浜哄仴搴烽棶棰�",
+ price: 499,
+ features: ["璺屽�掗闄╄瘎浼�", "搴峰鎸囧", "绱ф�ヨ仈绯�"],
+ },
+ ],
+ taskoptions: [
+ // {
+ // value: "1",
+ // label: "鐩戞祴璇勪及",
+ // },
+ {
+ value: "2",
+ label: "鍑洪櫌闅忚",
+ },
+ {
+ value: "3",
+ label: "闂ㄨ瘖闅忚",
+ },
+ {
+ value: "4",
+ label: "瀹f暀鍏虫��",
+ },
+ {
+ value: "5",
+ label: "澶嶈瘖绠$悊",
+ },
+ // {
+ // value: "6",
+ // label: "婊℃剰搴﹁皟鏌�",
+ // },
+ {
+ value: "7",
+ label: "鎮h�呮姤鍛�",
+ },
+ {
+ value: "8",
+ label: "鍏朵粬閫氱煡",
+ },
+ ],
paperstypes: [
{ papersname: "韬唤璇�" },
{ papersname: "鎶ょ収" },
@@ -858,10 +1043,7 @@
value: "1",
label: "鍦ㄩ櫌鎮h��",
},
- {
- value: "2",
- label: "闂ㄨ瘖鎮h��",
- },
+
{
value: "3",
label: "浣撴鎮h��",
@@ -869,6 +1051,16 @@
{
value: "4",
label: "鍑洪櫌鎮h��",
+ },
+ ],
+ sextype: [
+ {
+ value: 1,
+ label: "鐢�",
+ },
+ {
+ value: 2,
+ label: "濂�",
},
],
@@ -888,13 +1080,22 @@
router: "/patient/hospital",
},
{
- name: "闂ㄨ瘖鎮h��",
- value: 56,
- router: "/patient/outpatient",
- },
- {
name: "绂讳笘鎮h��",
value: 0,
+ },
+ ],
+ source: [
+ {
+ value: 0,
+ label: "鎵�灞炴偅鑰�",
+ },
+ {
+ value: 1,
+ label: "绉戝鎮h��",
+ },
+ {
+ value: 2,
+ label: "鐥呭尯鎮h��",
},
],
// 琛ㄥ崟鍙傛暟
@@ -935,13 +1136,17 @@
// 璁剧疆涓婁紶鐨勮姹傚ご閮�
headers: { Authorization: "Bearer " + getToken() },
// 涓婁紶鐨勫湴鍧�
- url: process.env.VUE_APP_BASE_API + "/system/user/importData",
+ url: process.env.VUE_APP_BASE_API + "/smartor/import/importPatInfo",
},
// 鏌ヨ鍙傛暟
queryParams: {
pageNum: 1,
allhosp: "0",
+ sex: 1,
pageSize: 10,
+ searchscope: 2,
+ notrequiredFlag: 0,
+ tagname: "",
idcardno: undefined,
name: undefined,
status: undefined,
@@ -950,49 +1155,43 @@
},
// 琛ㄥ崟鏍¢獙
rules: {
- // userName: [
- // { required: true, message: "鐢ㄦ埛鍚嶇О涓嶈兘涓虹┖", trigger: "blur" },
- // {
- // min: 2,
- // max: 20,
- // message: "鐢ㄦ埛鍚嶇О闀垮害蹇呴』浠嬩簬 2 鍜� 20 涔嬮棿",
- // trigger: "blur",
- // },
- // ],
- // nickName: [
- // { required: true, message: "鐢ㄦ埛鏄电О涓嶈兘涓虹┖", trigger: "blur" },
- // ],
- // password: [
- // { required: true, message: "鐢ㄦ埛瀵嗙爜涓嶈兘涓虹┖", trigger: "blur" },
- // {
- // min: 5,
- // max: 20,
- // message: "鐢ㄦ埛瀵嗙爜闀垮害蹇呴』浠嬩簬 5 鍜� 20 涔嬮棿",
- // trigger: "blur",
- // },
- // ],
- // email: [
- // {
- // type: "email",
- // message: "璇疯緭鍏ユ纭殑閭鍦板潃",
- // trigger: ["blur", "change"],
- // },
- // ],
- // phonenumber: [
- // {
- // pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
- // message: "璇疯緭鍏ユ纭殑鎵嬫満鍙风爜",
- // trigger: "blur",
- // },
- // ],
- // IDnumber: [
- // {
- // pattern:
- // /^\d{6}((((((19|20)\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(((19|20)\d{2})(0[13578]|1[02])31)|((19|20)\d{2})02(0[1-9]|1\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\d{3})|((((\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|((\d{2})(0[13578]|1[02])31)|((\d{2})02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\d{2}))(\d|X|x)$/,
- // message: "璇疯緭鍏ユ纭殑韬唤璇佸彿鐮�",
- // trigger: "blur",
- // },
- // ],
+ name: [
+ { required: true, message: "鐢ㄦ埛鍚嶇О涓嶈兘涓虹┖", trigger: "blur" },
+ {
+ min: 2,
+ max: 20,
+ message: "鐢ㄦ埛鍚嶇О闀垮害蹇呴』浠嬩簬 2 鍜� 20 涔嬮棿",
+ trigger: "blur",
+ },
+ ],
+
+ sex: [{ required: true, message: "鎬у埆涓嶈兘涓虹┖", trigger: "blur" }],
+ age: [{ required: true, message: "骞撮緞涓嶈兘涓虹┖", trigger: "blur" }],
+ nation: [{ required: true, message: "姘戞棌涓嶈兘涓虹┖", trigger: "blur" }],
+ telcode: [
+ { required: true, message: "鑱旂郴鏂瑰紡涓嶈兘涓虹┖", trigger: "blur" },
+ {
+ pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
+ message: "璇疯緭鍏ユ纭殑鎵嬫満鍙风爜",
+ trigger: "blur",
+ },
+ ],
+
+ idcardno: [
+ { required: true, message: "璇佷欢鍙峰彲鑳戒负绌�", trigger: "blur" },
+ {
+ pattern:
+ /^\d{6}((((((19|20)\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(((19|20)\d{2})(0[13578]|1[02])31)|((19|20)\d{2})02(0[1-9]|1\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\d{3})|((((\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|((\d{2})(0[13578]|1[02])31)|((\d{2})02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\d{2}))(\d|X|x)$/,
+ message: "璇疯緭鍏ユ纭殑韬唤璇佸彿鐮�",
+ trigger: "blur",
+ },
+ ],
+ placeOfResidence: [
+ { required: true, message: "灞呬綇鍦颁笉鑳戒负绌�", trigger: "blur" },
+ ],
+ birthplace: [
+ { required: true, message: "鍑虹敓鍦颁笉鑳戒负绌�", trigger: "blur" },
+ ],
},
};
},
@@ -1005,16 +1204,34 @@
created() {
this.getList();
this.gettabList();
+ this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
+ (obj) => obj.deptCode
+ );
+ this.topqueryParams.leavehospitaldistrictcodes =
+ store.getters.belongWards.map((obj) => obj.districtCode);
//鑾峰彇宸茬瓫閫夊悗鐨勫彲閫変换鍔$被鍨�
- this.taskoptions = store.getters.Serviceauthority;
},
methods: {
/** 鏌ヨ鎮h�呭垪琛� */
getList() {
- console.log(this.dict.type.sys_user_sex);
+ if (this.queryParams.searchscope == 1) {
+ this.queryParams.leaveldeptcodes = store.getters.belongDepts.map(
+ (obj) => obj.deptCode
+ );
+ this.queryParams.leavehospitaldistrictcodes = null;
+ } else if (this.queryParams.searchscope == 2) {
+ this.queryParams.leavehospitaldistrictcodes =
+ store.getters.belongWards.map((obj) => obj.districtCode);
+ this.queryParams.leaveldeptcodes = null;
+ } else {
+ this.queryParams.leaveldeptcodes = store.getters.belongDepts.map(
+ (obj) => obj.deptCode
+ );
+ this.queryParams.leavehospitaldistrictcodes =
+ store.getters.belongWards.map((obj) => obj.districtCode);
+ }
this.loading = true;
messagelistpatient(this.queryParams).then((response) => {
- console.log(response);
this.userList = response.rows;
this.total = response.total;
this.loading = false;
@@ -1050,8 +1267,80 @@
this.loading = false;
});
},
- Distributionservice(row) {
- this.serviceVisible = true;
+ openContractDialog(row) {
+ this.currentPatient = { ...row }; // 璁剧疆褰撳墠鎮h��
+ this.contractDialogVisible = true;
+ this.contractStep = 1;
+ // 閲嶇疆琛ㄥ崟鏁版嵁
+ this.tempContractData = {
+ servicePackage: null,
+ contractPeriod: 1,
+ remark: "",
+ };
+ },
+ // 涓嬩竴姝ユ搷浣�
+ nextStep() {
+ if (this.contractStep < 2) {
+ this.contractStep++;
+ } else {
+ this.submitContract();
+ }
+ },
+
+ // 涓婁竴姝ユ搷浣�
+ prevStep() {
+ if (this.contractStep > 1) {
+ this.contractStep--;
+ }
+ },
+ // 鑾峰彇閫変腑鐨勬湇鍔″椁愪俊鎭�
+ getSelectedPackage() {
+ return (
+ this.servicePackages.find(
+ (pkg) => pkg.id === this.tempContractData.servicePackage
+ ) || {}
+ );
+ },
+
+ // 妯℃嫙鎻愪氦绛剧害淇℃伅
+ submitContract() {
+ // 杩欓噷鏄墠绔ā鎷熸搷浣滐紝瀹為檯寮�鍙戜腑搴旈�氳繃API鎻愪氦鏁版嵁
+ const contractInfo = {
+ patientId: this.currentPatient.id,
+ patientName: this.currentPatient.name,
+ package: this.getSelectedPackage(),
+ period: this.tempContractData.contractPeriod,
+ signDate: new Date().toISOString().split("T")[0],
+ remark: this.tempContractData.remark,
+ };
+
+ console.log("妯℃嫙绛剧害鏁版嵁:", contractInfo);
+
+ // 妯℃嫙鎴愬姛鎻愮ず
+ this.$message.success(
+ `宸叉垚鍔熶负 ${this.currentPatient.name} 绛剧害 ${
+ this.getSelectedPackage().name
+ }`
+ );
+
+ // 鍏抽棴瀵硅瘽妗�
+ this.closeContractDialog();
+
+ // 鍙互鍦ㄨ繖閲岃Е鍙戝叾浠栨搷浣滐紝濡傚埛鏂版偅鑰呭垪琛ㄧ瓑
+ },
+ // 鍏抽棴瀵硅瘽妗嗗苟閲嶇疆鐘舵��
+ closeContractDialog() {
+ this.contractDialogVisible = false;
+ this.contractStep = 1;
+ this.tempContractData = {
+ servicePackage: null,
+ contractPeriod: 1,
+ remark: "",
+ };
+ },
+ RiskMarker(row) {
+ this.RiskVisible = true;
+ this.RiskObj = row;
},
// 鍙栨秷鎸夐挳
@@ -1081,8 +1370,12 @@
/** 閲嶇疆鎸夐挳鎿嶄綔 */
resetQuery() {
this.dateRange = [];
- this.resetForm("queryForm");
- this.$refs.tree.setCurrentKey(null);
+ this.queryParams = {
+ pageNum: 1,
+ allhosp: "0",
+ pageSize: 10,
+ searchscope: 2,
+ };
this.handleQuery();
},
// 澶氶�夋閫変腑鏁版嵁
@@ -1100,43 +1393,44 @@
},
/** 淇敼鎸夐挳鎿嶄綔 */
handleUpdate(row) {
- console.log(row);
- const userIds = row.id || this.ids;
- particularpatient(userIds).then((response) => {
- console.log(response);
- this.form = response.data;
- });
- this.amendtag = true;
- this.Labelchange = true;
+ // const userIds = row.id || this.ids;
+ // particularpatient(userIds).then((response) => {
+ // this.form = response.data;
+ // });
+ // this.amendtag = true;
+ // this.Labelchange = true;
},
//淇敼/鏂板鎮h��
submitForm() {
- if (condition) {
- }
- if (this.amendtag) {
- this.form.isoperation = 2;
- alterpatient(this.form)
- .then((response) => {
- console.log(response);
- })
- .then(() => {
- this.getList();
- this.$modal.msgSuccess("淇敼鎴愬姛");
- });
- } else {
- this.form.isoperation = 1;
- alterpatient(this.form)
- .then((response) => {
- console.log(response);
- })
- .then(() => {
- this.getList();
- this.$modal.msgSuccess("娣诲姞鎴愬姛");
- });
- }
- this.reset();
- // this.idds = "";
- this.Labelchange = false;
+ this.$refs["form"].validate((valid) => {
+ if (valid) {
+ if (this.amendtag) {
+ this.form.isoperation = 2;
+ this.form.notrequiredFlag = 1;
+ alterpatient(this.form)
+ .then((response) => {
+ console.log(response);
+ })
+ .then(() => {
+ this.getList();
+ this.$modal.msgSuccess("鎮h�呰繃婊ゆ垚鍔�");
+ });
+ } else {
+ this.form.isoperation = 1;
+ alterpatient(this.form)
+ .then((response) => {
+ console.log(response);
+ })
+ .then(() => {
+ this.getList();
+ this.$modal.msgSuccess("娣诲姞鎴愬姛");
+ });
+ }
+ this.reset();
+ // this.idds = "";
+ this.Labelchange = false;
+ }
+ });
},
/** 鍒犻櫎鎸夐挳鎿嶄綔 */
@@ -1160,25 +1454,34 @@
query: { type: this.serviceradio },
});
},
+ RiskService() {
+ this.RiskObj.visitFlag = this.Risklist.join(", ");
+ this.RiskObj.visitType = this.Riskradio;
+ alterpatient(this.RiskObj).then((res) => {
+ if (res.code == 200) {
+ this.getList();
+ this.Risklist = [];
+ this.Riskradio = 1;
+ this.$modal.msgSuccess("寮傚父璁板綍鎴愬姛");
+ }
+ });
+ },
distribute() {
this.distributeVisible = true;
- if (this.tasktopic == 1) {
- this.topqueryParams.type = 3;
- } else if (this.tasktopic == 2) {
- this.topqueryParams.type = 1;
- } else if (this.tasktopic == 3) {
- this.topqueryParams.type = 1;
- } else if (this.tasktopic == 4) {
- this.topqueryParams.type = 1;
+ if (
+ this.tasktopic == 2 ||
+ this.tasktopic == 3 ||
+ this.tasktopic == 1 ||
+ this.tasktopic == 7 ||
+ this.tasktopic == 6
+ ) {
+ this.topqueryParams.type = "2";
+ } else if (this.tasktopic == 4 || this.tasktopic == 8) {
+ this.topqueryParams.type = "3";
} else if (this.tasktopic == 5) {
- this.topqueryParams.type = 1;
- } else if (this.tasktopic == 6) {
- this.topqueryParams.type = 2;
+ this.topqueryParams.type = "1";
}
- this.topqueryParams.typename = this.findLabelByValue(
- this.taskoptions,
- this.tasktopic
- );
+ this.topqueryParams.serviceType = Number(this.tasktopic);
getTasklist(this.topqueryParams).then((response) => {
this.taskuserList = response.rows;
this.tasktotal = response.total;
@@ -1203,7 +1506,7 @@
/** 涓嬭浇妯℃澘鎿嶄綔 */
importTemplate() {
this.download(
- "system/user/importTemplate",
+ "smartor/import/getImportPatTemplate",
{},
`user_template_${new Date().getTime()}.xlsx`
);
@@ -1245,9 +1548,9 @@
</script>
<style lang="scss" scoped>
-.Questionnairemanagement {
- display: flex;
-}
+// .Questionnairemanagement {
+// display: flex;
+// }
.sidecolumn {
width: 180px;
min-height: 100vh;
@@ -1255,7 +1558,7 @@
// display: flex;
margin-top: 20px;
margin: 20px;
- padding: 30px;
+ padding: 15px;
background: #d0e9fd;
border: 1px solid #dcdfe6;
-webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
@@ -1283,6 +1586,18 @@
margin-top: 30px;
display: center !important;
}
+}
+.package-card.active {
+ border-color: #409EFF;
+ background-color: #f0f9ff;
+}
+
+.step-content {
+ min-height: 300px;
+}
+
+.dialog-footer {
+ text-align: right;
}
.preview-left {
margin: 20px;
@@ -1327,8 +1642,8 @@
cursor: pointer; /* 榧犳爣鎮诞鏃跺彉涓烘墜褰� */
}
.leftvlue {
- width: 80%;
- margin-top: 10px;
+ width: 100%;
+ // margin-top: 10px;
}
.leftvlue-bg {
// display: flex;
--
Gitblit v1.9.3