diff --git a/src/views/applyList/technician.vue b/src/views/applyList/technician.vue index 3f7f6bf..acc98c4 100644 --- a/src/views/applyList/technician.vue +++ b/src/views/applyList/technician.vue @@ -92,7 +92,7 @@ fixed="left" > - + + + + @@ -97,7 +209,7 @@ method: 'false', tableDataLoading: true, homeData: {}, - + choicenData: [], userId: '', @@ -107,7 +219,7 @@ statusId: 1, quillOption: quillConfig, - + // x新的 indentState: 0, //任务状态 info: { @@ -118,11 +230,27 @@ }, startTime: '', endTime: '', - + fwData:[], classifyId:'', artificerName:'', descType:'1', + + jfDetailArtificerId: '', + jfDetailArtificerName: '', + jfDetailClassify: '', + jfDetailType: '', + jfDetailIntegral: 0, + jfDetailRemarks: '', + jfDetailStartTime: '', + jfDetailEndTime: '', + jfDetailPage: 1, + jfDetailLimit: 10, + jfDetailData: {}, + jfDetailTableDataLoading: false, + dialogJfDetailListFormVisible: false, + dialogJfDetail: false, + dictData:[{id:1,value:'在线时长'},{id:2,value:'充值'},{id:3,value:'业绩'},{id:4,value:'系统调整'}], } }, methods: { @@ -166,7 +294,7 @@ this.page = val this.homeSelect() }, - + // 获取社区数据列表 homeSelect() { this.tableDataLoading = true @@ -262,6 +390,112 @@ this.fwData = returnData }) }, + showDictValue(data, datas){ + const dictItem = datas.find(item => data === item.id); + return dictItem ? dictItem.value : ''; + }, + showJfDetails(row){ + this.jfDetailArtificerId=row.artificerId; + this.dialogJfDetailListFormVisible = true; + this.selectJfDetails(); + }, + selectJfDetails(){ + this.jfDetailTableDataLoading = true; + this.$http({ + url: this.$http.adornUrl('artificer/getJfDetailList'), + method: 'get', + params: this.$http.adornParams({ + 'artificerId' : this.jfDetailArtificerId, + 'classify': this.jfDetailClassify, + 'startTime': this.jfDetailStartTime, + 'endTime': this.jfDetailEndTime, + 'page': this.jfDetailPage, + 'limit': this.jfDetailLimit, + }) + }).then(({ data }) => { + this.jfDetailTableDataLoading = false + this.jfDetailData = data.data + }) + }, + cleanJfDetails(){ + this.jfDetailClassify=''; + this.jfDetailStartTime=''; + this.jfDetailEndTime=''; + this.jfDetailPage=1; + this.jfDetailLimit=10; + this.selectJfDetails(); + }, + //分页 + handleJfSizeChange(val) { + this.jfDetailLimit = val; + this.selectJfDetails(); + }, + + //翻页 + handleJfCurrentChange(val) { + this.jfDetailPage = val; + this.selectJfDetails(); + }, + showInsertJfDetail(row){ + this.jfDetailArtificerId=row.artificerId; + this.jfDetailArtificerName=row.artificerName; + this.jfDetailType=''; + this.jfDetailIntegral=0; + this.jfDetailRemarks=''; + this.dialogJfDetail = true; + }, + insertJfDetail(){ + if (this.jfDetailType == "") { + this.$notify({ + title: "提示", + duration: 1800, + message: "请选择型", + type: "warning", + }); + return; + } + if (this.jfDetailIntegral == "") { + this.$notify({ + title: "提示", + duration: 1800, + message: "请填写积分", + type: "warning", + }); + return; + } + this.$http({ + url: this.$http.adornUrl("artificer/insertJfDetail"), + method: "post", + params: this.$http.adornParams({ + artificerId: this.jfDetailArtificerId, + artificerName: this.jfDetailArtificerName, + type: this.jfDetailType, + integral: this.jfDetailIntegral, + remarks : "系统调整积分:"+this.jfDetailRemarks, + }), + }).then(({data}) => { + if (data.code == 0) { + this.$message({ + message: "修改成功", + type: "success", + duration: 1500, + onClose: () => { + this.homeSelect(); + }, + }); + this.dialogJfDetail = false; + } else { + this.$message({ + message: data.msg, + type: "warning", + duration: 1500, + onClose: () => { + }, + }); + } + }); + }, + }, mounted() { this.homeSelect() diff --git a/src/views/riderTop/riderTop.vue b/src/views/riderTop/riderTop.vue index abe6ec0..76aed33 100644 --- a/src/views/riderTop/riderTop.vue +++ b/src/views/riderTop/riderTop.vue @@ -2,17 +2,30 @@
- 项目类型: - - - + 排序类型: + + +   
- 项目名称: - -    + 排序字段: + + + + + + + + +    +
+
+ 技师状态: + + + +   
开始时间: @@ -48,76 +61,148 @@ - - - + - + + + + + + -
- +
+ + +
+ 类型: + + + +    +
+
+ 开始时间: + +     +
+
+ 结束时间: + + +
+ 查询 + + 重置 + + + + + + + + + + + + + + +
+ +
+
+ + + +
+ 修改类型: + + 增加 + 减少 + +
+
+ 积分: + +
+
+ 备注: + + +
+ +
+