XSLu08042 2 veckor sedan
förälder
incheckning
68297e19f2

+ 1 - 3
pages_shopping/confirmCreateOrder.vue

@@ -517,9 +517,7 @@
 										it => it.order.id)
 									orderIds = orderIds.join(',')
 									uni.redirectTo({
-										url: "/pages_shopping/prescribe?orderId=" + orderIds+"&dataPrescribeKey="+that.dataPrescribeKey +"&dataKey="+that.dataKey+
-											"&combinationOrderId=" + encodeURIComponent(res.data[0]
-												.order.combinationOrderId)
+										url: "/pages_shopping/prescribe?orderId=" + orderIds+"&dataPrescribeKey="+"&companyUserId="+that.companyUserId+that.dataPrescribeKey +"&dataKey="+that.dataKey+"&combinationOrderId=" + encodeURIComponent(res.data[0].order.combinationOrderId)
 									})
 								}, 200);
 							} else {

+ 6 - 3
pages_shopping/prescribe.vue

@@ -248,10 +248,12 @@
 				isAgreement: false,
 				hasMore: true,
 				dataKey: '',
-				dataPrescribeKey:''
+				dataPrescribeKey:'',
+				companyUserId:''
 			}
 		},
 		onLoad(option) {
+			this.companyUserId = option.companyUserId ||''
 			this.dataKey = option.dataKey || ''
 			this.dataPrescribeKey = option.dataPrescribeKey || ''
 			this.orderId=option.orderId
@@ -276,7 +278,7 @@
 			// 根据dataKey查询处方填写信息
 			getSquareInformation() {
 				const param = {
-					userId: uni.getStorageSync('companyUserId'),
+					userId: companyUserId,
 					dataKey: this.dataPrescribeKey
 				}
 				uni.showLoading({
@@ -302,7 +304,8 @@
 			cacheOrderPrescription() {
 				const param = {
 					orderCode: this.orderId,
-					dataKey: this.dataPrescribeKey
+					dataKey: this.dataPrescribeKey,
+					companyUserId: this.companyUserId
 				}
 				cacheOrderPrescription(param).then(res=>{
 					if(res.code==200) {

+ 6 - 3
pages_shopping/prescribe1.vue

@@ -248,10 +248,12 @@
 				isAgreement: false,
 				hasMore: true,
 				dataKey: '',
-				dataPrescribeKey:''
+				dataPrescribeKey:'',
+				companyUserId:''
 			}
 		},
 		onLoad(option) {
+			this.companyUserId = option.companyUserId|| ''
 			this.dataKey = option.dataKey || ''
 			this.dataPrescribeKey = option.dataPrescribeKey || ''
 			this.orderId=option.orderId
@@ -276,7 +278,7 @@
 			// 根据dataKey查询处方填写信息
 			getSquareInformation() {
 				const param = {
-					userId: uni.getStorageSync('companyUserId'),
+					userId: this.companyUserId,
 					dataKey: this.dataPrescribeKey
 				}
 				uni.showLoading({
@@ -302,7 +304,8 @@
 			cacheOrderPrescription() {
 				const param = {
 					orderCode: this.orderId,
-					dataKey: this.dataPrescribeKey
+					dataKey: this.dataPrescribeKey,
+					companyUserId: this.companyUserId
 				}
 				cacheOrderPrescription(param).then(res=>{
 					if(res.code==200) {