From c0eee3e079815ed3cc02d0567b6211618f786216 Mon Sep 17 00:00:00 2001
From: yangjun <1173114630@qq.com>
Date: Thu, 13 Jun 2024 16:11:19 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8A=80=E5=B8=88=E6=96=B0?=
=?UTF-8?q?=E5=A2=9E=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/applyList/technician.vue | 161 ++++++++++++++++++++++++++++-
1 file changed, 160 insertions(+), 1 deletion(-)
diff --git a/src/views/applyList/technician.vue b/src/views/applyList/technician.vue
index ca81e72..89aa17d 100644
--- a/src/views/applyList/technician.vue
+++ b/src/views/applyList/technician.vue
@@ -121,6 +121,20 @@
>
+
+
+
+ {{ getVipText(scope.row.technicianType) }}
+
+ 修改
+
+
+
+
+ 类型:
+
+
+
+
+
+
+
@@ -1962,6 +2017,7 @@ export default {
userId1: "",
classTypeList: [],
+ vipTypeList: [],
// 加钟项目
dialogFormVisibleJz: false,
fwData: [],
@@ -1978,8 +2034,10 @@ export default {
tableDataXyf: {},
dialogFormVisible2: false,
+ tecTypeVisible: false,
titleBl: "抽成比例",
proportion: "",
+ tecTypeValue: "",
phoneT: "",
MaterialpackageStatus: false,
MaterialpackageList: [],
@@ -4014,12 +4072,52 @@ export default {
}
});
},
+ // 是否明星技师
+ changeR(val, artificerId) {
+ this.$http({
+ url: this.$http.adornUrl("artificer/updateArtificers"),
+ method: "post",
+ // params: this.$http.adornParams({
+ data: this.$http.adornData({
+ artificerId: artificerId,
+ isStart: val,
+ }),
+ }).then(({ data }) => {
+ if (data.code == 0) {
+ this.$message({
+ message: "操作成功",
+ type: "success",
+ duration: 1500,
+ onClose: () => {
+ this.InformationSelect();
+ },
+ });
+ } else {
+ this.$message({
+ message: data.msg,
+ type: "warning",
+ duration: 1500,
+ onClose: () => {
+ this.InformationSelect();
+ },
+ });
+ }
+ });
+ },
+ //修改提成比例
xiugai(row) {
this.titleBl = "抽成比例";
this.proportion = row.rate;
this.artificerId = row.artificerId;
this.dialogFormVisible2 = true;
},
+ //修改技师类型
+ xiugaiTecType(row) {
+ this.titleBl = "技师类型";
+ this.tecTypeValue = row.technicianType;
+ this.artificerId = row.artificerId;
+ this.tecTypeVisible = true;
+ },
StairNoticeTo2() {
this.$http({
url: this.$http.adornUrl("artificer/updateArtificers"),
@@ -4051,6 +4149,38 @@ export default {
}
});
},
+ //修改技师类型
+ StairNoticeTo3() {
+ this.$http({
+ url: this.$http.adornUrl("artificer/updateArtificers"),
+ method: "post",
+ // params: this.$http.adornParams({
+ data: this.$http.adornData({
+ artificerId: this.artificerId,
+ technicianType: this.tecTypeValue,
+ }),
+ }).then(({ data }) => {
+ console.log("data", data);
+ if (data.code == 0) {
+ this.$message({
+ message: "修改成功",
+ type: "success",
+ duration: 1500,
+ onClose: () => {
+ this.tecTypeVisible = false;
+ this.InformationSelect();
+ },
+ });
+ } else {
+ this.$message({
+ message: data.msg,
+ type: "warning",
+ duration: 1500,
+ onClose: () => {},
+ });
+ }
+ });
+ },
// 取消师傅
quxiaoJs(row) {
this.$confirm(
@@ -4091,8 +4221,37 @@ export default {
});
});
},
+ getVipText(val){
+ var text = "";
+ var vipTypeList = this.vipTypeList;
+ for(var i=0;i {
+ this.vipTypeList = data.data.list
+ })
+ },
},
mounted() {
+ this.vipSelect();
this.InformationSelect();
this.homeSelect();
this.fwSelect();