|
@@ -16,7 +16,7 @@
|
|
|
<ReceivableListApproval :approvalId="approvalId" v-if="showPage == 3" @close="handleClose" />
|
|
|
<ReceivableListDetail :approvalId="approvalId" :czType="czType" v-if="showPage == 4" @close="handleClose" />
|
|
|
</Popu>
|
|
|
- <print-preview ref="preView" @initPrint="handleInitPrint" @refreshList="handleRefreshList" />
|
|
|
+ <print-preview ref="preView" @initPrint="handleInitPrint" @refreshList="handleRefreshList" />
|
|
|
</template-page>
|
|
|
</template>
|
|
|
|
|
@@ -36,7 +36,8 @@ import {
|
|
|
getFinanceOtherReceAbandon,
|
|
|
financeOtherReceClose,
|
|
|
financeReceImportDataImport,
|
|
|
- financeOtherReceCancelApply
|
|
|
+ financeOtherReceCancelApply,
|
|
|
+ getFinanceOtherReceExamine
|
|
|
} from '@/api/finance/receivable_list'
|
|
|
import ReceivableListAdd from './components/receivable_list-add'
|
|
|
import ReceivableListApproval from './components/receivable_list-approval'
|
|
@@ -103,6 +104,82 @@ export default {
|
|
|
},
|
|
|
isRole: this.$checkBtnRole('del', this.$route.meta.roles)
|
|
|
}
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ {
|
|
|
+ name: '批量提审',
|
|
|
+ click: async () => {
|
|
|
+ if (this.recordSelected.length === 0) {
|
|
|
+ this.$message.error('请选择需要删除的数据')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let ids = this.recordSelected
|
|
|
+ .map(v => {
|
|
|
+ return v.id
|
|
|
+ })
|
|
|
+ .join(',')
|
|
|
+ await getFinanceOtherReceApply({ id: ids })
|
|
|
+ this.$message.success('提审成功')
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ {
|
|
|
+ name: '批量审批',
|
|
|
+ click: async () => {
|
|
|
+ if (this.recordSelected.length === 0) {
|
|
|
+ this.$message.error('请选择需要删除的数据')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let ids = this.recordSelected
|
|
|
+ .map(v => {
|
|
|
+ return v.id
|
|
|
+ })
|
|
|
+ .join(',')
|
|
|
+ this.$confirm('批量审批', '提示', {
|
|
|
+ confirmButtonText: '通过',
|
|
|
+ cancelButtonText: '驳回',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(async () => {
|
|
|
+ var loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: 'Loading',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ })
|
|
|
+ try {
|
|
|
+ await getFinanceOtherReceExamine({
|
|
|
+ id: ids,
|
|
|
+ examineStatus: 'OK'
|
|
|
+ })
|
|
|
+ this.$message.success('审核成功')
|
|
|
+ loading.close()
|
|
|
+ } catch (error) {
|
|
|
+ loading.close()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(async () => {
|
|
|
+ var loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: 'Loading',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ })
|
|
|
+ try {
|
|
|
+ await getFinanceOtherReceExamine({
|
|
|
+ id: ids,
|
|
|
+ examineStatus: 'FAIL'
|
|
|
+ })
|
|
|
+ this.$message.success('审核成功')
|
|
|
+ loading.close()
|
|
|
+ } catch (error) {
|
|
|
+ loading.close()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
]
|
|
|
],
|
|
|
[
|
|
@@ -122,7 +199,7 @@ export default {
|
|
|
render: this.importButton(financeReceImportDataImport)
|
|
|
}
|
|
|
]
|
|
|
- ],
|
|
|
+ ]
|
|
|
],
|
|
|
// 表格属性
|
|
|
tableAttributes: {
|
|
@@ -191,20 +268,26 @@ export default {
|
|
|
</el-button>
|
|
|
) : null}
|
|
|
{row.examineStatus == 'WAIT' && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
|
- <el-button type="text" size="mini" onClick={() => {
|
|
|
- this.$confirm('取消提审, 是否继续?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- financeOtherReceCancelApply({
|
|
|
- id: row.id
|
|
|
- }).then(_res=>{
|
|
|
- this.$message.success('取消成功')
|
|
|
- this.$refs.pageRef.refreshList()
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ size="mini"
|
|
|
+ onClick={() => {
|
|
|
+ this.$confirm('取消提审, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
- }).catch(() => {});
|
|
|
- }}>
|
|
|
+ .then(() => {
|
|
|
+ financeOtherReceCancelApply({
|
|
|
+ id: row.id
|
|
|
+ }).then(_res => {
|
|
|
+ this.$message.success('取消成功')
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {})
|
|
|
+ }}
|
|
|
+ >
|
|
|
取消提审
|
|
|
</el-button>
|
|
|
) : null}
|
|
@@ -224,18 +307,21 @@ export default {
|
|
|
</el-button>
|
|
|
) : null}
|
|
|
{row.examineStatus !== 'CLOSE' ? (
|
|
|
- <el-popconfirm title="关闭吗?" onConfirm={() => {
|
|
|
- financeOtherReceClose({
|
|
|
- id: row.id
|
|
|
- }).then(_res=>{
|
|
|
- this.$message.success('关闭成功')
|
|
|
- this.$refs.pageRef.refreshList()
|
|
|
- })
|
|
|
- }}>
|
|
|
- <el-button slot="reference" type="text" size="mini">
|
|
|
- 关闭
|
|
|
- </el-button>
|
|
|
- </el-popconfirm>
|
|
|
+ <el-popconfirm
|
|
|
+ title="关闭吗?"
|
|
|
+ onConfirm={() => {
|
|
|
+ financeOtherReceClose({
|
|
|
+ id: row.id
|
|
|
+ }).then(_res => {
|
|
|
+ this.$message.success('关闭成功')
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <el-button slot="reference" type="text" size="mini">
|
|
|
+ 关闭
|
|
|
+ </el-button>
|
|
|
+ </el-popconfirm>
|
|
|
) : null}
|
|
|
{
|
|
|
<el-button type="text" size="mini" onClick={() => this.detailFn(row.id, 'detail')}>
|