shish 2 yıl önce
ebeveyn
işleme
20b702959d

+ 5 - 3
hdApp/src/admin/billing/affirmGhs.vue

@@ -299,7 +299,8 @@ export default {
 			},
 			},
 			wlList:[],
 			wlList:[],
 			wlSelData: {id:0,name:''},
 			wlSelData: {id:0,name:''},
-			needAddPackCost:false
+			needAddPackCost:false,
+			transCost:[]
 		};
 		};
 	},
 	},
 	onLoad() {
 	onLoad() {
@@ -387,10 +388,10 @@ export default {
 			if(this.ghsInfo.needAddPackFreight == 0){
 			if(this.ghsInfo.needAddPackFreight == 0){
 				this.form.sendCost = 0
 				this.form.sendCost = 0
 			}else{
 			}else{
-				if(this.getDictionariesInfo.transCost && !this.$util.isEmpty(this.getDictionariesInfo.transCost)){
+				if(this.transCost && !this.$util.isEmpty(this.transCost)){
 					let weight = this.allCountFun.weight ? Number(this.allCountFun.weight) : 0
 					let weight = this.allCountFun.weight ? Number(this.allCountFun.weight) : 0
 					let totalNum = this.allCountFun.bigLength ? Number(this.allCountFun.bigLength) : 0
 					let totalNum = this.allCountFun.bigLength ? Number(this.allCountFun.bigLength) : 0
-					for (const ele of this.getDictionariesInfo.transCost) {
+					for (const ele of this.transCost) {
 						if(ele.sign == num){
 						if(ele.sign == num){
 							if(num == 2){
 							if(num == 2){
 								//冷链物流
 								//冷链物流
@@ -615,6 +616,7 @@ export default {
 			let that = this
 			let that = this
 			getGhsDataApi({id:id}).then(res => {
 			getGhsDataApi({id:id}).then(res => {
 				that.ghsInfo = res.data
 				that.ghsInfo = res.data
+				that.transCost = that.ghsInfo.transCost ? that.ghsInfo.transCost : []
 				if(that.ghsInfo.pfLevel && that.ghsInfo.pfLevel == 1){
 				if(that.ghsInfo.pfLevel && that.ghsInfo.pfLevel == 1){
 					//昆明发货到全国
 					//昆明发货到全国
 					let packCost = 0
 					let packCost = 0

+ 5 - 3
hdApp/src/admin/billing/affirmGhsBook.vue

@@ -248,7 +248,8 @@ export default {
 				long:'',
 				long:'',
 				fullAddress:'',
 				fullAddress:'',
 				showAddress:''
 				showAddress:''
-			}
+			},
+			transCost:[]
 		};
 		};
 	},
 	},
 	onLoad(e) {
 	onLoad(e) {
@@ -370,10 +371,10 @@ export default {
 			let that = this
 			let that = this
 			this.form.transType = num
 			this.form.transType = num
 			this.form.sendCost = 0
 			this.form.sendCost = 0
-			if(this.getDictionariesInfo.transCost && !this.$util.isEmpty(this.getDictionariesInfo.transCost)){
+			if(this.transCost && !this.$util.isEmpty(this.transCost)){
 				let weight = this.allCountFun.weight ? Number(this.allCountFun.weight) : 0
 				let weight = this.allCountFun.weight ? Number(this.allCountFun.weight) : 0
 				let totalNum = this.allCountFun.bigLength ? Number(this.allCountFun.bigLength) : 0
 				let totalNum = this.allCountFun.bigLength ? Number(this.allCountFun.bigLength) : 0
-				for (const ele of this.getDictionariesInfo.transCost) {
+				for (const ele of this.transCost) {
 					if(ele.sign == num){
 					if(ele.sign == num){
 						if(num == 2){
 						if(num == 2){
 							//冷链物流
 							//冷链物流
@@ -436,6 +437,7 @@ export default {
 			let that = this
 			let that = this
 			getGhsDataApi({id:id}).then(res => {
 			getGhsDataApi({id:id}).then(res => {
 				that.ghsInfo = res.data;
 				that.ghsInfo = res.data;
+				that.transCost = that.ghsInfo.transCost ? that.ghsInfo.transCost : []
 				that.form.wlName = res.data.customWlName ? res.data.customWlName : ''
 				that.form.wlName = res.data.customWlName ? res.data.customWlName : ''
 				that.lackExpend = res.data.lackExpend?parseFloat(res.data.lackExpend):0
 				that.lackExpend = res.data.lackExpend?parseFloat(res.data.lackExpend):0