@@ -86,9 +86,10 @@ export function getSummaries(param, key, unit) {
// 数字金额转大写金额
export function convertToChinese(num) {
- if (num === 0 || num === '0' || !num) return '零元整';
+
+ if (num === 0 || num === '0') return '零元整';
- if(isNaN(num)) return '';
+ if(!num || isNaN(num)) return '';
// 中文数字
const cnNums = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
@@ -121,7 +121,7 @@
<td style="padding: 5px; text-align: left;" colspan="8">
<div style="display: flex; margin-top: 6px;">
<span style="flex: 1"
- >{{ showPrice ? convertToChinese(getAll(record, 'totalPrice')) : '' }}</span
+ >{{ showPrice ? convertToChinese(getAll(record, 'discountTotalPrice')) : '' }}</span
>
</div>
</td>
@@ -36,9 +36,9 @@ module.exports = {
proxy: {
// 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
'/api': {
- // target: 'http://192.168.1.251:18086', //开发
+ target: 'http://192.168.1.251:18086', //开发
// target: 'http://192.168.1.251:18186', //测试
- target: 'http://192.168.1.15:18086',//罗
+ // target: 'http://192.168.1.15:18086',//罗
// target: 'http://192.168.1.144:18086',//付
changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域