|
@@ -116,11 +116,11 @@
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title ">实付金额</view>
|
|
<view class="tui-title ">实付金额</view>
|
|
|
- <input style="border: 1px solid #eee;color: #3385FF;width: calc(100%);height:70rpx;" type="digit" :disabled="!canIEdit" @focus="realMoney=''" v-model="realMoney" placeholder-class="phcolor" class="tui-input" name="floor" placeholder="请填写,留空没有费用"/>
|
|
|
|
|
|
|
+ <input style="border: 1px solid #eee;color: #3385FF;width: calc(100%);height:70rpx;" type="digit" :disabled="!canIEdit" @focus="modifyPrice=''" v-model="modifyPrice" placeholder-class="phcolor" class="tui-input" name="floor" placeholder="请填写,留空没有费用"/>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title ">报损减免</view>
|
|
<view class="tui-title ">报损减免</view>
|
|
|
- <view>{{(totalPrice - realMoney).toFixed(2) }}</view>
|
|
|
|
|
|
|
+ <view>{{(totalPrice - modifyPrice).toFixed(2) }}</view>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell remark-wrap" :hover="false">
|
|
<tui-list-cell class="line-cell remark-wrap" :hover="false">
|
|
@@ -143,7 +143,7 @@
|
|
|
<text class="price-title">实付金额</text>
|
|
<text class="price-title">实付金额</text>
|
|
|
<text class="price-number">
|
|
<text class="price-number">
|
|
|
<!--¥ <text class="large">{{ Number(allPrice) + Number(form.packingCharge) + Number(form.shortCharge) + Number(form.longCharge) + Number(form.pickCharge) + Number(form.localCharge) }}</text>-->
|
|
<!--¥ <text class="large">{{ Number(allPrice) + Number(form.packingCharge) + Number(form.shortCharge) + Number(form.longCharge) + Number(form.pickCharge) + Number(form.localCharge) }}</text>-->
|
|
|
- ¥ <text class="large">{{ realMoney }}</text>
|
|
|
|
|
|
|
+ ¥ <text class="large">{{ modifyPrice }}</text>
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
<button class="admin-button-com blue middle" v-if="canIEdit" @click="formSubmit">
|
|
<button class="admin-button-com blue middle" v-if="canIEdit" @click="formSubmit">
|
|
@@ -205,7 +205,7 @@ export default {
|
|
|
showCustomer: false,
|
|
showCustomer: false,
|
|
|
detailsInfo: {},
|
|
detailsInfo: {},
|
|
|
totalPrice:0,
|
|
totalPrice:0,
|
|
|
- realMoney:0,
|
|
|
|
|
|
|
+ modifyPrice:0,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -234,14 +234,14 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- this.realMoney = price.toFixed(2);
|
|
|
|
|
|
|
+ this.modifyPrice = price.toFixed(2);
|
|
|
return price.toFixed(2);
|
|
return price.toFixed(2);
|
|
|
},
|
|
},
|
|
|
inputFn(e) {
|
|
inputFn(e) {
|
|
|
let price = Number(this.selectAllPrice);
|
|
let price = Number(this.selectAllPrice);
|
|
|
price = price + Number(this.form.packingCharge) + Number(this.form.shortCharge) + Number(this.form.longCharge) + Number(this.form.pickCharge) + Number(this.form.localCharge)
|
|
price = price + Number(this.form.packingCharge) + Number(this.form.shortCharge) + Number(this.form.longCharge) + Number(this.form.pickCharge) + Number(this.form.localCharge)
|
|
|
this.totalPrice = price.toFixed(2);
|
|
this.totalPrice = price.toFixed(2);
|
|
|
- this.realMoney = price.toFixed(2);
|
|
|
|
|
|
|
+ this.modifyPrice = price.toFixed(2);
|
|
|
|
|
|
|
|
// return price.toFixed(2);
|
|
// return price.toFixed(2);
|
|
|
},
|
|
},
|
|
@@ -342,7 +342,7 @@ export default {
|
|
|
if (!this.getMerchantInfo) {
|
|
if (!this.getMerchantInfo) {
|
|
|
await this.initMerchantInfo();
|
|
await this.initMerchantInfo();
|
|
|
}
|
|
}
|
|
|
- await createPurchaseOrderApi({...formData,realPrice:this.realMoney});
|
|
|
|
|
|
|
+ await createPurchaseOrderApi({...formData,realPrice:this.modifyPrice});
|
|
|
uni.setStorageSync('flowersItemInfo', itemInfo);
|
|
uni.setStorageSync('flowersItemInfo', itemInfo);
|
|
|
this.resetSelectInfoByType(this.pageType);
|
|
this.resetSelectInfoByType(this.pageType);
|
|
|
uni.navigateTo({url:'/pagesPurchase/components/pageSuccess?title=新增成功'})
|
|
uni.navigateTo({url:'/pagesPurchase/components/pageSuccess?title=新增成功'})
|