+
+ 查询
+
+
-
-
-
@@ -446,6 +443,7 @@
+
@@ -461,6 +459,15 @@
+
+
+
+
+ (USD)
+
+
+
+
@@ -510,7 +517,8 @@
-
+
@@ -669,7 +677,8 @@
-
+
@@ -694,10 +703,7 @@
-
-
-
@@ -1499,7 +1505,7 @@ methods: {
/** 提交按钮 */
submitForm() {
this.form.sendDate =this.sendDate;
- this.$refs["form"].validate(valid => {
+ this.$refs["form"].validate((valid,obj) => {
if (valid) {
if(this.form.destinationCountry!=this.form.reciever.country){
@@ -1522,10 +1528,27 @@ methods: {
}
}
+ else {
+ var fail = [];
+ for (let key in obj) {
+ fail.push(obj[key][0].message);
+ }
+ this.$notify({
+ title: '校验失败',
+ message: '
'+fail[0]+'',
+ type: 'error',
+ dangerouslyUseHTMLString: true,
+ showClose: false,
+ duration: 2000,
+ // position: 'bottom-right',
+ offset: 100
+ });
+ return false;
+ }
});
},
startTimer(){
- if(this.action=='add' || action=='preAdd'){
+ if(this.action=='add' || this.action=='preAdd'){
this.sendDate=parseTime(new Date());
this.timer = setTimeout(this.startTimer, 1000);
}
@@ -1692,14 +1715,18 @@ methods: {
handleCalcFeeItem(row){
+ console.log("===>handleCalcFeeItem==>",row);
if(row!=null){
-
if(row.calcExp){
let expr=row.calcExp;
expr=expr.replace("s",row.initialWeightFee);
expr=expr.replace("d",row.addWeightPrice);
expr=expr.replace("w",this.form.settlementWeight);
+
+ console.log("===>eval(expr):",eval(expr));
row.realFee=parseFloat(eval(expr)).toFixed(2);
+
+ console.log("===>row.calcExp==>expr==>row.realFee:",row.calcExp,expr,row.realFee);
}
}
@@ -1782,11 +1809,15 @@ methods: {
let calcFeeType=this.form.calcFeeType;
if(calcFeeType==3){
- calcFeeType=1;
+ // calcFeeType=1;
+ // 不要重算费用
+ return;
}
+
+
let postData={
productType: this.form.productType,
customerCode: this.form.customerCode,
@@ -2082,5 +2113,22 @@ methods: {
pointer-events: auto;
}
+// .notify-success{
+// top: 1.7rem !important;
+// right: 0.32rem !important;
+// width: 2rem !important;
+// height: 0.96rem !important;
+// background: rgba(131, 213, 134, 0.1) !important;
+// border-radius: 0.04rem 0px 0px 0.04rem !important;
+// }
+// .notify-error{
+// top: 2.7rem !important;
+// right: 0.32rem !important;
+// width: 2rem !important;
+// height: 0.96rem !important;
+// background: rgba(255, 31, 36, 0.05) !important;
+// border-radius: 0.04rem 0px 0px 0.04rem !important;
+// }
+