Prechádzať zdrojové kódy

前端 小程序入库运费 sdy

zhongtianhaoyuan 3 rokov pred
rodič
commit
42762baa73

+ 2 - 0
pages/erp/warehousing/selectCarNo.vue

@@ -33,6 +33,7 @@
 		},
 		onShow() {
 			this.newList = uni.getStorageSync('erpContractNo').tranCarInfoList
+			console.log(this.newList,"List")
 			this.contractNo = uni.getStorageSync('erpContractNo').contractNo
 		},
 		onLoad(options) {
@@ -51,6 +52,7 @@
 			confirm(item){
 				uni.setStorageSync('erpcarNo', item);
 				uni.setStorageSync('ContractNoCar',item.carNo);
+				uni.setStorageSync('CarFreight',item.tranPrice);
 				uni.navigateBack({})
 			},
 		}

+ 3 - 0
pages/erp/warehousing/warehousing.vue

@@ -265,6 +265,9 @@
 			if (_data.inOutType == '采购入库') {
 				this.detailData.freight = 0
 			}
+			// console.log(uni.getStorageSync('ContractNoCar'),"成本等信息")
+				// uni.setStorageSync('CarFreight',item.tranPrice);
+				this.detailData.freight = uni.getStorageSync('CarFreight')
 			if (!_data.tranCarInfoList){
 				this.isPC = false
 				this.detailData.carNo = ""