tijiao
This commit is contained in:
@@ -23,125 +23,161 @@
|
|||||||
v-if="dialogVisible"
|
v-if="dialogVisible"
|
||||||
style="padding: 0 20px;box-sizing: border-box;height: calc(100% - 40px);overflow-y: auto;"
|
style="padding: 0 20px;box-sizing: border-box;height: calc(100% - 40px);overflow-y: auto;"
|
||||||
:style="
|
:style="
|
||||||
addCertificateForm.state == 2 || !showMessages ? 'height:100%' : ''
|
`
|
||||||
|
${
|
||||||
|
addCertificateForm.state == 2 || !showMessages ? 'height:100%;' : ''
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
`
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<!-- 触发按钮 -->
|
<div style="width:300px !important;float:right;background:#fafafa" v-if="markList.length>0">
|
||||||
<p
|
<el-timeline style="padding-left:10px;margin-top:14px" :reverse="true">
|
||||||
style="cursor: pointer;margin: 0;margin-bottom: 10px;"
|
<el-timeline-item
|
||||||
v-if="isShowWord"
|
v-for="(activity, index) in markList"
|
||||||
>
|
:key="index"
|
||||||
<span @click="triggerUpload">上传 Word</span>
|
:timestamp="activity.time"
|
||||||
<img
|
|
||||||
src="../../../assets/img/word-iocn.png"
|
|
||||||
alt=""
|
|
||||||
@click="triggerUpload"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
style="color:red;float: right;"
|
|
||||||
v-if="messageList.length > 0"
|
|
||||||
@click="messageList = []"
|
|
||||||
>
|
>
|
||||||
<i class="el-icon-delete"></i>
|
{{ activity.mark }}
|
||||||
清空已识别的医案
|
|
||||||
</span>
|
<span style="color:#f56c6c" v-if="activity.state == 2"
|
||||||
</p>
|
>( 已拒绝 )</span
|
||||||
<!-- 隐藏上传框 -->
|
>
|
||||||
<input
|
<span style="color:#17b3a3;" v-if="activity.state == 3"
|
||||||
type="file"
|
>( 已通过 )</span
|
||||||
ref="uploadInput"
|
>
|
||||||
accept=".docx"
|
</el-timeline-item>
|
||||||
@change="handleUpload"
|
</el-timeline>
|
||||||
style="display: none"
|
</div>
|
||||||
/>
|
|
||||||
<div
|
<div class="medical_box" :style="
|
||||||
style="display: flex;align-items: center;justify-content: flex-start;flex-wrap: wrap;"
|
`
|
||||||
v-if="isShowWord"
|
${
|
||||||
>
|
markList.length>0? 'width:calc(100% - 320px);' : ''
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
`
|
||||||
|
">
|
||||||
|
<!-- 触发按钮 -->
|
||||||
|
<p
|
||||||
|
style="cursor: pointer;margin: 0;margin-bottom: 10px;"
|
||||||
|
v-if="isShowWord"
|
||||||
|
>
|
||||||
|
<span @click="triggerUpload">上传 Word</span>
|
||||||
|
<img
|
||||||
|
src="../../../assets/img/word-iocn.png"
|
||||||
|
alt=""
|
||||||
|
@click="triggerUpload"
|
||||||
|
/>
|
||||||
|
<span
|
||||||
|
style="color:red;float: right;"
|
||||||
|
v-if="messageList.length > 0"
|
||||||
|
@click="messageList = []"
|
||||||
|
>
|
||||||
|
<i class="el-icon-delete"></i>
|
||||||
|
清空已识别的医案
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
|
<!-- 隐藏上传框 -->
|
||||||
|
<input
|
||||||
|
type="file"
|
||||||
|
ref="uploadInput"
|
||||||
|
accept=".docx"
|
||||||
|
@change="handleUpload"
|
||||||
|
style="display: none"
|
||||||
|
/>
|
||||||
<div
|
<div
|
||||||
v-for="(v, i) in messageList"
|
style="display: flex;align-items: center;justify-content: flex-start;flex-wrap: wrap;"
|
||||||
class="wordItem"
|
v-if="isShowWord"
|
||||||
@click="insertMessage(v.text, v.images ? v.images : [])"
|
|
||||||
style="width: 32%;margin-right: 15px;margin-bottom: 10px;cursor: pointer;"
|
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
style="border: 1px solid #bbb;border-radius: 8px;height: 110px;overflow: hidden;"
|
v-for="(v, i) in messageList"
|
||||||
|
class="wordItem"
|
||||||
|
@click="insertMessage(v.text, v.images ? v.images : [])"
|
||||||
|
style="width: 32%;margin-right: 15px;margin-bottom: 10px;cursor: pointer;"
|
||||||
>
|
>
|
||||||
<p
|
|
||||||
style="font-weight: bold;margin-bottom:2px;margin-top: -1px;background-color: #f0f0f0;color: #333;padding: 2px 10px 2px 2px;"
|
|
||||||
>
|
|
||||||
【医案 {{ numberToChineseLower(i + 1) }}】
|
|
||||||
<el-button
|
|
||||||
@click.stop="
|
|
||||||
analyzingMessage(v.text, v.images ? v.images : [])
|
|
||||||
"
|
|
||||||
size="mini"
|
|
||||||
type=""
|
|
||||||
plain
|
|
||||||
style="margin-left: 10px; padding: 2px;float: right;color: rgb(23, 129, 255);"
|
|
||||||
>解析医案</el-button
|
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
@click.stop="insertMessage(v.text, v.images ? v.images : [])"
|
|
||||||
size="mini"
|
|
||||||
type=""
|
|
||||||
plain
|
|
||||||
icon="el-icon-plus"
|
|
||||||
style="margin-left: 10px; padding: 2px;float: right;"
|
|
||||||
>选择</el-button
|
|
||||||
>
|
|
||||||
</p>
|
|
||||||
<div
|
<div
|
||||||
style=" overflow: hidden;font-size: 13px;padding: 10px 10px 0;box-sizing: border-box;
|
style="border: 1px solid #bbb;border-radius: 8px;height: 110px;overflow: hidden;"
|
||||||
display: -webkit-box;
|
|
||||||
-webkit-box-orient: vertical;
|
|
||||||
-webkit-line-clamp: 2;
|
|
||||||
line-height: 1.5;
|
|
||||||
max-height: calc(1.5em * 3);
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
word-break: break-word; /* 可选:精确限制高度,兼容性更好 */"
|
|
||||||
>
|
>
|
||||||
{{ v.text }}
|
<p
|
||||||
</div>
|
style="font-weight: bold;margin-bottom:2px;margin-top: -1px;background-color: #f0f0f0;color: #333;padding: 2px 10px 2px 2px;"
|
||||||
|
>
|
||||||
|
【医案 {{ numberToChineseLower(i + 1) }}】
|
||||||
|
<el-button
|
||||||
|
@click.stop="
|
||||||
|
analyzingMessage(v.text, v.images ? v.images : [])
|
||||||
|
"
|
||||||
|
size="mini"
|
||||||
|
type=""
|
||||||
|
plain
|
||||||
|
style="margin-left: 10px; padding: 2px;float: right;color: rgb(23, 129, 255);"
|
||||||
|
>解析医案</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
@click.stop="
|
||||||
|
insertMessage(v.text, v.images ? v.images : [])
|
||||||
|
"
|
||||||
|
size="mini"
|
||||||
|
type=""
|
||||||
|
plain
|
||||||
|
icon="el-icon-plus"
|
||||||
|
style="margin-left: 10px; padding: 2px;float: right;"
|
||||||
|
>选择</el-button
|
||||||
|
>
|
||||||
|
</p>
|
||||||
|
<div
|
||||||
|
style=" overflow: hidden;font-size: 13px;padding: 10px 10px 0;box-sizing: border-box;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
line-height: 1.5;
|
||||||
|
max-height: calc(1.5em * 3);
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
word-break: break-word; /* 可选:精确限制高度,兼容性更好 */"
|
||||||
|
>
|
||||||
|
{{ v.text }}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div v-if="v.images" style="padding:0px 10px 0;">
|
<div v-if="v.images" style="padding:0px 10px 0;">
|
||||||
<img
|
<img
|
||||||
v-for="(img, i) in v.images"
|
v-for="(img, i) in v.images"
|
||||||
:key="i"
|
:key="i"
|
||||||
:src="img"
|
:src="img"
|
||||||
style="width:30px;height: 30px; margin: 4px;"
|
style="width:30px;height: 30px; margin: 4px;"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<template v-if="!showMessages">
|
||||||
<template v-if="!showMessages">
|
<div class="home_wrap home_wrap_analysis">
|
||||||
<div class="home_wrap home_wrap_analysis">
|
<div class="home_form" style="position: relative">
|
||||||
<div class="home_form" style="position: relative">
|
<div
|
||||||
<div
|
class="form_item"
|
||||||
class="form_item"
|
style="
|
||||||
style="
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<!-- <text>医案信息</text> -->
|
<!-- <text>医案信息</text> -->
|
||||||
|
|
||||||
<!-- 固定标题和输入框部分 -->
|
<!-- 固定标题和输入框部分 -->
|
||||||
<div class="analysis_box">
|
<div class="analysis_box">
|
||||||
<div
|
<div
|
||||||
class="analysis_title"
|
class="analysis_title"
|
||||||
style="width: 100%;overflow: hidden;"
|
style="width: 100%;overflow: hidden;"
|
||||||
>
|
>
|
||||||
智能分析医案
|
智能分析医案
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 固定的输入框部分 -->
|
<!-- 固定的输入框部分 -->
|
||||||
<div
|
<div
|
||||||
style="height: calc(100% - 20px);padding:15px 15px 0;box-sizing: border-box;"
|
style="height: calc(100% - 20px);padding:15px 15px 0;box-sizing: border-box;"
|
||||||
>
|
>
|
||||||
<!-- <quill-editor
|
<!-- <quill-editor
|
||||||
style=" min-height: 95% !important;"
|
style=" min-height: 95% !important;"
|
||||||
placeholder="请输入医案到此处,将自动解析医案信息"
|
placeholder="请输入医案到此处,将自动解析医案信息"
|
||||||
v-model="message"
|
v-model="message"
|
||||||
@@ -149,44 +185,44 @@
|
|||||||
:options="editorOption"
|
:options="editorOption"
|
||||||
>
|
>
|
||||||
</quill-editor> -->
|
</quill-editor> -->
|
||||||
<textarea
|
<textarea
|
||||||
style=" min-height: 95% !important;"
|
style=" min-height: 95% !important;"
|
||||||
placeholder="请输入医案到此处,将自动解析医案信息"
|
placeholder="请输入医案到此处,将自动解析医案信息"
|
||||||
v-model="message"
|
v-model="message"
|
||||||
ref="myQuillEditor"
|
ref="myQuillEditor"
|
||||||
:options="editorOption"
|
:options="editorOption"
|
||||||
>
|
>
|
||||||
</textarea>
|
</textarea>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="submit"
|
@click="submit"
|
||||||
style="float: right;margin-right: 10px;margin-top: 4px;background-color: #1781ff;"
|
style="float: right;margin-right: 10px;margin-top: 4px;background-color: #1781ff;"
|
||||||
>解析医案</el-button
|
>解析医案</el-button
|
||||||
>
|
>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 搜索结果列表 -->
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
<!-- 搜索结果列表 -->
|
<template v-else>
|
||||||
</div>
|
<el-alert
|
||||||
</template>
|
v-if="tishi"
|
||||||
|
:title="
|
||||||
<template v-else>
|
loading
|
||||||
<el-alert
|
? '解析预计耗时约50秒,请耐心等待,也可在草稿箱中查看内容'
|
||||||
v-if="tishi"
|
: '好的,结合您的医案,下面是解析后的结果。5秒后自动关闭'
|
||||||
:title="
|
"
|
||||||
loading
|
:type="loading ? 'warning' : 'success'"
|
||||||
? '解析预计耗时约50秒,请耐心等待,也可在草稿箱中查看内容'
|
show-icon
|
||||||
: '好的,结合您的医案,下面是解析后的结果。5秒后自动关闭'
|
>
|
||||||
"
|
</el-alert>
|
||||||
:type="loading ? 'warning' : 'success'"
|
<template v-if="!loading">
|
||||||
show-icon
|
<!-- <div
|
||||||
>
|
|
||||||
</el-alert>
|
|
||||||
<template v-if="!loading">
|
|
||||||
<div
|
|
||||||
v-if="
|
v-if="
|
||||||
addCertificateForm.mark &&
|
addCertificateForm.mark &&
|
||||||
(addCertificateForm.mark.state == 2 ||
|
(addCertificateForm.mark.state == 2 ||
|
||||||
@@ -195,82 +231,84 @@
|
|||||||
style="padding:4px 10px;border-radius: 4px;white-space: wrap;"
|
style="padding:4px 10px;border-radius: 4px;white-space: wrap;"
|
||||||
:style="
|
:style="
|
||||||
`color:${currentNode.data.color ? currentNode.data.color : ''};
|
`color:${currentNode.data.color ? currentNode.data.color : ''};
|
||||||
`
|
`
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
审核备注:{{ addCertificateForm.mark }}
|
审核备注:{{ addCertificateForm.mark }}
|
||||||
</div>
|
</div> -->
|
||||||
<el-form
|
<el-form
|
||||||
:rules="dataRule"
|
:rules="dataRule"
|
||||||
:model="addCertificateForm"
|
:model="addCertificateForm"
|
||||||
ref="addCertificateForm"
|
ref="addCertificateForm"
|
||||||
label-width="120px"
|
label-width="120px"
|
||||||
>
|
>
|
||||||
<!-- <div style="background-color: #f0f0f0;padding:0 10px;box-sizing: border-box;color: #000;">
|
<!-- <div style="background-color: #f0f0f0;padding:0 10px;box-sizing: border-box;color: #000;">
|
||||||
<p>绑定用户</p>
|
<p>绑定用户</p>
|
||||||
</div> -->
|
</div> -->
|
||||||
<div
|
<div
|
||||||
v-if="pageType == 'label'"
|
v-if="pageType == 'label'"
|
||||||
style="display:flex;align-items:center;justify-content:space-between"
|
style="display:flex;align-items:center;justify-content:space-between"
|
||||||
>
|
|
||||||
<el-form-item
|
|
||||||
style="width: 50%;"
|
|
||||||
label="手机号/邮箱:"
|
|
||||||
prop="userKey"
|
|
||||||
class="form_item"
|
|
||||||
>
|
>
|
||||||
<div style="display: flex;align-items: center;">
|
<el-form-item
|
||||||
<el-autocomplete
|
style="width: 50%;"
|
||||||
size="small"
|
label="手机号/邮箱:"
|
||||||
v-if="isEdit"
|
prop="userKey"
|
||||||
style="width: 100%;"
|
class="form_item"
|
||||||
v-model="addCertificateForm.userKey"
|
>
|
||||||
:fetch-suggestions="loadAll"
|
<div style="display: flex;align-items: center;">
|
||||||
placeholder="请输入手机号/邮箱"
|
<el-autocomplete
|
||||||
@select="handleSelect"
|
size="small"
|
||||||
>
|
v-if="isEdit"
|
||||||
<template #default="{ item }">
|
style="width: 100%;"
|
||||||
<div class="custom-item">
|
v-model="addCertificateForm.userKey"
|
||||||
<span>{{ item.tel ? item.tel : item.email }}</span>
|
:fetch-suggestions="loadAll"
|
||||||
<span
|
placeholder="请输入手机号/邮箱"
|
||||||
style="color: gray; margin-left: 10px;"
|
@select="handleSelect"
|
||||||
v-if="item.name"
|
>
|
||||||
>({{ item.name }})</span
|
<template #default="{ item }">
|
||||||
>
|
<div class="custom-item">
|
||||||
</div>
|
<span>{{ item.tel ? item.tel : item.email }}</span>
|
||||||
</template>
|
<span
|
||||||
</el-autocomplete>
|
style="color: gray; margin-left: 10px;"
|
||||||
<span v-if="!isEdit">{{ addCertificateForm.userKey }}</span>
|
v-if="item.name"
|
||||||
</div>
|
>({{ item.name }})</span
|
||||||
</el-form-item>
|
>
|
||||||
<el-form-item
|
</div>
|
||||||
label="用户姓名:"
|
</template>
|
||||||
style="width: 50%;"
|
</el-autocomplete>
|
||||||
v-if="addCertificateForm.userId"
|
<span v-if="!isEdit">{{
|
||||||
prop="user"
|
addCertificateForm.userKey
|
||||||
class="form_item"
|
}}</span>
|
||||||
>
|
</div>
|
||||||
<div>
|
</el-form-item>
|
||||||
<!-- <span
|
<el-form-item
|
||||||
|
label="用户姓名:"
|
||||||
|
style="width: 50%;"
|
||||||
|
v-if="addCertificateForm.userId"
|
||||||
|
prop="user"
|
||||||
|
class="form_item"
|
||||||
|
>
|
||||||
|
<div>
|
||||||
|
<!-- <span
|
||||||
style="width: 110px;display: inline-block;text-align: right;"
|
style="width: 110px;display: inline-block;text-align: right;"
|
||||||
>用户姓名:</span
|
>用户姓名:</span
|
||||||
> -->
|
> -->
|
||||||
{{
|
{{
|
||||||
addCertificateForm.userName
|
addCertificateForm.userName
|
||||||
? addCertificateForm.userName
|
? addCertificateForm.userName
|
||||||
: "-"
|
: "-"
|
||||||
}}
|
}}
|
||||||
</div></el-form-item
|
</div></el-form-item
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
<template
|
||||||
|
v-if="
|
||||||
|
(type == 'detail' && currentNode.data.id == 'wait') ||
|
||||||
|
currentNode.data.id == 'caogao'
|
||||||
|
"
|
||||||
|
style="display:flex;align-items:center;justify-content:space-between"
|
||||||
>
|
>
|
||||||
</div>
|
<!-- <el-form-item
|
||||||
<template
|
|
||||||
v-if="
|
|
||||||
(type == 'detail' && currentNode.data.id == 'wait') ||
|
|
||||||
currentNode.data.id == 'caogao'
|
|
||||||
"
|
|
||||||
style="display:flex;align-items:center;justify-content:space-between"
|
|
||||||
>
|
|
||||||
<!-- <el-form-item
|
|
||||||
label="手机号/邮箱:"
|
label="手机号/邮箱:"
|
||||||
prop="user"
|
prop="user"
|
||||||
class="form_item"
|
class="form_item"
|
||||||
@@ -293,50 +331,50 @@
|
|||||||
}}
|
}}
|
||||||
</div></el-form-item
|
</div></el-form-item
|
||||||
> -->
|
> -->
|
||||||
<el-form-item label="医案分类" prop="user" class="form_item">
|
<el-form-item label="医案分类" prop="user" class="form_item">
|
||||||
<div>
|
<div>
|
||||||
<el-cascader
|
<el-cascader
|
||||||
size="mini"
|
size="mini"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
:show-all-levels="false"
|
:show-all-levels="false"
|
||||||
v-model="addCertificateForm.labelId"
|
v-model="addCertificateForm.labelId"
|
||||||
:props="{
|
:props="{
|
||||||
value: 'id',
|
value: 'id',
|
||||||
label: 'title'
|
label: 'title'
|
||||||
}"
|
}"
|
||||||
filterable
|
filterable
|
||||||
:options="cateOptions"
|
:options="cateOptions"
|
||||||
@change="selectLabelId"
|
@change="selectLabelId"
|
||||||
placeholder="医案分类"
|
placeholder="医案分类"
|
||||||
></el-cascader></div
|
></el-cascader></div
|
||||||
></el-form-item>
|
></el-form-item>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="flexbox width100"
|
class="flexbox width100"
|
||||||
style="display: flex;align-items: center;"
|
style="display: flex;align-items: center;"
|
||||||
>
|
|
||||||
<el-form-item
|
|
||||||
label="标题:"
|
|
||||||
label-width="110px"
|
|
||||||
prop="title"
|
|
||||||
style="width: 100%;"
|
|
||||||
>
|
>
|
||||||
<el-input
|
<el-form-item
|
||||||
v-if="type != 'detail'"
|
label="标题:"
|
||||||
clearable
|
label-width="110px"
|
||||||
size="small"
|
prop="title"
|
||||||
v-model="addCertificateForm.title"
|
|
||||||
placeholder="请输入医案标题"
|
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
></el-input>
|
>
|
||||||
<div v-else>
|
<el-input
|
||||||
{{ addCertificateForm.title }}
|
v-if="type != 'detail'"
|
||||||
</div>
|
clearable
|
||||||
</el-form-item>
|
size="small"
|
||||||
</div>
|
v-model="addCertificateForm.title"
|
||||||
|
placeholder="请输入医案标题"
|
||||||
|
style="width: 100%;"
|
||||||
|
></el-input>
|
||||||
|
<div v-else>
|
||||||
|
{{ addCertificateForm.title }}
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- <el-form-item label="课程名称:" prop="course" class="form_item">
|
<!-- <el-form-item label="课程名称:" prop="course" class="form_item">
|
||||||
<el-button plain type="primary" @click="selectCourse('addCertificateForm')"
|
<el-button plain type="primary" @click="selectCourse('addCertificateForm')"
|
||||||
size="mini">选择</el-button>
|
size="mini">选择</el-button>
|
||||||
<span style="margin-left: 20px"></span>
|
<span style="margin-left: 20px"></span>
|
||||||
@@ -344,7 +382,7 @@
|
|||||||
<div v-if="addCertificateForm.courseId" style="font-weight: bold;margin-top: 20px;display: flex;align-items: center;justify-content: space-between;"><p><img v-if="addCertificateForm.courseImg" :src="addCertificateForm.courseImg" alt=""style="width: 30px;height: 40px;margin-right: 20px;">{{ addCertificateForm.courseName }}</p><span @click="clearCourse" style="color: red;cursor: pointer;"><i class="el-icon-delete" style="margin-right: 4px;"></i> 删除</span></div>
|
<div v-if="addCertificateForm.courseId" style="font-weight: bold;margin-top: 20px;display: flex;align-items: center;justify-content: space-between;"><p><img v-if="addCertificateForm.courseImg" :src="addCertificateForm.courseImg" alt=""style="width: 30px;height: 40px;margin-right: 20px;">{{ addCertificateForm.courseName }}</p><span @click="clearCourse" style="color: red;cursor: pointer;"><i class="el-icon-delete" style="margin-right: 4px;"></i> 删除</span></div>
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
|
|
||||||
<!-- <el-form-item label="医案编号" prop="certificateNo" class="form_item">
|
<!-- <el-form-item label="医案编号" prop="certificateNo" class="form_item">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="addCertificateForm.certificateNo"
|
v-model="addCertificateForm.certificateNo"
|
||||||
placeholder="请输入医案编号"
|
placeholder="请输入医案编号"
|
||||||
@@ -352,60 +390,62 @@
|
|||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
|
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="医案详情:"
|
label="医案详情:"
|
||||||
label-width="110px"
|
label-width="110px"
|
||||||
class="form_item"
|
class="form_item"
|
||||||
>
|
>
|
||||||
<div style="padding-top: 15px;">
|
<div style="padding-top: 15px;">
|
||||||
<div
|
|
||||||
v-for="(html, key) in record"
|
|
||||||
:key="key"
|
|
||||||
style="padding: 2px; margin-bottom: 4px;box-sizing: border-box;"
|
|
||||||
>
|
|
||||||
<!-- 显示字段标题 -->
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="h1_box"
|
v-for="(html, key) in record"
|
||||||
:class="type == 'detail' ? 'h1_box_detail' : ''"
|
:key="key"
|
||||||
v-html="`${getTitleHtml(html, key)}`"
|
style="padding: 2px; margin-bottom: 4px;box-sizing: border-box;"
|
||||||
style="margin-top: 0;margin-bottom: 10px; font-weight: bold;display: flex;align-items: center;"
|
|
||||||
></div>
|
|
||||||
|
|
||||||
<!-- 编辑区域 -->
|
|
||||||
<quill-editor
|
|
||||||
v-model="editableMap[key]"
|
|
||||||
ref="myQuillEditor"
|
|
||||||
:options="editorOption"
|
|
||||||
class="shangpin_editor"
|
|
||||||
v-if="type != 'detail'"
|
|
||||||
>
|
>
|
||||||
</quill-editor>
|
<!-- 显示字段标题 -->
|
||||||
<div
|
|
||||||
class="detail_info_medical"
|
|
||||||
v-else
|
|
||||||
v-html="editableMap[key] ? editableMap[key] : '<p>无</p>'"
|
|
||||||
></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- <h3 style="margin-top: 40px;">✅ 保存后的结果(JSON 格式预览)</h3> -->
|
<div
|
||||||
</div>
|
class="h1_box"
|
||||||
<!-- <quill-editor
|
:class="type == 'detail' ? 'h1_box_detail' : ''"
|
||||||
|
v-html="`${getTitleHtml(html, key)}`"
|
||||||
|
style="margin-top: 0;margin-bottom: 10px; font-weight: bold;display: flex;align-items: center;"
|
||||||
|
></div>
|
||||||
|
|
||||||
|
<!-- 编辑区域 -->
|
||||||
|
<quill-editor
|
||||||
|
v-model="editableMap[key]"
|
||||||
|
ref="myQuillEditor"
|
||||||
|
:options="editorOption"
|
||||||
|
class="shangpin_editor"
|
||||||
|
v-if="type != 'detail'"
|
||||||
|
>
|
||||||
|
</quill-editor>
|
||||||
|
<div
|
||||||
|
class="detail_info_medical"
|
||||||
|
v-else
|
||||||
|
v-html="
|
||||||
|
editableMap[key] ? editableMap[key] : '<p>无</p>'
|
||||||
|
"
|
||||||
|
></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- <h3 style="margin-top: 40px;">✅ 保存后的结果(JSON 格式预览)</h3> -->
|
||||||
|
</div>
|
||||||
|
<!-- <quill-editor
|
||||||
v-model="detailContent"
|
v-model="detailContent"
|
||||||
ref="myQuillEditor2"
|
ref="myQuillEditor2"
|
||||||
:options="editorOption"
|
:options="editorOption"
|
||||||
class="shangpin_editor"
|
class="shangpin_editor"
|
||||||
>
|
>
|
||||||
</quill-editor> -->
|
</quill-editor> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="上传图片:"
|
label="上传图片:"
|
||||||
label-width="110px"
|
label-width="110px"
|
||||||
class="form_item custom-upload-box"
|
class="form_item custom-upload-box"
|
||||||
v-if="dialogVisible"
|
v-if="dialogVisible"
|
||||||
>
|
>
|
||||||
<!-- <template v-for="(file, i) in fileList" v-if="type == 'detail'">
|
<!-- <template v-for="(file, i) in fileList" v-if="type == 'detail'">
|
||||||
|
|
||||||
<img
|
<img
|
||||||
style="width: 60px;height: 60px;border-radius: 6px;margin: 0 8px 8px 0;"
|
style="width: 60px;height: 60px;border-radius: 6px;margin: 0 8px 8px 0;"
|
||||||
@@ -414,69 +454,69 @@
|
|||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
</template> -->
|
</template> -->
|
||||||
<div
|
<div
|
||||||
v-if="fileList.length == 0 && type == 'detail'"
|
v-if="fileList.length == 0 && type == 'detail'"
|
||||||
style="line-height: 60px;"
|
style="line-height: 60px;"
|
||||||
>
|
>
|
||||||
暂无图片
|
暂无图片
|
||||||
</div>
|
</div>
|
||||||
<el-upload
|
<el-upload
|
||||||
v-if="type != 'detail'"
|
v-if="type != 'detail'"
|
||||||
class="custom-upload"
|
class="custom-upload"
|
||||||
multiple
|
multiple
|
||||||
:action="baseUrl + '/oss/fileoss'"
|
:action="baseUrl + '/oss/fileoss'"
|
||||||
list-type="picture-card"
|
list-type="picture-card"
|
||||||
accept="image/png, image/jpeg"
|
accept="image/png, image/jpeg"
|
||||||
:file-list="fileList"
|
:file-list="fileList"
|
||||||
:on-success="onSuccessImg"
|
:on-success="onSuccessImg"
|
||||||
:before-upload="beforeUpload"
|
:before-upload="beforeUpload"
|
||||||
:on-progress="onProgress"
|
:on-progress="onProgress"
|
||||||
>
|
>
|
||||||
<i slot="default" class="el-icon-plus"></i>
|
<i slot="default" class="el-icon-plus"></i>
|
||||||
<div slot="file" slot-scope="{ file }">
|
<div slot="file" slot-scope="{ file }">
|
||||||
<img
|
<img
|
||||||
class="el-upload-list__item-thumbnail"
|
class="el-upload-list__item-thumbnail"
|
||||||
:src="file.url"
|
:src="file.url"
|
||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
<span class="el-upload-list__item-actions">
|
<span class="el-upload-list__item-actions">
|
||||||
<!-- <span
|
<!-- <span
|
||||||
class="el-upload-list__item-preview"
|
class="el-upload-list__item-preview"
|
||||||
@click="handlePictureCardPreview(file)"
|
@click="handlePictureCardPreview(file)"
|
||||||
>
|
>
|
||||||
<i class="el-icon-zoom-in"></i>
|
<i class="el-icon-zoom-in"></i>
|
||||||
</span> -->
|
</span> -->
|
||||||
|
|
||||||
<span
|
<span
|
||||||
v-if="!disabled"
|
v-if="!disabled"
|
||||||
class="el-upload-list__item-delete"
|
class="el-upload-list__item-delete"
|
||||||
@click="handleRemove(file)"
|
@click="handleRemove(file)"
|
||||||
>
|
>
|
||||||
<i class="el-icon-delete"></i>
|
<i class="el-icon-delete"></i>
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
<!-- 上传中的加载动画 -->
|
||||||
<!-- 上传中的加载动画 -->
|
<div v-if="file.uploading" class="loading-spinner">
|
||||||
<div v-if="file.uploading" class="loading-spinner">
|
<i class="el-icon-loading"></i>
|
||||||
<i class="el-icon-loading"></i>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</el-upload>
|
||||||
</el-upload>
|
<template
|
||||||
<template
|
v-if="addCertificateForm.img !== '' && type == 'detail'"
|
||||||
v-if="addCertificateForm.img !== '' && type == 'detail'"
|
|
||||||
>
|
|
||||||
<el-image
|
|
||||||
v-if="fileList.length > 0"
|
|
||||||
:key="index"
|
|
||||||
class="el-upload-list__item-thumbnail"
|
|
||||||
v-for="(item, index) in addCertificateForm.img.split(',')"
|
|
||||||
style="width: 60px;height: 60px;border-radius: 6px;margin: 0 8px 8px 0;"
|
|
||||||
:src="item"
|
|
||||||
:preview-src-list="addCertificateForm.img.split(',')"
|
|
||||||
>
|
>
|
||||||
</el-image>
|
<el-image
|
||||||
</template>
|
v-if="fileList.length > 0"
|
||||||
|
:key="index"
|
||||||
|
class="el-upload-list__item-thumbnail"
|
||||||
|
v-for="(item, index) in addCertificateForm.img.split(',')"
|
||||||
|
style="width: 60px;height: 60px;border-radius: 6px;margin: 0 8px 8px 0;"
|
||||||
|
:src="item"
|
||||||
|
:preview-src-list="addCertificateForm.img.split(',')"
|
||||||
|
>
|
||||||
|
</el-image>
|
||||||
|
</template>
|
||||||
|
|
||||||
<!-- <div class="flexBox" style="width:100%;justify-content: space-between;">
|
<!-- <div class="flexBox" style="width:100%;justify-content: space-between;">
|
||||||
<div class="" style="display:flex">
|
<div class="" style="display:flex">
|
||||||
|
|
||||||
<div
|
<div
|
||||||
@@ -500,11 +540,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div> -->
|
</div> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
</template>
|
||||||
|
<div v-else v-loading="loading" style="height: 95%;"></div>
|
||||||
</template>
|
</template>
|
||||||
<div v-else v-loading="loading" style="height: 95%;"></div>
|
</div>
|
||||||
</template>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
@@ -578,10 +619,13 @@
|
|||||||
|
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button @click="dialogMarkVisible = false" size="mini"
|
<el-button @click="dialogMarkVisible = false" size="mini"
|
||||||
>取消审核</el-button
|
>取消</el-button
|
||||||
>
|
>
|
||||||
<el-button type="primary" @click="handleReviewSave" size="mini"
|
<el-button
|
||||||
>保存</el-button
|
:type="`${reviewType == 'approved' ? 'primary' : 'danger'}`"
|
||||||
|
@click="handleReviewSave"
|
||||||
|
size="mini"
|
||||||
|
>{{ reviewType == "approved" ? "通过" : "拒绝" }}</el-button
|
||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@@ -712,7 +756,8 @@ export default {
|
|||||||
detailContent: "",
|
detailContent: "",
|
||||||
medicalId: "",
|
medicalId: "",
|
||||||
medicalRecords: {},
|
medicalRecords: {},
|
||||||
content: ""
|
content: "",
|
||||||
|
markList: []
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -804,7 +849,7 @@ export default {
|
|||||||
},
|
},
|
||||||
async analyzingMessage(data, images) {
|
async analyzingMessage(data, images) {
|
||||||
await this.insertMessage(data, images);
|
await this.insertMessage(data, images);
|
||||||
await this.submit()
|
await this.submit();
|
||||||
},
|
},
|
||||||
// 点击按钮触发上传
|
// 点击按钮触发上传
|
||||||
triggerUpload() {
|
triggerUpload() {
|
||||||
@@ -816,22 +861,23 @@ export default {
|
|||||||
// 处理上传文件
|
// 处理上传文件
|
||||||
handleUpload(event) {
|
handleUpload(event) {
|
||||||
const loading = this.$loading({
|
const loading = this.$loading({
|
||||||
lock: true,
|
lock: true,
|
||||||
text: 'word文件识别中',
|
text: "word文件识别中",
|
||||||
spinner: 'el-icon-loading',
|
spinner: "el-icon-loading",
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
background: "rgba(0, 0, 0, 0.7)"
|
||||||
});
|
|
||||||
|
|
||||||
this.$commonJS.handleUpload(event, arr => {
|
|
||||||
console.log("content at line 618:", arr);
|
|
||||||
|
|
||||||
|
|
||||||
this.messageList = arr;
|
|
||||||
|
|
||||||
loading.close();
|
|
||||||
}).catch(()=>{
|
|
||||||
loading.close();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.$commonJS
|
||||||
|
.handleUpload(event, arr => {
|
||||||
|
console.log("content at line 618:", arr);
|
||||||
|
|
||||||
|
this.messageList = arr;
|
||||||
|
|
||||||
|
loading.close();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
loading.close();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
beforeClose() {
|
beforeClose() {
|
||||||
this.dialogMarkVisible = false;
|
this.dialogMarkVisible = false;
|
||||||
@@ -948,6 +994,7 @@ export default {
|
|||||||
},
|
},
|
||||||
init(type, data) {
|
init(type, data) {
|
||||||
this.showMessages = false;
|
this.showMessages = false;
|
||||||
|
this.markList = [];
|
||||||
this.messageList = [];
|
this.messageList = [];
|
||||||
this.currentMedicalWordImageList = [];
|
this.currentMedicalWordImageList = [];
|
||||||
this.currentMedicalWordImageStr = "";
|
this.currentMedicalWordImageStr = "";
|
||||||
@@ -1027,6 +1074,9 @@ export default {
|
|||||||
","
|
","
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (this.addCertificateForm.mark) {
|
||||||
|
this.markList = JSON.parse(this.addCertificateForm.mark);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.addCertificateForm = {};
|
this.addCertificateForm = {};
|
||||||
}
|
}
|
||||||
@@ -1062,7 +1112,29 @@ export default {
|
|||||||
// }
|
// }
|
||||||
const label = this.addCertificateForm.labelId;
|
const label = this.addCertificateForm.labelId;
|
||||||
const value = Array.isArray(label) ? label[label.length - 1] : label;
|
const value = Array.isArray(label) ? label[label.length - 1] : label;
|
||||||
|
const formatFullTime = date => {
|
||||||
|
const pad = (n, len = 2) => n.toString().padStart(len, "0");
|
||||||
|
return (
|
||||||
|
`${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(
|
||||||
|
date.getDate()
|
||||||
|
)} ` +
|
||||||
|
`${pad(date.getHours())}:${pad(date.getMinutes())}:${pad(
|
||||||
|
date.getSeconds()
|
||||||
|
)}.${pad(date.getMilliseconds(), 3)}`
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
const now = new Date();
|
||||||
|
const timeStamp = now.getTime(); // 毫秒级时间戳
|
||||||
|
const timeStr = formatFullTime(now); // 格式化字符串
|
||||||
|
var markList = [
|
||||||
|
...this.markList,
|
||||||
|
{
|
||||||
|
mark: this.addCertificateForm.mark,
|
||||||
|
time: timeStr,
|
||||||
|
state: this.reviewType == "approved" ? 3 : 2
|
||||||
|
}
|
||||||
|
];
|
||||||
var data = {
|
var data = {
|
||||||
labelId: value,
|
labelId: value,
|
||||||
img:
|
img:
|
||||||
@@ -1072,7 +1144,7 @@ export default {
|
|||||||
title: this.addCertificateForm.title,
|
title: this.addCertificateForm.title,
|
||||||
userId: this.addCertificateForm.userId,
|
userId: this.addCertificateForm.userId,
|
||||||
train: this.addCertificateForm.train, //是否加入ai训练库0否1是
|
train: this.addCertificateForm.train, //是否加入ai训练库0否1是
|
||||||
mark: this.addCertificateForm.mark, //备注
|
mark: JSON.stringify(markList), //备注
|
||||||
state: this.reviewType == "approved" ? 3 : 2, //备注
|
state: this.reviewType == "approved" ? 3 : 2, //备注
|
||||||
...recordData
|
...recordData
|
||||||
};
|
};
|
||||||
@@ -1157,9 +1229,9 @@ export default {
|
|||||||
if (this.currentMedicalWordImageList.length > 0) {
|
if (this.currentMedicalWordImageList.length > 0) {
|
||||||
const loading = this.$loading({
|
const loading = this.$loading({
|
||||||
lock: true,
|
lock: true,
|
||||||
text: 'loading',
|
text: "loading",
|
||||||
spinner: 'el-icon-loading',
|
spinner: "el-icon-loading",
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
background: "rgba(0, 0, 0, 0.7)"
|
||||||
});
|
});
|
||||||
this.currentMedicalWordImageStr = await this.uploadImage(
|
this.currentMedicalWordImageStr = await this.uploadImage(
|
||||||
this.currentMedicalWordImageList
|
this.currentMedicalWordImageList
|
||||||
@@ -1304,19 +1376,19 @@ export default {
|
|||||||
this.addCertificateForm.id = data.id;
|
this.addCertificateForm.id = data.id;
|
||||||
this.addCertificateForm.img = data.img;
|
this.addCertificateForm.img = data.img;
|
||||||
if (this.addCertificateForm.img) {
|
if (this.addCertificateForm.img) {
|
||||||
this.fileList = this.addCertificateForm.img
|
this.fileList = this.addCertificateForm.img
|
||||||
.split(",")
|
.split(",")
|
||||||
.map((image, i) => ({
|
.map((image, i) => ({
|
||||||
uid: i, // 假设 id 是唯一标识符
|
uid: i, // 假设 id 是唯一标识符
|
||||||
name: i, // 文件名
|
name: i, // 文件名
|
||||||
status: "done", // 状态
|
status: "done", // 状态
|
||||||
url: image // 文件 URL
|
url: image // 文件 URL
|
||||||
}));
|
}));
|
||||||
console.log("this.fileList at line 308:", this.fileList);
|
console.log("this.fileList at line 308:", this.fileList);
|
||||||
this.addCertificateForm.imageList = this.addCertificateForm.img.split(
|
this.addCertificateForm.imageList = this.addCertificateForm.img.split(
|
||||||
","
|
","
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
|
|
||||||
// 滚动到最底部锚点
|
// 滚动到最底部锚点
|
||||||
|
|||||||
@@ -264,7 +264,7 @@
|
|||||||
<div
|
<div
|
||||||
style="overflow: hidden;
|
style="overflow: hidden;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
padding: 10px 10px 0px;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
|
|||||||
Reference in New Issue
Block a user