gjy 3 gadi atpakaļ
vecāks
revīzija
8a9d47dbc5
1 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. 4 3
      pageB/contract/look.vue

+ 4 - 3
pageB/contract/look.vue

@@ -134,6 +134,7 @@
 				swiperCurrent: 0,
 				titleNViewBackground: '',
 				swiperLength: 0,
+				id:'',
 				goods: {
 					// id:"",
 					// contractNo:'',
@@ -161,8 +162,8 @@
 		onShow() {
 		},
 		onLoad(option) {
-			// this.goods.id = option.id
-			 this.goods.contractNo = option.contractNo
+			this.id = option.id
+			this.goods.contractNo = option.contractNo
 			// this.goods.customer = option.customer
 			// this.goods.goodsName = option.goodsName
 			// this.goods.netWeight = option.netWeight
@@ -181,7 +182,7 @@
 			},
 			getList(){
 				console.log(15454)
-			this.$api.doRequest('post','/tranCarInfo/api/confirmUnloading',this.goods).then(res => {
+			this.$api.doRequest('post','/tranCarInfo/api/confirmUnloading',{id:this.id}).then(res => {
 			     console.log("调用接口")
 			      that.sendDisabled = true
 			      let sec = 60