Browse Source

(*)数据消费审批修改

master
peng.peng 1 year ago
parent
commit
c1b283775b
  1. 13
      web/client/src/sections/resourceConsumption/containers/approve.js

13
web/client/src/sections/resourceConsumption/containers/approve.js

@ -30,14 +30,17 @@ function Approve({ loading, clientHeight, actions, dispatch, user }) {
const obj = { const obj = {
approveState: tabsKey == 'stay' ? "审批中" : '已审批', approveState: tabsKey == 'stay' ? "审批中" : '已审批',
...formData, ...data, ...formData, ...data,
approveId: (tabsKey == 'stay' && user?.username != 'SuperAdmin') ? user?.id : null, // approveId: (tabsKey == 'stay' && user?.username != 'SuperAdmin') ? user?.id : null,
} }
if (tabsKey == 'stay') { if (user?.username != 'SuperAdmin') {
obj.orgId = user?.orgId; if (tabsKey == 'stay') {
} else { obj.orgId = user?.orgId;
obj.applyById = user?.id; } else {
obj.approveId = user?.id;
}
} }
dispatch(resourceConsumption.getApproveList(obj)).then(res => { dispatch(resourceConsumption.getApproveList(obj)).then(res => {
if (res.success) { if (res.success) {
setProTableList(res.payload.data) setProTableList(res.payload.data)

Loading…
Cancel
Save