修改收款金额为现金支付的时候不显示的问题

This commit is contained in:
qiaomu 2025-07-28 10:28:35 +08:00
parent 4f0ad34e6e
commit 02372a94c2
3 changed files with 27 additions and 15 deletions

View File

@ -11,7 +11,7 @@ function App() {
};
const id = getQueryParam('id');
console.log('id', id)
const [data, setData] = useState<TopUpDetail>()
useEffect(() => {
@ -57,8 +57,8 @@ function App() {
<td colSpan={9} style={{textAlign: 'center'}}></td>
</tr>
<tr>
<td style={{width: '40px'}}></td>
<td style={{width: '58px'}}>{data?.tenement}</td>
<td style={{width: '40px'}}></td>
<td style={{width: '58px'}}>{data?.tenementName}</td>
<td style={{width: 70}}></td>
<td colSpan={2} style={{width: 80}}>{data?.toppedUpAt}</td>
<td></td>
@ -83,11 +83,11 @@ function App() {
)
)
}
<td style={{wordBreak: 'break-all'}}>{data?.meter}</td>
<td style={{wordBreak: 'break-all'}}>{data?.meterCode}</td>
<td>{data?.meterAddress}</td>
{
data?.paymentType ? <td>{RechargeWay[data?.paymentType]}</td> : <td></td>
data?.paymentType || data?.paymentType === 0 ? <td>{RechargeWay[data?.paymentType]}</td> : <td></td>
}
<td>{(Number(data?.amount) || 0).toFixed(2)}</td>
<td>{data?.voucherNo}</td>
@ -109,9 +109,9 @@ function App() {
</tr>
<tr>
<td></td>
<td>{data?.operatorName}</td>
<td>{data?.auditorName}</td>
<td></td>
<td colSpan={2}>{data?.tenementName},{data?.meterAddress}</td>
<td colSpan={2}>{data?.tenementName}{data?.phone ? '-' + data?.phone : ''},{data?.meterAddress}</td>
<td colSpan={3}></td>
</tr>

View File

@ -74,13 +74,17 @@ export interface TopUpDetail {
*/
id: string;
/**
*
* id
*/
meter: string;
/**
*
*/
meterAddress: string;
/**
* code
*/
meterCode: string;
/**
* ID
*/
@ -94,7 +98,7 @@ export interface TopUpDetail {
*/
paymentAt: string;
/**
* 01234
* 0123456-C端充值
*/
paymentType: number;
/**
@ -117,15 +121,15 @@ export interface TopUpDetail {
* yyyy-MM-dd HH:mm:ss
*/
toppedUpAt: string;
/**
* 0 1 2 3退
*/
type: number;
/**
*
*/
voucherNo: null | string;
/**
* 0 1 2 3退
*/
type: number,
[property: string]: any;
phone?: string,
}
export enum RechargeWay {

View File

@ -10,8 +10,16 @@ export default defineConfig({
server: {
port: 3001,
proxy: {
'/api3': {
target: `https://zgd.hbhcbn.com/`,
changeOrigin: true,
secure: false,
// rewrite: path => path.replace(/^\/api3/, "")
},
'/api': {
target: `http://localhost:8000/api`,
// target: `http://localhost:8000`,
target: `https://zgd.hbhcbn.com/api3/`,
changeOrigin: true,
secure: false,
rewrite: path => path.replace(/^\/api/, "")