This commit is contained in:
liuyuan
2025-07-30 09:06:50 +08:00
parent 2db6d0f98b
commit 456b296477
3 changed files with 31 additions and 12 deletions

View File

@@ -20,7 +20,10 @@
}"
>
<view class="loading-spinner" v-if="loading"></view>
<uni-notice-bar :color="medicalRecords.state==0?'#eb3c41':medicalRecords.state==2?'#e78083':''" :background-color="medicalRecords.state==3?'#e7808330':medicalRecords.state==2?'#e7808330':''" :text="`审核备注:${medicalRecords.mark}`" v-if="medicalRecords.mark&&medicalRecords.state!=1&&medicalRecords.state!=3" style="margin-bottom: 0;"/>
<uni-notice-bar :color="medicalRecords.state==0?'#eb3c41':medicalRecords.state==2?'#e78083':''"
:background-color="medicalRecords.state==3?'#e7808330':medicalRecords.state==2?'#e7808330':''"
:text="`审核备注:${markInfo}`"
v-if="markInfo" style="margin-bottom: 0;"/>
<view style="" class="detail_top" :class="{
@@ -284,6 +287,7 @@ export default {
props: ["loading", "form", "medicalRecords", "type", "statusId",'page'],
data() {
return {
markInfo:'',
editorOptions: {
theme: "snow", // Quill 编辑器的主题
modules: {
@@ -738,12 +742,27 @@ export default {
this.chatId = item.id;
this.chatName = item.name;
},
//提交
initRecordData(data) {
this.markInfo=''
this.formData.title = data.title ? data.title : "";
this.formData.labelId = data.labelId ? data.labelId : "";
this.formData.labelTitle = data.labelTitle ? data.labelTitle : "";
if(data.mark){
this.markList = JSON.parse(data.mark);
const latest = this.markList.reduce((latest, current) => {
return new Date(current.time) > new Date(latest.time) ? current : latest;
});
if(data.state!=1&&data.state!=3&&latest){
this.markInfo=latest.mark?latest.mark:''
}
// medicalRecords.mark&&medicalRecords.state!=1&&medicalRecords.state!=3
}
this.record = {
information: data.information
? data.information