Browse Source

完善银行账号管理--切换机构功能相关

zhanglei
yunuo970428 2 years ago
parent
commit
7e3ef37f64
  1. 26
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finaccountnum/finaccountnum.vue
  2. 11
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finaccountnum/finaccountnumAdd.vue

26
anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finaccountnum/finaccountnum.vue

@ -64,7 +64,7 @@ import FinaccountnumInfo from '@/views/anruifinmanagement/finaccountnum/finaccou
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import { getPathSidByUserSid, typeValues } from '@/api/jichuxinxi/dictcommons'
import { typeValues } from '@/api/jichuxinxi/dictcommons'
import { listPage, delBySids } from '@/api/anruifinmanagement/finaccountnum'
export default {
@ -108,7 +108,6 @@ export default {
sids: [],
receiptBank_list: [],
depositBank_list: [],
useOrg: '', // sid
// -----------
tableKey: 0,
list: [],
@ -117,7 +116,8 @@ export default {
params: {
dueBankKey: '',
depositBankKey: '',
userSid: ''
userSid: '',
orgPath: ''
},
current: 1,
size: 5,
@ -133,7 +133,6 @@ export default {
created() {
this.getList()
this.getType()
this.getPathSid()
},
methods: {
resetState() {
@ -176,14 +175,6 @@ export default {
}
})
},
getPathSid() {
const userSid = window.sessionStorage.getItem('userSid')
getPathSidByUserSid({userSid: userSid}).then((res) => {
if (res.success) {
this.useOrg = res.data
}
})
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
@ -194,9 +185,10 @@ export default {
getList() {
this.listLoading = true
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
listPage(this.listQuery).then((response) => {
this.listLoading = false
if (response.code === '200' && response.data && response.data.total > 0) {
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
@ -216,7 +208,8 @@ export default {
params: {
dueBankKey: '',
depositBankKey: '',
userSid: ''
userSid: '',
orgPath: ''
},
current: 1,
size: 5
@ -240,7 +233,6 @@ export default {
// ID
doDel() {
if (this.sids.length > 0) {
const _this = this
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
@ -256,8 +248,8 @@ export default {
delBySids(this.sids).then(resp => {
if (resp.success) {
loading.close()
_this.$message({ type: 'success', message: resp.msg, showClose: true })
_this.getList()
this.$message({ type: 'success', message: resp.msg, showClose: true })
this.getList()
} else {
loading.close()
}

11
anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finaccountnum/finaccountnumAdd.vue

@ -115,7 +115,7 @@
</template>
<script>
import { getPathSidByUserSid, typeValues, getListOrg } from '@/api/jichuxinxi/dictcommons'
import { getOrgSidByPath, typeValues, getListOrg } from '@/api/jichuxinxi/dictcommons'
import { fetchDetailsBySid, save } from '@/api/anruifinmanagement/finaccountnum'
export default {
@ -169,9 +169,8 @@ export default {
})
},
getPathSid() {
const userSid = window.sessionStorage.getItem('userSid')
getPathSidByUserSid({ userSid: userSid }).then((res) => {
if (res.code === '200') {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.temp.useOrgSid = res.data
const choosetItem = this.org_list.filter((item) => item.sid === this.temp.useOrgSid)
this.temp.useOrgName = choosetItem[0].name
@ -197,19 +196,17 @@ export default {
this.viewState = '【新增】公司开户行信息'
this.getType()
this.getOrg()
// this.getPathSid()
},
showEdit(sid) {
this.dialogStatus = 'edit'
this.viewState = '【编辑】公司开户行信息'
fetchDetailsBySid(sid).then((response) => {
if (response.code === '200') {
if (response.success) {
this.temp = response.data
}
})
this.getType()
this.getOrg()
// this.getPathSid()
},
handleCreate() {
this.$refs['dataForm'].validate((valid) => {

Loading…
Cancel
Save