|
...
|
...
|
@@ -271,20 +271,20 @@ export default { |
|
271
|
271
|
const e = this.detail.showExamine || false
|
|
272
|
272
|
const f = this.detail.standardShowExamine || false
|
|
273
|
273
|
return [
|
|
274
|
|
- { ...this.buttons[0], visible: (s === 'DRAFT') }, //编辑
|
|
275
|
|
- { ...this.buttons[1], visible: (s === 'DRAFT') }, //删除
|
|
276
|
|
- { ...this.buttons[2], visible: (s === 'FORMAL' && !l) }, //锁规
|
|
277
|
|
- { ...this.buttons[3], visible: (s === 'FORMAL' && !l) }, //锁规延期申请
|
|
278
|
|
- { ...this.buttons[4], visible: ((s === 'DRAFT' || s === 'FORMAL') && a !== 'AUDIT' && a !== 'PASS') }, //上传正式合同附件
|
|
279
|
|
- { ...this.buttons[5], visible: (s === 'STANDARD' && a !== 'AUDIT' && a !== 'PASS') }, //上传正式合同附件
|
|
280
|
|
- { ...this.buttons[6], visible: (s === 'STANDARD' && t !== 'AUDIT' && t !== 'PASS') }, //上传标准合同附件
|
|
281
|
|
- { ...this.buttons[7], visible: (s === 'FORMAL' && e && a === 'AUDIT') }, //审核正式合同
|
|
282
|
|
- { ...this.buttons[8], visible: (s === 'STANDARD' && e && a === 'AUDIT') }, //审核正式合同
|
|
283
|
|
- { ...this.buttons[9], visible: (s === 'STANDARD' && f && t === 'AUDIT') }, //审核标准合同
|
|
284
|
|
- { ...this.buttons[10], visible: (s === 'FORMAL' && a) }, //正式合同审核详情
|
|
285
|
|
- { ...this.buttons[11], visible: (s === 'STANDARD' && a) }, //正式合同审核详情
|
|
286
|
|
- { ...this.buttons[12], visible: (s === 'STANDARD' && t) }, //标准合同审核详情
|
|
287
|
|
- { ...this.buttons[13], visible: (s === 'STANDARD') }, //上传双方盖章合同附件
|
|
|
274
|
+ { ...this.buttons[0], visible: (s === 'DRAFT' && this.$auth.hasPermi('contract-manage:foreign-trade-unlocked-contract:modify')) }, //编辑
|
|
|
275
|
+ { ...this.buttons[1], visible: (s === 'DRAFT' && this.$auth.hasPermi('contract-manage:foreign-trade-unlocked-contract:delete')) }, //删除
|
|
|
276
|
+ { ...this.buttons[2], visible: (s === 'FORMAL' && !l && this.$auth.hasPermi('contract-manage:foreign-trade-unlocked-contract:lock')) }, //锁规
|
|
|
277
|
+ { ...this.buttons[3], visible: (s === 'FORMAL' && !l && this.$auth.hasPermi('contract-manage:foreign-trade-unlocked-contract:lock-apply')) }, //锁规延期申请
|
|
|
278
|
+ { ...this.buttons[4], visible: ((s === 'DRAFT' || s === 'FORMAL') && a !== 'AUDIT' && a !== 'PASS' && this.$auth.hasPermi('contract-manage:foreign-trade-unlocked-contract:upload')) }, //上传正式合同附件
|
|
|
279
|
+ { ...this.buttons[5], visible: (s === 'STANDARD' && a !== 'AUDIT' && a !== 'PASS' && this.$auth.hasPermi('contract-manage:foreign-trade-unlocked-contract:upload')) }, //上传正式合同附件
|
|
|
280
|
+ { ...this.buttons[6], visible: (s === 'STANDARD' && t !== 'AUDIT' && t !== 'PASS' && this.$auth.hasPermi('contract-manage:foreign-trade-unlocked-contract:standard-upload')) }, //上传标准合同附件
|
|
|
281
|
+ { ...this.buttons[7], visible: (s === 'FORMAL' && e && a === 'AUDIT' && this.$auth.hasPermi('contract-manage:foreign-trade-unlocked-contract:approve')) }, //审核正式合同
|
|
|
282
|
+ { ...this.buttons[8], visible: (s === 'STANDARD' && e && a === 'AUDIT' && this.$auth.hasPermi('contract-manage:foreign-trade-unlocked-contract:approve')) }, //审核正式合同
|
|
|
283
|
+ { ...this.buttons[9], visible: (s === 'STANDARD' && f && t === 'AUDIT' && this.$auth.hasPermi('contract-manage:foreign-trade-unlocked-contract:standard-approve')) }, //审核标准合同
|
|
|
284
|
+ { ...this.buttons[10], visible: (s === 'FORMAL' && a && this.$auth.hasPermi('contract-manage:foreign-trade-unlocked-contract:review')) }, //正式合同审核详情
|
|
|
285
|
+ { ...this.buttons[11], visible: (s === 'STANDARD' && a && this.$auth.hasPermi('contract-manage:foreign-trade-unlocked-contract:review')) }, //正式合同审核详情
|
|
|
286
|
+ { ...this.buttons[12], visible: (s === 'STANDARD' && t && this.$auth.hasPermi('contract-manage:foreign-trade-unlocked-contract:standard-review')) }, //标准合同审核详情
|
|
|
287
|
+ { ...this.buttons[13], visible: (s === 'STANDARD' && this.$auth.hasPermi('contract-manage:foreign-trade-unlcoked-contract:upload-seal')) }, //上传双方盖章合同附件
|
|
288
|
288
|
]
|
|
289
|
289
|
}
|
|
290
|
290
|
},
|
...
|
...
|
|