From cd3f1d61e8530ecc50c72a7d223ce640732a2b84 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 18 四月 2024 11:15:40 +0800 Subject: [PATCH] 测试完成 --- src/views/followvisit/outpatient/index.vue | 138 +++-------- src/api/AiCentre/SingleTask.js | 35 ++ src/store/getters.js | 57 ++++ src/views/patient/medtechnician/index.vue | 2 src/views/repositoryai/intention/index.vue | 2 src/views/followvisit/record/index.vue | 171 +++---------- src/views/patient/propaganda/particty.vue | 140 ++++++----- src/views/followvisit/discharge/index.vue | 159 +++--------- 8 files changed, 292 insertions(+), 412 deletions(-) diff --git a/src/api/AiCentre/SingleTask.js b/src/api/AiCentre/SingleTask.js index f896576..13ab124 100644 --- a/src/api/AiCentre/SingleTask.js +++ b/src/api/AiCentre/SingleTask.js @@ -47,26 +47,49 @@ data: data, }); } - // 鏂板鎴栦慨鏀瑰垹闄ゅ崟涓�浠诲姟 + // 鏂板鎴栦慨鏀逛换鍔� export function Editsingletask(data) { return request({ - url: "/smartor/taskcall/insertOrUpdateTask", + url: "/smartor/tasksingle/insertOrUpdateTask", method: "post", data: data, }); } - // 鍗曚竴浠诲姟鍒楄〃 + // 鍒犻櫎浠诲姟骞跺垹闄ゅ叧鑱旂殑鎮h�呮湇鍔� + export function delTaskInfo(data) { + return request({ + url: "/smartor/ivrtask/remove/"+id, + method: "get", + }); + } + // 鏌ヨ浠诲姟鍒楄〃 export function getTasklist(data) { return request({ - url: "/smartor/taskcall/list", + url: "/smartor/ivrtask/list", method: "post", data: data, }); } - // 鍗曚竴浠诲姟璇︽儏 + // 鏌ヨ浠诲姟璇︽儏 export function getTaskInfo(data) { return request({ - url: "/smartor/taskcall/queryTaskByCondition", + url: "/smartor/tasksingle/queryTaskByCondition", + method: "post", + data: data, + }); + } + // 鏌ヨ闂ㄨ瘖鍑洪櫌鏈嶅姟鍒楄〃 + export function getTaskservelist(data) { + return request({ + url: "/smartor/tasksingle/patItem", + method: "post", + data: data, + }); + } + // 浠诲姟绔嬪嵆鎵ц + export function GoheTaskSend(data) { + return request({ + url: "/smartor/tasksingle/heTaskSend", method: "post", data: data, }); diff --git a/src/store/getters.js b/src/store/getters.js index 8765de8..49aee33 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -53,6 +53,63 @@ }, }, ], + // 浠诲姟鐘舵�� + taskstate: (state) => [ + { + value: "1", + label: "闂嵎璋冩煡琛�", + raw: { + cssClass: "", + listClass: "", + }, + }, + { + value: "2", + label: "AI鏅鸿兘璇煶", + raw: { + cssClass: "", + listClass: "", + }, + }, + { + value: "3", + label: "浜哄伐鐢佃瘽", + raw: { + cssClass: "", + listClass: "", + }, + }, + + ], + // 鏈嶅姟鐘舵�� + serviceState: (state) => [ + { + value: "1", + label: "琚鍙�", + raw: { + cssClass: "", + listClass: "", + }, + }, + { + value: "2", + label: "寰呮墽琛�", + raw: { + cssClass: "", + listClass: "", + }, + }, + { + value: "3", + label: "宸叉墽琛�", + raw: { + cssClass: "", + listClass: "", + }, + }, + + ], + // 鍊肩被鍨� valuetype: (state) => [ { diff --git a/src/views/followvisit/discharge/index.vue b/src/views/followvisit/discharge/index.vue index 985d804..7c7e0cf 100644 --- a/src/views/followvisit/discharge/index.vue +++ b/src/views/followvisit/discharge/index.vue @@ -181,46 +181,31 @@ @selection-change="handleSelectionChange" > <el-table-column type="selection" width="50" align="center" /> - <el-table-column - label="搴忓彿" - fixed - align="center" - key="userId" - prop="userId" - /> + <el-table-column label="搴忓彿" fixed align="center" key="id" prop="id" /> <el-table-column label="濮撳悕" fixed align="center" - key="types" - prop="types" + key="sendname" + prop="sendname" /> <el-table-column label="鐥呭巻鍙�" align="center" sortable - key="userName" - prop="userName" + key="medicalRecordNo" + prop="medicalRecordNo" width="120" /> - <el-table-column - label="骞撮緞" - align="center" - key="nickName" - prop="nickName" - /> - <el-table-column - label="搴婂彿" - align="center" - key="nickName" - prop="nickName" - /> + <el-table-column label="骞撮緞" align="center" key="age" prop="age" /> + <el-table-column label="鎬у埆" align="center" key="sex" prop="sex" /> + <el-table-column label="搴婂彿" align="center" key="badNo" prop="badNo" /> <el-table-column label="鐥呭尯" align="center" - key="phonenumber" - prop="phonenumber" + key="deptname" + prop="deptname" width="120" > </el-table-column> @@ -228,41 +213,32 @@ <el-table-column label="鐤剧梾鍚嶇О" align="center" - key="topicnumber" - prop="topicnumber" + key="icdName" + prop="icdName" width="120" :show-overflow-tooltip="true" > - <template slot-scope="scope"> - <div>杞诲害楠ㄨ</div> - </template> </el-table-column> <el-table-column - label="闅忚鏂规" + label="浠诲姟鍚嶇О" align="center" - key="topicnumberaa" - prop="topicnumberaa" + key="taskName" + prop="taskName" width="120" /> + <el-table-column - label="瀹f暀鏉愭枡" + label="闅忚鏂瑰紡锛堥渶璋冩暣鏍煎紡锛�" align="center" - key="topicnumberaa" - prop="topicnumberaa" - width="120" - /> - <el-table-column - label="闅忚鏂瑰紡" - align="center" - key="topicnumberaa" - prop="topicnumberaa" + key="serviceform" + prop="serviceform" width="120" /> <el-table-column label="闅忚浜哄憳" align="center" - key="topicnumberaa" - prop="topicnumberaa" + key="operator" + prop="operator" width="120" /> @@ -270,14 +246,14 @@ label="灏辫瘖鏃堕棿" sortable align="center" - prop="createTime" + prop="admindate" width="160" > <template slot-scope="scope"> - <span>{{ parseTime(scope.row.createTime) }}</span> + <span>{{ parseTime(scope.row.admindate) }}</span> </template> </el-table-column> - <el-table-column + <!-- <el-table-column label="闅忚鏃堕棿" sortable align="center" @@ -285,31 +261,34 @@ width="160" > <template slot-scope="scope"> - <span>{{ parseTime(scope.row.createTime) }}</span> + <span v-if="scope.row.sendType != 3">{{ + parseTime(scope.row.createTime) + }}</span> + <span v-else>鍗冲埢鍙戦��</span> </template> - </el-table-column> + </el-table-column> --> <el-table-column - label="鍥炲鏃堕棿" + label="闅忚鏃堕棿" sortable align="center" - prop="createTime" + prop="finishtime" width="160" > <template slot-scope="scope"> - <span>{{ parseTime(scope.row.createTime) }}</span> + <span>{{ parseTime(scope.row.finishtime) }}</span> </template> </el-table-column> <el-table-column label="闅忚鐘舵��" fixed="right" align="center" - key="topicnumber" - prop="topicnumber" + key="sendstate" + prop="sendstate" width="120" :show-overflow-tooltip="true" > <template slot-scope="scope"> - <div>鏈畬鎴�</div> + <dict-tag :options="serviceState" :value="scope.row.sendstate" /> </template> </el-table-column> @@ -502,7 +481,9 @@ resetUserPwd, changeUserStatus, } from "@/api/system/user"; +import { getTaskservelist } from "@/api/AiCentre/index"; import Treeselect from "@riophae/vue-treeselect"; +import store from "@/store"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; export default { @@ -652,9 +633,7 @@ topqueryParams: { pageNum: 1, pageSize: 10, - userName: undefined, - tagid: undefined, - topic: undefined, + hospType: 1, }, propss: { multiple: true }, options: [], @@ -677,56 +656,14 @@ label: "宸插仠姝�", }, ], + serviceState: [], // 琛ㄥ崟鏍¢獙 - rules: { - userName: [ - { required: true, message: "鐢ㄦ埛鍚嶇О涓嶈兘涓虹┖", trigger: "blur" }, - { - min: 2, - max: 20, - message: "鐢ㄦ埛鍚嶇О闀垮害蹇呴』浠嬩簬 2 鍜� 20 涔嬮棿", - trigger: "blur", - }, - ], - nickName: [ - { required: true, message: "鐢ㄦ埛鏄电О涓嶈兘涓虹┖", trigger: "blur" }, - ], - password: [ - { required: true, message: "鐢ㄦ埛瀵嗙爜涓嶈兘涓虹┖", trigger: "blur" }, - { - min: 5, - max: 20, - message: "鐢ㄦ埛瀵嗙爜闀垮害蹇呴』浠嬩簬 5 鍜� 20 涔嬮棿", - trigger: "blur", - }, - ], - email: [ - { - type: "email", - message: "璇疯緭鍏ユ纭殑閭鍦板潃", - trigger: ["blur", "change"], - }, - ], - phonenumber: [ - { - pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, - message: "璇疯緭鍏ユ纭殑鎵嬫満鍙风爜", - trigger: "blur", - }, - ], - IDnumber: [ - { - pattern: - /^\d{6}((((((19|20)\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(((19|20)\d{2})(0[13578]|1[02])31)|((19|20)\d{2})02(0[1-9]|1\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\d{3})|((((\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|((\d{2})(0[13578]|1[02])31)|((\d{2})02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\d{2}))(\d|X|x)$/, - message: "璇疯緭鍏ユ纭殑韬唤璇佸彿鐮�", - trigger: "blur", - }, - ], - }, + rules: {}, }; }, watch: {}, created() { + this.serviceState = store.getters.serviceState; this.getList(); this.getConfigKey("sys.user.initPassword").then((response) => { this.initPassword = response.msg; @@ -739,16 +676,14 @@ }); }, methods: { - /** 鏌ヨ闂ㄨ瘖闅忚鍒楄〃 */ + /** 鏌ヨ闂ㄨ瘖闅忚鏈嶅姟鍒楄〃 */ getList() { this.loading = true; - listUser(this.addDateRange(this.topqueryParams, this.dateRange)).then( - (response) => { - this.userList = response.rows; - this.total = response.total; - this.loading = false; - } - ); + getTaskservelist(this.topqueryParams).then((response) => { + this.userList = response.rows; + this.total = response.total; + this.loading = false; + }); }, // 鏌ョ湅闂ㄨ瘖闅忚璇︽儏 Referencequestion(row) { diff --git a/src/views/followvisit/outpatient/index.vue b/src/views/followvisit/outpatient/index.vue index 790aa9c..60771dc 100644 --- a/src/views/followvisit/outpatient/index.vue +++ b/src/views/followvisit/outpatient/index.vue @@ -186,36 +186,36 @@ label="搴忓彿" fixed align="center" - key="userId" - prop="userId" + key="id" + prop="id" /> <el-table-column label="濮撳悕" fixed align="center" - key="types" - prop="types" + key="sendname" + prop="sendname" /> <el-table-column label="鐥呭巻鍙�" align="center" sortable - key="userName" - prop="userName" + key="medicalRecordNo" + prop="medicalRecordNo" width="120" /> <el-table-column label="骞撮緞" align="center" - key="nickName" - prop="nickName" + key="age" + prop="age" /> <el-table-column label="绉戝" align="center" - key="phonenumber" - prop="phonenumber" + key="deptname" + prop="deptname" width="120" > </el-table-column> @@ -223,42 +223,34 @@ <el-table-column label="鐤剧梾鍚嶇О" align="center" - key="topicnumber" - prop="topicnumber" + key="icdName" + prop="icdName" width="120" :show-overflow-tooltip="true" > - <template slot-scope="scope"> - <div>杞诲害楠ㄨ</div> - </template> + </el-table-column> <el-table-column - label="闅忚鏂规" + label="浠诲姟鍚嶇О" align="center" - key="topicnumberaa" - prop="topicnumberaa" + key="taskName" + prop="taskName" width="120" /> + <el-table-column - label="瀹f暀鏉愭枡" + label="闅忚鏂瑰紡锛堥渶璋冩暣鏍煎紡锛�" align="center" - key="topicnumberaa" - prop="topicnumberaa" - width="120" - /> - <el-table-column - label="闅忚鏂瑰紡" - align="center" - key="topicnumberaa" - prop="topicnumberaa" + key="serviceform" + prop="serviceform" width="120" /> <el-table-column label="闅忚浜哄憳" align="center" - key="topicnumberaa" - prop="topicnumberaa" + key="operator" + prop="operator" width="120" /> @@ -266,47 +258,37 @@ label="灏辫瘖鏃堕棿" sortable align="center" - prop="createTime" + prop="admindate" width="160" > <template slot-scope="scope"> - <span>{{ parseTime(scope.row.createTime) }}</span> + <span>{{ parseTime(scope.row.admindate) }}</span> </template> </el-table-column> <el-table-column label="闅忚鏃堕棿" sortable align="center" - prop="createTime" + prop="finishtime" width="160" > <template slot-scope="scope"> - <span>{{ parseTime(scope.row.createTime) }}</span> + <span>{{ parseTime(scope.row.finishtime) }}</span> </template> </el-table-column> - <el-table-column - label="鍥炲鏃堕棿" - sortable - align="center" - prop="createTime" - width="160" - > - <template slot-scope="scope"> - <span>{{ parseTime(scope.row.createTime) }}</span> - </template> - </el-table-column> + <el-table-column label="闅忚鐘舵��" fixed="right" align="center" - key="topicnumber" - prop="topicnumber" + key="sendstate" + prop="sendstate" width="120" :show-overflow-tooltip="true" > - <template slot-scope="scope"> - <div>鏈畬鎴�</div> + <template slot-scope="scope"> + <dict-tag :options="serviceState" :value="scope.row.sendstate" /> </template> </el-table-column> <el-table-column @@ -491,13 +473,16 @@ <script> import { listUser, - getUser, delUser, addUser, updateUser, resetUserPwd, changeUserStatus, } from "@/api/system/user"; +import { + getTaskservelist +} from "@/api/AiCentre/index"; +import store from "@/store"; import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; @@ -648,9 +633,8 @@ topqueryParams: { pageNum: 1, pageSize: 10, - userName: undefined, - tagid: undefined, - topic: undefined, + hospType:2 + }, propss: { multiple: true }, options: [], @@ -673,56 +657,16 @@ label: "宸插仠姝�", }, ], + serviceState:[], // 琛ㄥ崟鏍¢獙 rules: { - userName: [ - { required: true, message: "鐢ㄦ埛鍚嶇О涓嶈兘涓虹┖", trigger: "blur" }, - { - min: 2, - max: 20, - message: "鐢ㄦ埛鍚嶇О闀垮害蹇呴』浠嬩簬 2 鍜� 20 涔嬮棿", - trigger: "blur", - }, - ], - nickName: [ - { required: true, message: "鐢ㄦ埛鏄电О涓嶈兘涓虹┖", trigger: "blur" }, - ], - password: [ - { required: true, message: "鐢ㄦ埛瀵嗙爜涓嶈兘涓虹┖", trigger: "blur" }, - { - min: 5, - max: 20, - message: "鐢ㄦ埛瀵嗙爜闀垮害蹇呴』浠嬩簬 5 鍜� 20 涔嬮棿", - trigger: "blur", - }, - ], - email: [ - { - type: "email", - message: "璇疯緭鍏ユ纭殑閭鍦板潃", - trigger: ["blur", "change"], - }, - ], - phonenumber: [ - { - pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, - message: "璇疯緭鍏ユ纭殑鎵嬫満鍙风爜", - trigger: "blur", - }, - ], - IDnumber: [ - { - pattern: - /^\d{6}((((((19|20)\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(((19|20)\d{2})(0[13578]|1[02])31)|((19|20)\d{2})02(0[1-9]|1\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\d{3})|((((\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|((\d{2})(0[13578]|1[02])31)|((\d{2})02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\d{2}))(\d|X|x)$/, - message: "璇疯緭鍏ユ纭殑韬唤璇佸彿鐮�", - trigger: "blur", - }, - ], + }, }; }, watch: {}, created() { + this.serviceState = store.getters.serviceState; this.getList(); this.getConfigKey("sys.user.initPassword").then((response) => { this.initPassword = response.msg; @@ -738,7 +682,7 @@ /** 鏌ヨ闂ㄨ瘖闅忚鍒楄〃 */ getList() { this.loading = true; - listUser(this.addDateRange(this.topqueryParams, this.dateRange)).then( + getTaskservelist(this.topqueryParams).then( (response) => { this.userList = response.rows; this.total = response.total; diff --git a/src/views/followvisit/record/index.vue b/src/views/followvisit/record/index.vue index 9159b14..89eea43 100644 --- a/src/views/followvisit/record/index.vue +++ b/src/views/followvisit/record/index.vue @@ -133,20 +133,14 @@ @selection-change="handleSelectionChange" > <el-table-column type="selection" width="50" align="center" /> - <el-table-column - label="搴忓彿" - fixed - align="center" - key="userId" - prop="userId" - /> + <el-table-column label="搴忓彿" fixed align="center" key="id" prop="id" /> <el-table-column label="濮撳悕" fixed align="center" - key="types" - prop="types" + key="sendname" + prop="sendname" /> <el-table-column label="鐥呭巻鍙�" @@ -156,23 +150,13 @@ prop="userName" width="120" /> - <el-table-column - label="骞撮緞" - align="center" - key="nickName" - prop="nickName" - /> - <el-table-column - label="搴婂彿" - align="center" - key="nickName" - prop="nickName" - /> + <el-table-column label="骞撮緞" align="center" key="age" prop="age" /> + <el-table-column label="搴婂彿" align="center" key="badNo" prop="badNo" /> <el-table-column label="绉戝/鐥呭尯" align="center" - key="phonenumber" - prop="phonenumber" + key="deptname" + prop="deptname" width="120" > </el-table-column> @@ -180,41 +164,32 @@ <el-table-column label="鐤剧梾鍚嶇О" align="center" - key="topicnumber" - prop="topicnumber" + key="icdName" + prop="icdName" width="120" :show-overflow-tooltip="true" > - <template slot-scope="scope"> - <div>杞诲害楠ㄨ</div> - </template> </el-table-column> <el-table-column - label="瀹f暀鍐呭" + label="浠诲姟鍚嶇О" align="center" - key="topicnumberaa" - prop="topicnumberaa" + key="taskName" + prop="taskName" + width="120" + /> + + <el-table-column + label="闅忚鏂瑰紡锛堥渶璋冩暣鏍煎紡锛�" + align="center" + key="serviceform" + prop="serviceform" width="120" /> <el-table-column - label="瀹f暀鏉愭枡" + label="闅忚浜哄憳" align="center" - key="topicnumberaa" - prop="topicnumberaa" - width="120" - /> - <el-table-column - label="瀹f暀鏂瑰紡" - align="center" - key="topicnumberaa" - prop="topicnumberaa" - width="120" - /> - <el-table-column - label="瀹f暀浜哄憳" - align="center" - key="topicnumberaa" - prop="topicnumberaa" + key="operator" + prop="operator" width="120" /> @@ -222,47 +197,36 @@ label="灏辫瘖鏃堕棿" sortable align="center" - prop="createTime" + prop="admindate" width="160" > <template slot-scope="scope"> - <span>{{ parseTime(scope.row.createTime) }}</span> + <span>{{ parseTime(scope.row.admindate) }}</span> </template> </el-table-column> <el-table-column - label="瀹f暀鏃堕棿" + label="闅忚鏃堕棿" sortable align="center" - prop="createTime" + prop="finishtime" width="160" > <template slot-scope="scope"> - <span>{{ parseTime(scope.row.createTime) }}</span> - </template> - </el-table-column> - <el-table-column - label="鍥炲鏃堕棿" - sortable - align="center" - prop="createTime" - width="160" - > - <template slot-scope="scope"> - <span>{{ parseTime(scope.row.createTime) }}</span> + <span>{{ parseTime(scope.row.finishtime) }}</span> </template> </el-table-column> <el-table-column - label="閫氱煡鐘舵��" + label="闅忚鐘舵��" fixed="right" align="center" - key="topicnumber" - prop="topicnumber" + key="sendstate" + prop="sendstate" width="120" :show-overflow-tooltip="true" > <template slot-scope="scope"> - <div>鏈畬鎴�</div> + <dict-tag :options="serviceState" :value="scope.row.sendstate" /> </template> </el-table-column> <el-table-column @@ -362,14 +326,14 @@ <script> import { - listUser, - getUser, delUser, addUser, updateUser, resetUserPwd, changeUserStatus, } from "@/api/system/user"; +import { getTaskservelist } from "@/api/AiCentre/index"; +import store from "@/store"; import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; @@ -513,13 +477,10 @@ qystatus: "", btstatus: "", }, - // 鏌ヨ鍙傛暟 topqueryParams: { pageNum: 1, pageSize: 10, - userName: undefined, - tagid: undefined, - topic: undefined, + hospType: 2, }, propss: { multiple: true }, options: [], @@ -543,55 +504,13 @@ }, ], // 琛ㄥ崟鏍¢獙 - rules: { - userName: [ - { required: true, message: "鐢ㄦ埛鍚嶇О涓嶈兘涓虹┖", trigger: "blur" }, - { - min: 2, - max: 20, - message: "鐢ㄦ埛鍚嶇О闀垮害蹇呴』浠嬩簬 2 鍜� 20 涔嬮棿", - trigger: "blur", - }, - ], - nickName: [ - { required: true, message: "鐢ㄦ埛鏄电О涓嶈兘涓虹┖", trigger: "blur" }, - ], - password: [ - { required: true, message: "鐢ㄦ埛瀵嗙爜涓嶈兘涓虹┖", trigger: "blur" }, - { - min: 5, - max: 20, - message: "鐢ㄦ埛瀵嗙爜闀垮害蹇呴』浠嬩簬 5 鍜� 20 涔嬮棿", - trigger: "blur", - }, - ], - email: [ - { - type: "email", - message: "璇疯緭鍏ユ纭殑閭鍦板潃", - trigger: ["blur", "change"], - }, - ], - phonenumber: [ - { - pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, - message: "璇疯緭鍏ユ纭殑鎵嬫満鍙风爜", - trigger: "blur", - }, - ], - IDnumber: [ - { - pattern: - /^\d{6}((((((19|20)\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(((19|20)\d{2})(0[13578]|1[02])31)|((19|20)\d{2})02(0[1-9]|1\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\d{3})|((((\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|((\d{2})(0[13578]|1[02])31)|((\d{2})02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\d{2}))(\d|X|x)$/, - message: "璇疯緭鍏ユ纭殑韬唤璇佸彿鐮�", - trigger: "blur", - }, - ], - }, + rules: {}, + serviceState: [], }; }, watch: {}, created() { + this.serviceState = store.getters.serviceState; this.getList(); this.getConfigKey("sys.user.initPassword").then((response) => { this.initPassword = response.msg; @@ -607,13 +526,11 @@ /** 鏌ヨ闂ㄨ瘖闅忚鍒楄〃 */ getList() { this.loading = true; - listUser(this.addDateRange(this.topqueryParams, this.dateRange)).then( - (response) => { - this.userList = response.rows; - this.total = response.total; - this.loading = false; - } - ); + getTaskservelist(this.topqueryParams).then((response) => { + this.userList = response.rows; + this.total = response.total; + this.loading = false; + }); }, // 鏌ョ湅闂ㄨ瘖闅忚璇︽儏 Referencequestion(row) { @@ -714,7 +631,7 @@ handleAdd() { this.$router.push({ path: "/followvisit/particty", - query: { type: 1 }, + query: { type: 7 }, }); }, /** 淇敼鎸夐挳鎿嶄綔 */ diff --git a/src/views/patient/medtechnician/index.vue b/src/views/patient/medtechnician/index.vue index cff5b7a..106b242 100644 --- a/src/views/patient/medtechnician/index.vue +++ b/src/views/patient/medtechnician/index.vue @@ -714,7 +714,7 @@ handleAdd() { this.$router.push({ path: "/followvisit/particty", - query: { type: 1 }, + query: { type: 8 }, }); }, /** 淇敼鎸夐挳鎿嶄綔 */ diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue index d659f2a..db07b76 100644 --- a/src/views/patient/propaganda/particty.vue +++ b/src/views/patient/propaganda/particty.vue @@ -36,11 +36,31 @@ </div> <div class="jic-value"> <el-form ref="form" :model="form" label-width="105px"> - <el-form-item label="妯$増鍚嶇О锛�"> + <el-row :gutter="20"> + <el-col :span="12" + ><el-form-item label="浠诲姟鍚嶇О"> + <el-input + style="width: 220px" + v-model="form.taskName" + placeholder="璇疯緭鍏ヤ换鍔″悕绉�" + /> </el-form-item + ></el-col> + <el-col :span="12" + ><el-form-item label="妯$増鍚嶇О"> + <el-input + style="width: 220px" + :disabled="true" + v-model="form.templatename" + placeholder="璇峰湪涓嬪垪閫夋嫨" + /> </el-form-item + ></el-col> + </el-row> + + <el-form-item label="浠诲姟鎻忚堪"> <el-input - style="width: 220px" - v-model="form.templatename" - placeholder="璇峰湪涓嬪垪閫夋嫨" + type="textarea" + v-model="form.taskDesc" + placeholder="璇疯緭鍏ヤ换鍔℃弿杩�" /> </el-form-item> <el-form-item label="鍙戦�佽缃細" v-if="currenttype != 2"> @@ -145,12 +165,17 @@ v-show="showSearch" label-width="98px" > - <el-form-item label="瀹f暀涓婚" v-if="currenttype == 1"> + <el-form-item + label="瀹f暀涓婚" + v-if="currenttype == 1 || currenttype == 8" + > <el-input v-model="topqueryParams.name"></el-input> </el-form-item> <el-form-item label="闅忚鍚嶇О" - v-if="currenttype == 2 || currenttype == 3" + v-if=" + currenttype == 2 || currenttype == 3 || currenttype == 7 + " > <el-input v-model="topqueryParams.name" @@ -175,7 +200,7 @@ <el-form-item label="瀹f暀绫诲瀷" prop="status" - v-if="currenttype == 1" + v-if="currenttype == 1 || currenttype == 8" > <el-select v-model="topqueryParams.topic" @@ -211,7 +236,9 @@ <el-form-item label="闅忚绫诲瀷" prop="status" - v-if="currenttype == 2 || currenttype == 3" + v-if=" + currenttype == 2 || currenttype == 3 || currenttype == 7 + " > <el-select v-model="topqueryParams.topic" @@ -683,37 +710,37 @@ { label: "瀹f暀褰㈠紡", width: "", prop: "playType" }, { label: "閫傜敤鏂瑰紡", width: "", prop: "suitway" }, { label: "淇敼鏃ユ湡", width: "", prop: "uploadTime" }, - { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" }, + { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "updateBy" }, ], tableLabelmz: [ { label: "闅忚鍚嶇О", width: "", prop: "templateName" }, { label: "涓昏鍐呭", width: "", prop: "note" }, { label: "淇敼鏃ユ湡", width: "", prop: "updateTime" }, - { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" }, + { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "updateBy" }, ], tableLabelcy: [ { label: "闅忚鍚嶇О", width: "", prop: "templateName" }, { label: "闅忚璁″垝", width: "", prop: "impTemplate" }, { label: "淇敼鏃ユ湡", width: "", prop: "uploadTime" }, - { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" }, + { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "updateBy" }, ], tableLabelfz: [ { label: "閫氱煡鍚嶇О", width: "", prop: "templateName" }, { label: "閫氱煡妯$増", width: "", prop: "impTemplate" }, { label: "淇敼鏃ユ湡", width: "", prop: "uploadTime" }, - { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" }, + { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "updateBy" }, ], tableLabeltj: [ { label: "閫氱煡鍚嶇О", width: "", prop: "name" }, { label: "閫氱煡妯$増", width: "", prop: "impTemplate" }, { label: "淇敼鏃ユ湡", width: "", prop: "uploadTime" }, - { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" }, + { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "updateBy" }, ], tableLabelwj: [ { label: "闂嵎鍚嶇О", width: "", prop: "name" }, { label: "闂嵎妯$増", width: "", prop: "impTemplate" }, { label: "淇敼鏃ユ湡", width: "", prop: "uploadTime" }, - { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" }, + { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "updateBy" }, ], // 鍙橀噺 tableLabelvariable: [ @@ -869,53 +896,36 @@ }; this.currenttype = this.$route.query.type; console.log(this.currenttype, "1"); - if (this.currenttype == 1) { + if (this.currenttype == 1 || this.currenttype == 8) { + // 鍖绘妧瀹f暀锛屾櫘閫氬鏁� this.title = "瀹f暀鍐呭鍒楄〃"; this.tableLabel = this.tableLabelxj; this.checkboxlist = [ - "绾夸笅", - "瑙嗛", - "绾歌川", - "璇煶", - "鐭俊", - "寰俊鍏紬鍙�", - "寰俊灏忕▼搴�", - "鏀粯瀹�", - "浜岀淮鐮�", - "閽夐拤", + "绾夸笅锛堝彛澶村鏁欍�佺數瑙嗗鏁欍�佺焊璐級", + "绾夸笂锛堢煭淇�/閽夐拤鐨勬枃鏈�佸浘鏂囬摼鎺ワ級", ]; getlibrarylist(queryParams).then((response) => { this.userList = response.rows; this.total = response.total; }); - } else if (this.currenttype == 2) { + } else if ( + this.currenttype == 2 || + this.currenttype == 3 || + this.currenttype == 7 + ) { + // 鍑洪櫌銆侀棬璇娿�佷笓鐥呴殢璁� this.title = "闅忚鍐呭鍒楄〃"; this.tableLabel = this.tableLabelmz; - this.checkboxlist = ["绾夸笅", "绾歌川", "璇煶", "鐭俊", "寰俊鍏紬鍙�"]; + this.checkboxlist = ["绾夸笅", "AI璇煶澶栧懠", "浜哄伐鐢佃瘽"]; 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) { + } else if (this.currenttype == 4 || this.currenttype == 5) { + // 澶嶈瘖銆佷綋妫�閫氱煡 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 = ["绾歌川", "璇煶", "鐭俊", "寰俊鍏紬鍙�"]; + this.checkboxlist = ["绾夸笅", "AI璇煶澶栧懠", "浜哄伐鐢佃瘽", "鐭俊"]; getFollowuplist(queryParams).then((response) => { this.userList = response.rows; this.total = response.total; @@ -924,14 +934,8 @@ this.title = "闂嵎鍐呭鍒楄〃"; this.tableLabel = this.tableLabelwj; this.checkboxlist = [ - "绾夸笅", - "瑙嗛", - "绾歌川", - "璇煶", - "鐭俊", - "寰俊鍏紬鍙�", - "寰俊灏忕▼搴�", - "閽夐拤", + "绾夸笅锛堢焊璐級", + "绾夸笂锛堢煭淇�/閽夐拤鐨勬枃鏈�侀棶鍗烽摼鎺ワ級", ]; getQtemplatelist(queryParams).then((response) => { this.userList = response.rows; @@ -947,6 +951,7 @@ // 淇濆瓨 submitForm(formName) { this.form.serviceform = this.checkList.join(","); + this.form.type = this.currenttype; const filteredArray = this.variableList.filter( (item) => item.name !== "濮撳悕" && item.name !== "鐢佃瘽" && item.name !== "鍦板潃" @@ -969,27 +974,18 @@ this.$router.go(-1); } }); - // 鎻愪氦 - // this.$refs[formName].validate((valid, object) => { - // if (valid) { - // alert("submit!"); - // } else { - // console.log("error submit!!", object); - // return false; - // } - // }); }, // ----------------------琛ㄦ牸瀛愮粍浠朵簨浠� // 閫夋嫨妯$増 selectfn(row, type) { - console.log(row); - console.log(type); // 妯$増鎯呭喌涓嬭幏鍙栨ā鐗堜俊鎭� if (type == 1) { if ( this.currenttype == 2 || this.currenttype == 4 || - this.currenttype == 3 + this.currenttype == 3 || + currenttype == 5 || + currenttype == 7 ) { this.form.templatename = row.templateName; this.form.templateid = row.id; @@ -1170,10 +1166,12 @@ } this.form.sendTimeslot = combinedData; // 灞曠ず鏁版嵁涓存椂瀛樺偍鏃ユ湡銆佹棭銆佷腑銆佹櫄 + console.log(11); + console.log(this.time2, "this.time2"); this.form.sendlimitabegin = this.daytime.join(","); - this.form.sendlimitaend = this.time1.join(","); - this.form.sendlimitnbegin = this.time2.join(","); - this.form.sendlimitnend = this.time3.join(","); + if (this.time1) this.form.sendlimitaend = this.time1.join(","); + if (this.time2) this.form.sendlimitnbegin = this.time2.join(","); + if (this.time3) this.form.sendlimitnend = this.time3.join(","); console.log(combinedData, "combinedData"); }, }, @@ -1332,6 +1330,12 @@ font-size: 24px; } } +::v-deep.el-input.is-disabled .el-input__inner { + background-color: #f5f7fa; + border-color: #dfe4ed; + color: rgb(253, 66, 66); + cursor: not-allowed; +} ::v-deep.el-checkbox-group { span { font-size: 24px; diff --git a/src/views/repositoryai/intention/index.vue b/src/views/repositoryai/intention/index.vue index d3b3e30..4d48e97 100644 --- a/src/views/repositoryai/intention/index.vue +++ b/src/views/repositoryai/intention/index.vue @@ -473,7 +473,7 @@ v-for="index in mode" :key="index.value" :label="index.label" - :value="index.value" + :value="index.value" ></el-option> </el-select> </el-form-item> -- Gitblit v1.9.3