|
|
|
@ -42,6 +42,7 @@ |
|
|
|
import { |
|
|
|
addJiangLi, |
|
|
|
selectJiangLi, |
|
|
|
JiangLiList, |
|
|
|
closeJiangLi |
|
|
|
} from "@/api/app"; |
|
|
|
export default { |
|
|
|
@ -53,13 +54,10 @@ |
|
|
|
regionId:JSON.parse(this.getStore("user")).departmentId |
|
|
|
}, |
|
|
|
searchForm: { |
|
|
|
shopId:'', |
|
|
|
headUserId:'', |
|
|
|
status:'', |
|
|
|
productName:'', |
|
|
|
isFace:'', |
|
|
|
pageNumber: 1, |
|
|
|
regionId:JSON.parse(this.getStore("user")).departmentId, |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 10, |
|
|
|
dealingsWay:'配送排名奖励' |
|
|
|
}, |
|
|
|
columns: [{ |
|
|
|
type: "index", |
|
|
|
@ -67,26 +65,58 @@ |
|
|
|
align: "center", |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: "时间", |
|
|
|
key: "creatTime", |
|
|
|
title: "类型", |
|
|
|
key: "linkType", |
|
|
|
align: "center", |
|
|
|
render: (h, params) => { |
|
|
|
let re = "" |
|
|
|
if (params.row.linkType == 0) { |
|
|
|
re = "用户"; |
|
|
|
} else if (params.row.type == 1) { |
|
|
|
re = "配送员"; |
|
|
|
} |
|
|
|
return h( |
|
|
|
"div", |
|
|
|
re |
|
|
|
); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: "交易方式/附言", |
|
|
|
key: "dealingsWay", |
|
|
|
align: "center", |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: "名次", |
|
|
|
key: "orderNumber", |
|
|
|
title: "金额", |
|
|
|
key: "amount", |
|
|
|
align: "center", |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: "奖励金额", |
|
|
|
key: "freeAmount", |
|
|
|
title: "交易时间", |
|
|
|
key: "dealingsTime", |
|
|
|
align: "center", |
|
|
|
} |
|
|
|
], |
|
|
|
data:[], |
|
|
|
total: 0, |
|
|
|
}; |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
init() { |
|
|
|
this.getDataList(); |
|
|
|
this.getJiangLiList(); |
|
|
|
}, |
|
|
|
getJiangLiList(){ |
|
|
|
JiangLiList(this.searchForm).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.data = res.result |
|
|
|
this.total = res.result.total; |
|
|
|
if (this.data.length == 0 && this.searchForm.pageNum > 1) { |
|
|
|
this.searchForm.pageNum -= 1; |
|
|
|
this.getJiangLiList(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
getDataList() { |
|
|
|
selectJiangLi({ |
|
|
|
@ -111,9 +141,18 @@ |
|
|
|
if (res.success) { |
|
|
|
this.$Message.success("操作成功"); |
|
|
|
this.getDataList() |
|
|
|
this.getJiangLiList(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
changePage(v) { |
|
|
|
this.searchForm.pageNum = v; |
|
|
|
this.getJiangLiList(); |
|
|
|
}, |
|
|
|
changePageSize(v) { |
|
|
|
this.searchForm.pageSize = v; |
|
|
|
this.getJiangLiList(); |
|
|
|
}, |
|
|
|
add(){ |
|
|
|
let rules = { |
|
|
|
orderNum:"", |
|
|
|
|