From 196004334d785fff75c35d930a0ecdb38ab87400 Mon Sep 17 00:00:00 2001 From: dengxiongfei Date: Thu, 27 Jan 2022 18:25:06 +0800 Subject: [PATCH] bug --- pages/add-account/index.vue | 499 +++++++++++++++--------------- pages/mine/index.vue | 17 +- pages/quotation-details/index.vue | 7 +- 3 files changed, 270 insertions(+), 253 deletions(-) diff --git a/pages/add-account/index.vue b/pages/add-account/index.vue index 81f751d..63bdfeb 100644 --- a/pages/add-account/index.vue +++ b/pages/add-account/index.vue @@ -1,69 +1,76 @@ diff --git a/pages/mine/index.vue b/pages/mine/index.vue index 22c6976..dd58a73 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -109,11 +109,11 @@ 订单管理 --> - + 账期订单融资 - + 合同管理 @@ -131,8 +131,8 @@ --> - client-credit - enterprise-info + @@ -235,6 +235,15 @@ export default { }, go2, loginGo2, + handleJump(page) { + if (!this.hasCompany) { + uni.showToast({ + title: '您还没有企业,请先加入企业', + icon: 'none' + }) + } + loginGo2(page) + }, makeVip() { if (this.hasCompany) { this.visible = true diff --git a/pages/quotation-details/index.vue b/pages/quotation-details/index.vue index e27d77b..dbe4cb7 100644 --- a/pages/quotation-details/index.vue +++ b/pages/quotation-details/index.vue @@ -58,7 +58,7 @@ 合计: - ¥ {{ upDataObj.totalAllPrice }} + ¥ {{ upDataObj.totalPrice }} @@ -84,6 +84,7 @@ import { back, go2 } from '@/utils/hook.js' import qnHeader from '@/components/qn-header/qn-header.vue' import uGap from '@/components/u-gap/u-gap.vue' import { enquiryReplyDetail } from '@/apis/trade.js' +import { round } from '@/utils/index.js' export default { components: { qnHeader, @@ -157,9 +158,9 @@ export default { priceFree() { for (let i = 0; i < this.upDataObj.itemList.length; i++) { var totalAllPrice = parseFloat(this.upDataObj.totalAllPrice) + parseFloat(this.upDataObj.itemList[i].totalPrice) - this.upDataObj.totalAllPrice = totalAllPrice.toFixed(2) + this.upDataObj.totalAllPrice = round(totalAllPrice, 2) var otherFee = parseFloat(this.upDataObj.otherFee) + parseFloat(this.upDataObj.itemList[i].otherFee) - this.upDataObj.otherFee = otherFee.toFixed(2) + this.upDataObj.otherFee = round(otherFee, 2) } }, // 修改报价按钮