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@rnzy;yJ!w>
zWq=KNIM>Q9rL+!gjVrr+?97kW@#E`Pth~yAdc~vk|zX5w)+c
zxKp`wH^;5rl;PHH^z&gJ%uV?bc@-|*GwR2a=328MQ^LaXgmWRL5Y`CAh&2N$`EJOZ
zl3|96U~}BMEt$x=t+{r1W^(>+`Sv2}0rhRMf6bNE;xvTh5jgLoX{bq`IO1rhMrW@
zrk$DQ&ArgHsTU~U-0L-M-sLrI+6he?cZ~W)g&?_}Uao0#Z>9<3Dedy`+}ZT@E^jzj
zDKF5RL9M2q-Ia&i-NPX^8nbC9Z_kKXa
z7>teKu?pi+X0~_H#{5w4`%vAx`@QI%gB6EMYwcpSSl;0rem%cNwD-eweD{Iz;l9oY
znd?2o#r7Vk_*@b)hq!pAFB8ukhS>FpsvYrG6t7AI#s#
zYvgf3C23K$@Dj!oRSSfG(~B6@0@RHlt!y3GS)8B}Ptfd&!#x_N|I<22F;evBaD_}0
zHS!NQARNA=J1-&$I(bphh%altEGX6t^ph|K|C_vGr0_p7p9zEdU(_fSPso*CO8@`>
M07*qoM6N<$f+!j83IG5A
literal 0
HcmV?d00001
diff --git a/src/views/projectLarge/digitalizationScreen/components/leftPage.vue b/src/views/projectLarge/digitalizationScreen/components/leftPage.vue
index b7e438b..eb8590c 100644
--- a/src/views/projectLarge/digitalizationScreen/components/leftPage.vue
+++ b/src/views/projectLarge/digitalizationScreen/components/leftPage.vue
@@ -1,7 +1,7 @@
-
+

From d92a54078602161ec5348f3900a5bb99108e5e0f Mon Sep 17 00:00:00 2001
From: taoge1020
Date: Tue, 9 Sep 2025 17:03:01 +0800
Subject: [PATCH 11/12] =?UTF-8?q?=E9=87=91=E9=A2=9D=E6=A0=BC=E5=BC=8F?=
=?UTF-8?q?=E8=AE=BE=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 2 +-
src/plugins/index.ts | 3 +-
src/utils/ruoyi.ts | 16 +
src/views/contract/bidCost/index.vue | 6 +-
src/views/contract/division/index.vue | 35 +-
src/views/contract/limitPrice/index.vue | 10 +-
src/views/contract/limitPrice/indexEdit.vue | 18 +-
src/views/ctr/update/index.vue | 355 +++++++++---------
src/views/design/designChange/indexEdit.vue | 8 +-
src/views/out/constructionValue/index.vue | 12 +-
src/views/out/designCompletion/index.vue | 18 +-
src/views/out/monthPlan/index.vue | 20 +-
src/views/out/monthPlanAudit/index.vue | 26 +-
src/views/out/outDesignTable/index.vue | 34 +-
src/views/out/outDesignTableVS/index.vue | 74 +++-
src/views/out/outTable/index.vue | 79 +++-
src/views/out/purchase/comm/purchPage.vue | 6 +-
.../out/settlementValueSubcontract/index.vue | 6 +-
src/views/out/valueAllocation/index.vue | 48 ++-
src/views/progress/progressCategory/index.vue | 10 +-
src/views/project/constructionUser/index.vue | 4 +-
.../landTransferLedger/index.vue | 40 +-
.../landTransferLedgerFangzhen/index.vue | 20 +-
src/views/project/projectUser/index.vue | 4 +-
src/views/project/salaryExcel/index.vue | 6 +-
src/views/project/subManagementUser/index.vue | 4 +-
src/views/project/subcontract/index.vue | 8 +-
src/views/project/workWage/index.vue | 8 +-
src/views/tender/bidd/index.vue | 8 +-
src/views/tender/bidd/indexEdit.vue | 8 +-
src/views/tender/bidd/indexEdit2.vue | 8 +-
src/views/tender/plan/index.vue | 47 ++-
32 files changed, 633 insertions(+), 318 deletions(-)
diff --git a/.env.development b/.env.development
index 4a874b9..6359576 100644
--- a/.env.development
+++ b/.env.development
@@ -14,7 +14,7 @@ VITE_APP_BASE_API = 'http://192.168.110.149:8899'
# 罗成
# VITE_APP_BASE_API = 'http://192.168.110.188:8899'
# 朱银
-VITE_APP_BASE_API = 'http://192.168.110.149:8899'
+# VITE_APP_BASE_API = 'http://192.168.110.149:8899'
#曾涛
# VITE_APP_BASE_API = 'http://192.168.110.171:8899'
diff --git a/src/plugins/index.ts b/src/plugins/index.ts
index 7449bde..1b5d412 100644
--- a/src/plugins/index.ts
+++ b/src/plugins/index.ts
@@ -9,7 +9,7 @@ import animate from '@/animate';
import { download as dl } from '@/utils/request';
import { useDict } from '@/utils/dict';
import { getConfigKey, updateConfigByKey } from '@/api/system/config';
-import { parseTime, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi';
+import { parseTime, addDateRange, handleTree, selectDictLabel, selectDictLabels,formatPrice } from '@/utils/ruoyi';
import { downloadFile } from '@/utils/useFileDownload';
import { App } from 'vue';
@@ -42,4 +42,5 @@ export default function installPlugin(app: App) {
app.config.globalProperties.selectDictLabels = selectDictLabels;
app.config.globalProperties.animate = animate;
app.config.globalProperties.downloadFile = downloadFile;
+ app.config.globalProperties.formatPrice = formatPrice;
}
diff --git a/src/utils/ruoyi.ts b/src/utils/ruoyi.ts
index 8efd12c..c92994d 100644
--- a/src/utils/ruoyi.ts
+++ b/src/utils/ruoyi.ts
@@ -62,7 +62,23 @@ export const addDateRange = (params: any, dateRange: any[], propName?: string) =
}
return search;
};
+// 价格格式化函数
+export const formatPrice = (price, show = true) => {
+ if ((!show && price == 0) || price == '' || price == undefined || price == null) return '';
+ if (!price && price !== 0) return '0.0000';
+ // 转换为数字并保留四位小数
+ const num = Number(price);
+ if (isNaN(num)) return '0.0000';
+
+ const fixedNum = num.toFixed(4);
+ const [integer, decimal] = fixedNum.split('.');
+
+ // 千分位处理
+ const formattedInteger = integer.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
+
+ return `${formattedInteger}.${decimal}`;
+};
// 回显数据字典
export const selectDictLabel = (datas: any, value: number | string) => {
if (value === undefined) {
diff --git a/src/views/contract/bidCost/index.vue b/src/views/contract/bidCost/index.vue
index a69eb4c..8df9d45 100644
--- a/src/views/contract/bidCost/index.vue
+++ b/src/views/contract/bidCost/index.vue
@@ -77,8 +77,8 @@
changePrice(scope.row);
}
"
- :precision="2"
- :step="0.1"
+ :min="0"
+ :precision="4"
:controls="false"
v-if="scope.row.quantity && scope.row.quantity != 0"
/>
@@ -86,7 +86,7 @@
- {{ scope.row.price != 0 ? Number(scope.row.price).toFixed(2) : null }}
+ {{ proxy.formatPrice(scope.row.price) }}
diff --git a/src/views/contract/division/index.vue b/src/views/contract/division/index.vue
index 1f085b2..23c50f5 100644
--- a/src/views/contract/division/index.vue
+++ b/src/views/contract/division/index.vue
@@ -25,7 +25,11 @@
-
+
+
+ {{ proxy.formatPrice(scope.row.price) }}
+
+
*计划招标时间
@@ -158,22 +162,28 @@
-
+
+
+ {{ proxy.formatPrice(scope.row.unitPrice) }}
+
+
+
{{
- ((scope.row.quantity ? Number(scope.row.quantity) : 0) -
- (scope.row.useQuantity ? Number(scope.row.useQuantity) : 0) -
- (scope.row.selectNum ? Number(scope.row.selectNum) : 0)) *
- Number(scope.row.unitPrice) ==
- 0
- ? ''
- : (
- ((scope.row.quantity ? Number(scope.row.quantity) : 0) -
+ proxy.formatPrice(
+ ((scope.row.quantity ? Number(scope.row.quantity) : 0) -
+ (scope.row.useQuantity ? Number(scope.row.useQuantity) : 0) -
+ (scope.row.selectNum ? Number(scope.row.selectNum) : 0)) *
+ Number(scope.row.unitPrice) ==
+ 0
+ ? ''
+ : ((scope.row.quantity ? Number(scope.row.quantity) : 0) -
(scope.row.useQuantity ? Number(scope.row.useQuantity) : 0) -
(scope.row.selectNum ? Number(scope.row.selectNum) : 0)) *
- Number(scope.row.unitPrice)
- ).toFixed(2)
+ Number(scope.row.unitPrice),
+ false
+ )
}}
@@ -207,6 +217,7 @@ import { useUserStoreHook } from '@/store/modules/user';
import { getDicts } from '@/api/system/dict/data';
import { Plus } from '@element-plus/icons-vue';
import { FormInstance } from 'element-plus';
+const { proxy } = getCurrentInstance();
import {
treeList,
sheetList,
diff --git a/src/views/contract/limitPrice/index.vue b/src/views/contract/limitPrice/index.vue
index 505add3..dce5f23 100644
--- a/src/views/contract/limitPrice/index.vue
+++ b/src/views/contract/limitPrice/index.vue
@@ -79,18 +79,16 @@
changePrice(scope.row);
}
"
- :precision="2"
- :step="0.1"
+ :min="0"
+ :precision="4"
:controls="false"
v-if="scope.row.quantity && scope.row.quantity != 0"
/>
-
+
-
- {{ scope.row.price != 0 ? Number(scope.row.price).toFixed(2) : null }}
-
+ {{ proxy.formatPrice(scope.row.price) }}
diff --git a/src/views/contract/limitPrice/indexEdit.vue b/src/views/contract/limitPrice/indexEdit.vue
index facd683..4665f32 100644
--- a/src/views/contract/limitPrice/indexEdit.vue
+++ b/src/views/contract/limitPrice/indexEdit.vue
@@ -41,10 +41,14 @@
-
-
+
- {{ scope.row.price != 0 ? Number(scope.row.price).toFixed(2) : null }}
+ {{ proxy.formatPrice(scope.row.unitPrice, false) }}
+
+
+
+
+ {{ proxy.formatPrice(scope.row.price) }}
@@ -70,8 +74,12 @@
diff --git a/src/views/ctr/update/index.vue b/src/views/ctr/update/index.vue
index 4908951..d813daf 100644
--- a/src/views/ctr/update/index.vue
+++ b/src/views/ctr/update/index.vue
@@ -1,79 +1,80 @@
-
-
-
-
-
-
-
-
- 修改收入合同
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 下一步
-
-
-
- 修改收入合同
-
-
-
- 月结算
- 形象节点
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 上一步
- 提交
-
-
-
-
+
+
+
+
+
+
+
+
+ 修改收入合同
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 下一步
+
+
+ 修改收入合同
+
+
+
+ 月结算
+ 形象节点
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上一步
+ 提交
+
+
+
+
+
diff --git a/src/views/design/designChange/indexEdit.vue b/src/views/design/designChange/indexEdit.vue
index 9e6e857..7e0c7e5 100644
--- a/src/views/design/designChange/indexEdit.vue
+++ b/src/views/design/designChange/indexEdit.vue
@@ -145,7 +145,13 @@
>
-
diff --git a/src/views/out/constructionValue/index.vue b/src/views/out/constructionValue/index.vue
index b6d49e0..50d0699 100644
--- a/src/views/out/constructionValue/index.vue
+++ b/src/views/out/constructionValue/index.vue
@@ -39,8 +39,16 @@
-
-
+
+
+ {{ proxy.formatPrice(scope.row.outValue) }}
+
+
+
+
+ {{ proxy.formatPrice(scope.row.ownerValue) }}
+
+
diff --git a/src/views/out/designCompletion/index.vue b/src/views/out/designCompletion/index.vue
index 92f6638..fe4a233 100644
--- a/src/views/out/designCompletion/index.vue
+++ b/src/views/out/designCompletion/index.vue
@@ -24,9 +24,21 @@
-
-
-
+
+
+ {{ proxy.formatPrice(scope.row.planValue) }}
+
+
+
+
+ {{ proxy.formatPrice(scope.row.completeValue) }}
+
+
+
+
+ {{ proxy.formatPrice(scope.row.differenceValue) }}
+
+
对甲
diff --git a/src/views/out/monthPlan/index.vue b/src/views/out/monthPlan/index.vue
index af7bebd..e64d670 100644
--- a/src/views/out/monthPlan/index.vue
+++ b/src/views/out/monthPlan/index.vue
@@ -40,9 +40,21 @@
-
-
-
+
+
+ {{ proxy.formatPrice(scope.row.planValue) }}
+
+
+
+
+ {{ proxy.formatPrice(scope.row.completeValue) }}
+
+
+
+
+ {{ proxy.formatPrice(scope.row.differenceValue) }}
+
+
@@ -104,7 +116,7 @@