diff --git a/src/views/applyList/technician.vue b/src/views/applyList/technician.vue index d83f04d..05e4b21 100644 --- a/src/views/applyList/technician.vue +++ b/src/views/applyList/technician.vue @@ -219,10 +219,10 @@ >上线 休息 - + - + @@ -1802,6 +1809,23 @@ + + + + + + + + + + + + + + @@ -1899,6 +1923,7 @@ export default { dialogFormVisible9: false, dialogFormVisible10: false, dialogFormVisible11: false, + dialogSaveVisible: false, homeData: [], homeData1: [ { @@ -2080,9 +2105,41 @@ export default { materialId: "", materialPackageClassifyId: "", getMaterialPackageDataOfRow: {}, + + //新增评论内容 + saveForm:{ + massageTypeId: '', + content: '', + score: '' + }, + plmassageTypeId:'', }; }, methods: { + handleAddpl(record){ + this.dialogSaveVisible = true; + this.plmassageTypeId = record.massageTypeId; + this.saveForm = { + massageTypeId: '', + content: '', + score: '' + } + }, + //新增评论保存 + handelQueren(){ + this.$http({ + url: this.$http.adornUrl('takingComment/insertTaking'), + method: 'post', + params: this.$http.adornParams({ + 'content': this.saveForm.content, + 'score': this.saveForm.score, + 'massageTypeId': this.plmassageTypeId, + }) + }).then(({ data }) => { + this.dialogSaveVisible = false; + this.classSelect(); + }) + }, //翻译字典(手动) getDictLabel(val){ var list = this.materialPackageType; diff --git a/src/views/orderCenter/orderCenter.vue b/src/views/orderCenter/orderCenter.vue index 5360f87..dda62f3 100644 --- a/src/views/orderCenter/orderCenter.vue +++ b/src/views/orderCenter/orderCenter.vue @@ -135,12 +135,12 @@ @@ -309,6 +309,9 @@ 服务中 师傅出发 师傅到达 + 待确认 + 待补单 + 挂单 @@ -334,6 +337,11 @@ @click="deletes(scope.row)" style="margin:5px;">删除 部分退款 + + 转单 + + @@ -477,6 +485,50 @@ 确 定 + + +
+
+ + 师傅名称: +    + + + 手机号: +    + + 查询 +
+
+ + + + + + + + + + + +
+ + +
+
+
@@ -871,7 +923,13 @@ }, ], times:'', - bili:0 + bili:0, + choicenData: [], + artificerVisible:false, + jishipage:1, + jishisize:10, + phoneT:'', + jszdOrderId:'', } }, methods: { @@ -931,7 +989,83 @@ magNotice() { this.dialogFormVisible2 = true }, + // 转单 + handleZhuandan(record){ + this.jszdOrderId = record.ordersId; + this.artificerVisible = true; + this.handleSelJishi(); + }, + //技师确认选择 + handleJsqueren(record){ + this.artificerVisible = false; + this.$http({ + url: this.$http.adornUrl(`artificer/jszd`), + method: "get", + params: this.$http.adornParams({ + artificerId: record.artificerId, + orderId: this.jszdOrderId, + }), + }).then(({ data }) => { + console.log(`🚀 ~ handleJsqueren ~ data:`, data) + if(data.code==200){ + this.$message({ + message: '转单成功', + type: 'success', + duration: 1500, + onClose: () => { + this.dataSelect() + } + }) + }else{ + this.$message({ + message: data.msg, + type: 'warning', + duration: 1500, + onClose: () => { + } + }) + } + this.dataSelect(); + }); + + }, + + //技师列表更换页数 + handleSizeChange1(val) { + this.jishisize = val; + this.handleSelJishi(); + }, + //技师翻页 + handleCurrentChange1(val) { + this.jishipage = val; + this.handleSelJishi(); + }, + //技师查询 + 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); + }); + }, // 获取数据列表 dataSelect() { var endTime=this.endTime