|
|
@ -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() |
|
|
|
} |
|
|
|