linbl 1 år sedan
förälder
incheckning
bc437adedf
1 ändrade filer med 30 tillägg och 3 borttagningar
  1. 30 3
      pages/market/two/leader/resale.vue

+ 30 - 3
pages/market/two/leader/resale.vue

@@ -19,11 +19,23 @@
 					<text class="desc">{{ item.goodsUnit }}</text>
 				</view>
 				<view class="item">
-					<text class="label">转售金额(必填)</text>
+					<text class="label">转售金额(必填)</text>
 					<text class="desc">
 						<input type="number" v-model="resalePrice" placeholder="请输入(元)" />
 					</text>
 				</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>
 			<u-divider text="费项明细"></u-divider>
 			<view class="box">
@@ -32,10 +44,13 @@
 						<view class="itm">1、收费企业:{{ item.companyName }}</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 ==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">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">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>
 						<view class="itm">当前费项收取金额以最后结算时为准</view>
 					</u-collapse-item>
@@ -58,12 +73,14 @@ export default {
 		return {
 			item: {},
 			resalePrice: '',
-			feeItemLIst: []
+			feeItemLIst: [],
+			sumPrice: ''
 		};
 	},
 	onLoad(e) {
 		if (e.item) {
 			this.item = JSON.parse(e.item);
+			this.countPrice();
 		}
 		this.getFeeItem();
 	},
@@ -71,12 +88,22 @@ export default {
 		//费项明细
 		getFeeItem(){
 			this.http.request({
-				url: '/level-two-server/app/TbFeeItem/getList',
+				url: '/level-two-server/app/TbItemRules/getAllList',
 				success: res => {
 					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() {
 			let rule = { name: 'resalePrice', checkType: 'notnull', errorMsg: '请输入转售金额' };
 			if (!this.verify.check(this.resalePrice, rule)) {