From 36d1334695a28fe6b49c1c7bb4bccb7f3ae5c443 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 02 七月 2025 10:29:07 +0800 Subject: [PATCH] 测试完成 --- src/views/followvisit/satisfaction/index.vue | 406 ++++++++++++++++++++-------------------------------------- 1 files changed, 140 insertions(+), 266 deletions(-) diff --git a/src/views/followvisit/satisfaction/index.vue b/src/views/followvisit/satisfaction/index.vue index 3b969de..e405d10 100644 --- a/src/views/followvisit/satisfaction/index.vue +++ b/src/views/followvisit/satisfaction/index.vue @@ -14,10 +14,10 @@ <el-form-item label="浠诲姟鍚嶇О"> <el-input v-model="topqueryParams.name"></el-input> </el-form-item> - <el-form-item label="瀹℃牳浜�"> + <el-form-item label="鍙戣捣浜�"> <el-input v-model="topqueryParams.name"></el-input> </el-form-item> - <el-form-item label="瀹℃牳鏃堕棿"> + <el-form-item label="鍙戣捣鏃堕棿"> <el-date-picker v-model="dateRange" style="width: 240px" @@ -28,7 +28,7 @@ end-placeholder="缁撴潫鏃ユ湡" ></el-date-picker> </el-form-item> - <el-form-item label="闅忚绫诲瀷" prop="status"> + <el-form-item label="璋冩煡绫诲瀷" prop="status"> <el-select v-model="topqueryParams.topic" placeholder="璇烽�夋嫨"> <el-option v-for="item in topicoptions" @@ -39,18 +39,7 @@ </el-option> </el-select> </el-form-item> - <el-form-item label="妯$増" prop="status"> - <el-select v-model="topqueryParams.topic" placeholder="璇烽�夋嫨"> - <el-option - v-for="item in topicoptions" - :key="item.value" - :label="item.label" - :value="item.value" - > - </el-option> - </el-select> - </el-form-item> - <el-form-item label="闂ㄨ瘖闅忚鐘舵��" prop="status"> + <el-form-item label="璋冩煡鐘舵��" prop="status"> <el-select v-model="topqueryParams.topic" placeholder="璇烽�夋嫨"> <el-option v-for="item in topicoptions" @@ -77,27 +66,15 @@ <el-divider></el-divider> <el-row :gutter="10" class="mb8"> <el-col :span="1.5"> - <el-button - type="primary" - plain - icon="el-icon-plus" - size="medium" - @click="handleAdd" - v-hasPermi="['system:user:add']" - >鏂板</el-button - > - </el-col> - <el-col :span="1.5"> - <el-button - type="success" - plain - icon="el-icon-edit" - size="medium" - :disabled="single" - @click="handleUpdate" - v-hasPermi="['system:user:edit']" - >淇敼</el-button - > + <el-select v-model="tasktopic" placeholder="璇烽�夋嫨鏂板绫诲瀷"> + <el-option + v-for="item in taskoptions" + :key="item.value" + :label="item.label" + :value="item.value" + > + </el-option> + </el-select> </el-col> <el-col :span="1.5"> <el-button @@ -111,7 +88,7 @@ >鍒犻櫎</el-button > </el-col> - <el-col :span="19"> + <el-col :span="1.5"> <div class="documentf"> <div class="document"> <el-button @@ -142,131 +119,113 @@ <el-table-column label="搴忓彿" align="center" - key="userId" - prop="userId" + key="id" + prop="id" /> <el-table-column - label="浠诲姟鍚嶇О" + label="鐥呭尯" align="center" sortable - key="userName" - prop="userName" + key="hospitaldistrictname" + prop="hospitaldistrictname" :show-overflow-tooltip="true" /> <el-table-column - label="鏈嶅姟妯℃澘" + label="绉戝" + width="100" align="center" - key="types" - prop="types" - /> - <el-table-column - label="鍒涘缓鏃ユ湡" - align="center" - key="nickName" - prop="nickName" - /> - <el-table-column - label="寰呮墽琛�/鎬绘暟" - align="center" - key="phonenumber" - prop="phonenumber" - width="120" - > - <template slot-scope="scope"> - <span style="margin-left: 10px" - >{{ scope.row.date }}/{{ scope.row.data }}</span - > - </template> - </el-table-column> - - <el-table-column - label="鎵ц鐘舵��" - align="center" - key="topicnumber" - prop="topicnumber" - width="120" + sortable + key="deptname" + prop="deptname" :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="age" + prop="age" + width="120" + /> + <el-table-column + label="鑱旂郴鐢佃瘽" + align="center" + key="phone" + prop="phone" + /> + <el-table-column + label="鐪熷疄鎬�(20)" + align="center" + key="authenticity" + prop="authenticity" sortable width="120" - :show-overflow-tooltip="true" + /> + <el-table-column + label="涓�鍛ㄥ唴瀹屾垚(20)" + align="center" + key="weekFinish" + prop="weekFinish" + sortable + width="120" + /> + <el-table-column + label="瑙勮寖鎬�(10)" + align="center" + key="standard" + prop="standard" + sortable + /> + <el-table-column + label="鍙婃椂鎬�(10)" + align="center" + key="timeliness" + prop="timeliness" + sortable + width="120" + /> + <el-table-column + label="瀹f暀鎯呭喌(10)" + align="center" + key="library" + prop="library" + sortable + width="120" + /> + <el-table-column + label="鐜婊℃剰搴�(10)" + align="center" + key="environment" + prop="environment" + sortable + width="120" /> <el-table-column - label="瀹℃牳鏃堕棿" - sortable + label="鍖荤敓婊℃剰搴�(10)" align="center" - prop="createTime" - width="160" - > - <template slot-scope="scope"> - <span>{{ parseTime(scope.row.createTime) }}</span> - </template> - </el-table-column> - <el-table-column - label="鎿嶄綔" - align="center" + key="doctorSatisfaction" + prop="doctorSatisfaction" width="120" - class-name="small-padding fixed-width" - > - <template slot-scope="scope"> - <el-button - size="medium" - type="text" - @click="handleUpdate(scope.row)" - v-hasPermi="['system:user:edit']" - ><span class="button-zx" - ><i class="el-icon-s-promotion"></i>寮�濮嬫墽琛�</span - ></el-button - > - </template> - </el-table-column> + sortable + + /> <el-table-column - label="浠诲姟璇︽儏" + label="鎶ゅ+婊℃剰搴�(10)" align="center" - width="200" - class-name="small-padding fixed-width" - > - <template slot-scope="scope"> - <el-button - size="medium" - type="text" - @click="handleUpdate(scope.row)" - v-hasPermi="['system:user:edit']" - ><span class="button-xq" - ><i class="el-icon-s-data"></i>璇︽儏</span - ></el-button - > - <el-button - size="medium" - type="text" - @click="handleUpdate(scope.row)" - v-hasPermi="['system:user:edit']" - ><span class="button-bb" - ><i class="el-icon-s-order"></i>鎶ヨ〃</span - ></el-button - > - <el-button - size="medium" - type="text" - @click="handleUpdate(scope.row)" - v-hasPermi="['system:user:edit']" - ><span class="button-sc" - ><i class="el-icon-delete"></i>鍒犻櫎</span - ></el-button - > - </template> - </el-table-column> + key="nurseSatisfaction" + prop="nurseSatisfaction" + width="120" + sortable + + /> + <el-table-column + label="鎬诲垎" + align="center" + key="total" + prop="total" + sortable + /> </el-table> <pagination @@ -277,7 +236,7 @@ @pagination="getList" /> </el-row> - <!-- 娣诲姞鎴栦慨鏀归棬璇婇殢璁垮璇濇 --> + <!-- 娣诲姞鎴栦慨鏀瑰奖鍍忛殢璁垮璇濇 --> <el-dialog :title="title" :visible.sync="addalteropen" @@ -320,7 +279,7 @@ </el-row> <el-row :gutter="20"> <el-col :span="24"> - <el-form-item label="闂ㄨ瘖闅忚瑕佹眰"> + <el-form-item label="褰卞儚闅忚瑕佹眰"> <el-input type="textarea" v-model="form.desc"></el-input> </el-form-item> </el-col> @@ -336,14 +295,11 @@ <script> import { - listUser, - getUser, - delUser, - addUser, - updateUser, - resetUserPwd, + listsatisfaction, + delsatisfaction, + updatesatisfaction, changeUserStatus, -} from "@/api/system/user"; +} from "@/api/AiCentre/index"; import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; @@ -368,7 +324,7 @@ // 鐢ㄦ埛琛ㄦ牸鏁版嵁 userList: null, // 寮瑰嚭灞傛爣棰� - title: "鏂板闂ㄨ瘖闅忚", + title: "鏂板褰卞儚闅忚", // 鏄惁鏄剧ず淇敼銆佹坊鍔犲脊鍑哄眰 addalteropen: false, // 閮ㄩ棬鍚嶇О @@ -379,18 +335,33 @@ dateRange: [], // 宀椾綅閫夐」 postOptions: [], + taskoptions: [ + { + value: "1", + label: "闂ㄨ瘖鐥呬汉", + }, + { + value: "2", + label: "鍑洪櫌鐥呬汉", + }, + { + value: "3", + label: "鍖绘姢浜哄憳", + }, + ], + tasktopic: null, //鏂板绫诲瀷 // 瑙掕壊閫夐」 roleOptions: [], dynamicTags: ["閫夐」涓�", "閫夐」浜�", "閫夐」涓�"], //閫夐」 inputVisible: false, inputValue: "", - previewVisible: false, //闂ㄨ瘖闅忚棰勮寮规 + previewVisible: false, //褰卞儚闅忚棰勮寮规 radio: "", radios: [], - previewtype: 2, //棰勮闂ㄨ瘖闅忚绫诲瀷 + previewtype: 2, //棰勮褰卞儚闅忚绫诲瀷 total: 0, // 鎬绘潯鏁� - ImportQuantity: 999, //瀵奸棬璇婇殢璁挎暟閲� - //棰勮闂ㄨ瘖闅忚淇℃伅 + ImportQuantity: 999, //瀵煎奖鍍忛殢璁挎暟閲� + //棰勮褰卞儚闅忚淇℃伅 previewvalue: { username: "杩欎釜鍖荤敓瀵逛綘鎬庝箞鏍�", }, @@ -398,56 +369,6 @@ list: [], loading: false, states: [ - "Alabama", - "Alaska", - "Arizona", - "Arkansas", - "California", - "Colorado", - "Connecticut", - "Delaware", - "Florida", - "Georgia", - "Hawaii", - "Idaho", - "Illinois", - "Indiana", - "Iowa", - "Kansas", - "Kentucky", - "Louisiana", - "Maine", - "Maryland", - "Massachusetts", - "Michigan", - "Minnesota", - "Mississippi", - "Missouri", - "Montana", - "Nebraska", - "Nevada", - "New Hampshire", - "New Jersey", - "New Mexico", - "New York", - "North Carolina", - "North Dakota", - "Ohio", - "Oklahoma", - "Oregon", - "Pennsylvania", - "Rhode Island", - "South Carolina", - "South Dakota", - "Tennessee", - "Texas", - "Utah", - "Vermont", - "Virginia", - "Washington", - "West Virginia", - "Wisconsin", - "Wyoming", ], pickerOptions: { disabledDate(time) { @@ -578,10 +499,10 @@ }); }, methods: { - /** 鏌ヨ闂ㄨ瘖闅忚鍒楄〃 */ + /** 鏌ヨ褰卞儚闅忚鍒楄〃 */ getList() { this.loading = true; - listUser(this.addDateRange(this.topqueryParams, this.dateRange)).then( + listsatisfaction(this.topqueryParams).then( (response) => { this.userList = response.rows; this.total = response.total; @@ -589,7 +510,7 @@ } ); }, - // 鏌ョ湅闂ㄨ瘖闅忚璇︽儏 + // 鏌ョ湅褰卞儚闅忚璇︽儏 Referencequestion(row) { this.previewVisible = true; }, @@ -606,21 +527,6 @@ } else { this.options = []; } - }, - // 闂ㄨ瘖闅忚鐘舵�佷慨鏀� - handleStatusChange(row) { - let text = row.status === "0" ? "鍚敤" : "鍋滅敤"; - this.$modal - .confirm('纭瑕�"' + text + '""' + row.userName + '"鐢ㄦ埛鍚楋紵') - .then(function () { - return changeUserStatus(row.userId, row.status); - }) - .then(() => { - this.$modal.msgSuccess(text + "鎴愬姛"); - }) - .catch(function () { - row.status = row.status === "0" ? "1" : "0"; - }); }, // 鍙栨秷鎸夐挳 cancel() { @@ -686,45 +592,19 @@ }, /** 鏂板鎸夐挳鎿嶄綔 */ handleAdd() { - this.reset(); - this.addalteropen = true; - // getUser().then((response) => { - // this.postOptions = response.posts; - // this.roleOptions = response.roles; - // this.title = "鏂板闂ㄨ瘖闅忚"; - // this.form.password = this.initPassword; - // }); + // this.reset(); + // this.addalteropen = true; + this.$router.push({ + path: "/Intelligentcenter/satisfaction/particulars", + query: { type: this.tasktopic }, + }); + }, /** 淇敼鎸夐挳鎿嶄綔 */ handleUpdate(row) { this.reset(); const userId = row.userId || this.ids; - getUser(userId).then((response) => { - this.form = response.data; - this.postOptions = response.posts; - this.roleOptions = response.roles; - this.$set(this.form, "postIds", response.postIds); - this.$set(this.form, "roleIds", response.roleIds); - this.addalteropen = true; - this.title = "淇敼鐢ㄦ埛"; - this.form.password = ""; - }); - }, - /** 閲嶇疆瀵嗙爜鎸夐挳鎿嶄綔 */ - handleResetPwd(row) { - this.$prompt('璇疯緭鍏�"' + row.userName + '"鐨勬柊瀵嗙爜', "鎻愮ず", { - confirmButtonText: "纭畾", - cancelButtonText: "鍙栨秷", - closeOnClickModal: false, - inputPattern: /^.{5,20}$/, - inputErrorMessage: "鐢ㄦ埛瀵嗙爜闀垮害蹇呴』浠嬩簬 5 鍜� 20 涔嬮棿", - }) - .then(({ value }) => { - resetUserPwd(row.userId, value).then((response) => { - this.$modal.msgSuccess("淇敼鎴愬姛锛屾柊瀵嗙爜鏄細" + value); - }); - }) - .catch(() => {}); + }, /** 鎻愪氦鎸夐挳 */ @@ -732,14 +612,8 @@ this.$refs["form"].validate((valid) => { if (valid) { if (this.form.userId != undefined) { - updateUser(this.form).then((response) => { + updatesatisfaction(this.form).then((response) => { this.$modal.msgSuccess("淇敼鎴愬姛"); - this.open = false; - this.getList(); - }); - } else { - addUser(this.form).then((response) => { - this.$modal.msgSuccess("鏂板鎴愬姛"); this.open = false; this.getList(); }); @@ -753,7 +627,7 @@ this.$modal .confirm('鏄惁纭鍒犻櫎鐢ㄦ埛缂栧彿涓�"' + userIds + '"鐨勬暟鎹」锛�') .then(function () { - return delUser(userIds); + return delsatisfaction(userIds); }) .then(() => { this.getList(); @@ -764,7 +638,7 @@ /** 瀵煎嚭鎸夐挳鎿嶄綔 */ handleExport() { this.download( - "system/user/export", + "smartor/satisfaction/export", { ...this.topqueryParams, }, -- Gitblit v1.9.3