|
@@ -19,11 +19,23 @@
|
|
<text class="desc">{{ item.goodsUnit }}</text>
|
|
<text class="desc">{{ item.goodsUnit }}</text>
|
|
</view>
|
|
</view>
|
|
<view class="item">
|
|
<view class="item">
|
|
- <text class="label">转售金额(必填)</text>
|
|
|
|
|
|
+ <text class="label">转售金额(必填)</text>
|
|
<text class="desc">
|
|
<text class="desc">
|
|
<input type="number" v-model="resalePrice" placeholder="请输入(元)" />
|
|
<input type="number" v-model="resalePrice" placeholder="请输入(元)" />
|
|
</text>
|
|
</text>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="item">
|
|
|
|
+ <text class="label">利润</text>
|
|
|
|
+ <text class="desc">
|
|
|
|
+ <input type="number" value="50元" :disabled="true"/>
|
|
|
|
+ </text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="item">
|
|
|
|
+ <text class="label">总金额(系统计算)</text>
|
|
|
|
+ <text class="desc">
|
|
|
|
+ <input type="number" v-model="sumPrice" :disabled="true"/>
|
|
|
|
+ </text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
<u-divider text="费项明细"></u-divider>
|
|
<u-divider text="费项明细"></u-divider>
|
|
<view class="box">
|
|
<view class="box">
|
|
@@ -32,10 +44,13 @@
|
|
<view class="itm">1、收费企业:{{ item.companyName }}</view>
|
|
<view class="itm">1、收费企业:{{ item.companyName }}</view>
|
|
<view class="itm" v-if="item.feeType ==1">2、收费类型:按交易额收取</view>
|
|
<view class="itm" v-if="item.feeType ==1">2、收费类型:按交易额收取</view>
|
|
<view class="itm" v-if="item.feeType ==2">2、收费类型:按次收取</view>
|
|
<view class="itm" v-if="item.feeType ==2">2、收费类型:按次收取</view>
|
|
|
|
+ <view class="itm" v-if="item.feeType ==3">2、收费类型:按吨收取</view>
|
|
<view class="itm" v-if="item.feeType ==1">3、收费%(按交易额):<span style="color: coral;">{{ item.percent }} %</span></view>
|
|
<view class="itm" v-if="item.feeType ==1">3、收费%(按交易额):<span style="color: coral;">{{ item.percent }} %</span></view>
|
|
<view class="itm" v-if="item.feeType ==1">4、当前订单收取金额:<span style="color: coral;">{{ (item.percent * resalePrice)/100}} 元</span></view>
|
|
<view class="itm" v-if="item.feeType ==1">4、当前订单收取金额:<span style="color: coral;">{{ (item.percent * resalePrice)/100}} 元</span></view>
|
|
<view class="itm" v-if="item.feeType ==2">3、收费金额(按次收):<span style="color: coral;">{{ item.feeMoney }} 元</span></view>
|
|
<view class="itm" v-if="item.feeType ==2">3、收费金额(按次收):<span style="color: coral;">{{ item.feeMoney }} 元</span></view>
|
|
<view class="itm" v-if="item.feeType ==2">4、当前订单收取金额:<span style="color: coral;">{{ item.feeMoney }} 元</span></view>
|
|
<view class="itm" v-if="item.feeType ==2">4、当前订单收取金额:<span style="color: coral;">{{ item.feeMoney }} 元</span></view>
|
|
|
|
+ <view class="itm" v-if="item.feeType ==3">3、收费%(按吨):<span style="color: coral;">{{ item.percent }} %</span></view>
|
|
|
|
+ <view class="itm" v-if="item.feeType ==3">4、当前订单收取金额:<span style="color: coral;">{{ (item.percent * resalePrice)/100}} 元</span></view>
|
|
</br>
|
|
</br>
|
|
<view class="itm">当前费项收取金额以最后结算时为准</view>
|
|
<view class="itm">当前费项收取金额以最后结算时为准</view>
|
|
</u-collapse-item>
|
|
</u-collapse-item>
|
|
@@ -58,12 +73,14 @@ export default {
|
|
return {
|
|
return {
|
|
item: {},
|
|
item: {},
|
|
resalePrice: '',
|
|
resalePrice: '',
|
|
- feeItemLIst: []
|
|
|
|
|
|
+ feeItemLIst: [],
|
|
|
|
+ sumPrice: ''
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onLoad(e) {
|
|
onLoad(e) {
|
|
if (e.item) {
|
|
if (e.item) {
|
|
this.item = JSON.parse(e.item);
|
|
this.item = JSON.parse(e.item);
|
|
|
|
+ this.countPrice();
|
|
}
|
|
}
|
|
this.getFeeItem();
|
|
this.getFeeItem();
|
|
},
|
|
},
|
|
@@ -71,12 +88,22 @@ export default {
|
|
//费项明细
|
|
//费项明细
|
|
getFeeItem(){
|
|
getFeeItem(){
|
|
this.http.request({
|
|
this.http.request({
|
|
- url: '/level-two-server/app/TbFeeItem/getList',
|
|
|
|
|
|
+ url: '/level-two-server/app/TbItemRules/getAllList',
|
|
success: res => {
|
|
success: res => {
|
|
this.feeItemLIst = res.data.data
|
|
this.feeItemLIst = res.data.data
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ //费项合计
|
|
|
|
+ countPrice(){
|
|
|
|
+ this.http.request({
|
|
|
|
+ url: '/level-two-server/app/TbOrders/countPrice',
|
|
|
|
+ data: {id: this.item.id},
|
|
|
|
+ success: res => {
|
|
|
|
+ this.sumPrice = res.data.data
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
ok() {
|
|
ok() {
|
|
let rule = { name: 'resalePrice', checkType: 'notnull', errorMsg: '请输入转售金额' };
|
|
let rule = { name: 'resalePrice', checkType: 'notnull', errorMsg: '请输入转售金额' };
|
|
if (!this.verify.check(this.resalePrice, rule)) {
|
|
if (!this.verify.check(this.resalePrice, rule)) {
|