This commit is contained in:
xiaozhiyong
2024-02-28 15:45:30 +08:00
parent 1410072142
commit eb174869a4
9 changed files with 758 additions and 15 deletions

View File

@@ -182,7 +182,7 @@
结算价
<text v-if="aboutEnterprise.oilProductCode"
style="font-size: 22rpx; color:#EE0707;margin-left: 30rpx;">
{{Number(aboutEnterprise.oilSiteOilsPrices[aboutEnterprise.oloIndex].settlementPrice).toFixed(2)}}
{{Number(aboutEnterprise.oilSiteOilsPrices[aboutEnterprise.oloIndex].settlementPrice).toFixed(4)}}
</text>
<uni-icons
v-if="aboutEnterprise.oilSiteOilsPrices[aboutEnterprise.oloIndex].settlementPricetipIsShow"
@@ -289,12 +289,12 @@
<view v-for="(item,index) in priceData" class="detailse_content_item">
<view class="hui">{{item.lable}}</view>
<view>
<text>{{ Number(aboutEnterprise[item.price]).toFixed(item.lable=='底价'?4:2)}}</text>
<text>{{ Number(aboutEnterprise[item.price]).toFixed((item.lable=='底价'||item.lable=='结算价')?4:2)}}</text>
<uni-icons :color="iconFn(item) " custom-prefix="iconfont" :type="icontype(item) "
size="15"></uni-icons>
<text
class="samlltext hui de">{{Number(aboutEnterprise[item.oldePrice]||0).toFixed(item.lable=='底价'?4:2)}}</text>
class="samlltext hui de">{{Number(aboutEnterprise[item.oldePrice]||0).toFixed((item.lable=='底价'||item.lable=='结算价')?4:2)}}</text>
</view>
</view>
</view>
@@ -674,7 +674,7 @@
this.aboutEnterprise.newFloorPrice = JSON.parse(JSON.stringify(Number(this.aboutEnterprise
.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].floorPrice || 0))).toFixed(4);
this.aboutEnterprise.newSettlementPrice = JSON.parse(JSON.stringify(Number(this.aboutEnterprise
.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].settlementPrice))).toFixed(2);
.oilSiteOilsPrices[this.aboutEnterprise.oloIndex].settlementPrice))).toFixed(4);
this.aboutEnterprise.oldfloorRemark = this.aboutEnterprise.oilSiteOilsPrices[this.aboutEnterprise.oloIndex]
.floorRemark || '暂无说明'
this.aboutEnterprise = Object.assign(this.aboutEnterprise, this.aboutEnterprise.oilSiteOilsPrices[this
@@ -703,7 +703,7 @@
console.log(this.aboutEnterprise[e])
if (this.aboutEnterprise[e].indexOf('.') != -1) {
if (e == 'newFloorPrice') {
if (['newFloorPrice', 'newSettlementPrice'].includes(e)) {
if (this.aboutEnterprise[e].split('.')[1].length > 4) {
uni.showToast({
title: '最多保留小数点后4位',
@@ -711,7 +711,6 @@
})
this.$nextTick(() => {
this.aboutEnterprise[e] = Number(this.aboutEnterprise[e]).toFixed(4)
})
}
} else {
@@ -820,15 +819,16 @@
let result = this.priceArr.some(item => {
return info[`${item}tipIsShow`]
})
if(result) {
if (result) {
uni.showModal({
title: '部分调整后价格,可能超出合理范围。是否确认',
confirmText: '确认',
icon: 'none',
success: (res) => {
if (res.confirm) {
if (+this.aboutEnterprise.newFloorPrice > +this.aboutEnterprise.newEnterprisePrice) {
if (+this.aboutEnterprise.newFloorPrice > +this.aboutEnterprise
.newEnterprisePrice) {
uni.showModal({
title: '当前调价后,存在企业价低于底价,超出合理范围,是否确认',
confirmText: '确认',
@@ -845,7 +845,7 @@
}
}
})
return
return
}
if (+this.aboutEnterprise.newFloorPrice > +this.aboutEnterprise.newEnterprisePrice) {
uni.showModal({

View File

@@ -35,14 +35,14 @@
<view v-for="(item,index) in priceData" class="detailse_content_item">
<view class="hui">{{item.lable}}</view>
<view >
<text>{{Number(details[item.price])?Number(details[item.price]).toFixed(item.lable=='底价'?4:2):'0.00'}}</text>
<text>{{Number(details[item.price])?Number(details[item.price]).toFixed((item.lable=='底价'||item.lable=='结算价')?4:2):'0.00'}}</text>
<uni-icons
:color="iconFn(item) "
custom-prefix="iconfont"
:type="icontype(item) "
size="15">
</uni-icons>
<text class="samlltext hui de">{{Number(details[item.oldePrice])?Number(details[item.oldePrice]).toFixed(item.lable=='底价'?4:2):'0.00'}}</text>
<text class="samlltext hui de">{{Number(details[item.oldePrice])?Number(details[item.oldePrice]).toFixed((item.lable=='底价'||item.lable=='结算价')?4:2):'0.00'}}</text>
</view>
</view>
</view>