|
...
|
...
|
@@ -252,18 +252,18 @@ export default { |
|
252
|
252
|
const e = this.detail.showExamine || false
|
|
253
|
253
|
const f = this.detail.standardShowExamine || false
|
|
254
|
254
|
return [
|
|
255
|
|
- { ...this.buttons[0], visible: (s === 'DRAFT') },
|
|
256
|
|
- { ...this.buttons[1], visible: (s === 'DRAFT') },
|
|
257
|
|
- { ...this.buttons[2], visible: (s === 'FORMAL' && !l) },
|
|
258
|
|
- { ...this.buttons[3], visible: ((s === 'DRAFT' || s === 'FORMAL') && t !== 'AUDIT' && t !== 'PASS') },
|
|
259
|
|
- { ...this.buttons[4], visible: (s === 'STANDARD' && t !== 'AUDIT' && t !== 'PASS') },
|
|
260
|
|
- { ...this.buttons[5], visible: (s === 'STANDARD' && a !== 'AUDIT' && a !== 'PASS') },
|
|
261
|
|
- { ...this.buttons[6], visible: (s === 'FORMAL' && e && t === 'AUDIT') },
|
|
262
|
|
- { ...this.buttons[7], visible: (s === 'STANDARD' && e && t === 'AUDIT') },
|
|
263
|
|
- { ...this.buttons[8], visible: (s === 'STANDARD' && f && a === 'AUDIT') },
|
|
264
|
|
- { ...this.buttons[9], visible: (s === 'FORMAL' && t) },
|
|
265
|
|
- { ...this.buttons[10], visible: (s === 'STANDARD' && t ) },
|
|
266
|
|
- { ...this.buttons[11], visible: (s === 'STANDARD' && a ) },
|
|
|
255
|
+ { ...this.buttons[0], visible: (s === 'DRAFT' && this.$auth.hasPermi('contract-manage:distribution-inventory-contract:modify')) },
|
|
|
256
|
+ { ...this.buttons[1], visible: (s === 'DRAFT' && this.$auth.hasPermi('contract-manage:distribution-inventory-contract:delete')) },
|
|
|
257
|
+ { ...this.buttons[2], visible: (s === 'FORMAL' && !l && this.$auth.hasPermi('contract-manage:distribution-inventory-contract:lock')) },
|
|
|
258
|
+ { ...this.buttons[3], visible: ((s === 'DRAFT' || s === 'FORMAL') && t !== 'AUDIT' && t !== 'PASS' && this.$auth.hasPermi('contract-manage:distribution-inventory-contract:upload')) },
|
|
|
259
|
+ { ...this.buttons[4], visible: (s === 'STANDARD' && t !== 'AUDIT' && t !== 'PASS' && this.$auth.hasPermi('contract-manage:distribution-inventory-contract:upload')) },
|
|
|
260
|
+ { ...this.buttons[5], visible: (s === 'STANDARD' && a !== 'AUDIT' && a !== 'PASS' && this.$auth.hasPermi('contract-manage:distribution-inventory-contract:standard-upload')) },
|
|
|
261
|
+ { ...this.buttons[6], visible: (s === 'FORMAL' && e && t === 'AUDIT' && this.$auth.hasPermi('contract-manage:distribution-inventory-contract:approve')) },
|
|
|
262
|
+ { ...this.buttons[7], visible: (s === 'STANDARD' && e && t === 'AUDIT' && this.$auth.hasPermi('contract-manage:distribution-inventory-contract:approve')) },
|
|
|
263
|
+ { ...this.buttons[8], visible: (s === 'STANDARD' && f && a === 'AUDIT' && this.$auth.hasPermi('contract-manage:distribution-inventory-contract:restandard-approveview')) },
|
|
|
264
|
+ { ...this.buttons[9], visible: (s === 'FORMAL' && t && this.$auth.hasPermi('contract-manage:distribution-inventory-contract:review')) },
|
|
|
265
|
+ { ...this.buttons[10], visible: (s === 'STANDARD' && t && this.$auth.hasPermi('contract-manage:distribution-inventory-contract:review')) },
|
|
|
266
|
+ { ...this.buttons[11], visible: (s === 'STANDARD' && a && this.$auth.hasPermi('contract-manage:distribution-inventory-contract:standard-review')) },
|
|
267
|
267
|
]
|
|
268
|
268
|
}
|
|
269
|
269
|
},
|
...
|
...
|
|