|
...
|
...
|
@@ -265,19 +265,19 @@ export default { |
|
265
|
265
|
const e = this.detail.showExamine || false
|
|
266
|
266
|
const f = this.detail.standardShowExamine || false
|
|
267
|
267
|
return [
|
|
268
|
|
- { ...this.buttons[0], visible: (s === 'DRAFT') }, //编辑
|
|
269
|
|
- { ...this.buttons[1], visible: (s === 'DRAFT') }, //删除
|
|
270
|
|
- { ...this.buttons[2], visible: (s === 'FORMAL' && !l) }, //锁价
|
|
271
|
|
- { ...this.buttons[3], visible: ((s === 'DRAFT' || s === 'FORMAL') && t !== 'AUDIT' && t !== 'PASS') },
|
|
272
|
|
- { ...this.buttons[4], visible: (s === 'STANDARD' && t !== 'AUDIT' && t !== 'PASS') },
|
|
273
|
|
- { ...this.buttons[5], visible: (s === 'STANDARD' && a !== 'AUDIT' && a !== 'PASS') },
|
|
274
|
|
- { ...this.buttons[6], visible: (s === 'FORMAL' && e && t === 'AUDIT') },
|
|
275
|
|
- { ...this.buttons[7], visible: (s === 'STANDARD' && e && t === 'AUDIT') },
|
|
276
|
|
- { ...this.buttons[8], visible: (s === 'STANDARD' && f && a === 'AUDIT') },
|
|
277
|
|
- { ...this.buttons[9], visible: (s === 'FORMAL' && t) },
|
|
278
|
|
- { ...this.buttons[10], visible: (s === 'STANDARD' && t) },
|
|
279
|
|
- { ...this.buttons[11], visible: (s === 'STANDARD' && a) },
|
|
280
|
|
- { ...this.buttons[12], visible: (s === 'STANDARD') },
|
|
|
268
|
+ { ...this.buttons[0], visible: (s === 'DRAFT' && this.$auth.hasPermi('contract-manage:foreign-trade-inventory-contract:modify')) }, //编辑
|
|
|
269
|
+ { ...this.buttons[1], visible: (s === 'DRAFT' && this.$auth.hasPermi('contract-manage:foreign-trade-inventory-contract:delete')) }, //删除
|
|
|
270
|
+ { ...this.buttons[2], visible: (s === 'FORMAL' && !l && this.$auth.hasPermi('contract-manage:foreign-trade-inventory-contract:lock')) }, //锁价
|
|
|
271
|
+ { ...this.buttons[3], visible: ((s === 'DRAFT' || s === 'FORMAL') && t !== 'AUDIT' && t !== 'PASS' && this.$auth.hasPermi('contract-manage:foreign-trade-inventory-contract:upload')) },
|
|
|
272
|
+ { ...this.buttons[4], visible: (s === 'STANDARD' && t !== 'AUDIT' && t !== 'PASS' && this.$auth.hasPermi('contract-manage:foreign-trade-inventory-contract:upload')) },
|
|
|
273
|
+ { ...this.buttons[5], visible: (s === 'STANDARD' && a !== 'AUDIT' && a !== 'PASS' && this.$auth.hasPermi('contract-manage:foreign-trade-inventory-contract:standard-upload')) },
|
|
|
274
|
+ { ...this.buttons[6], visible: (s === 'FORMAL' && e && t === 'AUDIT' && this.$auth.hasPermi('contract-manage:foreign-trade-inventory-contract:approve')) },
|
|
|
275
|
+ { ...this.buttons[7], visible: (s === 'STANDARD' && e && t === 'AUDIT' && this.$auth.hasPermi('contract-manage:foreign-trade-inventory-contract:approve')) },
|
|
|
276
|
+ { ...this.buttons[8], visible: (s === 'STANDARD' && f && a === 'AUDIT' && this.$auth.hasPermi('contract-manage:foreign-trade-inventory-contract:standard-approve')) },
|
|
|
277
|
+ { ...this.buttons[9], visible: (s === 'FORMAL' && t && this.$auth.hasPermi('contract-manage:foreign-trade-inventory-contract:review')) },
|
|
|
278
|
+ { ...this.buttons[10], visible: (s === 'STANDARD' && t && this.$auth.hasPermi('contract-manage:foreign-trade-inventory-contract:review')) },
|
|
|
279
|
+ { ...this.buttons[11], visible: (s === 'STANDARD' && a && this.$auth.hasPermi('contract-manage:foreign-trade-inventory-contract:standard-review')) },
|
|
|
280
|
+ { ...this.buttons[12], visible: (s === 'STANDARD' && this.$auth.hasPermi('contract-manage:foreign-trade-inventory-contract:upload-seal')) },
|
|
281
|
281
|
]
|
|
282
|
282
|
}
|
|
283
|
283
|
},
|
...
|
...
|
|