Showing
1 changed file
with
3 additions
and
2 deletions
| ... | ... | @@ -163,10 +163,10 @@ export default { |
| 163 | 163 | return [ |
| 164 | 164 | { ...this.buttons[0], visible: d && this.$auth.hasPermi('procure-manage:domestic-trade:review') }, |
| 165 | 165 | { ...this.buttons[1], visible: s === 'AUDIT' && e && this.$auth.hasPermi('procure-manage:domestic-trade:approve') }, |
| 166 | - { ...this.buttons[2], visible: (s === 'REFUSE' || !s) && this.$auth.hasPermi('procure-manage:domestic-trade:modify') }, | |
| 166 | + { ...this.buttons[2], visible: (s === 'REFUSE' || !s) && this.investigatorId === this.form.createById && this.$auth.hasPermi('procure-manage:domestic-trade:modify') }, | |
| 167 | 167 | // { ...this.buttons[3], visible: s === 'PASS' && this.$auth.hasPermi('procure-manage:domestic-trade:change') }, |
| 168 | 168 | { ...this.buttons[3], visible: s === 'REFUSE' && this.$auth.hasPermi('procure-manage:domestic-trade:cancel') }, |
| 169 | - { ...this.buttons[4], visible: (s === 'REFUSE' || !s) && this.$auth.hasPermi('procure-manage:domestic-trade:submit') }, | |
| 169 | + { ...this.buttons[4], visible: (s === 'REFUSE' || !s) && this.investigatorId === this.form.createById && this.$auth.hasPermi('procure-manage:domestic-trade:submit') }, | |
| 170 | 170 | ] |
| 171 | 171 | }, |
| 172 | 172 | companyNatureOptions() { |
| ... | ... | @@ -220,6 +220,7 @@ export default { |
| 220 | 220 | created() { |
| 221 | 221 | this.loadDicData() |
| 222 | 222 | this.loadPurchaseDeptOptions() |
| 223 | + this.getUserInfo() | |
| 223 | 224 | }, |
| 224 | 225 | onShow() { |
| 225 | 226 | const options = (this.$route && this.$route.query) ? this.$route.query : {} | ... | ... |