| | |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | </ProFormCol> |
| | | <ProFormCol> |
| | | <!-- <ProFormCol> |
| | | <ProFormColItem :span="8"> |
| | | <ProFormItemV2 label="结算单名称:" prop="settlementOrderName"> |
| | | <ProFormText v-model="form.settlementOrderName"> </ProFormText> |
| | |
| | | ></ProFormDatePicker> |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | </ProFormCol> |
| | | </ProFormCol> --> |
| | | <ProFormCol> |
| | | <ProFormColItem :span="8"> |
| | | <ProFormItemV2 label="结算金额:" prop="settlementAmount"> |
| | |
| | | </el-steps> |
| | | </div> |
| | | </ChunkCell> --> |
| | | <ChunkCell title="结算名单" style="flex: 1"> |
| | | <ChunkCell title="结算名单" style="flex: 1" class="settlement-user-list-chunk"> |
| | | <ProTableQueryFilterBar @on-reset="reset"> |
| | | <template #query> |
| | | <QueryFilterItem> |
| | |
| | | > |
| | | </SearchInput> |
| | | </QueryFilterItem> |
| | | </template> |
| | | <template #btn> |
| | | <BlFileUpload |
| | | v-model:file-url="form.settlementUrl" |
| | | ref="uploadRef" |
| | | :showTip="false" |
| | | :show-file-list="false" |
| | | class="pro-table-operation-btn upload-style-btn" |
| | | :on-success="(event) => handleUploadSuccess(event)" |
| | | :limitFileSize="null" |
| | | :limit="1" |
| | | accept="xlsx,xls" |
| | | > |
| | | <el-button text type="primary" class="pro-table-operation-btn">上传</el-button> |
| | | </BlFileUpload> |
| | | <el-button type="primary" link @click="handleAdd()">导出</el-button> |
| | | </template> |
| | | </ProTableQueryFilterBar> |
| | | <ProTableV2 |
| | |
| | | <div class="chuck-add-or-edit-actions"> |
| | | <el-button class="chuck-add-or-edit-actions" @click="handleBack">取消</el-button> |
| | | <el-button |
| | | v-if="!isDetail" |
| | | v-if="isSettlement" |
| | | class="chuck-add-or-edit-actions" |
| | | type="primary" |
| | | @click="handleSubmit" |
| | | >确认</el-button |
| | | >结算</el-button |
| | | > |
| | | </div> |
| | | </ChunkCell> |
| | |
| | | import { |
| | | LoadingLayout, |
| | | AppContainer, |
| | | AppScrollContainer, |
| | | ChunkCell, |
| | | ProForm, |
| | | ProFormItemV2, |
| | |
| | | ProTableQueryFilterBar, |
| | | useFormDialog, |
| | | XLSXUtils, |
| | | BlFileUpload, |
| | | UploadUserFile, |
| | | } from '@bole-core/components'; |
| | | import { SettlementListColumns } from './constants'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | |
| | | const route = useRoute(); |
| | | const id = (route.params.id as string) ?? ''; |
| | | const url = (route.query.url as string) ?? ''; |
| | | const settlement = (route.query.settlement as string) ?? ''; |
| | | |
| | | const isDetail = computed(() => !url); |
| | | const isSettlement = computed(() => !!url || !!settlement); |
| | | |
| | | const form = reactive({ |
| | | name: '', |
| | |
| | | settlementOrderName: '', |
| | | settlementOrderTime: '', |
| | | settlementTaskUsers: [] as API.GetSettlementTaskUsersQueryResultItem[], |
| | | |
| | | settlementUrl: [] as UploadUserFile[], |
| | | }); |
| | | |
| | | const BaseState = { |
| | |
| | | |
| | | const state = reactive({ ...BaseState }); |
| | | |
| | | // onMounted(async () => { |
| | | // await getList(); |
| | | // state.loading = false; |
| | | // }); |
| | | |
| | | // const { isLoading } = useQuery({ |
| | | // queryKey: ['taskServices/getSettlementTask', id], |
| | | // queryFn: async () => { |
| | | // return await taskServices.getSettlementTask( |
| | | // { id: id }, |
| | | // { |
| | | // showLoading: false, |
| | | // } |
| | | // ); |
| | | // }, |
| | | // placeholderData: () => ({} as API.GetSettlementTaskQueryResult), |
| | | // onSuccess(data) { |
| | | // form.name = data.name; |
| | | // form.settlementAmount = data.settlementAmount ?? 0; |
| | | // form.actualSettlementAmount = data.actualSettlementAmount ?? 0; |
| | | // form.code = data.code; |
| | | // form.settlementOrderName = setOssFileName(data.settlementOrderName); |
| | | // form.settlementOrderTime = data.settlementOrderTime ?? ''; |
| | | // }, |
| | | // enabled: !!id, |
| | | // }); |
| | | const { isLoading } = useQuery({ |
| | | queryKey: ['taskUserServices/getSettlementTaskUsers', id, url], |
| | | queryFn: async () => { |
| | |
| | | } catch (error) {} |
| | | } |
| | | |
| | | function handleUploadSuccess(response: UploadUserFile & { file: File & { uid: number } }) { |
| | | if (response.path) { |
| | | // |
| | | } |
| | | } |
| | | |
| | | function handleBack() { |
| | | closeViewPush(route, { |
| | | name: 'ServiceChargeManageList', |
| | |
| | | margin: 0 auto; |
| | | padding: 24px 0; |
| | | } |
| | | |
| | | .settlement-user-list-chunk { |
| | | :deep() { |
| | | .no-data img { |
| | | width: 280px; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | <style lang="scss"> |
| | | .text-over-tooltip-content { |