提交 cc517151 authored 作者: huaxinzhu's avatar huaxinzhu

bug修复

上级 eb30f55e
...@@ -184,8 +184,12 @@ ...@@ -184,8 +184,12 @@
</div> </div>
</el-card> </el-card>
<!-- 图片识别 对话框 -->
<el-dialog title="提示" :visible.sync="isReadFailVisible" width="400px" center
:close-on-click-modal="false">
<p>未能识别有效信息,请重新上传正确的图片或者手动输入相关信息</p>
<p>改弹窗显示<span>readTime</span>s后自动关闭,无需手动关闭</p>
</el-dialog>
</div> </div>
</template> </template>
...@@ -229,14 +233,14 @@ ...@@ -229,14 +233,14 @@
} }
}; };
let licenseTimeValidator = (rule, value, callback) => { let licenseTimeValidator = (rule, value, callback) => {
if (this.periodConcreteTime == [] && this.periodLongTermVal === false) { if ( (this.periodConcreteTime.length == 0 || !this.periodConcreteTime) && this.periodLongTermVal === false) {
callback(new Error("营业期限具体时间和长期必须填写其中一个")); callback(new Error("营业期限具体时间和长期必须填写其中一个"));
} else { } else {
callback(); callback();
} }
}; };
let idCardTimeValidator = (rule, value, callback) => { let idCardTimeValidator = (rule, value, callback) => {
if (this.validityConcreteTime === null && this.validityLongTermVal === false) { if ((this.validityConcreteTime.length == 0 || !this.validityConcreteTime) && this.validityLongTermVal === false) {
callback(new Error("有效期具体时间和长期必须填写其中一个")); callback(new Error("有效期具体时间和长期必须填写其中一个"));
} else { } else {
callback(); callback();
...@@ -292,7 +296,10 @@ ...@@ -292,7 +296,10 @@
idcard_front: [{required: true, message: '请上传法人证件电子版图片',validator: idCardValidator}], idcard_front: [{required: true, message: '请上传法人证件电子版图片',validator: idCardValidator}],
license_expires_time: [{ validator:licenseTimeValidator,required: true,trigger: 'change' }], license_expires_time: [{ validator:licenseTimeValidator,required: true,trigger: 'change' }],
idcard_expires_time: [{ validator:idCardTimeValidator,required: true,trigger: 'change' }] idcard_expires_time: [{ validator:idCardTimeValidator,required: true,trigger: 'change' }]
} },
readTime: 5,
isReadFailVisible: false,
TIMER: null,
} }
}, },
created() { created() {
...@@ -316,6 +323,10 @@ ...@@ -316,6 +323,10 @@
} // if end } // if end
}); // getInfo end }); // getInfo end
}, },
destroyed() {
clearInterval(this.TIMER);
this.TIMER = null;
},
mounted() {}, mounted() {},
methods: { methods: {
/** 营业期限 选择区间时间时 */ /** 营业期限 选择区间时间时 */
...@@ -418,6 +429,8 @@ ...@@ -418,6 +429,8 @@
// this.isConcretePeriod = false; // this.isConcretePeriod = false;
this.periodLongTermVal = false; this.periodLongTermVal = false;
} }
}else {
this.isReadFailVisible = true;
} }
}); });
}, },
......
...@@ -437,7 +437,6 @@ ...@@ -437,7 +437,6 @@
if ( res.code == 1 ) { if ( res.code == 1 ) {
this.cateFee = res.data.service_fee_ratio this.cateFee = res.data.service_fee_ratio
this.$store.commit('SET_CATEFEE',this.cateFee); this.$store.commit('SET_CATEFEE',this.cateFee);
console.log(444,this.cateFee);
} }
}); });
}, },
......
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
], ],
singleSpecImgList: [], singleSpecImgList: [],
isViewPriceExp: false, isViewPriceExp: false,
cateFee: 1, cateFee: 0,
} // return end } // return end
}, },
watch:{ watch:{
...@@ -219,6 +219,8 @@ export default { ...@@ -219,6 +219,8 @@ export default {
}, },
created() { created() {
this.cateFee = this.$store.state.user.cateFee; this.cateFee = this.$store.state.user.cateFee;
console.log("刚加载:",this.cateFee);
console.log(1111,this.$store.state.user.cateFee)
}, },
mounted() { mounted() {
if(this.parameterdata.pamTableList && this.parameterdata.pamTableList.length > 0) { if(this.parameterdata.pamTableList && this.parameterdata.pamTableList.length > 0) {
...@@ -398,8 +400,11 @@ export default { ...@@ -398,8 +400,11 @@ export default {
if (jsPriceVal == "") { if (jsPriceVal == "") {
jsPriceVal = '' jsPriceVal = ''
} }
if (jsPriceVal > 0 && this.cateFee == 0) {
slPriceNum = jsPriceVal
}
if (jsPriceVal > 0 && this.cateFee > 0) { if (jsPriceVal > 0 && this.cateFee > 0) {
// slPriceNum = (jsPriceVal * 10000 - this.cateFee)/10000 console.log("动态:",this.cateFee);
slPriceNum = (10000 - this.cateFee) * jsPriceVal /10000 slPriceNum = (10000 - this.cateFee) * jsPriceVal /10000
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论