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();