Commit 39b4212d by 王志慧

fixed

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