"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const api_api = require("../../api/api.js");
const utils_throttle = require("../../utils/throttle.js");
const uni_modules_svEditor_components_common_utils = require("../../uni_modules/sv-editor/components/common/utils.js");
if (!Array) {
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
const _easycom_up__textarea2 = common_vendor.resolveComponent("up--textarea");
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
const _easycom_up_empty2 = common_vendor.resolveComponent("up-empty");
const _easycom_up_overlay2 = common_vendor.resolveComponent("up-overlay");
const _easycom_up_steps_item2 = common_vendor.resolveComponent("up-steps-item");
const _easycom_up_steps2 = common_vendor.resolveComponent("up-steps");
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
(_easycom_u_icon2 + _easycom_up__textarea2 + _easycom_up_icon2 + _easycom_up__image2 + _easycom_up_input2 + _easycom_up_popup2 + _easycom_up_empty2 + _easycom_up_overlay2 + _easycom_up_steps_item2 + _easycom_up_steps2 + _easycom_up_radio2 + _easycom_up_radio_group2)();
}
const _easycom_u_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up__textarea = () => "../../node-modules/uview-plus/components/u--textarea/u--textarea.js";
const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.js";
const _easycom_up_input = () => "../../node-modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_popup = () => "../../node-modules/uview-plus/components/u-popup/u-popup.js";
const _easycom_up_empty = () => "../../node-modules/uview-plus/components/u-empty/u-empty.js";
const _easycom_up_overlay = () => "../../node-modules/uview-plus/components/u-overlay/u-overlay.js";
const _easycom_up_steps_item = () => "../../node-modules/uview-plus/components/u-steps-item/u-steps-item.js";
const _easycom_up_steps = () => "../../node-modules/uview-plus/components/u-steps/u-steps.js";
const _easycom_up_radio = () => "../../node-modules/uview-plus/components/u-radio/u-radio.js";
const _easycom_up_radio_group = () => "../../node-modules/uview-plus/components/u-radio-group/u-radio-group.js";
if (!Math) {
(common_vendor.unref(pEditor) + _easycom_u_icon + _easycom_up__textarea + svEditor + _easycom_up_icon + _easycom_up__image + _easycom_up_input + _easycom_up_popup + _easycom_up_empty + _easycom_up_overlay + _easycom_up_steps_item + _easycom_up_steps + _easycom_up_radio + _easycom_up_radio_group)();
}
const svEditor = () => "../../uni_modules/sv-editor/components/sv-editor/sv-editor.js";
const pEditor = () => "../../components/pEditor/pEditor.js";
const _sfc_main = {
__name: "publish",
setup(__props) {
const isLock = common_vendor.ref(false);
const isFlag = common_vendor.ref(false);
const delId = common_vendor.ref("");
const showModal = common_vendor.ref(false);
const delType = common_vendor.ref("delDraft");
const isPublish = common_vendor.ref(false);
const exchange_id = common_vendor.ref("");
const showEditor = common_vendor.ref(false);
const editorType = common_vendor.ref("info");
common_vendor.ref(200);
const form = common_vendor.reactive({
exchange_title: "",
exchange_content: "",
exchange_summary: "",
case_exchange_vote: {},
case_exchange_label: []
});
const voteData = common_vendor.reactive({
vote_title: "",
valid_day: 7,
case_exchange_vote_option: [
{
option_value: ""
}
]
});
common_vendor.ref("");
const showVote = common_vendor.ref(false);
const showDraft = common_vendor.ref(false);
const showTitle = common_vendor.ref(false);
const draftList = common_vendor.ref([]);
common_vendor.ref([]);
common_vendor.ref([]);
const editorCtx = common_vendor.ref(null);
const editorCtxResult = common_vendor.ref(null);
const isFocusInfo = common_vendor.ref(false);
const isFocusResult = common_vendor.ref(false);
const labelList = common_vendor.ref([]);
const level = common_vendor.ref(1);
const freshKey = common_vendor.ref(0);
const showCase = common_vendor.ref(false);
common_vendor.ref(false);
const caseValue1 = common_vendor.reactive({
app_iden: "",
label_name: ""
});
const caseValue2 = common_vendor.reactive({
app_iden: "",
label_name: ""
});
const caseValue3 = common_vendor.reactive({
app_iden: "",
label_name: ""
});
const labelObj = common_vendor.reactive({
list1: [],
list2: [],
list3: []
});
const goBack = () => {
common_vendor.index.navigateBack({
delta: 1
});
};
const editorCotent = common_vendor.ref("");
const closeEditor = () => {
showEditor.value = false;
};
const changeEditor = (data) => {
showEditor.value = false;
common_vendor.index.__f__("log", "at pages/publish/publish.vue:592", data);
if (data.type == "info") {
editorCtx.value.initHtml(data.content, async (videoUrl) => {
let res = "";
const fox = "https://cn.bing.com//th?id=OHR.FlamingosNamibia_ZH-CN3639748956_1920x1080.jpg";
res = await editorCtx.value.createCoverThumbnail(fox);
showEditor.value = false;
return res;
});
} else {
editorCtxResult.value.initHtml(data.content, async (videoUrl) => {
let res = "";
const fox = "https://cn.bing.com//th?id=OHR.FlamingosNamibia_ZH-CN3639748956_1920x1080.jpg";
res = await editorCtx.value.createCoverThumbnail(fox);
showEditor.value = false;
return res;
});
}
};
const openDraftList = () => {
getDraftList();
showDraft.value = true;
};
const epaste = (e) => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:633", e);
};
const alertVote = () => {
if (exchange_id.value) {
common_vendor.index.showToast({
title: "投票发布后不能编辑",
icon: "none"
});
return false;
} else {
showVote.value = true;
}
};
const addOption = () => {
voteData.case_exchange_vote_option.push({
option_value: ""
});
};
const delOption = (index) => {
voteData.case_exchange_vote_option.splice(index, 1);
};
const changeDay = (type) => {
if (type === "minus") {
if (voteData.valid_day <= 1)
return;
voteData.valid_day--;
} else if (type === "plus") {
voteData.valid_day++;
}
};
const clearVote = () => {
voteData.vote_title = "";
voteData.case_exchange_vote_option = [
{
option_value: ""
}
];
voteData.valid_day = 7;
form.case_exchange_vote.vote_title = "";
form.case_exchange_vote.case_exchange_vote_option = [
{
option_value: ""
}
];
form.case_exchange_vote.valid_day = 7;
};
const saveVote = () => {
if (voteData.vote_title == "") {
common_vendor.index.showToast({
title: "请输入投票标题",
icon: "none"
});
return false;
}
if (voteData.vote_title.length > 20) {
common_vendor.index.showToast({
title: "投票标题不能超过20个字符",
icon: "none"
});
return false;
}
if (voteData.case_exchange_vote_option.length == 0) {
common_vendor.index.showToast({
title: "请添加投票选项",
icon: "none"
});
return false;
}
form.case_exchange_vote = voteData;
showVote.value = false;
};
const fromatDay = (value) => {
var date = /* @__PURE__ */ new Date();
var year = date.getFullYear();
let Y = common_vendor.dayjs().format("YYYY");
if (year == Y) {
return common_vendor.dayjs(value).format("MM-DD");
} else {
return common_vendor.dayjs(value).format("YYYY-MM-DD");
}
};
const fromatImg = (val) => {
if (val) {
return val.replace(/\
{
common_vendor.index.__f__("log", "at pages/publish/publish.vue:749", e);
editorCtx.value = e;
let html = "
【患者信息】:
【主诉】:
【现病史及既往史】:
【检查】:
【临床诊断】:
【治疗经过及结果】:
";
editorCtx.value.initHtml(html);
common_vendor.index.hideKeyboard();
common_vendor.index.pageScrollTo({
scrollTop: 0,
selector: "#form"
// })
});
common_vendor.index.hideLoading();
};
const readyResult = (e) => {
editorCtxResult.value = e;
setTimeout(() => {
if (exchange_id.value) {
getExchangeDetail(exchange_id.value);
}
});
};
const changeSv = () => {
showEditor.value = false;
};
const focusInfo = async () => {
isFocusInfo.value = true;
const res = await editorCtx.value.getLastContent();
editorCotent.value = res.html;
showEditor.value = true;
editorType.value = "info";
};
const focusResult = async () => {
isFocusResult.value = true;
const res = await editorCtxResult.value.getLastContent();
editorCotent.value = res.html;
editorType.value = "result";
showEditor.value = true;
};
const closeVote = () => {
showVote.value = false;
};
const openVote = () => {
showVote.value = true;
};
const closeDraft = () => {
showDraft.value = false;
};
const openDraft = () => {
showDraft.value = true;
};
const closeTitle = () => {
showTitle.value = false;
};
const openTitle = () => {
showTitle.value = true;
};
const saveDraft = async () => {
if (isLock.value)
return false;
isLock.value = true;
const res = await editorCtx.value.getLastContent();
form.exchange_content = res.html;
const resResult = await editorCtxResult.value.getLastContent();
form.exchange_summary = resResult.html;
if (labelList.value.length > 0) {
form.case_exchange_label = labelList.value;
}
api_api.api.saveDraft(form).then((res2) => {
isLock.value = false;
common_vendor.index.showToast({
title: "保存成功",
icon: "none"
});
getDraftList();
});
};
const getExchangeDetail = (id) => {
api_api.api.getExchangeDetail(id).then((res) => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:890", res.data.data);
let {
exchange_content,
exchange_title,
exchange_label,
exchange_summary,
exchange_vote
} = res.data.data;
editorCtx.value.initHtml(exchange_content, async (videoUrl) => {
let res2;
const fox = "https://cn.bing.com//th?id=OHR.FlamingosNamibia_ZH-CN3639748956_1920x1080.jpg";
res2 = await editorCtx.value.createCoverThumbnail(fox);
return res2;
});
form.exchange_content = exchange_content;
form.exchange_title = exchange_title;
form.case_exchange_label = exchange_label ? exchange_label : [];
labelList.value = exchange_label ? exchange_label : [];
form.exchange_summary = exchange_summary;
form.case_exchange_vote = exchange_vote;
editorCtxResult.value.initHtml(exchange_summary, async (videoUrl) => {
let res2;
const fox = "https://cn.bing.com//th?id=OHR.FlamingosNamibia_ZH-CN3639748956_1920x1080.jpg";
res2 = await editorCtxResult.value.createCoverThumbnail(fox);
return res2;
});
Object.assign(voteData, exchange_vote);
});
};
const editDraft = (index) => {
let draft = draftList.value[index];
let {
exchange_content,
exchange_title,
exchange_label,
exchange_summary,
exchange_vote
} = draft;
editorCtx.value.initHtml(exchange_content);
form.exchange_content = exchange_content;
form.exchange_title = exchange_title;
form.case_exchange_label = exchange_label;
labelList.value = exchange_label;
form.exchange_summary = exchange_summary;
form.case_exchange_vote = exchange_vote;
editorCtxResult.value.initHtml(exchange_summary);
Object.assign(voteData, exchange_vote);
showDraft.value = false;
};
const willDelDraft = (id) => {
delId.value = id;
delType.value = "delDraft";
showModal.value = true;
};
const confirmDel = () => {
showModal.value = false;
common_vendor.index.__f__("log", "at pages/publish/publish.vue:958", delType.value);
if (delType.value == "delDraft") {
delDraft(delId.value);
} else if (delType.value == "saveDraft") {
saveDraft();
}
};
const cancelDel = () => {
showModal.value = false;
if (delType.value == "saveDraft") {
goBack();
common_vendor.index.__f__("log", "at pages/publish/publish.vue:970", "wee");
}
};
const delDraft = (id) => {
api_api.api.delDraft(id).then((res) => {
common_vendor.index.showToast({
title: "删除成功",
icon: "none"
});
});
getDraftList();
};
const alertSave = async () => {
if (isPublish.value || exchange_id.value) {
goBack();
} else {
const res = await editorCtx.value.getLastContent();
const initInfo = "【患者信息】:
【主诉】:
【现病史及既往史】:
【检查】:
【临床诊断】:
【治疗经过及结果】:
";
const resContent = await editorCtxResult.value.getLastContent();
if (form.exchange_title || res.html != initInfo || resContent.text || form.case_exchange_vote && form.case_exchange_vote.vote_title && form.case_exchange_label && form.case_exchange_label.length > 0) {
delType.value = "saveDraft";
showModal.value = true;
} else {
goBack();
}
}
};
const publish = utils_throttle.throttle(async () => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1012", 3333);
const initInfo = "【患者信息】:
【主诉】:
【现病史及既往史】:
【检查】:
【临床诊断】:
【治疗经过及结果】:
";
if (form.exchange_title == "") {
common_vendor.index.showToast({
title: "请输入标题",
icon: "none"
});
return false;
}
if (form.exchange_title.length > 40) {
common_vendor.index.showToast({
title: "标题不超过40个字",
icon: "none"
});
return false;
}
const res = await editorCtx.value.getLastContent();
let html = editorCtx.value.exportHtml(res.html);
if (html == initInfo) {
common_vendor.index.showToast({
title: "请编辑病例信息",
icon: "none"
});
return false;
}
if (!(form.case_exchange_vote && form.case_exchange_vote.vote_title)) {
delete form.case_exchange_vote;
}
if (!form.case_exchange_label || form.case_exchange_label && form.case_exchange_label.length == 0) {
delete form.case_exchange_label;
}
form.case_exchange_label = labelList.value;
if (isLock.value)
return false;
isFlag.value = true;
form.exchange_content = html;
const resContent = await editorCtxResult.value.getLastContent();
let reshtml = editorCtxResult.value.exportHtml(resContent.html);
form.exchange_summary = reshtml == "
" ? "" : reshtml;
if (exchange_id.value) {
api_api.api.updateExchange(exchange_id.value, form).then((res2) => {
common_vendor.index.showToast({
title: "修改成功",
icon: "none",
duration: 2e3
});
isFlag.value = false;
isPublish.value = true;
common_vendor.index.navigateBack();
});
} else {
api_api.api.addExchange(form).then((res2) => {
common_vendor.index.showToast({
title: "发布成功",
icon: "none",
duration: 2e3
});
isFlag.value = false;
isPublish.value = true;
common_vendor.index.navigateBack();
});
}
});
const insertWord = (word) => {
uni_modules_svEditor_components_common_utils.addText(word);
showTitle.value = false;
};
const insertAllWord = () => {
let word = [
"患者信息",
"主诉",
"现病史及既往史:",
"检查",
"临床诊断",
"治疗经过及结果"
];
word.forEach((item) => {
uni_modules_svEditor_components_common_utils.addText(item);
});
showTitle.value = false;
};
const getDraftList = () => {
api_api.api.getDraftList().then((res) => {
draftList.value = res.data.data.data;
});
};
const openCaseLevel = (lev) => {
freshKey.value++;
level.value = lev;
if (lev == 1) {
caseValue2.label_name = "";
caseValue2.app_iden = "";
labelObj.list2 = [];
} else if (lev == 2) {
labelObj.list3 = [];
caseValue3.label_name = "";
caseValue3.app_iden = "";
}
};
const groupChange1 = (e) => {
caseValue1.app_iden = e;
for (var i = 0; i < labelObj.list1.length; i++) {
if (labelObj.list1[i].app_iden == caseValue1.app_iden) {
caseValue1.label_name = labelObj.list1[i].label_name;
break;
}
}
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1271", caseValue1);
getCaseLabel(2, e);
};
const groupChange2 = (e) => {
caseValue2.app_iden = e;
for (var i = 0; i < labelObj.list2.length; i++) {
if (labelObj.list2[i].app_iden == caseValue2.app_iden) {
caseValue2.label_name = labelObj.list2[i].label_name;
break;
}
}
getCaseLabel(3, e);
};
const groupChange3 = (e) => {
caseValue3.app_iden = e;
level.value = 3;
for (var i = 0; i < labelObj.list3.length; i++) {
if (labelObj.list3[i].app_iden == caseValue3.app_iden) {
caseValue3.label_name = labelObj.list3[i].label_name;
break;
}
}
};
const getCaseLabel = (lev, pid = 0) => {
api_api.api.getCaseLabel({
pId: pid
}).then((res) => {
level.value = lev;
if (lev == 1) {
labelObj.list1 = res.data.data;
} else if (lev == 2) {
labelObj.list2 = res.data.data;
if (res.data.data.length == 0) {
level.value = 1;
}
} else if (lev == 3) {
labelObj.list3 = res.data.data;
if (res.data.data.length == 0) {
level.value = 2;
}
}
});
};
const cancelCase = () => {
showCase.value = false;
};
const clearCase = () => {
level.value = 1;
caseValue1.app_iden = "";
caseValue1.label_name = "";
caseValue2.app_iden = "";
caseValue2.label_name = "";
caseValue3.app_iden = "";
caseValue3.label_name = "";
labelObj.list2 = [];
labelObj.list3 = [];
freshKey.value++;
};
const confirmCase = () => {
if (level.value == 1 && caseValue1.app_iden == "") {
common_vendor.index.showToast({ title: "请选择疾病选项", icon: "none" });
return false;
}
if (level.value == 1) {
let { app_iden, label_name } = caseValue1;
labelList.value.push({
app_iden,
label_name
});
} else if (level.value == 2) {
if (!caseValue2.app_iden) {
let { app_iden, label_name } = caseValue1;
labelList.value.push({
app_iden,
label_name
});
} else {
let { app_iden, label_name } = caseValue2;
labelList.value.push({
app_iden,
label_name
});
}
} else if (level.value == 3) {
if (!caseValue3.app_iden) {
let { app_iden, label_name } = caseValue2;
labelList.value.push({
app_iden,
label_name
});
} else {
let { app_iden, label_name } = caseValue3;
labelList.value.push({
app_iden,
label_name
});
}
}
labelList.value = labelList.value.filter((item, index) => labelList.value.findIndex((i) => i.app_iden === item.app_iden) === index);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1389", labelList.value);
showCase.value = false;
};
const closeCase = () => {
showCase.value = false;
};
const delLabel = (index) => {
labelList.value.splice(index, 1);
};
const openLabelPop = () => {
if (labelList.value.length >= 5) {
common_vendor.index.showToast({ title: "最多添加5个标签", icon: "none" });
return false;
}
clearCase();
showCase.value = true;
getCaseLabel(1, 0);
};
common_vendor.onLoad((optoions) => {
common_vendor.index.showLoading({
title: "正在加载中...",
mask: true
});
if (optoions.exchange_id) {
exchange_id.value = optoions.exchange_id;
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1416", 1111);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1417", exchange_id.value);
}
});
return (_ctx, _cache) => {
return common_vendor.e({
a: showEditor.value
}, showEditor.value ? {
b: common_vendor.o(closeEditor),
c: common_vendor.o(changeEditor),
d: common_vendor.p({
editorCotent: editorCotent.value,
editorType: editorType.value
})
} : {}, {
e: common_vendor.p({
name: "arrow-left",
color: "#000",
size: "24"
}),
f: common_vendor.o(alertSave),
g: common_vendor.o(($event) => form.exchange_title = $event),
h: common_vendor.p({
autoHeight: true,
placeholder: "输入标题,可包含患者信息、主诉",
modelValue: form.exchange_title
}),
i: common_vendor.o(focusInfo),
j: common_vendor.o(ready),
k: common_vendor.o(changeSv),
l: common_vendor.o(epaste),
m: common_vendor.p({
placeholder: "患者基本情况,检查结果,诊疗图片或视频",
eid: "editor-id",
pasteMode: "origin",
readOnly: "true"
}),
n: common_vendor.o(focusResult),
o: common_vendor.o(readyResult),
p: common_vendor.p({
placeholder: "分享经验和心得,如:诊断与鉴别诊断易错点,治疗过程难点,病例的相关知识总结及讨论等",
eid: "editorResult",
readOnly: true
}),
q: common_vendor.f(labelList.value, (item, index, i0) => {
return {
a: common_vendor.t(item.label_name),
b: "bfce3555-5-" + i0,
c: common_vendor.o(($event) => delLabel(index), item.app_iden),
d: item.app_iden
};
}),
r: common_vendor.p({
name: "close-circle",
color: "#3CC7C0",
size: "20"
}),
s: common_vendor.p({
name: "plus",
color: "#3CC7C0",
size: "16"
}),
t: common_vendor.o(openLabelPop),
v: common_vendor.o(openDraftList),
w: common_vendor.p({
src: common_vendor.unref(common_assets.voteImg),
width: "47rpx",
height: "47rpx"
}),
x: common_vendor.o(alertVote),
y: common_vendor.o((...args) => common_vendor.unref(publish) && common_vendor.unref(publish)(...args)),
z: common_vendor.o(closeVote),
A: common_vendor.o(saveVote),
B: common_vendor.o(($event) => voteData.vote_title = $event),
C: common_vendor.p({
placeholder: "请输入投票标题",
border: "surround",
clearable: true,
modelValue: voteData.vote_title
}),
D: common_vendor.f(voteData.case_exchange_vote_option, (item, index, i0) => {
return {
a: "bfce3555-10-" + i0 + ",bfce3555-8",
b: common_vendor.o(($event) => item.option_value = $event, index),
c: common_vendor.p({
placeholder: "输入选项,建议少于16个字",
border: "surround",
clearable: true,
modelValue: item.option_value
}),
d: "bfce3555-11-" + i0 + ",bfce3555-8",
e: common_vendor.o(($event) => delOption(index), index),
f: index
};
}),
E: common_vendor.p({
name: "minus-circle",
color: "red",
size: "28"
}),
F: common_vendor.p({
name: "plus",
color: "#4B5563",
size: "18"
}),
G: common_vendor.o(addOption),
H: common_vendor.p({
name: "minus",
color: "#4B5563",
size: "30rpx",
bold: true
}),
I: common_vendor.o(($event) => changeDay("minus")),
J: common_vendor.t(voteData.valid_day),
K: common_vendor.p({
name: "plus",
color: "#4B5563",
size: "30rpx",
bold: true
}),
L: common_vendor.o(($event) => changeDay("plus")),
M: common_vendor.o(saveVote),
N: common_vendor.o(clearVote),
O: common_vendor.o(closeVote),
P: common_vendor.o(openVote),
Q: common_vendor.p({
round: 10,
show: showVote.value,
mode: "bottom"
}),
R: common_vendor.p({
name: "close",
color: "#4B5563",
size: "20"
}),
S: common_vendor.o(closeDraft),
T: draftList.value.length == 0
}, draftList.value.length == 0 ? {
U: common_vendor.p({
marginTop: "120rpx",
text: "草稿箱为空",
mode: "list",
icon: common_vendor.unref(common_assets.draftImg)
})
} : {}, {
V: draftList.value.length > 0
}, draftList.value.length > 0 ? {
W: common_vendor.f(draftList.value, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.exchange_title ? item.exchange_title : "无标题"),
b: item.exchange_content
}, item.exchange_content ? {
c: fromatImg(item.exchange_content)
} : item.exchange_summary ? common_vendor.e({
e: item.exchange_summary
}, item.exchange_summary ? {
f: fromatImg(item.exchange_summary)
} : {}) : item.exchange_label && item.exchange_label.length > 0 ? common_vendor.e({
h: item.exchange_summary
}, item.exchange_summary ? {} : {}, {
i: common_vendor.f(item.exchange_label, (cell, k1, i1) => {
return {
a: common_vendor.t(cell.label_name),
b: cell.label_name
};
})
}) : item.exchange_vote ? {
k: common_vendor.t(item.exchange_vote.vote_title)
} : {}, {
d: item.exchange_summary,
g: item.exchange_label && item.exchange_label.length > 0,
j: item.exchange_vote,
l: common_vendor.t(fromatDay(item.updated_at)),
m: "bfce3555-18-" + i0 + ",bfce3555-15",
n: common_vendor.o(($event) => willDelDraft(item.draft_id), item.draft_id),
o: "bfce3555-19-" + i0 + ",bfce3555-15",
p: common_vendor.o(($event) => editDraft(index), item.draft_id),
q: item.draft_id
});
}),
X: common_vendor.p({
name: "trash",
color: "#4B5563",
size: "16"
}),
Y: common_vendor.p({
name: "edit-pen",
color: "#fff",
size: "17"
})
} : {}, {
Z: common_vendor.o(closeDraft),
aa: common_vendor.o(openDraft),
ab: common_vendor.p({
round: 10,
zIndex: "9",
show: showDraft.value,
mode: "bottom"
}),
ac: common_vendor.p({
name: "close",
color: "#4B5563",
size: "20"
}),
ad: common_vendor.o(closeTitle),
ae: common_vendor.o(insertAllWord),
af: common_vendor.p({
name: "plus-circle",
color: "#3CC7C0",
size: "20"
}),
ag: common_vendor.o(insertAllWord),
ah: common_vendor.o(($event) => insertWord("患者信息")),
ai: common_vendor.o(($event) => insertWord("主诉")),
aj: common_vendor.o(($event) => insertWord("现病史及既往史")),
ak: common_vendor.o(($event) => insertWord("检查")),
al: common_vendor.o(($event) => insertWord("临床诊断")),
am: common_vendor.o(($event) => insertWord("治疗经过及结果")),
an: common_vendor.o(closeTitle),
ao: common_vendor.o(openTitle),
ap: common_vendor.p({
round: 10,
zIndex: "9",
show: showTitle.value,
mode: "bottom"
}),
aq: delType.value == "delDraft"
}, delType.value == "delDraft" ? {} : delType.value == "saveDraft" ? {} : {}, {
ar: delType.value == "saveDraft",
as: common_vendor.o(cancelDel),
at: common_vendor.o(confirmDel),
av: common_vendor.p({
show: showModal.value,
["mask-click-able"]: true,
zIndex: "99"
}),
aw: common_vendor.o(cancelCase),
ax: common_vendor.o(confirmCase),
ay: common_vendor.t(!caseValue1.label_name ? "请选择选项" : caseValue1.label_name),
az: common_vendor.p({
name: "arrow-right"
}),
aA: common_vendor.o(($event) => openCaseLevel("1")),
aB: caseValue1.label_name && labelObj.list2.length > 0
}, caseValue1.label_name && labelObj.list2.length > 0 ? {
aC: common_vendor.t(!caseValue2.label_name ? "请选择选项" : caseValue2.label_name),
aD: common_vendor.p({
name: "arrow-right"
}),
aE: common_vendor.o(($event) => openCaseLevel("2"))
} : {}, {
aF: caseValue2.label_name && labelObj.list3.length > 0
}, caseValue2.label_name && labelObj.list3.length > 0 ? {
aG: common_vendor.t(!caseValue3.label_name ? "请选择选项" : caseValue3.label_name),
aH: common_vendor.p({
name: "arrow-right"
}),
aI: common_vendor.o(($event) => openCaseLevel("3"))
} : {}, {
aJ: freshKey.value,
aK: common_vendor.p({
current: level.value - 1,
direction: "column"
}),
aL: common_vendor.f(labelObj.list1, (item, k0, i0) => {
return {
a: "bfce3555-33-" + i0 + ",bfce3555-32",
b: common_vendor.p({
activeColor: "#3CC7C0 ",
label: item.label_name,
name: item.app_iden
}),
c: item.app_iden
};
}),
aM: common_vendor.o(groupChange1),
aN: common_vendor.o(($event) => caseValue1.app_iden = $event),
aO: common_vendor.p({
name: "group1",
iconPlacement: "right",
placement: "column",
modelValue: caseValue1.app_iden
}),
aP: level.value == 1,
aQ: common_vendor.f(labelObj.list2, (item, k0, i0) => {
return {
a: "bfce3555-35-" + i0 + ",bfce3555-34",
b: common_vendor.p({
activeColor: "#3CC7C0 ",
label: item.label_name,
name: item.app_iden
}),
c: item.app_iden
};
}),
aR: common_vendor.o(groupChange2),
aS: common_vendor.o(($event) => caseValue2.app_iden = $event),
aT: common_vendor.p({
name: "group2",
iconPlacement: "right",
placement: "column",
modelValue: caseValue2.app_iden
}),
aU: level.value == 2,
aV: common_vendor.f(labelObj.list3, (item, k0, i0) => {
return {
a: "bfce3555-37-" + i0 + ",bfce3555-36",
b: common_vendor.p({
activeColor: "#3CC7C0 ",
label: item.label_name,
name: item.app_iden
}),
c: item.app_iden
};
}),
aW: common_vendor.o(groupChange3),
aX: common_vendor.o(($event) => caseValue3.app_iden = $event),
aY: common_vendor.p({
name: "group3",
iconPlacement: "right",
placement: "column",
modelValue: caseValue3.app_iden
}),
aZ: level.value == 3,
ba: common_vendor.o(closeCase),
bb: common_vendor.p({
round: 10,
zIndex: "9",
closeOnClickOverlay: false,
show: showCase.value,
mode: "bottom"
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bfce3555"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/publish/publish.js.map