@@ -198,6 +214,7 @@
调账
编辑
删除
+ 确认凭证
@@ -231,6 +248,7 @@ import WorkGroupSetLabel from './modules/WorkGroupSetLabel'
import { formatMoney } from '../../utils/formatMoney'
import {YesOrNoEnums} from '@/enums/commonEnums'
import { MonthRangeMixin } from '../../mixins/MonthRangeMixins'
+import { getAction } from "../../api/manage";
// eslint-disable-next-line no-undef,no-unused-vars
const Base64 = require('js-base64').Base64
@@ -310,7 +328,9 @@ export default {
deleteBatch: '/project/payWorkingGroupSubitem/deleteBatch',
exportXlsUrl: '/project/payWorkingGroupSubitem/exportXls',
importExcelUrl: '/project/payWorkingGroupSubitem/importExcel',
- downTemplateUrl: '/project/payWorkingGroupSubitem/downloadExcelModel'
+ downTemplateUrl: '/project/payWorkingGroupSubitem/downloadExcelModel',
+ // todo 需要进行修改
+ confirmVoucher: '/project/payWorkingGroupSubitem/confirmVoucher'
},
columns: [
{
@@ -378,7 +398,24 @@ export default {
width: 80,
dataIndex: 'pack',
scopedSlots: { customRender: 'status-pack' }
- }, {
+ },
+ {
+ title: '确认凭证',
+ align: 'center',
+ fixed: 'right',
+ dataIndex: 'pack2',
+ width: 100,
+ scopedSlots: { customRender: 'status-pack' }
+ },
+ {
+ title: '审核',
+ align: 'center',
+ fixed: 'right',
+ dataIndex: 'registerCheckResult',
+ width: 100,
+ scopedSlots: { customRender: 'status-pack' }
+ },
+ {
title: '需要发票',
align: 'center',
fixed: 'right',
@@ -411,7 +448,7 @@ export default {
dataIndex: 'action',
align: 'center',
fixed: 'right',
- width: 180,
+ width: 220,
scopedSlots: { customRender: 'action' }
}
],
@@ -631,6 +668,32 @@ export default {
onDateChange: function (value, dateString) {
this.queryParam.estimatedArrivalStartDate = dateString[0]
this.queryParam.estimatedArrivalEndDate = dateString[1]
+ },
+ // 确认凭证
+ confirmVoucher(id) {
+ var that = this
+ this.$confirm({
+ title: '确认',
+ content: '确定要确认此条数据凭证吗?',
+ onOk: function () {
+ getAction(that.url.confirmVoucher, {id: id}).then((res) => {
+ if (res.success) {
+ that.$message.success(res.message)
+ // 判断当前删除的数据是否是最后一页的最后一条数据,如果是的话页码减一
+ if (that.ipagination.current > 1 && ((that.ipagination.current - 1) * that.ipagination.pageSize) + 1 === that.ipagination.total) {
+ that.ipagination.current -= 1
+ }
+ that.loadData()
+ } else {
+ if (res.message.indexOf('
') > -1) {
+ that.messageLineFeed('删除失败', res.message)
+ } else {
+ that.$message.warning(res.message)
+ }
+ }
+ })
+ }
+ })
}
// 2021 10 11 沟通后去掉了这个功能
// searchReset() {
diff --git a/src/views/projectManagement/WorkingGroupProjectManagement.vue b/src/views/projectManagement/WorkingGroupProjectManagement.vue
index 6666b4f..4e8cb11 100644
--- a/src/views/projectManagement/WorkingGroupProjectManagement.vue
+++ b/src/views/projectManagement/WorkingGroupProjectManagement.vue
@@ -48,6 +48,7 @@
新增
批量删除
批量新增成员单位
+ 全部文件导出