提交
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user