From 7b38cbd5c0af64e2f11e02d4d2e0ea6cbb1c09f5 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 09 十一月 2026 17:05:06 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/record/detailpage/index.vue | 1315 +++++++++++++++++++++++++++++++++++++++++++++--------------
1 files changed, 1,002 insertions(+), 313 deletions(-)
diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index 9d0f20f..9321ac3 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -128,6 +128,28 @@
</template>
</el-table-column>
<el-table-column
+ v-if="
+ orgname == '鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�' || orgname == '涓芥按甯備腑鍖婚櫌'
+ "
+ label="鎷ㄥ彿鐘舵��"
+ width="120"
+ align="center"
+ key="isManuallyCalled"
+ prop="isManuallyCalled"
+ >
+ <template slot-scope="scope">
+ <el-tag
+ v-if="Number(scope.row.isManuallyCalled) > 0"
+ type="success"
+ :disable-transitions="false"
+ >鎷ㄩ�歿{ scope.row.isManuallyCalled }}娆�</el-tag
+ >
+ <el-tag v-else type="info" :disable-transitions="false"
+ >鏈嫧閫�</el-tag
+ >
+ </template>
+ </el-table-column>
+ <el-table-column
prop="finishtime"
align="center"
label="闅忚瀹屾垚鏃堕棿"
@@ -135,6 +157,18 @@
show-overflow-tooltip
>
</el-table-column>
+ <el-table-column
+ label="搴旈殢璁挎棩鏈�"
+ width="146"
+ align="center"
+ key="visitTime"
+ prop="visitTime"
+ :render-header="Tooltipy"
+ >
+ <template slot-scope="scope">
+ <span>{{ formatTime(scope.row.visitTime) }}</span>
+ </template></el-table-column
+ >
<el-table-column
v-if="orgname == '鍗楀崕澶у闄勫睘绗竴鍖婚櫌'"
label="鍏ラ櫌鏃ユ湡"
@@ -324,7 +358,9 @@
v-if="
(orgname == '鍗楀崕澶у闄勫睘绗竴鍖婚櫌' ||
orgname == '涓芥按甯傜浜屼汉姘戝尰闄�' ||
- orgname == '缂欎簯鍘夸汉姘戝尰闄�') &&
+ orgname == '缂欎簯鍘夸汉姘戝尰闄�' ||
+ orgname == '涓芥按甯傚骞间繚鍋ラ櫌' ||
+ orgname == '鏉鹃槼鍘夸腑鍖诲尰闄�') &&
!Voicetype
"
>
@@ -356,7 +392,7 @@
<div>闅忚鍐呭</div>
</div>
<div>
- <el-tabs v-model="activeName" type="border-card">
+ <el-tabs v-model="activeName" type="card">
<el-tab-pane name="wj">
<span class="mulsz" slot="label"
><i class="el-icon-notebook-1"></i> 闂嵎闅忚缁撴灉</span
@@ -365,13 +401,29 @@
<div class="title">
{{ taskname ? taskname : "闂嵎" }}
<span style="margin-left: 50px">
- <el-button type="primary" round @click="smsSubTask">
+ <el-button
+ type="primary"
+ round
+ @click="smsSubTask"
+ v-if="
+ orgname != '鐪佺珛鍚屽痉缈犺嫅闄㈠尯' &&
+ orgname != '涓芥按甯備腑鍖婚櫌'
+ "
+ >
闂嵎鐭俊鎺ㄩ��
+ </el-button>
+ <el-button
+ type="primary"
+ round
+ @click="weChatSubTask"
+ v-if="orgname == '涓芥按甯備腑鍖婚櫌'"
+ >
+ 闂嵎寰俊鎺ㄩ��
</el-button>
</span>
</div>
- <div class="preview-left" v-if="!Voicetype">
+ <div class="preview-left" v-if="showQuestionnaireForm">
<div
class="topic-dev"
v-for="(item, index) in tableDatatop"
@@ -582,13 +634,19 @@
</div>
</div>
<el-button
- v-if="Voicetype"
+ v-if="showQuestionnaireForm"
type="primary"
- @click="yuyingetdetail"
- >淇濆瓨鏈嶅姟璇︽儏</el-button
+ :disabled="!canSaveQuestionnaire"
+ :loading="savingQuestion"
+ @click="getdetail"
+ >淇濆瓨闂嵎璇︽儏</el-button
>
- <el-button v-else type="primary" @click="getdetail"
- >淇濆瓨鏈嶅姟璇︽儏</el-button
+ <el-button
+ v-else
+ type="primary"
+ :loading="savingQuestion"
+ @click="yuyingetdetail"
+ >淇濆瓨闂嵎璇︽儏</el-button
>
</div>
</el-tab-pane>
@@ -645,10 +703,15 @@
<el-button
v-if="Voicetype"
type="primary"
+ :loading="savingVoice"
@click="yuyingetdetail"
>淇濆瓨闅忚璇︽儏</el-button
>
- <el-button v-else type="primary" @click="getdetail"
+ <el-button
+ v-else
+ type="primary"
+ :loading="savingQuestion"
+ @click="getdetail"
>淇濆瓨闅忚璇︽儏</el-button
>
</div>
@@ -657,13 +720,51 @@
</div>
</div>
</div>
+
+ <!-- 鏈�夐�夐」鎻愮ず锛氬ぇ瀛楅啋鐩彁閱掞紝鍏佽鐢ㄦ埛鍧氭寔淇濆瓨 -->
+ <el-dialog
+ :visible.sync="confirmSaveVisible"
+ width="640px"
+ append-to-body
+ :close-on-click-modal="false"
+ custom-class="unanswered-dialog"
+ >
+ <div slot="title" class="unanswered-title">
+ <i class="el-icon-warning"></i> 娉ㄦ剰锛氭湁棰樼洰娌℃湁閫夋嫨閫夐」
+ </div>
+ <div class="unanswered-warn">
+ 褰撳墠闂嵎杩樻湁
+ <span class="unanswered-count">{{ unansweredQuestions.length }}</span>
+ 閬撻<strong>娌℃湁閫夋嫨浠讳綍閫夐」</strong>锛岀户缁繚瀛樺皢鎸夆�滄湭浣滅瓟鈥濊褰曪細
+ </div>
+ <div class="unanswered-list">
+ <div v-for="q in unansweredQuestions" :key="q.index">
+ 绗� {{ q.index }} 棰橈細{{ q.title }}
+ </div>
+ </div>
+ <div class="unanswered-tip">纭畾杩樿淇濆瓨鍚楋紵</div>
+ <span slot="footer">
+ <el-button size="medium" @click="confirmSaveVisible = false"
+ >杩斿洖琛ュ~</el-button
+ >
+ <el-button type="danger" size="medium" @click="confirmForceSave"
+ >浠嶈淇濆瓨</el-button
+ >
+ </span>
+ </el-dialog>
<!-- 浜哄伐澶勭悊 -->
<div class="manual-action">
<div class="Followuserinfos">
<!-- 椤堕儴鎿嶄綔鍖哄煙 -->
<div class="section-header">
<h3><i class="el-icon-s-operation"></i> 浜哄伐澶勭悊</h3>
+
<div class="header-actions">
+ <div v-if="form.doctorOpinion2" class="last-opinion">
+ <i class="el-icon-sunny"></i>
+ <span class="last-opinion-label">涓婃鐨勫鐞嗘剰瑙侊細</span>
+ <span class="last-opinion-text">{{ form.doctorOpinion2 }}</span>
+ </div>
<!-- 鍩虹鎿嶄綔鎸夐挳缁� -->
<div class="action-group basic-actions">
<el-button type="primary" plain @click="alterpatient('')">
@@ -684,9 +785,18 @@
type="primary"
round
@click="sendAgain"
- v-if="(form.isVisitAgain != 2) & (visitAgain == 2)"
+ v-if="(form.isVisitAgain == 1) & (visitAgain == 2)"
>
鍐嶆闅忚
+ </el-button>
+ <!-- 瓒呮椂鏈嶅姟锛氱鐞嗗憳鍙皢瀹屾垚鏃堕棿鏀逛负搴旈殢璁挎椂闂淬�佺姸鎬佹敼涓哄凡瀹屾垚 -->
+ <el-button
+ type="danger"
+ plain
+ @click="handleTimeoutComplete"
+ v-if="form.sendstate == 7 && isAdmin"
+ >
+ 瓒呮椂鏍囪宸插畬鎴�
</el-button>
</div>
@@ -696,6 +806,7 @@
v-model="selectedTag"
placeholder="璇烽�夋嫨寮傚父鐘舵��"
clearable
+ @change="exceptionHandling"
style="width: 150px; margin-right: 10px"
>
<el-option
@@ -733,6 +844,8 @@
</div>
</div>
</div>
+
+
<!-- 琛ㄥ崟鍖哄煙 -->
<div class="form-content">
@@ -932,6 +1045,13 @@
<el-button
plain
type="success"
+ @click="Editsingletaskson('6')"
+ >
+ 宸查潰璁�
+ </el-button>
+ <el-button
+ plain
+ type="success"
@click="Editsingletaskson('2')"
>
鐥呮儏绋冲畾
@@ -946,7 +1066,20 @@
<el-button plain type="info" @click="Editsingletaskson('5')">
浜哄伐闅忚
</el-button>
- <el-button type="primary" round @click="sendAgainmsg">
+ <el-button
+ plain
+ v-if="orgname != '缂欎簯绗簩浜烘皯鍖婚櫌'"
+ type="primary"
+ @click="Editsingletaskson('7')"
+ >
+ 鍥為櫌澶嶆煡澶嶈瘖
+ </el-button>
+ <el-button
+ type="primary"
+ round
+ @click="sendAgainmsg"
+ v-if="orgname != '鐪佺珛鍚屽痉缈犺嫅闄㈠尯'"
+ >
鐭俊鍙戦��
</el-button>
</div>
@@ -954,95 +1087,113 @@
</el-form>
</div>
- <!-- 鎮h�呮。妗堜俊鎭� -->
- <div class="detailed">
- <h3>鎮h�呮。妗堜俊鎭�</h3>
- <el-form ref="userform" :model="userform" label-width="100px">
- <el-row :gutter="20">
- <el-col :span="12">
- <el-form-item label="鎮h�呭鍚�" prop="name">
- <el-input
- v-model="userform.name"
- placeholder="璇疯緭鍏ュ鍚�"
- maxlength="30"
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row :gutter="20">
- <el-col :span="12">
- <el-form-item label="鎬у埆" prop="sex">
- <el-select v-model="userform.sex" placeholder="璇烽�夋嫨">
- <el-option label="鐢�" :value="1"> </el-option>
- <el-option label="濂�" :value="2"> </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="骞撮緞" prop="age">
- <el-input
- v-model="userform.age"
- placeholder="璇疯緭鍏ュ勾榫�"
- maxlength="20"
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
-
- <el-row :gutter="20">
- <el-col :span="12">
- <el-form-item label="鑱旂郴鏂瑰紡" prop="telcode">
- <el-input
- v-model="userform.telcode"
- placeholder="璇疯緭鍏ヨ仈绯绘柟寮�"
- maxlength="20"
- />
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="浜插睘鑱旂郴鏂瑰紡" prop="relativetelcode">
- <el-input
- v-model="userform.relativetelcode"
- placeholder="璇疯緭鍏ヤ翰灞炶仈绯绘柟寮�"
- maxlength="20"
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row :gutter="20">
- <el-col :span="24">
- <el-form-item label="璇婃柇鍚嶇О" prop="leavediagname">
- <el-input
- v-model="form.leavediagname"
- placeholder="璇疯緭鍏ヨ瘖鏂�"
- maxlength="50"
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row :gutter="20">
- <el-col :span="24">
- <el-form-item label="鍑虹敓鍦�" prop="birthplace">
- <el-input
- v-model="userform.birthplace"
- placeholder="鍥姐�佺渷銆佸湴甯傘�佸尯鍘裤�佽閬撶瓑璇︾粏淇℃伅"
- maxlength="50"
- />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row :gutter="20">
- <el-col :span="24">
- <el-form-item label="灞呬綇鍦�" prop="placeOfResidence">
- <el-input
- v-model="userform.placeOfResidence"
- placeholder="鍥姐�佺渷銆佸湴甯傘�佸尯鍘裤�佽閬撶瓑璇︾粏淇℃伅"
- maxlength="50"
- />
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
+ <!-- 鎶樺彔闈㈡澘锛氭偅鑰呮。妗堜俊鎭� + 鎶曡瘔寤鸿 -->
+ <div class="collapse-section">
+ <el-collapse v-model="collapseActive" accordion>
+ <el-collapse-item title="鎮h�呮。妗堜俊鎭�" name="patient">
+ <el-form
+ ref="userform2"
+ :model="userform"
+ label-width="90px"
+ size="small"
+ >
+ <el-row :gutter="16">
+ <el-col :span="12">
+ <el-form-item label="鎮h�呭鍚�">
+ <el-input
+ v-model="userform.name"
+ placeholder="璇疯緭鍏ュ鍚�"
+ maxlength="30"
+ ></el-input>
+ </el-form-item>
+ </el-col>
+ <el-col :span="12">
+ <el-form-item label="鎬у埆">
+ <el-select
+ v-model="userform.sex"
+ placeholder="璇烽�夋嫨"
+ style="width: 100%"
+ >
+ <el-option label="鐢�" :value="1"></el-option>
+ <el-option label="濂�" :value="2"></el-option>
+ </el-select>
+ </el-form-item>
+ </el-col>
+ </el-row>
+ <el-row :gutter="16">
+ <el-col :span="12">
+ <el-form-item label="骞撮緞">
+ <el-input
+ v-model="userform.age"
+ placeholder="璇疯緭鍏ュ勾榫�"
+ maxlength="20"
+ ></el-input>
+ </el-form-item>
+ </el-col>
+ <el-col :span="12">
+ <el-form-item label="鑱旂郴鏂瑰紡">
+ <el-input
+ v-model="userform.telcode"
+ placeholder="璇疯緭鍏ヨ仈绯绘柟寮�"
+ maxlength="20"
+ ></el-input>
+ </el-form-item>
+ </el-col>
+ </el-row>
+ <el-row :gutter="16">
+ <el-col :span="24">
+ <el-form-item label="浜插睘鐢佃瘽">
+ <el-input
+ v-model="userform.relativetelcode"
+ placeholder="璇疯緭鍏ヤ翰灞炶仈绯绘柟寮�"
+ maxlength="20"
+ ></el-input>
+ </el-form-item>
+ </el-col>
+ </el-row>
+ <el-row :gutter="16">
+ <el-col :span="24">
+ <el-form-item label="璇婃柇鍚嶇О">
+ <el-input
+ v-model="form.leavediagname"
+ placeholder="璇疯緭鍏ヨ瘖鏂�"
+ maxlength="50"
+ ></el-input>
+ </el-form-item>
+ </el-col>
+ </el-row>
+ <el-row :gutter="16">
+ <el-col :span="24">
+ <el-form-item label="鍑虹敓鍦�">
+ <el-input
+ v-model="userform.birthplace"
+ placeholder="鍥姐�佺渷銆佸湴甯傘�佸尯鍘裤�佽閬撶瓑"
+ maxlength="50"
+ ></el-input>
+ </el-form-item>
+ </el-col>
+ </el-row>
+ <el-row :gutter="16">
+ <el-col :span="24">
+ <el-form-item label="灞呬綇鍦�">
+ <el-input
+ v-model="userform.placeOfResidence"
+ placeholder="鍥姐�佺渷銆佸湴甯傘�佸尯鍘裤�佽閬撶瓑"
+ maxlength="50"
+ ></el-input>
+ </el-form-item>
+ </el-col>
+ </el-row>
+ </el-form>
+ </el-collapse-item>
+ <el-collapse-item
+ title="鎶曡瘔寤鸿"
+ name="advice"
+ v-if="orgname == '缂欎簯鍘夸汉姘戝尰闄�'"
+ >
+ <AdviceList :subid="taskid" :taskid="id" :patid="patid" />
+ </el-collapse-item>
+ </el-collapse>
</div>
</div>
</div>
@@ -1062,7 +1213,7 @@
<!-- 娉ㄦ剰杩欓噷鍙兘浣跨敤 userform.telcode -->
</el-form-item>
<el-form-item label="绉戝">
- <el-input style="width: 400px" v-model="form.deptname"></el-input>
+ <el-input style="width: 400px" v-model="form.leaveldeptname"></el-input>
</el-form-item>
<el-form-item label="鐥呭尯">
<el-input
@@ -1085,141 +1236,183 @@
title="鎮h�呭啀娆¢殢璁�"
v-dialogDrags
:visible.sync="dialogFormVisible"
+ width="900px"
>
- <el-form ref="zcform" :rules="zcrules" :model="form" label-width="80px">
- <el-form-item label="浠诲姟鍚嶇О">
- <el-input
- style="width: 400px"
- disabled
- v-model="form.taskName"
- ></el-input>
- </el-form-item>
- <el-form-item label="鎮h�呭悕绉�">
- <el-input
- style="width: 400px"
- disabled
- v-model="form.sendname"
- ></el-input>
- </el-form-item>
- <el-form-item label="骞撮緞">
- <el-input style="width: 400px" disabled v-model="form.age"></el-input>
- </el-form-item>
- <el-form-item label="绉戝">
- <el-input
- style="width: 400px"
- disabled
- v-model="form.deptname"
- ></el-input>
- </el-form-item>
- <el-form-item label="鐥呭尯">
- <el-input
- style="width: 400px"
- disabled
- v-model="form.leavehospitaldistrictname"
- ></el-input>
- </el-form-item>
- <el-form-item label="鍑洪櫌鏃堕棿">
- <el-input
- style="width: 400px"
- disabled
- v-model="form.endtime"
- ></el-input>
- </el-form-item>
- <div class="headline">涓婃闅忚</div>
- <el-divider></el-divider>
- <el-row>
- <el-col :span="12">
- <el-form-item label="闅忚鏂瑰紡">
- <el-select
- v-model="form.visitType2"
- filterable
- allow-create
- default-first-option
+ <el-form ref="zcform" :rules="zcrules" :model="form" label-width="120px">
+ <!-- 鍩虹鏈嶅姟淇℃伅 - 榛樿鎶樺彔 -->
+ <el-collapse v-model="activeNames" @change="handleCollapseChange">
+ <el-collapse-item title="鍩虹鏈嶅姟淇℃伅" name="basic">
+ <el-form-item label="浠诲姟鍚嶇О">
+ <el-input
+ style="width: 100%"
disabled
- placeholder="璇烽�夋嫨闅忚鏂瑰紡"
- class="custom-disabled"
- >
- <el-option
- v-for="item in options"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- >
- </el-option>
- </el-select>
+ v-model="form.taskName"
+ ></el-input>
</el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="闅忚鏃堕棿">
- <el-date-picker
- type="date"
+ <el-form-item label="鎮h�呭悕绉�">
+ <el-input
+ style="width: 100%"
disabled
- placeholder="閫夋嫨鏃ユ湡"
- :picker-options="pickerOptions"
- align="right"
- v-model="form.date2"
- class="custom-disabled"
- ></el-date-picker>
+ v-model="form.sendname"
+ ></el-input>
</el-form-item>
- </el-col>
- </el-row>
+ <el-form-item label="骞撮緞">
+ <el-input
+ style="width: 100%"
+ disabled
+ v-model="form.age"
+ ></el-input>
+ </el-form-item>
+ <el-form-item label="绉戝">
+ <el-input
+ style="width: 100%"
+ disabled
+ v-model="form.leaveldeptname"
+ ></el-input>
+ </el-form-item>
+ <el-form-item label="鐥呭尯">
+ <el-input
+ style="width: 100%"
+ disabled
+ v-model="form.leavehospitaldistrictname"
+ ></el-input>
+ </el-form-item>
+ <el-form-item label="鍑洪櫌鏃堕棿">
+ <el-input
+ style="width: 100%"
+ disabled
+ v-model="form.endtime"
+ ></el-input>
+ </el-form-item>
+ </el-collapse-item>
- <el-form-item label="闅忚璁板綍">
- <el-input
- class="custom-disabled"
- type="textarea"
- disabled
- v-model="form.remark2"
- ></el-input>
- </el-form-item>
- <div class="headline">涓嬫闅忚</div>
- <el-divider></el-divider>
- <el-row>
- <el-col :span="12">
- <el-form-item label="闅忚鏂瑰紡" prop="visitType">
- <el-select
- v-model="form.visitType"
- filterable
- allow-create
- default-first-option
- @change="visitChange"
- placeholder="璇烽�夋嫨闅忚鏂瑰紡(渚濆嚭闄㈡椂闂磋绠�)"
+ <!-- 涓婃闅忚淇℃伅 - 榛樿鎶樺彔 -->
+ <el-collapse-item title="涓婃闅忚" name="last">
+ <el-row>
+ <el-col :span="12">
+ <el-form-item label="闅忚鏂瑰紡">
+ <el-select
+ v-model="form.visitType2"
+ filterable
+ allow-create
+ default-first-option
+ disabled
+ placeholder="璇烽�夋嫨闅忚鏂瑰紡"
+ class="custom-disabled"
+ style="width: 90%"
+ >
+ <el-option
+ v-for="item in options"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ >
+ </el-option>
+ </el-select>
+ </el-form-item>
+ </el-col>
+ <el-col :span="12">
+ <el-form-item label="闅忚鏃堕棿">
+ <el-date-picker
+ type="date"
+ disabled
+ placeholder="閫夋嫨鏃ユ湡"
+ :picker-options="pickerOptions"
+ align="right"
+ v-model="form.date2"
+ class="custom-disabled"
+ style="width: 95%"
+ ></el-date-picker>
+ </el-form-item>
+ </el-col>
+ </el-row>
+ <el-form-item label="闅忚璁板綍">
+ <el-input
+ class="custom-disabled"
+ type="textarea"
+ disabled
+ v-model="form.remark2"
+ ></el-input>
+ </el-form-item>
+ <el-form-item label="澶勭悊鎰忚">
+ <el-input
+ class="custom-disabled"
+ type="textarea"
+ disabled
+ v-model="form.doctorOpinion2"
+ placeholder="鏃�"
+ ></el-input>
+ </el-form-item>
+ </el-collapse-item>
+
+ <!-- 涓嬫闅忚淇℃伅 - 榛樿灞曞紑 -->
+ <el-collapse-item title="涓嬫闅忚" name="next">
+ <el-form-item label="鍐嶆闅忚浠诲姟">
+ <el-input
+ disabled
+ v-model="nextTaskName"
+ placeholder="鍐嶆闅忚浠诲姟"
+ ></el-input>
+ </el-form-item>
+ <el-row>
+ <el-col :span="12">
+ <el-form-item label="闅忚鏂瑰紡" prop="visitType">
+ <el-select
+ v-model="form.visitType"
+ filterable
+ allow-create
+ default-first-option
+ @change="visitChange"
+ placeholder="璇烽�夋嫨闅忚鏂瑰紡(渚濆嚭闄㈡椂闂磋绠�)"
+ style="width: 90%"
+ >
+ <el-option
+ v-for="item in options"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ >
+ </el-option>
+ </el-select>
+ </el-form-item>
+ </el-col>
+ <el-col :span="12">
+ <el-form-item label="闅忚鏃堕棿" prop="date1">
+ <el-date-picker
+ type="date"
+ placeholder="閫夋嫨鏃ユ湡"
+ :picker-options="pickerOptions"
+ align="right"
+ v-model="form.date1"
+ class="custom-disabled"
+ style="width: 92%"
+ value-format="yyyy-MM-dd hh:mm:ss"
+ @change="checkFollowupDate"
+ ></el-date-picker>
+ </el-form-item>
+ </el-col>
+ </el-row>
+ <el-form-item label="闅忚绫诲瀷" prop="resource">
+ <el-radio-group
+ v-model="form.resource"
+ @change="handleResourceChange"
>
- <el-option
- v-for="item in options"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- >
- </el-option>
- </el-select>
+ <el-radio label="1">鏈梾鍖洪殢璁�</el-radio>
+ <el-radio label="2">闅忚涓績闅忚</el-radio>
+ </el-radio-group>
</el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="闅忚鏃堕棿" prop="date1">
- <el-date-picker
- type="date"
- placeholder="閫夋嫨鏃ユ湡"
- :picker-options="pickerOptions"
- align="right"
- v-model="form.date1"
- class="custom-disabled"
- value-format="yyyy-MM-dd hh:mm:ss"
- @change="checkFollowupDate"
- ></el-date-picker>
+ <el-form-item label="闅忚璁板綍" :required="form.resource == '2'">
+ <el-input type="textarea" v-model="form.remark"></el-input>
</el-form-item>
- </el-col>
- </el-row>
- <el-form-item label="闅忚绫诲瀷" prop="resource">
- <el-radio-group v-model="form.resource">
- <el-radio label="1">鏈梾鍖洪殢璁�</el-radio>
- <el-radio label="2">闅忚涓績闅忚</el-radio>
- </el-radio-group>
- </el-form-item>
-
- <el-form-item label="闅忚璁板綍" :required="form.resource == '2'">
- <el-input type="textarea" v-model="form.remark"></el-input>
- </el-form-item>
+ <el-form-item
+ label="鍖荤敓澶勭悊鎰忚"
+ prop="doctorOpinion"
+ :required="isDoctorOpinionRequired"
+ >
+ <el-input type="textarea" v-model="form.doctorOpinion"></el-input>
+ </el-form-item>
+ </el-collapse-item>
+ </el-collapse>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="warning" @click="dialogFormVisible = false"
@@ -1237,7 +1430,11 @@
:visible.sync="CaldialogVisible"
width="60%"
>
- <CallCenterLs ref="CallCenterLs" :initial-phone="currentPhoneNumber" />
+ <CallCenterLs
+ ref="CallCenterLs"
+ :initial-phone="currentPhoneNumber"
+ @call-connected="recordCallConnected"
+ />
</el-dialog>
</div>
</div>
@@ -1261,8 +1458,10 @@
query360PatInfonh,
sendMsg,
smsSubTask,
+ weChatSubTask,
getconfigKey,
} from "@/api/AiCentre/index";
+import { getIvrtask } from "@/api/smartor/ivrtask";
import {
messagelistpatient,
alterpatient,
@@ -1271,12 +1470,14 @@
import CallButton from "@/components/CallButton";
import TemplateSelector from "@/components/optionalModule";
import MergeAndModify from "./MergeAndModify.vue";
+import AdviceList from "./components/AdviceList.vue";
import CallCenterLs from "@/components/CallCenterLs";
import store from "@/store";
export default {
components: {
CallButton,
MergeAndModify,
+ AdviceList,
CallCenterLs,
TemplateSelector,
},
@@ -1364,6 +1565,8 @@
};
return {
visitAgain: 1,
+ activeNames: ["next"], // 鍙睍寮�"涓嬫闅忚"锛屽叾浠栭兘鎶樺彔
+ collapseActive: ["patient"], // 浜哄伐澶勭悊鎶樺彔闈㈡澘婵�娲婚」锛堥粯璁ゅ睍寮�鎮h�呮。妗堬級
userid: "",
defaultKey: false, //鏄惁鍙粯璁ゅ~鎶�
currentPhoneNumber: "",
@@ -1408,6 +1611,7 @@
input: "浠婂ぉ韬綋杩樹笉閿�",
radio: "2",
taskname: "",
+ nextTaskName: "",
activeName: "wj",
voice: "",
templateid: "",
@@ -1454,6 +1658,12 @@
"棰勭害涓嬫澶嶈瘖",
],
tableDatatop: [], //棰樼洰琛�
+ // 淇濆瓨闂嵎锛氭湭绛旈鎻愮ず寮圭獥 / 鐢ㄦ埛鍧氭寔淇濆瓨鏍囪
+ confirmSaveVisible: false,
+ forceSave: false,
+ // 闃查噸澶嶆彁浜わ細淇濆瓨涓鐢ㄦ寜閽�
+ savingQuestion: false,
+ savingVoice: false,
voiceDatatop: [], //棰樼洰琛�
dynamicTags: [],
isMergeMode: false,
@@ -1502,6 +1712,20 @@
callback();
},
trigger: "change",
+ },
+ ],
+ // 鍖荤敓澶勭悊鎰忚锛氫粎銆岄殢璁夸腑蹇冮殢璁裤��+銆屼附姘村競涓尰闄€�嶆椂蹇呭~锛屽叾浣欐儏鍐典笉鏍¢獙
+ doctorOpinion: [
+ {
+ validator: (rule, value, callback) => {
+ const needRequired =
+ this.form.resource == "2" && this.orgname === "涓芥按甯備腑鍖婚櫌";
+ if (needRequired && !String(value || "").trim()) {
+ return callback(new Error("璇疯緭鍏ュ尰鐢熷鐞嗘剰瑙�"));
+ }
+ callback();
+ },
+ trigger: "blur",
},
],
},
@@ -1574,6 +1798,10 @@
value: "涓�骞村悗",
label: "涓�骞村悗",
},
+ {
+ value: "浜斿勾鍚�",
+ label: "浜斿勾鍚�",
+ },
],
statusTimer: null,
userform: {},
@@ -1600,6 +1828,26 @@
}
},
computed: {
+ // 鏄惁鏈変换鎰忎竴閬撻銆岄�変簡閫夐」銆嶆垨銆屽~浜嗗娉ㄣ��
+ hasAnyAnswer() {
+ return (this.tableDatatop || []).some((item) => this.isQuestionAnswered(item));
+ },
+ // 鍙充晶澶勭悊鎰忚/澶囨敞妗嗘槸鍚︽湁鍐呭
+ hasRemarkText() {
+ const remark = this.form && this.form.remark;
+ return remark !== null && remark !== undefined && String(remark).trim() !== "";
+ },
+ // 淇濆瓨闂嵎璇︽儏鐨勫彲鐐规潯浠讹細闂嵎鏈変綔绛� 鎴� 鍙宠竟澶囨敞妗嗘湁鍐呭锛堟湁鍏朵竴鍗冲彲锛�
+ canSaveQuestionnaire() {
+ return this.hasAnyAnswer || this.hasRemarkText;
+ },
+ // 娌℃湁閫夋嫨閫夐」鐨勯鐩紙淇濆瓨鍓嶇敤澶у瓧閱掔洰鎻愮ず锛屼笉鍖哄垎鏈夋病鏈夊~澶囨敞锛�
+ // index 鐢ㄩ鐩湪闂嵎閲岀殑鍘熷搴忓彿锛屾柟渚垮拰宸﹁竟闂嵎瀵圭収
+ unansweredQuestions() {
+ return (this.tableDatatop || [])
+ .map((item, i) => ({ index: i + 1, title: item.scriptContent || "鏈懡鍚嶉鐩�", raw: item }))
+ .filter((q) => !this.hasOptionValue(q.raw));
+ },
callStatusText() {
if (this.customCallStatus) {
return this.customCallStatus;
@@ -1623,6 +1871,19 @@
};
return typeMap[this.callStatus];
},
+ // 鍖荤敓澶勭悊鎰忚鏄惁蹇呭~锛氶殢璁跨被鍨嬮�夈�岄殢璁夸腑蹇冮殢璁裤�嶄笖褰撳墠鏈烘瀯涓轰附姘村競涓尰闄�
+ isDoctorOpinionRequired() {
+ return this.form.resource == "2" && this.orgname === "涓芥按甯備腑鍖婚櫌";
+ },
+ // 鏄惁浠ラ棶鍗峰舰寮忓睍绀猴紙闈炶闊虫湇鍔★紝鎴栬闊虫湇鍔′絾鏃犲畬鏁磋闊虫暟鎹渶鎵嬪姩濉姤锛�
+ showQuestionnaireForm() {
+ return !this.Voicetype;
+ },
+ // 鏄惁涓虹鐞嗗憳瑙掕壊
+ isAdmin() {
+ const roles = this.$store.getters.roles || [];
+ return roles.includes("admin") || roles.includes("sysadmin");
+ },
},
created() {
this.taskid = this.$route.query.taskid;
@@ -1637,7 +1898,9 @@
console.log(store.getters.visitAgain);
this.orgname = localStorage.getItem("orgname");
- if (this.orgname == "鐪佺珛鍚屽痉缈犺嫅闄㈠尯") {
+ console.log(localStorage.getItem("orgname"));
+
+ if (this.isTongdeCampus) {
this.showContinuationCareBtn = true;
}
@@ -1709,6 +1972,22 @@
} else {
return "scriptTopic-dev"; // 姝e父 - 榛樿鏍峰紡
}
+ },
+ handleCollapseChange(val) {
+ console.log("鎶樺彔闈㈡澘鐘舵�佸彉鍖�:", val);
+ },
+ Tooltipy(h, { column }) {
+ return h(
+ "el-tooltip",
+ {
+ props: {
+ content: "浠诲姟閰嶇疆澶氱琛ュ伩绫诲瀷鏃讹紝鏈�鏂版墽琛岀被鍨嬬殑搴旈殢璁挎椂闂�",
+ placement: "top",
+ effect: "dark",
+ },
+ },
+ [h("span", column.label)]
+ );
},
getconfigKey() {
getconfigKey("default.value.icon").then((res) => {
@@ -1793,7 +2072,9 @@
item.scriptResult = item.scriptResult;
} else if (item.scriptResultId && item.scriptType == 2) {
console.log(item.scriptResult, "item.scriptResult");
- item.scriptResult = item.scriptResult.split("&");
+ item.scriptResult = item.scriptResult
+ ? item.scriptResult.split("&")
+ : [];
item.isoption = 3;
} else if (!item.scriptResultId && item.scriptType == 2) {
item.scriptResult = [];
@@ -1885,6 +2166,8 @@
followupDate.setMonth(dischargeDate.getMonth() + 6);
} else if (value.includes("涓�骞村悗") || value.includes("12涓湀鍚�")) {
followupDate.setFullYear(dischargeDate.getFullYear() + 1);
+ } else if (value.includes("浜斿勾鍚�")) {
+ followupDate.setFullYear(dischargeDate.getFullYear() + 5);
}
if (followupDate < now) {
@@ -1929,7 +2212,7 @@
if (res.code == 200) {
this.voiceDatatop = res.data.serviceSubtaskDetails;
this.voice = res.data.voice;
- this.activeName = "yy";
+ this.activeName = this.voice ? "yy" : "wj";
this.taskname = res.data.taskName;
// 闂嵎灞曠ず鏁版嵁澶勭悊
this.tableDatatop = res.data.filteredDetails;
@@ -1964,15 +2247,62 @@
.map((obj) => obj.targetvalue)
.join("&");
}
+ console.log(item.targetvalue, "item.targetvalue");
+
if (item.targetvalue) {
item.scriptResult = item.targetvalue.split("&");
}
+ console.log(item.scriptResult);
});
}
});
},
+ // 棰樼洰鏄惁閫変簡閫夐」锛堝崟閫夊瓧绗︿覆 / 澶氶�夋暟缁勶級
+ hasOptionValue(item) {
+ if (!item) {
+ return false;
+ }
+ const val = item.scriptResult;
+ if (Array.isArray(val)) {
+ return val.some(
+ (v) => v !== null && v !== undefined && String(v).trim() !== ""
+ );
+ }
+ return val !== null && val !== undefined && String(val).trim() !== "";
+ },
+ // 棰樼洰鏄惁濉簡澶囨敞
+ hasRemarkValue(item) {
+ if (!item) {
+ return false;
+ }
+ const remark = item.answerps;
+ return (
+ remark !== null && remark !== undefined && String(remark).trim() !== ""
+ );
+ },
+ // 棰樼洰鏄惁宸蹭綔绛旓細閫変簡閫夐」 鎴� 濉簡澶囨敞锛堜袱鑰呮湁鍏朵竴鍗崇畻宸茬瓟锛�
+ isQuestionAnswered(item) {
+ return this.hasOptionValue(item) || this.hasRemarkValue(item);
+ },
+ // 鏈瓟棰樻彁绀洪噷鐐广�屼粛瑕佷繚瀛樸��
+ confirmForceSave() {
+ this.forceSave = true;
+ this.confirmSaveVisible = false;
+ this.getdetail();
+ },
// 鍖绘姢浜哄憳瀛樺偍鏁版嵁
getdetail() {
+ // 闂嵎娌′綔绛斻�佸彸杈瑰娉ㄦ涔熺┖ 鈫� 涓嶅厑璁镐繚瀛�
+ if (!this.canSaveQuestionnaire) {
+ this.$message.warning("璇峰厛鍦ㄩ棶鍗蜂腑浣滅瓟锛屾垨鍦ㄥ彸渚у~鍐欏鐞嗘剰瑙�/澶囨敞");
+ return;
+ }
+ // 杩樻湁棰樼洰娌′綔绛旓細澶у瓧鎻愮ず锛岀敤鎴峰潥鎸佹墠缁х画
+ if (this.unansweredQuestions.length > 0 && !this.forceSave) {
+ this.confirmSaveVisible = true;
+ return;
+ }
+ this.forceSave = false;
console.log(1);
let excep = "";
@@ -2027,12 +2357,16 @@
param6: this.id,
type: 2,
};
+ // 闃查噸澶嶆彁浜わ細淇濆瓨涓啀娆$偣鍑荤洿鎺ュ拷鐣�
+ if (this.savingQuestion) {
+ return;
+ }
+ this.savingQuestion = true;
savequestiondetail(obj).then((res) => {
if (res.code == 200) {
this.$modal.msgSuccess("鏈嶅姟淇濆瓨鎴愬姛");
this.Editsingletasksonyic(this.serviceStates);
const orgName = localStorage.getItem("orgname");
-
if (
this.form.isVisitAgain != 1 ||
orgName == "涓芥按甯備腑鍖婚櫌" ||
@@ -2041,30 +2375,37 @@
this.Torouter();
return;
}
- // this.$modal
- // .confirm(
- // '浠诲姟淇濆瓨鎴愬姛鏄惁閽堝鎮h�咃細"' +
- // this.userform.name +
- // '"鍐嶆闅忚锛�',
- // "纭",
- // {
- // confirmButtonText: "纭畾",
- // cancelButtonText: "鍙栨秷",
- // showCancelButton: true,
- // dangerouslyUseHTMLString: true,
- // confirmButtonClass: "custom-confirm-button", // 鑷畾涔夌‘璁ゆ寜閽殑绫诲悕
- // cancelButtonClass: "custom-cancel-button", // 鑷畾涔夊彇娑堟寜閽殑绫诲悕
- // }
- // )
- // .then(() => {
- // document.querySelector("#app").scrollTo(0, 0);
- // this.formtidy();
- // this.dialogFormVisible = true;
- // })
- // .catch(() => {
- // this.Torouter();
- // });
+ if (
+ orgName == "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�" ||
+ orgName == "缂欎簯绗簩浜烘皯鍖婚櫌"
+ ) {
+ this.$modal
+ .confirm(
+ '浠诲姟淇濆瓨鎴愬姛鏄惁閽堝鎮h�咃細"' +
+ this.userform.name +
+ '"鍐嶆闅忚锛�',
+ "纭",
+ {
+ confirmButtonText: "纭畾",
+ cancelButtonText: "鍙栨秷",
+ showCancelButton: true,
+ dangerouslyUseHTMLString: true,
+ confirmButtonClass: "custom-confirm-button", // 鑷畾涔夌‘璁ゆ寜閽殑绫诲悕
+ cancelButtonClass: "custom-cancel-button", // 鑷畾涔夊彇娑堟寜閽殑绫诲悕
+ }
+ )
+ .then(() => {
+ document.querySelector("#app").scrollTo(0, 0);
+ this.formtidy();
+ this.dialogFormVisible = true;
+ })
+ .catch(() => {
+ this.Torouter();
+ });
+ }
}
+ }).finally(() => {
+ this.savingQuestion = false;
});
},
Torouter() {
@@ -2088,6 +2429,29 @@
path: "/followvisit/discharge",
});
}
+ } else if (this.form.serviceType == 3) {
+ if (this.visitCount != 1) {
+ this.$router.push({
+ path: "/logisticsservice/OutpatientAgain",
+ });
+ } else {
+ this.$router.push({
+ path: "/followvisit/discharge",
+ });
+ }
+ } else if (this.form.serviceType == 19) {
+ if (this.visitCount != 1) {
+ this.$router.push({
+ path: "/logisticsservice/operationAgain",
+ });
+ } else {
+ this.$router.push({
+ path: "/followvisit/discharge",
+ });
+ }
+ } else {
+ // location.reload();
+ this.$router.go(-1);
}
},
// 鐢佃瘽============================
@@ -2170,6 +2534,22 @@
console.log(err);
});
},
+ weChatSubTask() {
+ this.$modal
+ .confirm("鏄惁鍚戞偅鑰呴�氳繃寰俊鎺ㄩ�侀棶鍗峰唴瀹癸紵")
+ .then(() => {
+ weChatSubTask(this.id).then((res) => {
+ if (String(res.code) === "200") {
+ this.$modal.msgSuccess(res.msg || "鍙戦�佹垚鍔�");
+ } else {
+ this.$modal.msgError(res.message || res.msg || "鍙戦�佸け璐�");
+ }
+ });
+ })
+ .catch((err) => {
+ console.log(err);
+ });
+ },
handleConfirmReplace() {
// 閬嶅巻鎵�鏈夐鐩紙tableDatatop锛�
this.tableDatatop.forEach((item) => {
@@ -2220,7 +2600,7 @@
this.CaldialogVisible = true;
return;
}
- // 涓嬫柟鏄腑鍖婚櫌鍛煎彨
+ // 涓嬫柟鏄附姘村競涓尰闄�
if (this.isSipRegistering) {
this.$message.warning("绯荤粺姝e湪鍒濆鍖栵紝璇风◢鍊�...");
return;
@@ -2250,11 +2630,15 @@
this.callStatus = status.type;
if (status.type === "connected") {
- this.currentCall = {
- phone: this.currentPhoneNumber,
- type: this.callType,
- startTime: new Date(),
- };
+ if (!this.currentCall) {
+ this.currentCall = {
+ phone: this.currentPhoneNumber,
+ type: this.callType,
+ startTime: new Date(),
+ };
+ // 涓芥按甯備腑鍖婚櫌锛氱數璇濇帴閫氬悗璁板綍鎷ㄦ墦鎴愬姛娆℃暟
+ this.recordCallConnected();
+ }
} else if (status.type === "ended" || status.type === "failed") {
this.currentCall = null;
}
@@ -2263,6 +2647,39 @@
if (status.type === "failed") {
this.$message.error(`鍛煎彨澶辫触: ${status.text}`);
}
+ },
+ // 鐢佃瘽鎷ㄦ墦鎴愬姛鍚庯紙鎺ラ�氾級娆℃暟 +1锛屽苟閫氳繃 Editsingletaskson 鏇存柊鏈嶅姟鏁版嵁
+ // 浠呴檺鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄笌涓芥按甯備腑鍖婚櫌
+ recordCallConnected() {
+ const allowedOrgs = ["鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�", "涓芥按甯備腑鍖婚櫌"];
+ if (!allowedOrgs.includes(this.orgname)) return;
+
+ getTaskservelist({
+ patid: this.patid,
+ subId: this.id,
+ }).then((res) => {
+ if (res.code == 200) {
+ const objson = res.rows[0].serviceSubtaskList.find(
+ (item) => item.id == this.id
+ );
+ if (!objson) return;
+ objson.isManuallyCalled = (Number(objson.isManuallyCalled) || 0) + 1;
+ Editsingletaskson(objson).then((r) => {
+ if (r.code == 200) {
+ // 鍙婃椂鏇存柊椤堕儴鏈嶅姟鍒楄〃涓庤〃鍗曚腑鐨勬嫧鍙风姸鎬�
+ const localRow = (this.logsheetlist || []).find(
+ (item) => item.id == this.id
+ );
+ if (localRow) {
+ localRow.isManuallyCalled = objson.isManuallyCalled;
+ }
+ if (this.form && this.form.id == this.id) {
+ this.form.isManuallyCalled = objson.isManuallyCalled;
+ }
+ }
+ });
+ }
+ });
},
// 缁撴潫褰撳墠閫氳瘽
endCurrentCall() {
@@ -2312,46 +2729,55 @@
type: 1,
};
console.log("c", 4);
+ // 闃查噸澶嶆彁浜わ細淇濆瓨涓啀娆$偣鍑荤洿鎺ュ拷鐣�
+ if (this.savingVoice) {
+ return;
+ }
+ this.savingVoice = true;
const orgName = localStorage.getItem("orgname");
console.log(orgName, "orgName");
- if (
- this.form.isVisitAgain != 1 ||
- orgName == "涓芥按甯備腑鍖婚櫌" ||
- this.visitAgain == 1
- ) {
- this.Torouter();
- return;
- }
savequestiondetail(obj).then((res) => {
if (res.code == 200) {
this.$modal.msgSuccess("鏈嶅姟淇濆瓨鎴愬姛");
- this.Torouter();
- // this.$modal
- // .confirm(
- // '浠诲姟淇濆瓨鎴愬姛鏄惁閽堝鎮h�咃細"' +
- // this.userform.name +
- // '"鍐嶆闅忚锛�',
- // "纭",
- // {
- // confirmButtonText: "纭畾",
- // cancelButtonText: "鍙栨秷",
- // showCancelButton: true,
- // dangerouslyUseHTMLString: true,
- // confirmButtonClass: "custom-confirm-button", // 鑷畾涔夌‘璁ゆ寜閽殑绫诲悕
- // cancelButtonClass: "custom-cancel-button", // 鑷畾涔夊彇娑堟寜閽殑绫诲悕
- // }
- // )
- // .then(() => {
- // document.querySelector("#app").scrollTo(0, 0);
- // this.formtidy();
- // this.dialogFormVisible = true;
- // })
- // .catch(() => {
- // this.Torouter();
- // });
+ if (
+ this.form.isVisitAgain != 1 ||
+ orgName == "涓芥按甯備腑鍖婚櫌" ||
+ this.visitAgain == 1
+ ) {
+ console.log("c4");
+
+ this.Torouter();
+ return;
+ }
+
+ this.$modal
+ .confirm(
+ '浠诲姟淇濆瓨鎴愬姛鏄惁閽堝鎮h�咃細"' +
+ this.userform.name +
+ '"鍐嶆闅忚锛�',
+ "纭",
+ {
+ confirmButtonText: "纭畾",
+ cancelButtonText: "鍙栨秷",
+ showCancelButton: true,
+ dangerouslyUseHTMLString: true,
+ confirmButtonClass: "custom-confirm-button", // 鑷畾涔夌‘璁ゆ寜閽殑绫诲悕
+ cancelButtonClass: "custom-cancel-button", // 鑷畾涔夊彇娑堟寜閽殑绫诲悕
+ }
+ )
+ .then(() => {
+ document.querySelector("#app").scrollTo(0, 0);
+ this.formtidy();
+ this.dialogFormVisible = true;
+ })
+ .catch(() => {
+ this.Torouter();
+ });
}
+ }).finally(() => {
+ this.savingVoice = false;
});
},
// 鍐嶆闅忚鏁版嵁鏇存浛
@@ -2386,9 +2812,13 @@
this.form = res.rows[0].serviceSubtaskList.find(
(item) => item.id == this.id
);
+ this.form.taskSituation = String(this.form.taskSituation);
+
console.log(this.form.templatename, "templatename");
this.form.remark = this.form.remark || "";
+ this.form.doctorOpinion2 = this.form.doctorOpinion || "";
+ this.form.doctorOpinion = "";
this.logsheetlist = res.rows[0].serviceSubtaskList;
this.templateid = this.form.templateid;
this.selectedTag = this.form.excep;
@@ -2422,7 +2852,7 @@
name: this.form.sendname,
age: this.form.age,
phone: this.userform.telcode,
- deptName: this.form.deptname,
+ deptName: this.form.leaveldeptname,
wardName: this.form.leavehospitaldistrictname,
smsTemplate: `灏婃暚鐨�${this.form.sendname}锛屾偍濂斤紒`,
});
@@ -2450,7 +2880,12 @@
this.$modal.msgError("鍙戦�佸け璐�");
});
},
- Editsingletaskson(son) {
+ // 寮傚父澶勭悊
+ exceptionHandling(sid) {
+ this.Editsingletaskson(1, sid);
+ },
+ // 瀛樺偍鎰忚鑷姩瀛樺偍
+ Editsingletaskson(son, sid) {
let objson = {};
getTaskservelist({
patid: this.patid,
@@ -2458,13 +2893,14 @@
}).then((res) => {
if (res.code == 200) {
objson = res.rows[0].serviceSubtaskList[0];
- objson.suggest = son;
+ objson.suggest = sid ? this.form.suggest : son;
+ objson.excep = sid ? sid : 0;
objson.remark = this.form.remark;
objson.sendstate = this.serviceStates;
objson.taskSituation = this.form.taskSituation;
Editsingletaskson(objson).then((res) => {
if (res.code) {
- this.$modal.msgSuccess("鏈嶅姟璁板綍鎴愬姛");
+ this.$modal.msgSuccess("鏈嶅姟璁板綍鏇存柊鎴愬姛");
this.getTaskservelist();
}
});
@@ -2500,6 +2936,36 @@
});
}
});
+ },
+ // 瓒呮椂鏈嶅姟锛氱鐞嗗憳灏嗗畬鎴愭椂闂存敼涓哄簲闅忚鏃堕棿銆佺姸鎬佹敼涓哄凡瀹屾垚
+ handleTimeoutComplete() {
+ this.$modal
+ .confirm(
+ "鏄惁灏嗚瓒呮椂鏈嶅姟鐨勯殢璁垮畬鎴愭椂闂磋皟鏁翠负搴旈殢璁挎椂闂达紝骞跺皢闅忚鐘舵�佹敼涓哄凡瀹屾垚锛�"
+ )
+ .then(() => {
+ getTaskservelist({
+ patid: this.patid,
+ subId: this.id,
+ }).then((res) => {
+ if (res.code == 200) {
+ const objson = res.rows[0].serviceSubtaskList.find(
+ (item) => item.id == this.id
+ );
+ if (objson) {
+ objson.finishtime = objson.visitTime;
+ objson.sendstate = 6;
+ Editsingletaskson(objson).then((res) => {
+ if (res.code) {
+ this.$modal.msgSuccess("鎿嶄綔鎴愬姛");
+ this.getTaskservelist();
+ }
+ });
+ }
+ }
+ });
+ })
+ .catch(() => {});
},
alterpatient(sendstate) {
this.Editsingletasksonyic(this.serviceStates);
@@ -2542,12 +3008,33 @@
return tag ? tag.description : "";
},
+ // 鑾峰彇鍐嶆闅忚浠诲姟淇℃伅锛堜笅娆¢殢璁块儴鍒嗗睍绀猴級
+ fetchNextTaskInfo() {
+ const taskid = this.form.taskid || this.taskid;
+ if (!taskid) {
+ this.nextTaskName = "";
+ return;
+ }
+ getIvrtask(taskid).then((r) => {
+ const task = r.data || {};
+ const nextid = task.nexttaskid;
+ if (nextid) {
+ getIvrtask(nextid).then((r2) => {
+ this.nextTaskName =
+ (r2.data && r2.data.taskName) || task.nexttaskname || "";
+ });
+ } else {
+ this.nextTaskName = task.nexttaskname || "";
+ }
+ });
+ },
// 璋冭捣鍐嶆鍙戦��
sendAgain() {
+ this.fetchNextTaskInfo();
getTaskservelist({
patid: this.patid,
visitCount: 2,
- leaveldeptcodes: [this.form.deptcode],
+ leaveldeptcodes: [this.form.leaveldeptcode],
}).then((res) => {
if (res.rows[0].serviceSubtaskList.length) {
if (
@@ -2557,7 +3044,7 @@
this.$modal
.confirm(
'鏈偅鑰呭湪"' +
- res.rows[0].serviceSubtaskList[0].deptname +
+ res.rows[0].serviceSubtaskList[0].leaveldeptname +
'"绉戝涓嬪凡鏈夊啀娆¢殢璁挎湇鍔¤繘琛屼腑鏄惁缁х画鍒涘缓锛�'
)
.then(() => {
@@ -2622,6 +3109,7 @@
// 鍚屾椂閲嶇疆涓庨�夐」鐩稿叧鐨勭姸鎬�
// questionItem.isabnormal = false;
questionItem.showAppendInput = false;
+ questionItem.score = null; // 鍙栨秷閫変腑鍚庢竻绌洪鐩垎鏁�
// 娉ㄦ剰锛氬彇娑堥�変腑鏃讹紝鎴戜滑閫氬父涓嶅笇鏈涜Е鍙戦鐩烦杞�昏緫锛屾墍浠ョ洿鎺ヨ繑鍥�
// 濡傛灉闇�瑕侊紝鍙互鍦ㄨ繖閲屾坊鍔犲彇娑堥�変腑鍚庣殑鐗瑰畾閫昏緫锛屼緥濡傞噸缃鐩簭鍒�
} else {
@@ -2640,15 +3128,29 @@
if (document.activeElement) {
document.activeElement.blur();
}
+ let selectedOptionObj = null;
+ if (this.Voicetype) {
+ console.log("Voicetype");
- // 鎵惧埌琚�変腑鐨勯�夐」瀵硅薄
- const selectedOptionObj = options.find(
- (item) => item.optioncontent == selectedOption
- );
+ selectedOptionObj = options.find(
+ (item) => item.targetvalue == selectedOption
+ );
+ } else {
+ // 鎵惧埌琚�変腑鐨勯�夐」瀵硅薄
+ selectedOptionObj = options.find(
+ (item) => item.optioncontent == selectedOption
+ );
+ }
+ console.log(this.tableDatatop, "this.tableDatatop");
+ console.log(selectedOptionObj, "selectedOptionObj");
// 澶勭悊寮傚父鐘舵�侀珮浜�
this.tableDatatop[questionIndex].isabnormal =
selectedOptionObj.isabnormal;
+
+ // 澶勭悊鍒嗘暟锛氭妸閫変腑閫夐」鐨� score 甯﹀埌棰樼洰 score 涓�
+ this.tableDatatop[questionIndex].score = selectedOptionObj.score;
+
// 澶勭悊闄勫姞杈撳叆妗嗘樉绀�
this.tableDatatop[questionIndex].showAppendInput =
@@ -2742,7 +3244,19 @@
if (obj.isabnormal) {
this.tableDatatop[index].isabnormal = obj.isabnormal;
}
+ // 鍥炴樉鍗曢�夐鐩垎鏁帮細鎶婂凡閫変腑閫夐」鐨� score 甯﹀埌棰樼洰 score 涓�
+ if (obj.score !== undefined && obj.score !== null) {
+ this.tableDatatop[index].score = obj.score;
+ }
this.$forceUpdate();
+ }
+ });
+ },
+ // 鍒囨崲闅忚绫诲瀷鍚庯紝閲嶇疆鍖荤敓澶勭悊鎰忚鐨勬牎楠岀姸鎬侊紙蹇呭~鏉′欢闅忕被鍨嬪彉鍖栵級
+ handleResourceChange() {
+ this.$nextTick(() => {
+ if (this.$refs.zcform) {
+ this.$refs.zcform.clearValidate("doctorOpinion");
}
});
},
@@ -2761,17 +3275,21 @@
this.form.remark =
this.form.remark + "銆�" + this.getCurrentTime() + "銆�";
let form = structuredClone(this.form);
+ // 鍐嶆闅忚鍗斥�滃洖闄㈠鏌ュ璇娾�濓細澶勭悊鎰忚缃负 suggest=7
+ if (String(form.suggest) !== "7") {
+ form.suggest = "7";
+ }
form.visitTime = this.parseTime(form.date1);
form.finishtime = "";
if (form.resource) {
if (form.resource == 2) {
form.visitDeptCode = localStorage.getItem("deptCode")
? localStorage.getItem("deptCode")
- : form.deptcode;
+ : form.leaveldeptcode;
form.visitDeptName = "闅忚涓績";
} else {
- form.visitDeptCode = form.deptcode;
- form.visitDeptName = form.deptname;
+ form.visitDeptCode = form.leaveldeptcode;
+ form.visitDeptName = form.leaveldeptname;
}
} else {
this.$modal.msgError("鏈�夋嫨闅忚鏂瑰紡");
@@ -2813,7 +3331,18 @@
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
},
- updateScore(a, b, c) {},
+ // 澶氶�夛細鎶婇�変腑閫夐」鐨勫垎鏁扮疮鍔犲埌棰樼洰 score 涓�
+ updateScore(selectedValues, questionIndex, question) {
+ const options = question.svyTaskTemplateTargetoptions || [];
+ const score = options.reduce((sum, opt) => {
+ if (selectedValues && selectedValues.includes(opt.optioncontent)) {
+ return sum + (Number(opt.score) || 0);
+ }
+ return sum;
+ }, 0);
+ question.score = score;
+ this.$forceUpdate();
+ },
// 鍚堝苟淇敼鐩稿叧=============================
toggleMergeMode() {
this.isMergeMode = !this.isMergeMode;
@@ -2962,7 +3491,7 @@
.call-action {
width: 60%;
min-width: 0;
- height: 100%;
+ // height: 100%;
/* 纭繚楂樺害缁ф壙 */
}
}
@@ -3234,7 +3763,7 @@
.CONTENT {
padding: 10px;
height: 100%;
- min-height: 738px;
+ // min-height: 938px;
/* 璁剧疆鏈�灏忛珮搴� */
.title {
@@ -3250,7 +3779,7 @@
padding: 30px;
border: 1px solid #dcdfe6;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04);
- max-height: 716px;
+ max-height: 916px;
/* 璁剧疆鏈�澶ч珮搴� */
overflow-y: auto;
/* 鍐呭瓒呰繃楂樺害鏃舵樉绀烘粴鍔ㄦ潯 */
@@ -3454,14 +3983,14 @@
margin-top: 20px;
}
-.el-input.is-disabled .el-input__inner {
+::v-deep .el-input.is-disabled .el-input__inner {
background-color: #fff;
border-color: #dcdfe6;
color: #080808 !important;
cursor: not-allowed;
}
-.el-textarea.is-disabled .el-textarea__inner {
+::v-deep .el-textarea.is-disabled .el-textarea__inner {
background-color: #fff;
border-color: #dcdfe6;
color: #080808 !important;
@@ -3787,6 +4316,41 @@
}
}
+/* 涓婃鐨勫鐞嗘剰瑙� */
+.last-opinion {
+ display: flex;
+ gap: 8px;
+ margin-bottom: 20px;
+ padding: 8px 14px;
+ background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
+ border: 1px solid #d1fae5;
+ border-left: 4px solid #10b981;
+ border-radius: 8px;
+ box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
+ line-height: 1.5;
+
+ > i {
+ font-size: 18px;
+ color: #10b981;
+ flex-shrink: 0;
+ }
+
+ .last-opinion-label {
+ font-size: 13px;
+ color: #059669;
+ font-weight: 600;
+ white-space: nowrap;
+ flex-shrink: 0;
+ }
+
+ .last-opinion-text {
+ font-size: 14px;
+ color: #334155;
+ word-break: break-word;
+ white-space: pre-wrap;
+ }
+}
+
/* 閫氳瘽鎺у埗鍖哄煙 */
.call-controls {
margin: 15px 0;
@@ -4021,4 +4585,129 @@
color: #66b1ff;
transform: scale(1.1);
}
+/* 璋冩暣鎶樺彔闈㈡澘鏍峰紡 */
+.el-collapse {
+ border-top: none;
+}
+
+.el-collapse-item__header {
+ font-size: 16px;
+ font-weight: bold;
+ background-color: #f5f7fa;
+ padding-left: 15px;
+ border-radius: 4px;
+ margin-bottom: 5px;
+}
+
+.el-collapse-item__wrap {
+ border-bottom: none;
+}
+
+.el-collapse-item__content {
+ padding: 20px 15px;
+ background-color: #fff;
+}
+
+.collapse-section {
+ width: 100%;
+ align-self: stretch;
+ margin-top: 10px;
+
+ ::v-deep .el-collapse {
+ border: none;
+
+ .el-collapse-item__header {
+ background: linear-gradient(135deg, #ecf5ff 0%, #f5f9ff 100%);
+ border-radius: 8px;
+ padding: 0 20px;
+ height: 48px;
+ font-size: 16px;
+ font-weight: 700;
+ color: #303133;
+ border-bottom: 1px solid #e4e7ed;
+ margin-bottom: 8px;
+ letter-spacing: 1px;
+
+ .el-collapse-item__arrow {
+ font-size: 16px;
+ color: #409eff;
+ }
+
+ &:hover {
+ background: linear-gradient(135deg, #e0efff 0%, #ecf5ff 100%);
+ }
+
+ &.is-active {
+ border-bottom-color: transparent;
+ color: #409eff;
+ }
+ }
+
+ .el-collapse-item__wrap {
+ border-bottom: none;
+ padding: 4px 2px 8px;
+ }
+
+ .el-collapse-item__content {
+ padding: 16px;
+ background: #fff;
+ border-radius: 8px;
+ border: 1px solid #ebeef5;
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
+ }
+ }
+
+ .el-form-item {
+ margin-bottom: 12px;
+ }
+}
+
+/* 鏈�夐�夐」鎻愮ず锛氬ぇ瀛楅啋鐩彁閱� */
+.unanswered-title {
+ font-size: 22px;
+ font-weight: 700;
+ color: #f56c6c;
+ display: flex;
+ align-items: center;
+}
+.unanswered-title i {
+ font-size: 26px;
+ margin-right: 10px;
+}
+.unanswered-warn {
+ font-size: 20px;
+ font-weight: 600;
+ color: #303133;
+ line-height: 1.8;
+}
+.unanswered-warn strong {
+ color: #f56c6c;
+ font-size: 22px;
+}
+.unanswered-count {
+ font-size: 40px;
+ font-weight: 700;
+ color: #f56c6c;
+ margin: 0 6px;
+ vertical-align: middle;
+}
+.unanswered-list {
+ margin-top: 14px;
+ max-height: 300px;
+ overflow-y: auto;
+ padding: 12px 16px;
+ background: #fef0f0;
+ border: 1px solid #fbc4c4;
+ border-radius: 6px;
+ font-size: 18px;
+ line-height: 2;
+ color: #303133;
+}
+.unanswered-tip {
+ margin-top: 18px;
+ font-size: 22px;
+ font-weight: 700;
+ color: #f56c6c;
+ text-align: center;
+}
</style>
--
Gitblit v1.9.3