|
|
@ -156,7 +156,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import { listPage, cancellation } from '@/api/anruifinmanagement/fininvoiceapply' |
|
|
|
import { getOrgSidByPath, typeValues } from '@/api/jichuxinxi/dictcommons' |
|
|
|
import { getOrgSidByPath, typeValues, getButtonPermissions } from '@/api/jichuxinxi/dictcommons' |
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import ButtonBar from '@/components/ButtonBar' |
|
|
@ -243,7 +243,18 @@ export default { |
|
|
|
// this.getList() |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.$refs['btnbar'].setButtonList(this.btnList) |
|
|
|
getButtonPermissions({ userSid: window.sessionStorage.getItem('userSid'), url: this.$route.path, type: 0 }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
for (var i = 0; i < res.data.length; i++) { |
|
|
|
for (var k = 0; k < this.btnList.length; k++) { |
|
|
|
if (res.data[i].buttonId === this.btnList[k].btnKey) { |
|
|
|
this.btnList.splice(k, 1) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.$refs['btnbar'].setButtonList(this.btnList) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 搜索条件效果 |
|
|
@ -357,7 +368,7 @@ export default { |
|
|
|
} |
|
|
|
this.init() |
|
|
|
}, |
|
|
|
toEdit(row) { |
|
|
|
toEdit() { |
|
|
|
if (this.sids.length === 1) { |
|
|
|
if (this.nodeState_list.length > 0) { |
|
|
|
for (var i = 0; i < this.nodeState_list.length; i++) { |
|
|
@ -368,7 +379,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
this.viewState = 2 |
|
|
|
this.$refs['divAdd'].showEdit(row) |
|
|
|
this.$refs['divAdd'].showEdit(this.sids[0]) |
|
|
|
} else { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行编辑操作' }) |
|
|
|
return |
|
|
|