فهرست منبع

供货商采购成功之后花材价格需要展示出来,并且提示修改入口、供货商 采购单放大、零售 供应商 点采购 进采购页面之后,再返回需要返回到列表页,现在直接返回到首页了

jiangfeng 5 سال پیش
والد
کامیت
12f48e93e5

+ 7 - 0
ghsApp/src/pages.json

@@ -620,6 +620,13 @@
 						"navigationBarTitleText": "确认订单"
 						"navigationBarTitleText": "确认订单"
 					}
 					}
 				},
 				},
+				{
+					"path": "components/pageSuccess",
+					"style": {
+						"navigationBarBackgroundColor": "#ffffff",
+						"navigationBarTextStyle": "black"
+					}
+				},
 				{
 				{
 					"path": "order",
 					"path": "order",
 					"style": {
 					"style": {

+ 105 - 0
ghsApp/src/pagesPurchase/components/pageSuccess.vue

@@ -0,0 +1,105 @@
+<style lang="scss" scoped>
+	.admin-button-com {
+		margin-bottom: 20px;
+		width: 100%;
+	}
+	.flowers-list-box{
+		width: 100%;
+		.title{
+			height: 80rpx;
+			border-top: 1px solid #dcdcdc;
+			font-size: 28rpx;
+			font-weight: 700;
+		}
+		.flowers-list{
+			padding: 15rpx 0;
+			.flowers-name{}
+			.flowers-val{
+				padding-left: 70rpx;
+				input{
+					width: 160rpx;
+					height: 50rpx;
+					padding: 0 20rpx;
+					margin-right: 20rpx;
+					border: 1px solid #d4d4d4;
+					text-align: center;
+				}
+			}
+			.flowers-btn{
+				width: 100rpx;
+				height: 50rpx;
+				color: #FFFFFF;
+				background: #6699ff;
+				border-radius: 10rpx;
+			}
+		}
+	}
+</style>
+<template>
+  <appResult :title="title?title:'成功'">
+			<view class="flowers-list-box">
+				<view class="flex title">以下花材售价已变更,如需要请修改:</view>
+				<view class="flex-space flowers-list" v-for="(res,i) in flowersList" :key="i">
+					<view class="flowers-name">{{res.name}}</view>
+					<view class="flex flowers-val">
+						<input type="text" v-model="res.price"> 元
+					</view>
+					<view class="flex-center 	flowers-btn" @tap="changePriceFun(res.id,res.price)">修改</view>
+				</view>
+			</view>
+  </appResult>
+</template>
+<script>
+	import { getAllProductDataApi } from "@/api/product/index";
+	import { changePriceByIdApi } from '@/api/product/index'
+import appResult from "@/components/app-result";
+export default {
+  name: "pageSuccess",
+  components: {
+    appResult
+  },
+	data() {
+		return {
+			title:'',
+			flowersItemInfo:'',
+			flowersList:[],
+		};
+	},
+	onShow(){
+  	this.flowersItemInfo  = uni.getStorageSync('flowersItemInfo');
+		this.getList();
+	},
+	onLoad(e){
+  	this.title = e.title
+	},
+	onUnload(){
+		uni.removeStorageSync('flowersItemInfo');
+		uni.navigateBack({delta:2})
+	},
+		methods: {
+    closeLayer() {
+					uni.navigateBack({delta: 3});
+    },
+				getList(){
+    	let productIdArr = '';
+				this.flowersItemInfo.forEach((ele)=>{
+					productIdArr += ele.productId+','
+				})
+				getAllProductDataApi({ids : productIdArr.substring(0, productIdArr.lastIndexOf(',')),}).then((res)=>{
+						console.log(res)
+					this.flowersList = res.data.list;
+				});
+			},
+			changePriceFun(id,price){
+				changePriceByIdApi({
+					productId: id,
+					price: price
+				}).then(res => {
+						uni.showToast({title:'修改成功'})
+				})
+			},
+
+  },
+};
+</script>
+

+ 2 - 2
ghsApp/src/pagesPurchase/details.vue

@@ -312,9 +312,9 @@ export default {
 					await this.initMerchantInfo();
 					await this.initMerchantInfo();
 				}
 				}
 				await createPurchaseOrderApi(formData);
 				await createPurchaseOrderApi(formData);
-
+				uni.setStorageSync('flowersItemInfo', itemInfo);
 				this.resetSelectInfoByType(this.pageType);
 				this.resetSelectInfoByType(this.pageType);
-				uni.navigateTo({url:'/common/pageSuccess?title=新增成功'})
+				uni.navigateTo({url:'/pagesPurchase/components/pageSuccess?title=新增成功'})
 			} catch (error) {}
 			} catch (error) {}
 		},
 		},
 		formSubmitFun(){
 		formSubmitFun(){

+ 7 - 7
ghsApp/src/pagesPurchase/info.vue

@@ -102,27 +102,27 @@
 				<div class="module-com input-line-wrap">
 				<div class="module-com input-line-wrap">
 					<tui-list-cell class="line-cell" :hover="false">
 					<tui-list-cell class="line-cell" :hover="false">
 						<div class="tui-title">打包费</div>
 						<div class="tui-title">打包费</div>
-						<div class="detail-price_box">¥{{ detailInfo.packingCharge }}</div>
+						<div class="detail-price_box" style="font-size: 36rpx;">¥{{ detailInfo.packingCharge }}</div>
 					</tui-list-cell>
 					</tui-list-cell>
 					<tui-list-cell class="line-cell" :hover="false">
 					<tui-list-cell class="line-cell" :hover="false">
 						<div class="tui-title">短途运费</div>
 						<div class="tui-title">短途运费</div>
-						<div class="detail-price_box">¥{{ detailInfo.shortCharge }}</div>
+						<div class="detail-price_box" style="font-size: 36rpx;">¥{{ detailInfo.shortCharge }}</div>
 					</tui-list-cell>
 					</tui-list-cell>
 					<tui-list-cell class="line-cell" :hover="false">
 					<tui-list-cell class="line-cell" :hover="false">
 						<div class="tui-title">包机(长途)费</div>
 						<div class="tui-title">包机(长途)费</div>
-						<div class="detail-price_box">¥{{ detailInfo.longCharge }}</div>
+						<div class="detail-price_box" style="font-size: 36rpx;">¥{{ detailInfo.longCharge }}</div>
 					</tui-list-cell>
 					</tui-list-cell>
 					<tui-list-cell class="line-cell" :hover="false">
 					<tui-list-cell class="line-cell" :hover="false">
 						<div class="tui-title">提货费</div>
 						<div class="tui-title">提货费</div>
-						<div class="detail-price_box">¥{{ detailInfo.pickCharge }}</div>
+						<div class="detail-price_box" style="font-size: 36rpx;">¥{{ detailInfo.pickCharge }}</div>
 					</tui-list-cell>
 					</tui-list-cell>
 					<tui-list-cell class="line-cell" :hover="false">
 					<tui-list-cell class="line-cell" :hover="false">
 						<div class="tui-title">本地运费</div>
 						<div class="tui-title">本地运费</div>
-						<div class="detail-price_box">¥{{ detailInfo.localCharge }}</div>
+						<div class="detail-price_box" style="font-size: 36rpx;">¥{{ detailInfo.localCharge }}</div>
 					</tui-list-cell>
 					</tui-list-cell>
 					<tui-list-cell class="line-cell" :hover="false">
 					<tui-list-cell class="line-cell" :hover="false">
 						<div class="tui-title">总金额</div>
 						<div class="tui-title">总金额</div>
-						<div class="detail-price_box red">¥{{ detailInfo.orderPrice || 0.00 }}</div>
+						<div class="detail-price_box red" style="font-size: 36rpx;">¥{{ detailInfo.orderPrice || 0.00 }}</div>
 					</tui-list-cell>
 					</tui-list-cell>
 				</div>
 				</div>
 			</view>
 			</view>
@@ -409,4 +409,4 @@ export default {
 		}
 		}
 	}
 	}
 }
 }
