会议管理

This commit is contained in:
FLL 2025-07-05 11:43:25 +08:00
parent 06c625fa76
commit ddf8251ce8
8 changed files with 62 additions and 39 deletions

View File

@ -49,22 +49,22 @@ export interface OrderChargeVO {
/** /**
* *
*/ */
paymentMethod: number; paymentMethod: string | number;
/** /**
* *
*/ */
invoiceStatus: number; invoiceStatus: string | number;
/** /**
* *
*/ */
invoiceType: number; invoiceType: string | number;
/** /**
* *
*/ */
chargeStatus: number; chargeStatus: string | number;
} }
export interface OrderChargeForm extends BaseEntity { export interface OrderChargeForm extends BaseEntity {
@ -116,22 +116,22 @@ export interface OrderChargeForm extends BaseEntity {
/** /**
* *
*/ */
paymentMethod?: number; paymentMethod?: string | number;
/** /**
* *
*/ */
invoiceStatus?: number; invoiceStatus?: string | number;
/** /**
* *
*/ */
invoiceType?: number; invoiceType?: string | number;
/** /**
* *
*/ */
chargeStatus?: number; chargeStatus?: string | number;
} }
export interface OrderChargeQuery extends PageQuery { export interface OrderChargeQuery extends PageQuery {
@ -178,22 +178,22 @@ export interface OrderChargeQuery extends PageQuery {
/** /**
* *
*/ */
paymentMethod?: number; paymentMethod?: string | number;
/** /**
* *
*/ */
invoiceStatus?: number; invoiceStatus?: string | number;
/** /**
* *
*/ */
invoiceType?: number; invoiceType?: string | number;
/** /**
* *
*/ */
chargeStatus?: number; chargeStatus?: string | number;
/** /**
* *
@ -250,20 +250,20 @@ export interface orderChargeDetailForm extends BaseEntity {
/** /**
* *
*/ */
paymentMethod?: number; paymentMethod?: string | number;
/** /**
* *
*/ */
invoiceStatus?: number; invoiceStatus?: string | number;
/** /**
* *
*/ */
invoiceType?: number; invoiceType?: string | number;
/** /**
* *
*/ */
chargeStatus?: number; chargeStatus?: string | number;
} }

View File

@ -24,11 +24,11 @@ export const querySchema: FormSchemaGetter = () => [
fieldName: 'invoiceStatus', fieldName: 'invoiceStatus',
label: '开票状态', label: '开票状态',
}, },
{ // {
component: 'Input', // component: 'Select',
fieldName: 'userName', // fieldName: 'userName',
label: '租赁人', // label: '租赁人',
}, // },
// { // {
// component: 'RangePicker', // component: 'RangePicker',
// componentProps: { // componentProps: {
@ -135,6 +135,11 @@ export const columns: VxeGridProps['columns'] = [
{ {
title: '发票类型', title: '发票类型',
field: 'invoiceType', field: 'invoiceType',
slots: {
default: ({ row }) => {
return renderDict(row.invoiceType, 'pro_invoice_type');
},
},
minWidth: '120' minWidth: '120'
}, },
{ {
@ -204,27 +209,36 @@ export const modalSchema: FormSchemaGetter = () => [
{ {
label: '租金', label: '租金',
fieldName: 'rent', fieldName: 'rent',
component: 'Input', component: 'InputNumber',
rules: 'required', rules: 'required',
componentProps:{
precision: 2,
}
}, },
{ {
label: '押金', label: '押金',
fieldName: 'deposit', fieldName: 'deposit',
component: 'Input', component: 'InputNumber',
rules: 'required', rules: 'required',
componentProps:{
precision: 2,
}
}, },
{ {
label: '违约金', label: '违约金',
fieldName: 'penalty', fieldName: 'penalty',
component: 'Input', component: 'InputNumber',
rules: 'required',
},
{
label: '总金额',
fieldName: 'totalAmount',
component: 'Input',
rules: 'required', rules: 'required',
componentProps:{
precision: 2,
}
}, },
// {
// label: '总金额',
// fieldName: 'totalAmount',
// component: 'Input',
// rules: 'required',
// },
{ {
label: '开票状态', label: '开票状态',
fieldName: 'invoiceStatus', fieldName: 'invoiceStatus',

View File

@ -39,7 +39,7 @@ async function handleOpenChange(open: boolean) {
{{ orderChargeDetail.orderId }} {{ orderChargeDetail.orderId }}
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="租赁合同编号"> <DescriptionsItem label="租赁合同编号">
{{ orderChargeDetail.orderId }} {{ orderChargeDetail.rentalOrder.contractCode }}
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="租赁人"> <DescriptionsItem label="租赁人">
{{ orderChargeDetail.userName}} {{ orderChargeDetail.userName}}
@ -58,8 +58,10 @@ async function handleOpenChange(open: boolean) {
:is="renderDict(orderChargeDetail.invoiceStatus,'pro_invoice_status')" :is="renderDict(orderChargeDetail.invoiceStatus,'pro_invoice_status')"
/> />
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="发票类型"> <DescriptionsItem label="发票类型" v-if="orderChargeDetail.invoiceType!=null">
{{ orderChargeDetail.invoiceType }} <component
:is="renderDict(orderChargeDetail.invoiceType,'pro_invoice_type')"
/>
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="收费状态" v-if="orderChargeDetail.chargeStatus!=null"> <DescriptionsItem label="收费状态" v-if="orderChargeDetail.chargeStatus!=null">
<component <component
@ -67,10 +69,10 @@ async function handleOpenChange(open: boolean) {
/> />
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="产品编号"> <DescriptionsItem label="产品编号">
{{ orderChargeDetail.createTime }} {{ orderChargeDetail.rentalOrder.productList.map(item => item.plantCode).join('、') }}
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="购买植物"> <DescriptionsItem label="购买植物">
{{ orderChargeDetail.createTime }} {{ orderChargeDetail.rentalOrder.productList.map(item => item.plantName).join('、') }}
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="总金额"> <DescriptionsItem label="总金额">
{{ orderChargeDetail.totalAmount }} {{ orderChargeDetail.totalAmount }}

View File

@ -51,6 +51,10 @@ const [BasicModal, modalApi] = useVbenModal({
isUpdate.value = !!id; isUpdate.value = !!id;
if (isUpdate.value && id) { if (isUpdate.value && id) {
const record = await orderChargeInfo(id); const record = await orderChargeInfo(id);
record.chargeStatus = record.chargeStatus?.toString();
record.paymentMethod = record.paymentMethod?.toString();
record.invoiceType = record.invoiceType?.toString();
record.invoiceStatus = record.invoiceStatus?.toString();
await formApi.setValues(record); await formApi.setValues(record);
} }
await markInitialized(); await markInitialized();

View File

@ -39,7 +39,7 @@ export const columns: VxeGridProps['columns'] = [
minWidth: '120' minWidth: '120'
}, },
{ {
title: '服务地点房间id', title: '服务地点',
field: 'roomId', field: 'roomId',
minWidth: '120' minWidth: '120'
}, },

View File

@ -104,7 +104,7 @@ function handleMultiDelete() {
<template> <template>
<Page :auto-content-height="true"> <Page :auto-content-height="true">
<BasicTable table-title="绿植租赁-订单养护管理列表"> <BasicTable table-title="养护管理列表">
<template #toolbar-tools> <template #toolbar-tools>
<Space> <Space>
<a-button <a-button

View File

@ -119,8 +119,11 @@ export const modalSchema: FormSchemaGetter = () => [
{ {
label: '租金', label: '租金',
fieldName: 'rent', fieldName: 'rent',
component: 'Input', component: 'InputNumber',
rules: 'required', rules: 'required',
componentProps:{
precision: 2,
}
}, },
{ {
label: '库存数量', label: '库存数量',

View File

@ -103,7 +103,7 @@ function handleMultiDelete() {
<template> <template>
<Page :auto-content-height="true"> <Page :auto-content-height="true">
<BasicTable table-title="绿植租赁-绿植产品列表"> <BasicTable table-title="产品管理列表">
<template #toolbar-tools> <template #toolbar-tools>
<Space> <Space>
<a-button <a-button