|
@@ -408,6 +408,37 @@ export default {
|
|
|
this.$set(this.form, 'postId', res.data.data.postId.split(',')[0]);
|
|
|
this.$set(this.form, 'postName', res.data.data.postName.split(',')[0]);
|
|
|
this.loginUser = res.data.data.realName;
|
|
|
+ if (this.form.status == 2){
|
|
|
+ if (this.roleName.indexOf('财务') !== -1){
|
|
|
+ this.optionTwo.column.map(e => {
|
|
|
+ this.$set(e, 'disabled', false)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.tableOption.column.map(e => {
|
|
|
+ if (this.roleName.indexOf('财务') !== -1){
|
|
|
+ if (e.prop == 'subjectName'){
|
|
|
+ this.$set(e, 'disabled', false)
|
|
|
+ }else if(e.prop == 'accountingItemsName'){
|
|
|
+ this.$set(e, 'disabled', false)
|
|
|
+ }else {
|
|
|
+ this.$set(e, 'disabled', true)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ this.optionTwo.column.map(e => {
|
|
|
+ this.$set(e, 'disabled', true)
|
|
|
+ })
|
|
|
+ this.tableOption.column.map(e => {
|
|
|
+ if (e.prop == 'subjectName'){
|
|
|
+ this.$set(e, 'disabled', true)
|
|
|
+ }else if(e.prop == 'accountingItemsName'){
|
|
|
+ this.$set(e, 'disabled', true)
|
|
|
+ }else {
|
|
|
+ this.$set(e, 'disabled', false)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
getDeptTree().then(res => {
|
|
|
this.dic = res.data.data
|