|
@@ -4,18 +4,13 @@ import { FormConfigType } from '@/components/AForm/type'
|
|
import { ToolbarConfigType } from '@/components/AToolbar/type'
|
|
import { ToolbarConfigType } from '@/components/AToolbar/type'
|
|
import { ColumnConfigType } from '@/components/ATable/type'
|
|
import { ColumnConfigType } from '@/components/ATable/type'
|
|
import { StrAnyObj, StrAnyObjArr } from '@/typings'
|
|
import { StrAnyObj, StrAnyObjArr } from '@/typings'
|
|
-import {
|
|
|
|
- getDetailApi,
|
|
|
|
- getRemitPageApi,
|
|
|
|
- remitApi,
|
|
|
|
- remitExcelExportApi
|
|
|
|
-} from '@/api/business/payment/requests'
|
|
|
|
|
|
+import { getDetailApi, getRemitPageApi, remitApi, remitExcelExportApi } from '@/api/business/payment/requests'
|
|
import { getPageApi as getCorporationPageApi } from '@/api/business/corporation/corporation'
|
|
import { getPageApi as getCorporationPageApi } from '@/api/business/corporation/corporation'
|
|
import DeptTreeSelect from '@/views/components/DeptTreeSelect/index.vue'
|
|
import DeptTreeSelect from '@/views/components/DeptTreeSelect/index.vue'
|
|
import { getPageApi as getCapitalAccountPageApi } from '@/api/business/capital/account'
|
|
import { getPageApi as getCapitalAccountPageApi } from '@/api/business/capital/account'
|
|
import MoneyPDF from '@/components/PDF/moneyPDF.vue'
|
|
import MoneyPDF from '@/components/PDF/moneyPDF.vue'
|
|
import { getPdf } from '@/utils/getPdf.js'
|
|
import { getPdf } from '@/utils/getPdf.js'
|
|
-import {getPageApi as getShopApi} from "@/api/business/corporation/shop";
|
|
|
|
|
|
+import { getPageApi as getShopApi } from '@/api/business/corporation/shop'
|
|
|
|
|
|
const queryRef = ref<InstanceType<typeof AForm>>()
|
|
const queryRef = ref<InstanceType<typeof AForm>>()
|
|
const formRef = ref<InstanceType<typeof AForm>>()
|
|
const formRef = ref<InstanceType<typeof AForm>>()
|
|
@@ -323,7 +318,20 @@ const formConfig: FormConfigType[] = [
|
|
const data = await getCapitalAccountPageApi({ searchAll: true })
|
|
const data = await getCapitalAccountPageApi({ searchAll: true })
|
|
return data.records
|
|
return data.records
|
|
},
|
|
},
|
|
- rule: [{ required: true, message: '付款账户不能为空', trigger: 'blur' }]
|
|
|
|
|
|
+ rule: [{ required: true, message: '付款账户不能为空', trigger: 'blur' }],
|
|
|
|
+ change: (val, options) => {
|
|
|
|
+ console.log(val, options);
|
|
|
|
+ if (val) {
|
|
|
|
+ let list = options.filter((item) => item.id === val)
|
|
|
|
+ if (list && list.length > 0) {
|
|
|
|
+ formData.value.capitalAccountName = list[0].accountAlias
|
|
|
|
+ } else {
|
|
|
|
+ formData.value.capitalAccountName = ''
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ formData.value.capitalAccountName = ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
type: 'inputNumber',
|
|
type: 'inputNumber',
|
|
@@ -390,8 +398,7 @@ function formClosed() {
|
|
const printObj = ref({
|
|
const printObj = ref({
|
|
id: 'pdfDom',
|
|
id: 'pdfDom',
|
|
popTitle: '',
|
|
popTitle: '',
|
|
- extraCss:
|
|
|
|
- 'https://cdn.bootcdn.net/ajax/libs/animate.css/4.1.1/animate.compat.css, https://cdn.bootcdn.net/ajax/libs/hover.css/2.3.1/css/hover-min.css',
|
|
|
|
|
|
+ extraCss: 'https://cdn.bootcdn.net/ajax/libs/animate.css/4.1.1/animate.compat.css, https://cdn.bootcdn.net/ajax/libs/hover.css/2.3.1/css/hover-min.css',
|
|
extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>'
|
|
extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>'
|
|
})
|
|
})
|
|
const clickDownload = () => {
|
|
const clickDownload = () => {
|
|
@@ -423,15 +430,7 @@ const clickDownload = () => {
|
|
>
|
|
>
|
|
</a-table>
|
|
</a-table>
|
|
|
|
|
|
- <a-dialog
|
|
|
|
- v-if="dialogVisible"
|
|
|
|
- v-model="dialogVisible"
|
|
|
|
- :title="dialogTitle"
|
|
|
|
- :footer="!disabled"
|
|
|
|
- @submit="formSubmit"
|
|
|
|
- @closed="formClosed"
|
|
|
|
- width="1400px"
|
|
|
|
- >
|
|
|
|
|
|
+ <a-dialog v-if="dialogVisible" v-model="dialogVisible" :title="dialogTitle" :footer="!disabled" @submit="formSubmit" @closed="formClosed" width="1400px">
|
|
<div v-if="disabled">
|
|
<div v-if="disabled">
|
|
<a-form v-model="detailData" :config="detailConfig" :span="12" disabled> </a-form>
|
|
<a-form v-model="detailData" :config="detailConfig" :span="12" disabled> </a-form>
|
|
</div>
|
|
</div>
|
|
@@ -445,14 +444,7 @@ const clickDownload = () => {
|
|
</el-card>
|
|
</el-card>
|
|
</a-dialog>
|
|
</a-dialog>
|
|
|
|
|
|
- <a-dialog
|
|
|
|
- :footer="false"
|
|
|
|
- v-if="dialogPrint"
|
|
|
|
- v-model="dialogPrint"
|
|
|
|
- title="打印"
|
|
|
|
- width="840px"
|
|
|
|
- height="200px"
|
|
|
|
- >
|
|
|
|
|
|
+ <a-dialog :footer="false" v-if="dialogPrint" v-model="dialogPrint" title="打印" width="840px" height="200px">
|
|
<MoneyPDF :rowData="rowData"></MoneyPDF>
|
|
<MoneyPDF :rowData="rowData"></MoneyPDF>
|
|
<template #footer>
|
|
<template #footer>
|
|
<div>
|
|
<div>
|