Browse Source

轮播图订单金额

caojunjie 1 year ago
parent
commit
c5908a630c
2 changed files with 21 additions and 2 deletions
  1. 15 0
      api/tabBar/home.js
  2. 6 2
      pages/views/salesSlip/orderDetails.vue

+ 15 - 0
api/tabBar/home.js

@@ -47,4 +47,19 @@ export function validationCorpEmpty(params) {
 		method: 'GET',
 		method: 'GET',
 		params
 		params
 	})
 	})
+}
+// 轮播图
+export const brandDescList = (data) => {
+	return http.request({
+		url: '/blade-sales-part/brandDesc/list',
+		method: 'GET',
+		params: data
+	})
+}
+export const brandDescDetail = (data) => {
+	return http.request({
+		url: '/blade-sales-part/brandDesc/detail',
+		method: 'GET',
+		params: data
+	})
 }
 }

+ 6 - 2
pages/views/salesSlip/orderDetails.vue

@@ -106,7 +106,7 @@
 					<!-- <u-icon name="close" color="#fff"></u-icon> -->
 					<!-- <u-icon name="close" color="#fff"></u-icon> -->
 					<view style="color: #fff;">申请退款</view>
 					<view style="color: #fff;">申请退款</view>
 				</view>
 				</view>
-				<view @click="orderClosing"
+				<view @click="orderClosing" v-if="form.status != '录入'"
 					style="width: 100%;background-color: #FD4B09;display: grid;justify-items: center;height: 100%;align-items: center;">
 					style="width: 100%;background-color: #FD4B09;display: grid;justify-items: center;height: 100%;align-items: center;">
 					<!-- <u-icon name="close" color="#fff"></u-icon> -->
 					<!-- <u-icon name="close" color="#fff"></u-icon> -->
 					<view style="color: #fff;">{{order}}</view>
 					<view style="color: #fff;">{{order}}</view>
@@ -168,7 +168,11 @@
 			}).then(res => {
 			}).then(res => {
 				console.log(234324324);
 				console.log(234324324);
 				this.form = res.data
 				this.form = res.data
-				console.log(this.form);
+				console.log(this.form);
+				this.form.orderItemsList.map(item=>{
+					item.totalAmount = item.price * item.goodsNum
+				})
+				
 				if (this.form.status == '已发货' ) {
 				if (this.form.status == '已发货' ) {
 					_this.isDisabled = true;
 					_this.isDisabled = true;
 					_this.order = "确认收货";
 					_this.order = "确认收货";