-</style>
+</style>

+ 2 - 1
hdApp/src/pagesPurchase/order.vue

@@ -84,7 +84,8 @@ export default {
   methods: {
   methods: {
     enter (item) {
     enter (item) {
       const { id } = item
       const { id } = item
-      this.pageTo({ url: `/pagesPurchase/ghsProduct?id=${id}`, type: 2 })
+					uni.navigateTo({url:`/pagesPurchase/ghsProduct?id=${id}`, type: 2 })
+      // this.pageTo({ url: `/pagesPurchase/ghsProduct?id=${id}`, type: 2 })
     },
     },
     init() {
     init() {
       this.getGHSList()
       this.getGHSList()

+ 3 - 7
hdApp/src/pagesPurchase/purDetails.vue

@@ -124,13 +124,9 @@
             :hover="false"
             :hover="false"
           >
           >
             <div class="tui-title">运费</div>
             <div class="tui-title">运费</div>
-            <div class="detail-price_box">¥{{ detailInfo.sendCost }}</div>
+            <div class="detail-price_box" style="font-size: 36rpx;">¥{{ detailInfo.sendCost }}</div>
           </tui-list-cell>
           </tui-list-cell>
-          <tui-list-cell
-            class="line-cell"
-            :hover="false"
-            v-if="Number(detailInfo.discountAmount) > 0"
-          >
+          <tui-list-cell class="line-cell" :hover="false" v-if="Number(detailInfo.discountAmount) > 0">
             <div class="tui-title">优惠金额</div>
             <div class="tui-title">优惠金额</div>
             <div class="detail-price_box">-¥{{ detailInfo.discountAmount || 0.00 }}</div>
             <div class="detail-price_box">-¥{{ detailInfo.discountAmount || 0.00 }}</div>
           </tui-list-cell>
           </tui-list-cell>
@@ -139,7 +135,7 @@
             :hover="false"
             :hover="false"
           >
           >
             <div class="tui-title">总金额</div>
             <div class="tui-title">总金额</div>
-            <div class="detail-price_box red">¥{{ detailInfo.realPrice || 0.00 }}</div>
+            <div class="detail-price_box red" style="font-size: 36rpx;">¥{{ detailInfo.realPrice || 0.00 }}</div>
           </tui-list-cell>
           </tui-list-cell>
         </div>
         </div>
       </view>
       </view>