| | |
| | | </template> |
| | | <template #btn> |
| | | <el-button type="primary" link @click="handleDownloadTemplate()">结算单模板</el-button> |
| | | <el-button type="primary" @click="handleDownloadTemplate()">上传结算单</el-button> |
| | | <BlFileUpload |
| | | :limitFileSize="10" |
| | | accept="xls,xlsx" |
| | | :showTip="false" |
| | | :show-file-list="false" |
| | | :on-success="handleUploadSuccess" |
| | | style="margin-right: 10px; margin-left: 10px" |
| | | > |
| | | <template #default> |
| | | <el-button type="primary">上传结算单</el-button> |
| | | </template> |
| | | </BlFileUpload> |
| | | <el-button type="primary" @click="handleDownloadTemplate()">导出</el-button> |
| | | </template> |
| | | </ProTableQueryFilterBar> |
| | |
| | | FieldRadio, |
| | | defineOperationBtns, |
| | | BlFileUpload, |
| | | UploadUserFile, |
| | | } from '@bole-core/components'; |
| | | import * as flexEnterpriseServices from '@/services/api/FlexEnterprise'; |
| | | import { ServiceChargeManageColumns } from './constants'; |
| | | import { FlexEnterpriseSettingStatus, Gender } from '@/constants'; |
| | | import { OrderInputType } from '@bole-core/core'; |
| | | import { downloadFileByUrl } from '@/utils'; |
| | | |
| | | defineOptions({ |
| | | name: 'ServiceChargeManage', |
| | | name: 'ServiceChargeManageList', |
| | | }); |
| | | |
| | | const operationBtns = defineOperationBtns([ |
| | |
| | | { |
| | | defaultExtraParams: { |
| | | searchWord: '', |
| | | orderInput: [{ property: 'id', order: OrderInputType.Desc }], |
| | | orderInput: [{ property: 'id', order: EnumPagedListOrder.Desc }], |
| | | flexEnterpriseSettingStatus: '' as any as FlexEnterpriseSettingStatus, |
| | | }, |
| | | queryKey: ['flexEnterpriseServices/getFlexEnterpriseList'], |
| | |
| | | function goSettle(row) { |
| | | router.push({ |
| | | name: 'ServiceChargeSettle', |
| | | query: { |
| | | params: { |
| | | id: row.id, |
| | | }, |
| | | }); |
| | |
| | | function goDetail(row) { |
| | | router.push({ |
| | | name: 'ServiceChargeDetail', |
| | | query: { |
| | | params: { |
| | | id: row.id, |
| | | }, |
| | | }); |
| | | } |
| | | |
| | | function handleUploadSuccess(response: UploadUserFile) {} |
| | | |
| | | function handleUpload(val, row) { |
| | | console.log('val: ', val); |
| | | } |