From d93b0d71a9bd9f19ea7c940341492240926806a7 Mon Sep 17 00:00:00 2001
From: Teo <2642673902@qq.com>
Date: Fri, 22 Aug 2025 15:11:31 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=A7=E5=80=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 10 +-
src/views/ctr/index.vue | 715 +++++++++---------
.../materialReceive/index.vue | 6 +-
.../out/settlementValueSubcontract/index.vue | 36 +-
src/views/patch/index.vue | 4 +
src/views/progress/progressCategory/index.vue | 2 +-
src/views/tender/plan/index.vue | 4 +-
vite.config.ts | 2 +-
8 files changed, 422 insertions(+), 357 deletions(-)
diff --git a/.env.development b/.env.development
index d905b86..4b01d87 100644
--- a/.env.development
+++ b/.env.development
@@ -5,8 +5,16 @@ VITE_APP_TITLE = 煤科建管平台
VITE_APP_ENV = 'development'
# 开发环境
+# 李陈杰 209
VITE_APP_BASE_API = 'http://192.168.110.209:8899'
-
+# 曾涛
+# VITE_APP_BASE_API = 'http://192.168.110.180:8899'
+# 罗成
+# VITE_APP_BASE_API = 'http://192.168.110.213:8899'
+# 朱银
+# VITE_APP_BASE_API = 'http://192.168.110.149:8899'
+# VITE_APP_BASE_API = 'http://192.168.110.209:8899'
+# VITE_APP_BASE_API = 'http://192.168.110.209:8899'
# 无人机接口地址
VITE_APP_BASE_DRONE_API = 'http://58.17.134.85:9512'
diff --git a/src/views/ctr/index.vue b/src/views/ctr/index.vue
index 851d61e..6bb4d68 100644
--- a/src/views/ctr/index.vue
+++ b/src/views/ctr/index.vue
@@ -1,408 +1,429 @@
-
-
-
-
-
-
-
-
-
- 收入合同
- 支出合同
-
-
-
-
- {{ contract_type == "income" ? "收入合同" : "支出合同" }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 选择招标
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ 选择招标
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- 上一步
- 下一步
-
-
-
- {{ contract_type == "income" ? "收入合同" : "支出合同" }}
-
-
-
- 月结算
- 形象节点
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 上一步
- 提交
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 上一步
+ 下一步
-
-
-
-
-
-
-
-
-
- 选择
-
-
-
-
-
-
-
+
+
+ {{ contract_type == 'income' ? '收入合同' : '支出合同' }}
+
+
+
+ 月结算
+ 形象节点
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上一步
+ 提交
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 选择
+
+
+
+
+
+
+
+
diff --git a/src/views/materials/materialsEquipment/materialReceive/index.vue b/src/views/materials/materialsEquipment/materialReceive/index.vue
index 6e14b99..ecf7bc1 100644
--- a/src/views/materials/materialsEquipment/materialReceive/index.vue
+++ b/src/views/materials/materialsEquipment/materialReceive/index.vue
@@ -485,13 +485,15 @@ const addItem = () => {
// 监听条目数据变化,自动计算缺件数量
const watchItemChanges = (index: number) => {
watch(
- () => [form.value.itemList[index].quantity, form.value.itemList[index].acceptedQuantity],
+ () => [form.value.itemList[index]?.quantity, form.value.itemList[index]?.acceptedQuantity],
([quantity, acceptedQuantity]) => {
// 确保数量和验收数量都是数字
const qty = Number(quantity) || 0;
const acceptedQty = Number(acceptedQuantity) || 0;
// 计算缺件数量(数量 - 验收数量)
- form.value.itemList[index].shortageQuantity = qty - acceptedQty;
+ if (form.value.itemList[index]) {
+ form.value.itemList[index].shortageQuantity = qty - acceptedQty;
+ }
},
{ immediate: true }
);
diff --git a/src/views/out/settlementValueSubcontract/index.vue b/src/views/out/settlementValueSubcontract/index.vue
index d25c1fd..393c571 100644
--- a/src/views/out/settlementValueSubcontract/index.vue
+++ b/src/views/out/settlementValueSubcontract/index.vue
@@ -105,7 +105,7 @@
-
+
@@ -121,7 +121,9 @@
-
+
+
+
@@ -138,6 +140,7 @@