mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化代码
This commit is contained in:
parent
8d12240c92
commit
8c27f28a30
@ -71,7 +71,6 @@
|
||||
$that.printPayFeeInfo.amount = _amount.toFixed(2);
|
||||
$that.printPayFeeInfo.roomName = _feeReceipt[0].objName;
|
||||
$that.printPayFeeInfo.feeTime = _feeReceipt[0].createTime;
|
||||
$that.printPayFeeInfo.receiptNum = _feeReceipt[0].receiptId;
|
||||
$that.printPayFeeInfo.payObjName = _feeReceipt[0].payObjName;
|
||||
$that.printPayFeeInfo.feeReceipt = _feeReceipt;
|
||||
|
||||
@ -102,6 +101,7 @@
|
||||
function(json, res) {
|
||||
var _feeReceiptManageInfo = JSON.parse(json);
|
||||
let _feeReceiptDetails = _feeReceiptManageInfo.data;
|
||||
$that.printPayFeeInfo.receiptNum = _feeReceiptDetails[0].payOrderId;
|
||||
_feeReceiptDetails.forEach(item => {
|
||||
$that.printPayFeeInfo.feeReceipt.forEach(im => {
|
||||
if (item.receiptId == im.receiptId) {
|
||||
|
||||
@ -68,7 +68,7 @@
|
||||
$that.printPayFeeInfo.amount = _amount.toFixed(2);
|
||||
$that.printPayFeeInfo.roomName = _feeReceipt[0].objName;
|
||||
$that.printPayFeeInfo.feeTime = _feeReceipt[0].createTime;
|
||||
$that.printPayFeeInfo.receiptNum = _feeReceipt[0].receiptId;
|
||||
// $that.printPayFeeInfo.receiptNum = _feeReceipt[0].receiptId;
|
||||
$that.printPayFeeInfo.payObjName = _feeReceipt[0].payObjName;
|
||||
$that.printPayFeeInfo.feeReceipt = _feeReceipt;
|
||||
|
||||
@ -98,6 +98,7 @@
|
||||
function(json, res) {
|
||||
var _feeReceiptManageInfo = JSON.parse(json);
|
||||
let _feeReceiptDetails = _feeReceiptManageInfo.data;
|
||||
$that.printPayFeeInfo.receiptNum = _feeReceiptDetails[0].payOrderId;
|
||||
_feeReceiptDetails.forEach(item => {
|
||||
$that.printPayFeeInfo.feeReceipt.forEach(im => {
|
||||
if (item.receiptId == im.receiptId) {
|
||||
|
||||
@ -76,7 +76,7 @@
|
||||
$that.printPayFeeInfo.amount = _amount.toFixed(2);
|
||||
$that.printPayFeeInfo.roomName = _feeReceipt[0].objName;
|
||||
$that.printPayFeeInfo.feeTime = _feeReceipt[0].createTime;
|
||||
$that.printPayFeeInfo.receiptNum = _feeReceipt[0].receiptId;
|
||||
//$that.printPayFeeInfo.receiptNum = _feeReceipt[0].receiptId;
|
||||
$that.printPayFeeInfo.payObjName = _feeReceipt[0].payObjName;
|
||||
$that.printPayFeeInfo.storeName = _feeReceipt[0].storeName;
|
||||
$that.printPayFeeInfo.feeReceipt = _feeReceipt;
|
||||
@ -110,6 +110,7 @@
|
||||
function(json, res) {
|
||||
var _feeReceiptManageInfo = JSON.parse(json);
|
||||
let _feeReceiptDetails = _feeReceiptManageInfo.data;
|
||||
$that.printPayFeeInfo.receiptNum = _feeReceiptDetails[0].payOrderId;
|
||||
_feeReceiptDetails.forEach(item => {
|
||||
$that.printPayFeeInfo.feeReceipt.forEach(im => {
|
||||
if (item.receiptId == im.receiptId) {
|
||||
|
||||
@ -71,7 +71,7 @@
|
||||
$that.printPayFeeInfo.amount = _amount.toFixed(2);
|
||||
$that.printPayFeeInfo.roomName = _feeReceipt[0].objName;
|
||||
$that.printPayFeeInfo.feeTime = _feeReceipt[0].createTime;
|
||||
$that.printPayFeeInfo.receiptNum = _feeReceipt[0].receiptId;
|
||||
//$that.printPayFeeInfo.receiptNum = _feeReceipt[0].receiptId;
|
||||
$that.printPayFeeInfo.payObjName = _feeReceipt[0].payObjName;
|
||||
$that.printPayFeeInfo.feeReceipt = _feeReceipt;
|
||||
|
||||
@ -101,6 +101,7 @@
|
||||
function (json, res) {
|
||||
var _feeReceiptManageInfo = JSON.parse(json);
|
||||
let _feeReceiptDetails = _feeReceiptManageInfo.data;
|
||||
$that.printPayFeeInfo.receiptNum = _feeReceiptDetails[0].payOrderId;
|
||||
_feeReceiptDetails.forEach(item=>{
|
||||
$that.printPayFeeInfo.feeReceipt.forEach(im =>{
|
||||
if(item.receiptId == im.receiptId){
|
||||
|
||||
@ -70,7 +70,7 @@
|
||||
$that.printPayFeeInfo.amount = _amount.toFixed(2);
|
||||
$that.printPayFeeInfo.roomName = _feeReceipt[0].objName;
|
||||
$that.printPayFeeInfo.feeTime = _feeReceipt[0].createTime;
|
||||
$that.printPayFeeInfo.receiptNum = _feeReceipt[0].receiptId;
|
||||
// $that.printPayFeeInfo.receiptNum = _feeReceipt[0].receiptId;
|
||||
$that.printPayFeeInfo.payObjName = _feeReceipt[0].payObjName;
|
||||
$that.printPayFeeInfo.feeReceipt = _feeReceipt;
|
||||
|
||||
@ -105,6 +105,7 @@
|
||||
function(json, res) {
|
||||
var _feeReceiptManageInfo = JSON.parse(json);
|
||||
let _feeReceiptDetails = _feeReceiptManageInfo.data;
|
||||
$that.printPayFeeInfo.receiptNum = _feeReceiptDetails[0].payOrderId;
|
||||
_feeReceiptDetails.forEach(item => {
|
||||
$that.printPayFeeInfo.feeReceipt.forEach(im => {
|
||||
if (item.receiptId == im.receiptId) {
|
||||
|
||||
@ -30,13 +30,19 @@
|
||||
<span><vc:i18n name="至" namespace="printSmallPayFee"></vc:i18n></span>{{vc.dateSubOneDay(vc.dateFormat(item.startTime),vc.dateFormat(item.endTime),item.feeFlag)}}
|
||||
</div>
|
||||
<div>
|
||||
<span><vc:i18n name="单价" namespace="printSmallPayFee"></vc:i18n></span>/固定费:{{item.squarePrice}}
|
||||
<span><vc:i18n name="单价/固定费:" namespace="printSmallPayFee"></vc:i18n></span>{{item.squarePrice}}
|
||||
</div>
|
||||
<div>
|
||||
<span><vc:i18n name="面积" namespace="printSmallPayFee"></vc:i18n></span>/用量:{{item.area}}
|
||||
<span><vc:i18n name="面积/用量:" namespace="printSmallPayFee"></vc:i18n></span>{{item.area}}
|
||||
</div>
|
||||
<div>
|
||||
<span><vc:i18n name="金额" namespace="printSmallPayFee"></vc:i18n></span>:
|
||||
<span><vc:i18n name="支付方式:" namespace="printSmallPayFee"></vc:i18n></span>{{item.primeRate}}
|
||||
</div>
|
||||
<div v-if="item.preDegrees">
|
||||
<span><vc:i18n name="表读数:" namespace="printSmallPayFee"></vc:i18n></span>{{item.preDegrees}} 至 {{item.curDegrees}}
|
||||
</div>
|
||||
<div>
|
||||
<span><vc:i18n name="金额:" namespace="printSmallPayFee"></vc:i18n></span>
|
||||
{{item.amount < 0 ? item.amount + "(退费)" : item.amount}}
|
||||
</div>
|
||||
<div>
|
||||
@ -48,6 +54,9 @@
|
||||
<div>
|
||||
<span><vc:i18n name="总计" namespace="printSmallPayFee"></vc:i18n></span>:{{printSmallPayFeeInfo.amount}}
|
||||
</div>
|
||||
<div>
|
||||
<span><vc:i18n name="开票人" namespace="printSmallPayFee"></vc:i18n></span>:{{vc.getData('/nav/getUserInfo').name}}
|
||||
</div>
|
||||
<div v-html="printSmallPayFeeInfo.content"></div>
|
||||
<div><img :src="printSmallPayFeeInfo.qrImg" width="100px" height="100px"></div>
|
||||
</div>
|
||||
|
||||
@ -5,6 +5,7 @@
|
||||
communityName: '',
|
||||
receiptId: '',
|
||||
receiptIds: '',
|
||||
receiptNum:'',
|
||||
roomName: '',
|
||||
amount: 0.00,
|
||||
fees: [],
|
||||
@ -56,7 +57,6 @@
|
||||
$that.printSmallPayFeeInfo.amount = _amount;
|
||||
$that.printSmallPayFeeInfo.roomName = _feeReceipt[0].objName;
|
||||
$that.printSmallPayFeeInfo.feeTime = _feeReceipt[0].createTime;
|
||||
$that.printSmallPayFeeInfo.receiptNum = _feeReceipt[0].receiptId;
|
||||
$that.printSmallPayFeeInfo.payObjName = _feeReceipt[0].payObjName;
|
||||
$that._loadReceiptDetail();
|
||||
}, function (errInfo, error) {
|
||||
@ -80,6 +80,7 @@
|
||||
function (json, res) {
|
||||
var _feeReceiptManageInfo = JSON.parse(json);
|
||||
let _feeReceiptDetails = _feeReceiptManageInfo.data;
|
||||
$that.printSmallPayFeeInfo.receiptNum = _feeReceiptDetails[0].payOrderId;
|
||||
$that.printSmallPayFeeInfo.fees = _feeReceiptDetails;
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user