haugnfuli 3 年之前
父節點
當前提交
3f6ba395db
共有 2 個文件被更改,包括 11 次插入5 次删除
  1. 3 0
      pageA/product/business_buy.vue
  2. 8 5
      pageA/product/business_sale.vue

+ 3 - 0
pageA/product/business_buy.vue

@@ -311,6 +311,9 @@
 									if(res.data.code==200){
 										that.$api.doRequest('post','/purchaseOrder/api/submitPurchaseOrder', {id:res.data.data}).then(res1 => {
 											if(res1.data.code==200){
+												uni.navigateTo({
+													url: `/pages/business/business`
+												})
 												uni.showToast({
 													title: '提交成功,等待买方回复',
 													icon: 'none',

+ 8 - 5
pageA/product/business_sale.vue

@@ -55,7 +55,7 @@
 			<view   class="title">销售单价(元/吨)</view>
 			<view class="con-list">
 				<view class="picker">
-					<text>{{purchaseOrder.unitPrice}}</text>
+					<text>{{purchaseOrder.salePrice}}</text>
 				</view>
 				</view>
 		</view>
@@ -140,7 +140,7 @@
 						memo:'',
 						buyer:'',
 						buyerPhone:'',
-						unitPrice:0,
+						salePrice:0,
 						address:'',
 						count:0,
 						province:'',
@@ -180,7 +180,7 @@
 					memo:'',
 					buyer:'',
 					buyerPhone:'',
-					unitPrice:0,
+					salePrice:0,
 					address:'',
 					count:0,
 					id:0,
@@ -222,7 +222,7 @@
 				this.purchaseOrder.buyer = options.buyer
 				this.purchaseOrder.customer = options.customerName
 				this.purchaseOrder.basis = options.basisPrice
-				this.purchaseOrder.unitPrice = options.unitPrice
+				this.purchaseOrder.salePrice = options.salePrice
 				this.purchaseOrder.receiveWarehouse = options.receiveWarehouse
 				this.purchaseOrder.settlementPrice = options.basisPrice
 				this.purchaseOrder.salePlanType = options.salePlanType
@@ -255,7 +255,7 @@
 						url: `/pageA/product/Identity_switching?goodsName=${this.purchaseOrder.goodsName}
 						&receivePrivate=${this.purchaseOrder.receivePrivate}&receiveCity=${this.purchaseOrder.receiveCity}
 						&receiveArea=${this.purchaseOrder.receiveArea}&minimumVolume=${this.purchaseOrder.minimumVolume}
-						&buyer=${this.purchaseOrder.buyer}&basisPrice=${this.purchaseOrder.basis}&unitPrice=${this.purchaseOrder.unitPrice}
+						&buyer=${this.purchaseOrder.buyer}&basisPrice=${this.purchaseOrder.basis}&salePrice=${this.purchaseOrder.salePrice}
 						&receiveWarehouse=${this.purchaseOrder.receiveWarehouse}&salePlanType=${this.purchaseOrder.salePlanType}
 						&salePlanNo=${this.purchaseOrder.salePlan}`
 					})
@@ -323,6 +323,9 @@
 											icon: 'none',
 											duration: 2000
 										})
+										uni.navigateTo({
+											url: `/pages/business/business`
+										})
 										// uni.navigateBack();
 									}else{
 										uni.showToast({