From ad70f145e8bea957b41043b4a1e37ce37cc5ed1e Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 16 一月 2024 18:39:24 +0800 Subject: [PATCH] 指标完成 --- src/views/patient/propaganda/particty.vue | 301 +++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 246 insertions(+), 55 deletions(-) diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue index 4ac1600..d313974 100644 --- a/src/views/patient/propaganda/particty.vue +++ b/src/views/patient/propaganda/particty.vue @@ -35,7 +35,14 @@ </div> <div class="jic-value"> <el-form ref="form" :model="form" label-width="105px"> - <el-form-item label="鍙戦�佹椂闂达細"> + <el-form-item label="妯$増鍚嶇О锛�"> + <el-input + style="width: 220px" + v-model="form.bt" + placeholder="璇峰湪涓嬫柟閫夋嫨" + /> + </el-form-item> + <el-form-item label="鍙戦�佹椂闂达細" v-if="currenttype != 2"> <el-date-picker v-model="form.name" type="date" @@ -43,11 +50,12 @@ > </el-date-picker> </el-form-item> - <el-form-item label="鍙戦�佹椂闂存锛�"> + <el-form-item label="鍙戦�佹椂闂存锛�" v-if="currenttype != 2"> <el-checkbox-group v-model="checkList"> <el-checkbox label="涓婂崍锛�8:30-11:30锛�"></el-checkbox> <el-checkbox label="涓嬪崍锛�14:30-16:30锛�"></el-checkbox> <el-checkbox label="澶滈棿锛�18:30-20:30锛�"></el-checkbox> + <el-checkbox label="涓嶅畾鏃�"></el-checkbox> </el-checkbox-group> </el-form-item> <el-form-item label="鏈嶅姟褰㈠紡"> @@ -61,8 +69,8 @@ </el-form-item> <el-form-item label="缁勭粐褰㈠紡"> <el-radio-group v-model="form.radio"> - <el-radio :label="3">鍗曚汉</el-radio> - <el-radio :label="6">澶氫汉</el-radio> + <el-radio :label="3">鍗曚汉瀹f暀</el-radio> + <el-radio :label="6">澶氫汉闆嗕腑瀹f暀</el-radio> </el-radio-group> </el-form-item> <el-form-item label="璇煶妯$増" prop="region"> @@ -91,14 +99,92 @@ v-show="showSearch" label-width="98px" > - <el-form-item label="瀹f暀涓婚"> + <el-form-item label="瀹f暀涓婚" v-if="currenttype == 1"> <el-input v-model="topqueryParams.name"></el-input> </el-form-item> - <el-form-item label="閫傜敤鐤剧梾"> + <el-form-item + label="闅忚鍚嶇О" + v-if="currenttype == 2 || currenttype == 3" + > + <el-input + v-model="topqueryParams.name" + ></el-input> </el-form-item + ><el-form-item + label="閫氱煡鍚嶇О" + v-if="currenttype == 4 || currenttype == 5" + > + <el-input + v-model="topqueryParams.name" + ></el-input> </el-form-item + ><el-form-item label="浣撴濂楅" v-if="currenttype == 5"> + <el-input v-model="topqueryParams.name"></el-input> + </el-form-item> + <el-form-item label="闂嵎涓婚" v-if="currenttype == 6"> + <el-input v-model="topqueryParams.name"></el-input> + </el-form-item> + <el-form-item label="閫傜敤鐤剧梾" v-if="currenttype != 5"> <el-input v-model="topqueryParams.name"></el-input> </el-form-item> - <el-form-item label="瀹f暀绫诲瀷" prop="status"> + <el-form-item + label="瀹f暀绫诲瀷" + prop="status" + v-if="currenttype == 1" + > + <el-select + v-model="topqueryParams.topic" + placeholder="璇烽�夋嫨" + > + <el-option + v-for="item in taskoptions" + :key="item.value" + :label="item.label" + :value="item.value" + > + </el-option> + </el-select> + </el-form-item> + <el-form-item + label="閫氱煡绫诲瀷" + prop="status" + v-if="currenttype == 4 || currenttype == 5" + > + <el-select + v-model="topqueryParams.topic" + placeholder="璇烽�夋嫨" + > + <el-option + v-for="item in taskoptions" + :key="item.value" + :label="item.label" + :value="item.value" + > + </el-option> + </el-select> + </el-form-item> + <el-form-item + label="闅忚绫诲瀷" + prop="status" + v-if="currenttype == 2 || currenttype == 3" + > + <el-select + v-model="topqueryParams.topic" + placeholder="璇烽�夋嫨" + > + <el-option + v-for="item in taskoptions" + :key="item.value" + :label="item.label" + :value="item.value" + > + </el-option> + </el-select> + </el-form-item> + <el-form-item + label="闂嵎绫诲瀷" + prop="status" + v-if="currenttype == 6" + > <el-select v-model="topqueryParams.topic" placeholder="璇烽�夋嫨" @@ -163,7 +249,7 @@ @handleUpdate="handleUpdate" @handleSelectionChange="handleSelectionChange" :currentList="userList" - :tableLabel="tableLabelxj" + :tableLabel="tableLabel" :controlsc="false" :multiplechoice="false" /> @@ -190,6 +276,54 @@ <el-alert title="鍦ㄦ湰闃舵閫夋嫨瀹f暀鐥呬汉" type="success" effect="dark"> </el-alert> <div class="leftvlue-jbxx"> + <div class="examine-jic"> + <div class="headline"> + <div>鍙橀噺鍖归厤閲忓弬</div> + </div> + <div class="examine-jic"> + <div class="jic-value"> + <el-row :gutter="20"> + <el-table :data="variableList" style="width: 100%"> + <el-table-column + prop="variablename" + align="center" + label="鍙橀噺鍚嶇О" + > + </el-table-column> + <el-table-column + prop="character" + align="center" + label="鍖归厤绗�" + > + </el-table-column> + <el-table-column label="鏇挎崲鍊�" align="center"> + <template slot-scope="scope"> + <el-input + v-model="scope.row.Replacementvalue" + placeholder="璇疯緭鍏ュ唴瀹�" + ></el-input> + </template> + </el-table-column> + <el-table-column label="鎿嶄綔" align="center"> + <template slot-scope="scope"> + <el-button + size="mini" + @click="variableEdit(scope.$index, scope.row)" + >缂栬緫</el-button + > + <el-button + size="mini" + type="danger" + @click="variableDelete(scope.$index, scope.row)" + >鍒犻櫎</el-button + > + </template> + </el-table-column> + </el-table> + </el-row> + </div> + </div> + </div> <div class="examine-jic"> <div class="headline"> <div>鎮h�呭垪琛�</div> @@ -457,10 +591,17 @@ </template> <script> -import { listsvr_prjtask, Addpatienttask } from "@/api/smartorpor/svr_prjtask"; -import { listpat_archive } from "@/api/smartorpor/pat_archive"; -import { listsvr_prjtaskline } from "@/api/smartorpor/svr_prjtaskline"; import { messagelistpatient } from "@/api/patient/homepage"; +import { + getTaskpatient, + getlibrarylist, + getFollowuplist, + getQtemplatelist, + edithetask, + addhetask, + gethetaskinfo, + delhetaskinfo, +} from "@/api/AiCentre/index"; import SFtable from "@/components/SFtable"; //琛ㄦ牸缁勪欢 export default { @@ -469,6 +610,7 @@ return { title: "瀹f暀鍐呭鍒楄〃", currenttype: 1, //1瀹f暀2闂ㄨ瘖3鍑洪櫌4澶嶈瘖5浣撴6闂嵎 + id: "", Editprogress: 1, //缂栬緫杩涘害 loading: false, // 閬僵灞� patientloading: false, // 閬僵灞� @@ -481,44 +623,52 @@ { label: "鎬у埆", width: "", prop: "sex" }, { label: "骞撮緞", width: "", prop: "age" }, { label: "灏辫瘖绉戝", width: "", prop: "impTemplate" }, - { label: "鍏ラ櫌鏃ユ湡", width: "", prop: "create_time" }, - { label: "鍒涘缓浜�", width: "", prop: "update_by" }, + { label: "鍏ラ櫌鏃ユ湡", width: "", prop: "uploadTime" }, + { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" }, ], tableLabelxj: [ - { label: "瀹f暀鍚嶇О", width: "", prop: "name" }, - { label: "瀹f暀妯$増", width: "", prop: "impTemplate" }, - { label: "鍒涘缓鏃ユ湡", width: "", prop: "create_time" }, - { label: "鍒涘缓浜�", width: "", prop: "update_by" }, + { label: "瀹f暀鍚嶇О", width: "", prop: "preachname" }, + { label: "瀹f暀鎻忚堪", width: "", prop: "note" }, + { label: "瀹f暀褰㈠紡", width: "", prop: "playType" }, + { label: "閫傜敤鏂瑰紡", width: "", prop: "suitway" }, + { label: "鍒涘缓鏃ユ湡", width: "", prop: "uploadTime" }, + { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" }, ], tableLabelmz: [ - { label: "闅忚鍚嶇О", width: "118", prop: "name" }, + { label: "闅忚鍚嶇О", width: "118", prop: "templateName" }, { label: "闅忚妯$増", width: "130", prop: "impTemplate" }, - { label: "鍒涘缓鏃ユ湡", width: "136", prop: "create_time" }, - { label: "鍒涘缓浜�", width: "130", prop: "update_by" }, + { label: "鍒涘缓鏃ユ湡", width: "136", prop: "uploadTime" }, + { label: "鍒涘缓浜猴紙缂猴級", width: "130", prop: "update_by" }, ], tableLabelcy: [ - { label: "闅忚鍚嶇О", width: "118", prop: "name" }, + { label: "闅忚鍚嶇О", width: "118", prop: "templateName" }, { label: "闅忚璁″垝", width: "130", prop: "impTemplate" }, - { label: "鍒涘缓鏃ユ湡", width: "136", prop: "create_time" }, - { label: "鍒涘缓浜�", width: "130", prop: "update_by" }, + { label: "鍒涘缓鏃ユ湡", width: "136", prop: "uploadTime" }, + { label: "鍒涘缓浜猴紙缂猴級", width: "130", prop: "update_by" }, ], tableLabelfz: [ - { label: "閫氱煡鍚嶇О", width: "118", prop: "name" }, + { label: "閫氱煡鍚嶇О", width: "118", prop: "templateName" }, { label: "閫氱煡妯$増", width: "130", prop: "impTemplate" }, - { label: "鍒涘缓鏃ユ湡", width: "136", prop: "create_time" }, - { label: "鍒涘缓浜�", width: "130", prop: "update_by" }, + { label: "鍒涘缓鏃ユ湡", width: "136", prop: "uploadTime" }, + { label: "鍒涘缓浜猴紙缂猴級", width: "130", prop: "update_by" }, ], tableLabeltj: [ { label: "閫氱煡鍚嶇О", width: "118", prop: "name" }, { label: "閫氱煡妯$増", width: "130", prop: "impTemplate" }, - { label: "鍒涘缓鏃ユ湡", width: "136", prop: "create_time" }, - { label: "鍒涘缓浜�", width: "130", prop: "update_by" }, + { label: "鍒涘缓鏃ユ湡", width: "136", prop: "uploadTime" }, + { label: "鍒涘缓浜猴紙缂猴級", width: "130", prop: "update_by" }, ], tableLabelwj: [ { label: "闂嵎鍚嶇О", width: "118", prop: "name" }, { label: "闂嵎妯$増", width: "130", prop: "impTemplate" }, - { label: "鍒涘缓鏃ユ湡", width: "136", prop: "create_time" }, - { label: "鍒涘缓浜�", width: "130", prop: "update_by" }, + { label: "鍒涘缓鏃ユ湡", width: "136", prop: "uploadTime" }, + { label: "鍒涘缓浜猴紙缂猴級", width: "130", prop: "update_by" }, + ], + // 鍙橀噺 + tableLabelvariable: [ + { label: "鍙橀噺鍚嶇О", width: "", prop: "variablename" }, + { label: "鍖归厤绗�", width: "", prop: "character" }, + { label: "鏇挎崲鍊�", width: "", prop: "Replacementvalue" }, ], topqueryParams: { pageNum: 1, // @@ -548,6 +698,23 @@ userList: [], //妯$増鍒楄〃 patientuserList: [], //閫夋嫨鎮h�呭垪琛� sonuserList: [], //閫変腑鎮h�呭垪琛� + variableList: [ + { + variablename: "濮撳悕", + character: "${name}", + Replacementvalue: "榫欏偛澶�", + }, + { + variablename: "鍦板潃", + character: "${dzz}", + Replacementvalue: "榫欏", + }, + { + variablename: "鐢佃瘽", + character: "${dhh}", + Replacementvalue: "鍏釜鍏�", + }, + ], //鍙橀噺鍒楄〃 tasktopic: null, //鏂板绫诲瀷 form: { name: "", @@ -559,36 +726,18 @@ resource: "", desc: "", }, - options: [ - { - value: "閫夐」1", - label: "榛勯噾绯�", - }, - { - value: "閫夐」2", - label: "鍙岀毊濂�", - }, - { - value: "閫夐」5", - label: "鍖椾含鐑ら腑", - }, - ], taskoptions: [ { value: "1", - label: "閫氱煡", + label: "鍑洪櫌鐥呬汉", }, { value: "2", - label: "闅忚", + label: "闂ㄨ瘖鐥呬汉", }, { value: "3", - label: "闂嵎", - }, - { - value: "4", - label: "瀹f暀", + label: "浣撴鐥呬汉", }, ], quote: false, @@ -597,14 +746,24 @@ components: { SFtable }, created() { + this.id = this.$route.query.id; this.Addsubtask(); this.Getsubtask(); this.Acquisitiontype(); + }, methods: { // 鑾峰彇褰撳墠绫诲瀷 Acquisitiontype() { + let queryParams = { + pageNum: 1, + pageSize: 10, + isavailable: "", + }; + getTaskpatient({ allhosp: 1 }).then((res) => { + console.log(res); + }); this.currenttype = this.$route.query.type; console.log(this.currenttype); if (this.currenttype == 1) { @@ -618,24 +777,46 @@ "鐭俊", "寰俊鍏紬鍙�", "寰俊灏忕▼搴�", + "鏀粯瀹�", + "鏅鸿兘灏忕▼搴�", "閽夐拤", ]; + getlibrarylist(queryParams).then((response) => { + this.userList = response.rows; + this.total = response.total; + }); } else if (this.currenttype == 2) { this.title = "闅忚鍐呭鍒楄〃"; this.tableLabel = this.tableLabelmz; this.checkboxlist = ["褰撻潰", "绾歌川", "鐢佃瘽", "鐭俊", "寰俊鍏紬鍙�"]; + getFollowuplist(queryParams).then((response) => { + this.userList = response.rows; + this.total = response.total; + }); } else if (this.currenttype == 3) { this.title = "闅忚璁″垝鍒楄〃"; this.tableLabel = this.tableLabelcy; this.checkboxlist = ["褰撻潰", "绾歌川", "鐢佃瘽", "鐭俊", "寰俊鍏紬鍙�"]; + getFollowuplist(queryParams).then((response) => { + this.userList = response.rows; + this.total = response.total; + }); } else if (this.currenttype == 4) { this.title = "閫氱煡鍐呭鍒楄〃"; this.tableLabel = this.tableLabelfz; this.checkboxlist = ["鐢佃瘽", "鐭俊", "寰俊鍏紬鍙�"]; + getFollowuplist(queryParams).then((response) => { + this.userList = response.rows; + this.total = response.total; + }); } else if (this.currenttype == 5) { this.title = "閫氱煡鍐呭鍒楄〃"; this.tableLabel = this.tableLabeltj; this.checkboxlist = ["绾歌川", "鐢佃瘽", "鐭俊", "寰俊鍏紬鍙�"]; + getFollowuplist(queryParams).then((response) => { + this.userList = response.rows; + this.total = response.total; + }); } else if (this.currenttype == 6) { this.title = "闂嵎鍐呭鍒楄〃"; this.tableLabel = this.tableLabelwj; @@ -649,6 +830,10 @@ "寰俊灏忕▼搴�", "閽夐拤", ]; + getQtemplatelist(queryParams).then((response) => { + this.userList = response.rows; + this.total = response.total; + }); } }, // 涓嬩竴姝� @@ -719,9 +904,9 @@ let objictpint = {}; objictpint.patientes = this.ids; objictpint.pguid = 2; - Addpatienttask(objictpint).then((res) => { - console.log(res); - }); + // Addpatienttask(objictpint).then((res) => { + // console.log(res); + // }); this.dialogVisiblepatient = false; }, @@ -735,7 +920,13 @@ console.log(this.userList); }); }, - /** 鏌ヨ鎮h�呭垪琛� */ + // 鍙橀噺--------------- + variableEdit(index, row) { + console.log(index, row); + }, + variableDelete(index, row) { + console.log(index, row); + }, }, }; </script> -- Gitblit v1.9.3