【update】-工作组相关功能开发

This commit is contained in:
fengchenchen
2024-07-03 18:05:55 +08:00
parent e98ff8ddae
commit 622e384104
4 changed files with 132 additions and 10 deletions
@@ -83,6 +83,22 @@
/>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="是否审核" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-dict-select-tag v-model="queryParam.checkPaymentStatus"
placeholder="请选择是否审核"
dictCode="yn"
/>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="是否确认凭证" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-dict-select-tag v-model="queryParam.confirmVoucher"
placeholder="请选择是否确认凭证"
dictCode="yn"
/>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<span class="table-page-search-submitButtons">
@@ -198,6 +214,7 @@
<a @click="handleEditAccount(record)" :disabled="isAllowEditAccount(record)" v-has="'workingGroupMember:editAccount'">调账</a>
<a @click="handleEdit(record)" v-has="'workingGroupMember:edit'">编辑</a>
<a @click="handleDelete(record.id)" v-has="'workingGroupMember:delete'">删除</a>
<a @click="confirmVoucher(record.id)" v-has="'workingGroupMember:confirmVoucher'">确认凭证</a>
</span>
</a-table>
</div>
@@ -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('<br/>') > -1) {
that.messageLineFeed('删除失败', res.message)
} else {
that.$message.warning(res.message)
}
}
})
}
})
}
// 2021 10 11 沟通后去掉了这个功能
// searchReset() {