chenxiong 3 年 前
コミット
58defa101d

+ 4 - 1
pages2/appointment/index.vue

@@ -85,6 +85,7 @@ export default {
 			radiolist: [{ name: '1', label: '非补考学员' }, { name: '2', label: '补考学员' }],
 			goodsId: 0,
 			gradeId: 0,
+			orderGoodsId:0,
 			applyStatus: '',
 			listData: {
 				applyStatus: []
@@ -96,6 +97,7 @@ export default {
 	onLoad(option) {
 		this.goodsId = Number(option.goodsId);
 		this.gradeId = Number(option.gradeId);
+		this.orderGoodsId = Number(option.orderGoodsId)
 		this.getInfo();
 	},
 	methods: {
@@ -137,7 +139,8 @@ export default {
 							applyId: this.listData.applyId,
 							applyStatus: this.radioInfo,
 							goodsId: this.goodsId,
-							dataId: res.data.data
+							dataId: res.data.data,
+							orderGoodsId: this.orderGoodsId
 						});
 					}
 					if (res.data.data === 3) {

+ 3 - 0
pages2/appointment/kporder.vue

@@ -76,6 +76,7 @@ import { mapGetters } from 'vuex';
 export default {
 	data() {
 		return {
+			orderGoodsId:'',
 			address_show: false,
 			addressName: '请选择',
 			addressId: null, //当前选中考试点ID
@@ -91,6 +92,7 @@ export default {
 		this.applyId = Number(option.applyId);
 		this.goodsId = Number(option.goodsId);
 		this.applyStatus = Number(option.applyStatus);
+		this.orderGoodsId = Number(option.orderGoodsId)
 		this.getInfo();
 		this.getVuexData();
 		uni.showModal({
@@ -194,6 +196,7 @@ export default {
 					var copyData = JSON.parse(JSON.stringify(self.activeList));
 					const index = copyData.findIndex(item => item.checked);
 					var data = {
+						orderGoodsId: self.orderGoodsId,
 						applySiteAddressTrain: self.addressName,
 						applySiteExamTrainTime: copyData[index].examTime,
 						applySiteStartTrainTime: copyData[index].startTimeC,

+ 6 - 2
pages2/appointment/order.vue

@@ -69,6 +69,7 @@ import { mapGetters } from 'vuex';
 export default {
 	data() {
 		return {
+			orderGoodsId:'',
 			address_show: false,
 			addressName: '请选择',
 			addressId: null, //当前选中考试点ID
@@ -85,6 +86,7 @@ export default {
 		this.goodsId = Number(option.goodsId);
 		this.applyStatus = Number(option.applyStatus);
 		this.dataId = Number(option.dataId);
+		this.orderGoodsId = Number(option.orderGoodsId)
 		this.getInfo();
 	},
 	methods: {
@@ -183,14 +185,16 @@ export default {
 						applySiteAddress: self.addressName,
 						applySiteExamTime: copyData[index].examTime,
 						applySiteStartTime: copyData[index].startTimeC,
-						applySiteEndTime: copyData[index].endTimeC
+						applySiteEndTime: copyData[index].endTimeC,
+						orderGoodsId: self.orderGoodsId
 					};
 					if (self.dataId === 1) {
 						self.$store.commit('updateApplyData', data);
 						self.$navTo.togo('/pages2/appointment/kporder', {
 							applyId: self.applyId,
 							applyStatus: self.applyStatus,
-							goodsId: self.goodsId
+							goodsId: self.goodsId,
+							orderGoodsId: self.orderGoodsId
 						});
 					}
 					if (self.dataId === 2) {

+ 2 - 1
pages2/wd/class.vue

@@ -459,7 +459,8 @@ export default {
 				if (res.data.code === 200) {
 					this.$navTo.togo('/pages2/appointment/index', {
 						goodsId: item.goodsId,
-						gradeId: item.gradeId
+						gradeId: item.gradeId,
+						orderGoodsId: item.orderGoodsId
 					});
 				}
 			});