From dfbe41061d3e16a2c7e18302ccc9a0dd72e324d4 Mon Sep 17 00:00:00 2001 From: JIAL <2287346125@qq.com> Date: Fri, 15 Mar 2024 11:03:20 +0800 Subject: [PATCH] 1 --- ruoyi-ui/src/views/quotePage/quote/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/quotePage/quote/index.vue b/ruoyi-ui/src/views/quotePage/quote/index.vue index 0eb7c93..5503975 100644 --- a/ruoyi-ui/src/views/quotePage/quote/index.vue +++ b/ruoyi-ui/src/views/quotePage/quote/index.vue @@ -691,10 +691,12 @@ export default { /**-------------获取红本信息,包括红本版本、铜价和铝价---------------**/ getRedBookInfo() { queryRedBookInfo().then(response => { + redBookVer = response.data.uid; this.totalForm.currAdjDate = response.data.currAdjDate.substring(0, 10); this.totalForm.currCopperPrice = response.data.currCopperPrice; - this.totalForm.currAlumPrice = response.data.currAlumPrice + this.totalForm.currAlumPrice = response.data.currAlumPrice; + console.log("redBookVer:" + redBookVer) }); queryRedBookLocalVer().then(response => { redBookLocalVer = response.msg @@ -891,7 +893,7 @@ export default { }, /**----------------计算数据--------------------**/ calculatedData() { - if(redBookVer !== redBookLocalVer) { + if(Number(redBookVer) !== Number(redBookLocalVer)) { this.$message({ type: 'warning', message: "调价结果未同步,请联系管理员进行同步再进行价格计算。"