修改收款金额为现金支付的时候不显示的问题
This commit is contained in:
parent
4f0ad34e6e
commit
02372a94c2
14
src/App.tsx
14
src/App.tsx
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
/**
|
||||
* 充值方式,0:现金,1:银行卡,2:支付宝,3:微信,4:云闪付
|
||||
* 充值方式,0:现金,1:银行卡,2:支付宝,3:微信,4:云闪付,5:对公,6-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 {
|
||||
|
@ -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/, "")
|
||||
|
Loading…
x
Reference in New Issue
Block a user