Commit 6d625904 by zhangxw

订单审批添加场景参数

1 parent 04ee604b
...@@ -138,6 +138,7 @@ Page({ ...@@ -138,6 +138,7 @@ Page({
getList() { getList() {
let { pageNum, nothing, filterObj, sellerName, endStr, startStr } = this.data let { pageNum, nothing, filterObj, sellerName, endStr, startStr } = this.data
let userInfo = wx.$util.getUserInfo()
if (nothing) return if (nothing) return
wx.$util.showLoading() wx.$util.showLoading()
let params = { let params = {
...@@ -147,7 +148,8 @@ Page({ ...@@ -147,7 +148,8 @@ Page({
pageNum, pageNum,
pageSize: 10, pageSize: 10,
applyStartDateStr: startStr, applyStartDateStr: startStr,
applyEndDateStr: endStr applyEndDateStr: endStr,
sceneType: userInfo?.sceneType
} }
api.getOrderApplyList(params).then(res => { api.getOrderApplyList(params).then(res => {
wx.$util.hideLoading() wx.$util.hideLoading()
......
...@@ -299,8 +299,9 @@ Page({ ...@@ -299,8 +299,9 @@ Page({
// 获取订单待审核角标数量 // 获取订单待审核角标数量
getWaitAudit() { getWaitAudit() {
let { compensationMenus } = this.data let { compensationMenus } = this.data
let userInfo = wx.$util.getUserInfo()
let index = compensationMenus.findIndex(e => e.name == '订单审核') let index = compensationMenus.findIndex(e => e.name == '订单审核')
getOrderWaitForAudit({}).then(res => { getOrderWaitForAudit({sceneType: userInfo.sceneType }).then(res => {
let { code, data } = res let { code, data } = res
if (code == 0) { if (code == 0) {
this.setData({ this.setData({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!