【fix:bug88082】-工作组确认凭证修改成查看凭证

This commit is contained in:
fengchenchen
2024-08-06 20:38:08 +08:00
parent f4ca6b3611
commit 3e998dc80c
2 changed files with 281 additions and 7 deletions
@@ -98,9 +98,9 @@
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="是否确认凭证" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-form-item label="是否查看凭证" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-dict-select-tag v-model="queryParam.confirmVoucher"
placeholder="请选择是否确认凭证"
placeholder="请选择是否查看凭证"
dictCode="yn"
/>
</a-form-item>
@@ -220,7 +220,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-show="!record.confirmVoucher" v-has="'workingGroupMember:confirmVoucher'">确认凭证</a>
<a @click="lookVoucher(record)" v-show="!!record.paymentStatus" v-has="'workingGroupMember:confirmVoucher'">查看凭证</a>
</span>
</a-table>
</div>
@@ -234,6 +234,8 @@
<email-error-msg-modal ref="emailError"></email-error-msg-modal>
<work-group-set-label ref="workGroupSetLabel" @ok="modalFormOk"></work-group-set-label>
<!--查看凭证-->
<look-voucher-modal ref="lookVoucherModal" @ok="modalFormOk"></look-voucher-modal>
</div>
</template>
@@ -256,6 +258,7 @@ import {YesOrNoEnums} from '@/enums/commonEnums'
import { MonthRangeMixin } from '../../mixins/MonthRangeMixins'
import { getAction } from '../../api/manage'
import JMonthDate from '../../components/tools/JMonthDate'
import LookVoucherModal from './modules/LookVoucherModal'
// eslint-disable-next-line no-undef,no-unused-vars
const Base64 = require('js-base64').Base64
@@ -272,7 +275,8 @@ export default {
PreviewFile,
EmailErrorMsgModal,
WorkGroupSetLabel,
JMonthDate
JMonthDate,
LookVoucherModal
},
mixins: [JeroListMixin, MonthRangeMixin],
computed: {
@@ -337,7 +341,7 @@ export default {
exportXlsUrl: '/project/payWorkingGroupSubitem/exportXls',
importExcelUrl: '/project/payWorkingGroupSubitem/importExcel',
downTemplateUrl: '/project/payWorkingGroupSubitem/downloadExcelModel',
// 确认凭证
// 查看凭证
confirmVoucher: '/project/payWorkingGroupSubitem/confirmVoucher'
},
columns: [
@@ -408,7 +412,7 @@ export default {
scopedSlots: { customRender: 'status-pack' }
},
{
title: '确认凭证',
title: '查看凭证',
align: 'center',
fixed: 'right',
dataIndex: 'confirmVoucher',
@@ -677,7 +681,10 @@ export default {
this.queryParam.estimatedArrivalStartDate = dateString[0]
this.queryParam.estimatedArrivalEndDate = dateString[1]
},
// 确认凭证
// 查看凭证
lookVoucher(record) {
this.$refs.lookVoucherModal.open(record)
},
confirmVoucher(id) {
var that = this
this.$confirm({