From 0529f319b668d11a0479ae3b615ad8418442a10e Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 27 五月 2025 16:19:57 +0800 Subject: [PATCH] 测试完成 --- src/views/followvisit/record/index.vue | 161 ++++++++++++++++++++++++++++++++--------------------- 1 files changed, 98 insertions(+), 63 deletions(-) diff --git a/src/views/followvisit/record/index.vue b/src/views/followvisit/record/index.vue index a246c81..1063d26 100644 --- a/src/views/followvisit/record/index.vue +++ b/src/views/followvisit/record/index.vue @@ -120,16 +120,16 @@ </el-select> </el-form-item> <el-form-item label="鎺掑簭鏂瑰紡" prop="status"> - <el-select v-model="topqueryParams.sort" placeholder="璇烽�夋嫨"> - <el-option - v-for="item in topicoptionssort" - :key="item.value" - :label="item.label" - :value="item.value" - > - </el-option> - </el-select> - </el-form-item> + <el-select v-model="topqueryParams.sort" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in topicoptionssort" + :key="item.value" + :label="item.label" + :value="item.value" + > + </el-option> + </el-select> + </el-form-item> <el-form-item> <el-button @@ -165,7 +165,6 @@ icon="el-icon-upload2" size="medium" @click="handleExport" - v-hasPermi="['system:user:export']" >瀵煎嚭</el-button > </div> @@ -212,11 +211,19 @@ </div> </div> </el-col> + <el-col :span="1.5"> + <div class="documentf"> + <div class="document"> + <el-button type="success" size="medium" @click="onthatday()" + >褰撴棩鏈嶅姟</el-button + > + </div> + </div> + </el-col> </el-row> <el-table v-loading="loading" :data="userList" - height="806" :row-class-name="tableRowClassName" @selection-change="handleSelectionChange" > @@ -242,7 +249,7 @@ size="medium" type="text" @click=" - gettoken360(scope.row.sfzh) + gettoken360(scope.row.sfzh, scope.row.drcode, scope.row.drname) " ><span class="button-textsc">{{ scope.row.sendname @@ -509,7 +516,7 @@ ></el-button > </el-tooltip> --> - <el-tooltip + <!-- <el-tooltip v-if="scope.row.sendstate == 1 || scope.row.sendstate == 2" class="item" effect="dark" @@ -525,7 +532,7 @@ ><i class="el-icon-remove-outline"></i>鏆傚仠鏈嶅姟</span ></el-button > - </el-tooltip> + </el-tooltip> --> <el-button size="medium" type="text" @click="Seedetails(scope.row)" ><span class="button-zx" ><i class="el-icon-s-order"></i>鏌ョ湅璇︽儏</span @@ -729,7 +736,11 @@ resetUserPwd, changeUserStatus, } from "@/api/system/user"; -import { getTaskservelist, buidegetTasklist,query360PatInfo } from "@/api/AiCentre/index"; +import { + getTaskservelist, + buidegetTasklist, + query360PatInfo, +} from "@/api/AiCentre/index"; import Treeselect from "@riophae/vue-treeselect"; import store from "@/store"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; @@ -775,32 +786,32 @@ postData: { XiaoXiTou: { FaSongFCSJC: "ZJHES", - FaSongJGID: "47255004333112711A1001", - FaSongJGMC: "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�", + FaSongJGID: localStorage.getItem("orgid"), + FaSongJGMC: localStorage.getItem("orgname"), FaSongSJ: "2025-01-09聽17:29:36", FaSongXTJC: "SUIFANGXT", FaSongXTMC: "闅忚绯荤粺", XiaoXiID: "5FA92AFB-9833-4608-87C7-F56A654AC171", XiaoXiLX: "SC_LC_360STCX", XiaoXiMC: "360聽瑙嗗浘鏌ヨ", - ZuHuID: "1400361376454545408", - ZuHuMC: "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�", + ZuHuID: localStorage.getItem("ZuHuID"), + ZuHuMC: localStorage.getItem("orgname"), }, YeWuXX: { BingRenXX: { - ZhengJianHM: '', + ZhengJianHM: "", ZhengJianLXDM: "01", ZhengJianLXMC: "灞呮皯韬唤璇�", - ZuZhiJGID: "47255004333112711A1001", - ZuZhiJGMC: "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�", + ZuZhiJGID: localStorage.getItem("orgid"), + ZuZhiJGMC: localStorage.getItem("orgname"), }, YongHuXX: { XiTongID: "SUIFANGXT", XiTongMC: "闅忚绯荤粺", YongHuID: "1400466972205912064", YongHuXM: "JNRMYY", - ZuZhiJGID: "47255004333112711A1001", - ZuZhiJGMC: "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�", + ZuZhiJGID: localStorage.getItem("orgid"), + ZuZhiJGMC: localStorage.getItem("orgname"), idp: "lyra", }, }, @@ -892,10 +903,10 @@ topqueryParams: { pageNum: 1, pageSize: 10, - serviceType: 10, + serviceType: 13, searchscope: 3, - sendstate:2, - sort:2, + sendstate: 2, + sort: 2, scopetype: [], leaveldeptcodes: [], leavehospitaldistrictcodes: [], @@ -904,6 +915,10 @@ options: [], topicoptions: [ + { + value: null, + label: "鍏ㄩ儴", + }, { value: 1, label: "琛ㄥ崟宸查鍙�", @@ -939,24 +954,24 @@ label: "姝e父", }, ], - topicoptionssort:[ - { - value: 0, - label: "鍑洪櫌鏃堕棿(姝e簭)", - }, - { - value: 1, - label: "鍑洪櫌鏃堕棿(鍊掑簭)", - }, - { - value: 2, - label: "鍙戦�佹椂闂�(姝e簭)", - }, - { - value: 3, - label: "鍙戦�佹椂闂�(鍊掑簭)", - }, - ], + topicoptionssort: [ + { + value: 0, + label: "鍑洪櫌鏃堕棿(姝e簭)", + }, + { + value: 1, + label: "鍑洪櫌鏃堕棿(鍊掑簭)", + }, + { + value: 2, + label: "鍙戦�佹椂闂�(姝e簭)", + }, + { + value: 3, + label: "鍙戦�佹椂闂�(鍊掑簭)", + }, + ], errtype: "", leavehospitaldistrictcode: "", serviceState: [], @@ -1015,10 +1030,13 @@ console.log(this.topqueryParams.leavehospitaldistrictcodes, "11"); } this.loading = true; - if (this.topqueryParams.leavehospitaldistrictcodes[0]&&this.topqueryParams.leaveldeptcodes[0]) { - this.topqueryParams.deptOrDistrict=2; - }else{ - this.topqueryParams.deptOrDistrict=1; + if ( + this.topqueryParams.leavehospitaldistrictcodes[0] && + this.topqueryParams.leaveldeptcodes[0] + ) { + this.topqueryParams.deptOrDistrict = 2; + } else { + this.topqueryParams.deptOrDistrict = 1; } getTaskservelist(this.topqueryParams).then((response) => { this.userList = response.rows[0].serviceSubtaskList; @@ -1030,7 +1048,7 @@ this.cardlist[1].value = response.rows[0].ysf; this.ycvalue = response.rows[0].yc; this.cardlist[2].value = response.rows[0].fssb; - this.cardlist[3].value = response.rows[0].dfs; + this.cardlist[3].value = response.rows[0].dsf; this.cardlist[4].value = response.rows[0].yfs2; this.yfsvalue = response.rows[0].yfs; } @@ -1060,18 +1078,21 @@ this.total = response.total; }); }, - //鎮h��360璺宠浆 - gettoken360(sfzh) { - this.postData.YeWuXX.BingRenXX.ZhengJianHM=sfzh + //鎮h��360璺宠浆 + gettoken360(sfzh, drcode, drname) { + this.postData.YeWuXX.BingRenXX.ZhengJianHM = sfzh; + if (this.postData.XiaoXiTou.ZuHuMC == "涓芥按甯備腑鍖婚櫌") { + this.postData.YeWuXX.YongHuXX.YongHuID = "1400398571877961728"; + this.postData.YeWuXX.YongHuXX.YongHuXM = "LSZYY"; + } query360PatInfo(this.postData).then((res) => { if (res.data.url) { - window.open(res.data.url, '_blank'); + window.open(res.data.url, "_blank"); // this.linkUrl = res.data.url; - }else{ + } else { this.$modal.msgWarning("360鏌ヨ鏃犵粨鏋�"); } }); - }, buidegetTasklist(type) { if (this.topqueryParams.searchscope == 3) { @@ -1105,7 +1126,7 @@ this.cardlist[2].value = response.rows[0].ysf; this.ycvalue = response.rows[0].yc; this.cardlist[3].value = response.rows[0].fssb; - this.cardlist[4].value = response.rows[0].dfs; + this.cardlist[4].value = response.rows[0].dsf; this.cardlist[5].value = response.rows[0].yfs2; this.yfsvalue = response.rows[0].yfs; } @@ -1231,10 +1252,13 @@ this.topqueryParams = { pageNum: 1, pageSize: 10, - serviceType: 10, - sort:2, + serviceType: 13, + sort: 2, searchscope: 2, - sendstate:2, + sendstate: 2, + scopetype: [], + leaveldeptcodes: [], + leavehospitaldistrictcodes: [], }; this.handleQuery(1); }, @@ -1255,6 +1279,15 @@ this.$refs.saveTagInput.$refs.input.focus(); }); }, + onthatday() { + this.topqueryParams.startSendDateTime = this.getCurrentDate(); + this.topqueryParams.endSendDateTime = this.getCurrentDate(); + this.getList(1); + }, + getCurrentDate() { + const now = new Date(); + return now.toISOString().slice(0, 10); // 鎴彇鍓�10涓瓧绗︼紝鍗� YYYY-MM-DD + }, //鑾峰彇澶卞幓鐒︾偣瑙﹀彂 handleInputConfirm() { let inputValue = this.inputValue; @@ -1270,7 +1303,7 @@ path: "/followvisit/QuestionnaireTask", query: { type: 2, - serviceType: 10, + serviceType: 13, }, }); }, @@ -1386,6 +1419,7 @@ patid: row.patid, id: row.id, Voicetype: type, + again: 1, }, }); }, @@ -1439,7 +1473,8 @@ this.topqueryParams.pageNum = null; this.topqueryParams.pageSize = null; this.download( - "smartor/serviceSubtask/export", + // "smartor/serviceSubtask/export", + "smartor/serviceSubtask/patItemExport", { ...this.topqueryParams, }, -- Gitblit v1.9.3