zhangyuewww hace 3 años
padre
commit
af0e502c74
Se han modificado 1 ficheros con 7 adiciones y 21 borrados
  1. 7 21
      pageB/contract/contract_detail.vue

+ 7 - 21
pageB/contract/contract_detail.vue

@@ -215,14 +215,6 @@
 				}
 			},
 			getList() {
-				// tranCarNo:'',
-				// carNo:'',
-				// grossWeight:'',
-				// tare:'',
-				// loadNetWeight:'',
-				// loadPoundImg:'',
-				//  contractNo:'',
-				//  goodsName:'',
 				if (this.goods.carNo.length == 0) {
 					this.$api.msg('车牌号不能为空')
 					return
@@ -268,6 +260,11 @@
 											cancelText: "返回",
 											confirmText: "继续添加",
 											success: function(res) {
+												if (res.confirm) {
+													uni.navigateTo({
+														url: `/pageB/contract/contract_detail?`
+													})
+												}
 												setTimeout(() => {
 													var result = that.goods.tranCarNo
 														.substr(that.goods.tranCarNo
@@ -399,19 +396,8 @@
 					success: res => {
 						if (res.confirm) {
 							if (e.currentTarget.dataset.index == 0) {
-								this.personNoImg = "";
-							} else if (e.currentTarget.dataset.index == 1) {
-								this.personNoImg1 = "";
-							} else if (e.currentTarget.dataset.index == 2) {
-								this.driverNoImg = "";
-							} else if (e.currentTarget.dataset.index == 3) {
-								this.driverNoImg1 = "";
-							} else if (e.currentTarget.dataset.index == 4) {
-								this.carNoImg = "";
-							} else if (e.currentTarget.dataset.index == 5) {
-								this.carNoImg1 = "";
-							}
-
+								this.goods.loadPoundImg = "";
+							} 
 						}
 					}
 				})