Commit 39b4212d by 王志慧

fixed

1 parent d2bf2791
......@@ -218,12 +218,11 @@ export default {
})
this.confirmDialogVisible = false
} else {
this.$message.error("新增失败")
}
})
.catch((err) => {
this.$message.error(err)
// console.error(err)
// this.$message.error(err)
})
},
......
......@@ -221,18 +221,17 @@ export default {
}
},
created() {
this.detailObj = this.$route.query
this.staffId = this.$route.query.staffId
this.getOptionsList()
},
methods: {
//新增抵扣
addDeduction() {
console.log(this.detailObj)
this.$router.push({
name: "deduction",
query: {
userId: this.detailObj.staffUuid,
merchantId: this.detailObj.merchantId
userId: this.topPointsInfo.staffUuid,
merchantId: this.topPointsInfo.merchantId
}
})
},
......@@ -252,7 +251,7 @@ export default {
beforeSearchFn() {
return new Promise((resolve) => {
this.searchFormSearch = deepClone(this.searchForm)
this.searchFormSearch.staffId = this.detailObj.staffId
this.searchFormSearch.staffId = this.staffId
if (
this.searchFormSearch.rewardTime &&
this.searchFormSearch.rewardTime.length
......@@ -338,7 +337,7 @@ export default {
...this.searchFormSearch,
currentPage: 1,
pageSize: 9999,
staffId: this.detailObj.staffId
staffId: this.staffId
}
// 根据staffId查询积分明细列表数据作为顶部积分信息
getScorePage(params).then((res) => {
......
......@@ -156,7 +156,9 @@ export default {
handleDetail(data) {
this.$router.push({
name: "pointDetail",
query: data
query: {
staffId:data.staffId
}
})
},
getOptionsList() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!