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