From e79da85247dc0d871c381786fcf7259944e7170b Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Mon, 17 Jun 2024 09:43:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8A=80=E5=B8=88=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/comment/comment.vue | 159 ++++++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) diff --git a/src/views/comment/comment.vue b/src/views/comment/comment.vue index 0a8c2d6..355c6c1 100644 --- a/src/views/comment/comment.vue +++ b/src/views/comment/comment.vue @@ -25,6 +25,8 @@ 刷新 + 新增 + @@ -174,6 +176,76 @@ 确 定 + + + + + + + + + 选择技师 + + + + + + + + + + + + + + + + + + + 师傅名称: + + + + 手机号: + + + 查询 + + + + + + + + + {{ scope.row.phone ? scope.row.phone : "未绑定" }} + + + + + 确认 + + + + + + + + + + @@ -185,6 +257,11 @@ size: 10, page: 1, goodsId: '', + artificerName: '', + phoneT: '', + choicenData: [], + jishipage:1, + jishisize:10, form: { commentId: '', reply: '' @@ -207,6 +284,16 @@ label: '差评' } ], + //新增内容 + saveForm:{ + userId: '', + artificerId: '', + orderId: '', + content: '', + score: '' + }, + dialogSaveVisible:false, + dialogChkjsVisible:false, formLabelWidth: '200px', tableDataLoading: false, dialogFormVisible: false, @@ -220,6 +307,74 @@ } }, methods: { + //新增 + handleAdd(){ + this.dialogSaveVisible = true; + this.saveForm = {}; + }, + //选择技师 + handleCheckJishi(){ + this.dialogChkjsVisible = true; + this.handleSelJishi(); + }, + //新增评论保存 + handelQueren(){ + this.$http({ + url: this.$http.adornUrl('takingComment/insertTaking'), + method: 'post', + params: this.$http.adornParams({ + 'page': 1, + 'limit': this.size, + 'artificerId': this.saveForm.artificerId, + 'content': this.saveForm.content, + 'score': this.saveForm.score + }) + }).then(({ data }) => { + this.dialogSaveVisible = false; + this.dataSelect(); + }) + }, + //技师查询 + handleSelJishi(){ + this.userId = this.$store.state.user.id; + this.$http({ + url: this.$http.adornUrl(`artificer/selectArtificerList`), + method: "get", + params: this.$http.adornParams({ + page: this.jishipage, + limit: this.jishisize, + artificerName: this.artificerName, + massageTypeId: "", + longitude: "", + latitude: "", + city: "", + classifyId: "", + phone: this.phoneT, + authentication: 2, + }), + }).then(({ data }) => { + this.tableDataLoading = false; + let returnData = data.data; + this.choicenData = returnData; + console.log(this.choicenData); + }); + }, + //技师确认选择 + handleJsqueren(record){ + this.saveForm.artificerId = record.artificerId; + this.saveForm.artificerName = record.artificerName; + this.dialogChkjsVisible = false; + }, + //技师列表更换页数 + handleSizeChange1(val) { + this.jishisize = val; + this.handleSelJishi(); + }, + //技师翻页 + handleCurrentChange1(val) { + this.jishipage = val; + this.handleSelJishi(); + }, // 返回上一级 prev() { this.$router.back() @@ -444,4 +599,8 @@