From 9fd8b6d713fd000c8912c7a105724d1e6315ac94 Mon Sep 17 00:00:00 2001 From: WXL (wul) <wl_5969728@163.com> Date: 星期三, 17 九月 2025 10:38:50 +0800 Subject: [PATCH] 缩放 --- src/views/followvisit/record/detailpage/index.vue | 271 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 269 insertions(+), 2 deletions(-) diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue index 7c2baac..0f11d3e 100644 --- a/src/views/followvisit/record/detailpage/index.vue +++ b/src/views/followvisit/record/detailpage/index.vue @@ -254,6 +254,7 @@ /> </el-dialog> <div class="action-container"> + <!-- 闅忚鍐呭 --> <div class="call-action"> <div class="call-container"> <!-- <div class="call-header"> @@ -549,6 +550,7 @@ </div> </div> </div> + <!-- 浜哄伐澶勭悊 --> <div class="manual-action"> <div class="Followuserinfos"> <div> @@ -712,6 +714,9 @@ <el-button plain type="info" @click="Editsingletaskson('5')" >涓績闅忚</el-button > + <el-button type="primary" round @click="sendAgainmsg" + >鐭俊鍙戦��</el-button + > </div> </el-form-item> </el-form> @@ -773,7 +778,53 @@ </div> </div> </div> - + <!-- 鐭俊鍙戦�佸璇濇 --> + <el-dialog title="鐭俊鍙戦��" :visible.sync="smsDialogVisible"> + <!-- 娉ㄦ剰杩欓噷浣跨敤浜� smsDialogVisible 浠ュ尯鍒嗗凡鏈夌殑 dialogFormVisible --> + <el-form ref="smsForm" :model="form" label-width="80px"> + <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="userform.telcode" + ></el-input> + <!-- 娉ㄦ剰杩欓噷鍙兘浣跨敤 userform.telcode --> + </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 type="textarea" v-model="smsContent"></el-input> + <!-- 寤鸿浣跨敤鐙珛鐨� smsContent 鍙橀噺 --> + </el-form-item> + </el-form> + <div slot="footer" class="dialog-footer"> + <el-button @click="smsDialogVisible = false">鍙� 娑�</el-button> + <el-button type="primary" @click="sendSms">纭鍙戦��</el-button> + <!-- 娉ㄦ剰鏂规硶鍚嶆敼涓� sendSms --> + </div> + </el-dialog> <el-dialog title="鎮h�呭啀娆¢殢璁�" v-dialogDrags @@ -797,7 +848,7 @@ <el-form-item label="骞撮緞"> <el-input style="width: 400px" disabled v-model="form.age"></el-input> </el-form-item> - <el-form-item label="璇鹃缁�"> + <el-form-item label="绉戝"> <el-input style="width: 400px" disabled @@ -935,6 +986,7 @@ updatePersonVoices, addPersonVoices, query360PatInfo, + sendMsg, } from "@/api/AiCentre/index"; import { messagelistpatient, @@ -1197,6 +1249,8 @@ }, ], userform: {}, + smsDialogVisible: false, // 鎺у埗鐭俊瀵硅瘽妗嗘樉绀� + smsContent: "", // 瀛樺偍鐭俊鍐呭 Whetherall: true, //鏄惁鍏ㄩ儴璁板綍灞曠ず dialogFormVisible: false, Voicetype: 0, //鏄惁涓鸿闊虫湇鍔� @@ -1713,6 +1767,34 @@ this.getsearchrResults(); } }); + }, + // 璋冭捣鐭俊鍙戦�佸璇濇 + sendAgainmsg() { + this.smsDialogVisible = true; + // 鍙互鍦ㄨ繖閲屽垵濮嬪寲 smsContent锛屼緥濡� this.smsContent = ''; + }, + + // 鍙戦�佺煭淇$殑鏂规硶 + sendSms() { + // 杩欓噷璋冪敤浣犵殑鐭俊鍙戦�� API + // 鍋囪 API 涓� sendMsg锛屽弬鏁板彲鑳介渶瑕佹牴鎹疄闄呮儏鍐佃皟鏁� + sendMsg({ + phone: this.userform.telcode, // 纭繚鐢佃瘽鍙风爜瀛楁姝g‘ + content: this.smsContent, + }) + .then((res) => { + if (res.code == 200) { + this.$modal.msgSuccess("鍙戦�佹垚鍔�"); + this.smsDialogVisible = false; // 鍏抽棴瀵硅瘽妗� + this.smsContent = ""; // 娓呯┖鍐呭 + } else { + this.$modal.msgError("鍙戦�佸け璐�"); + } + }) + .catch((error) => { + console.error("鍙戦�佺煭淇″け璐�:", error); + this.$modal.msgError("鍙戦�佸け璐�"); + }); }, Editsingletaskson(son) { let objson = {}; @@ -2453,4 +2535,189 @@ color: #080808 !important; cursor: not-allowed; } +/* 鍘熸湁鐨勬牱寮忎繚鎸佷笉鍙橈紝娣诲姞浠ヤ笅鍝嶅簲寮忎唬鐮� */ + +.Followupdetailspage { + margin: 10px; + display: flex; + flex-direction: column; + gap: 20px; +} + +.action-container { + display: flex; + flex-direction: row; /* 榛樿妯悜鎺掑垪 */ + gap: 20px; + margin: 0 10px 20px 10px; + + /* 褰撶缉鏀炬瘮渚嬪ぇ浜�100%鎴栧睆骞曞搴﹁緝灏忔椂鏀逛负涓婁笅鎺掑垪 */ + @media screen and (max-width: 1200px), (min-resolution: 1.1dppx) { + flex-direction: column; + + .call-action, .manual-action { + width: 100% !important; + } + } +} + +.call-action { + width: 65%; + min-width: 0; +} + +.manual-action { + flex: 1; + min-width: 0; +} + +/* 璋冩暣鍐呴儴鍏冪礌鐨勫搷搴斿紡甯冨眬 */ +.Followuserinfos { + .el-form { + /* 琛ㄥ崟鍝嶅簲寮忚皟鏁� */ + .el-row { + margin: 0 -10px; + } + + .el-col { + padding: 0 10px; + } + + @media screen and (max-width: 768px) { + .el-col { + width: 100%; + margin-bottom: 15px; + + &:last-child { + margin-bottom: 0; + } + } + } + } +} + +/* 璋冩暣琛ㄦ牸鐨勫搷搴斿紡琛ㄧ幇 */ +.el-table { + ::v-deep .el-table__body-wrapper { + overflow-x: auto; + } + + /* 鍦ㄥ皬灞忓箷涓婅皟鏁磋〃鏍煎垪瀹� */ + @media screen and (max-width: 992px) { + .el-table-column { + min-width: 120px; + } + } +} + +/* 璋冩暣鏍囩閫夋嫨鍣ㄧ殑鍝嶅簲寮忓竷灞� */ +.tag-selector-container { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: 10px; + + @media screen and (max-width: 576px) { + flex-direction: column; + align-items: flex-start; + + .el-select { + width: 100%; + margin-right: 0 !important; + } + } +} + +/* 璋冩暣鎸夐挳缁勭殑鍝嶅簲寮忓竷灞� */ +.el-form-item.label-processing-opinion { + .el-button-group { + display: flex; + flex-wrap: wrap; + gap: 10px; + + .el-button { + flex: 1; + min-width: 120px; + } + } +} + +/* 璋冩暣閫夐」鍗$殑鍝嶅簲寮忚〃鐜� */ +.el-tabs { + ::v-deep .el-tabs__nav-wrap { + overflow-x: auto; + white-space: nowrap; + + &::after { + display: none; + } + } +} + +/* 璋冩暣棰勮鍖哄煙鐨勫搷搴斿紡琛ㄧ幇 */ +.preview-left { + @media screen and (max-width: 768px) { + margin: 10px; + padding: 15px; + + .topic-dev, .scriptTopic-dev { + margin-bottom: 15px; + } + } +} + +/* 璋冩暣瀵硅瘽妗嗙殑鍝嶅簲寮忚〃鐜� */ +.el-dialog { + @media screen and (max-width: 992px) { + width: 90% !important; + margin-top: 5vh !important; + + .el-dialog__body { + padding: 15px; + } + } + + @media screen and (max-width: 576px) { + width: 95% !important; + + .el-form-item { + margin-bottom: 15px; + } + } +} + +/* 纭繚鍐呭鍦ㄧ缉鏀炬椂淇濇寔鍙鎬� */ +.headline { + font-size: clamp(18px, 2vw, 24px); /* 浣跨敤clamp鍑芥暟纭繚瀛椾綋澶у皬鍦ㄥ悎鐞嗚寖鍥村唴 */ +} + +/* 涓虹Щ鍔ㄨ澶囦紭鍖栨粴鍔ㄤ綋楠� */ +@media screen and (max-width: 768px) { + .Followuserinfo, .Followuserinfos { + padding: 15px; + margin: 5px; + } + + .CONTENT { + min-height: auto; + padding: 5px; + } +} + +/* 缂╂斁妫�娴嬫牱寮� */ +@media screen and (min-resolution: 1.1dppx), + screen and (-webkit-min-device-pixel-ratio: 1.1), + screen and (max-width: 1200px) { + .action-container { + flex-direction: column; + } + + .call-action, .manual-action { + width: 100%; + } + + /* 璋冩暣鍐呴儴鍏冪礌闂磋窛 */ + .call-container, .Followuserinfos { + margin-bottom: 20px; + } +} </style> -- Gitblit v1.9.3