[update] 到账开票审核

This commit is contained in:
zhaoxiao
2021-12-16 16:57:12 +08:00
parent f2149082cb
commit 420084217b
7 changed files with 427 additions and 8 deletions
+49
View File
@@ -0,0 +1,49 @@
<template>
<j-modal
:title="title"
:width="width"
:visible="visible"
:confirmLoading="confirmLoading"
switchFullscreen
@cancel="handleCancel"
cancelText="关闭">
<img :src="imgSrc" class="preview-img">
<template slot="footer">
<a-button @click="handleCancel">关闭</a-button>
</template>
</j-modal>
</template>
<script>
export default {
name: 'PreviewImgModal',
data() {
return {
title: '图片',
width: 800,
visible: false,
confirmLoading: false,
// 图片id
imgId: ''
}
},
computed: {
imgSrc() {
return `${ window._CONFIG['domianURL'] }/sys/common/download/${ this.imgId }`
}
},
methods: {
handleCancel() {
this.visible = false
}
}
}
</script>
<style scoped>
.preview-img {
width: 100%;
}
</style>
+51 -2
View File
@@ -61,10 +61,18 @@
<script>
import { JeroListMixin } from '@/mixins/JeroListMixin'
import { getAction } from '../../api/manage'
export default {
name: 'BusinessSelect',
mixins: [JeroListMixin],
props: {
// 理事会时需要传2,默认为0
memberNature: {
type: Number,
default: null
}
},
data() {
return {
title: '选择企业',
@@ -99,6 +107,47 @@ export default {
}
},
methods: {
/**
* 重写获取数据方法,理事会需要传参
* @param arg
*/
loadData(arg) {
console.log(this.memberNature)
if (!this.url.list) {
this.$message.error('请设置url.list属性!')
return
}
//加载数据 若传入参数1则加载第一页的内容
if (arg === 1) {
this.ipagination.current = 1
}
let params = this.getQueryParams()//查询条件
// 是理事会单位则需要传参
if (this.memberNature && this.memberNature === 2) {
params.memberNature = this.memberNature
}
this.loading = true
getAction(this.url.list, params).then((res) => {
if (res.success) {
//update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
this.dataSource = res.result.records || res.result
if (res.result.total) {
this.ipagination.total = res.result.total
//清空列表选中
this.onClearSelected()
} else {
this.ipagination.total = 0
}
//update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
}
if (res.code === 510) {
this.$message.warning(res.message)
}
this.loading = false
}).finally(() => {
this.loading = false
})
},
handleOk() {
this.$emit('ok', this.selectedCompany)
this.close()
@@ -119,13 +168,13 @@ export default {
* */
searchReset() {
// 调用无权限接口
if(this.isLimit){
if (this.isLimit) {
this.url.list = '/company/payCompanyManagement/listMeeting'
}
this.lastQueryParam = {}
this.queryParam = {}
this.loadData(1)
},
}
}
}
</script>