From 2d83f0c2b6348366f1e7a234012142e755b16e98 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Wed, 08 Jul 2026 12:35:06 +0800
Subject: [PATCH] feat:更新ws地址和字段

---
 applications/task-work-order/src/views/orderView/orderManage/inspectionReport/index.vue |   13 +++++++++++--
 applications/drone-command/src/views/basicManage/deviceStock/FormDiaLog.vue             |   15 ++++++++-------
 applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue                     |    3 ++-
 applications/drone-command/src/views/audioCall.vue                                      |    3 ++-
 4 files changed, 23 insertions(+), 11 deletions(-)

diff --git a/applications/drone-command/src/views/audioCall.vue b/applications/drone-command/src/views/audioCall.vue
index bedcfba..f04a957 100644
--- a/applications/drone-command/src/views/audioCall.vue
+++ b/applications/drone-command/src/views/audioCall.vue
@@ -36,7 +36,8 @@
 import { ref, computed, onBeforeUnmount } from 'vue'
 
 /** ✅ 你的 WS 地址前缀(后面拼 userId) */
-const WS_BASE = 'ws://218.202.104.82:38201/ws/chat'
+// const WS_BASE = 'ws://218.202.104.82:38201/ws/chat'
+const WS_BASE = 'ws://220.177.172.27:8100/yisuanzhijian/system/ws/chat'
 
 const uid = ref('2021474568497131521')
 const peerUid = ref('2021474815063486465')
diff --git a/applications/drone-command/src/views/basicManage/deviceStock/FormDiaLog.vue b/applications/drone-command/src/views/basicManage/deviceStock/FormDiaLog.vue
index 897a940..07f4e6b 100644
--- a/applications/drone-command/src/views/basicManage/deviceStock/FormDiaLog.vue
+++ b/applications/drone-command/src/views/basicManage/deviceStock/FormDiaLog.vue
@@ -150,19 +150,20 @@
 					</el-form-item>
 				</el-col>
 				<el-col :span="12">
-					<el-form-item label="使用日期" prop="serviceLife">
+					<el-form-item label="使用日期" prop="useDate">
 						<el-date-picker class="command-date-picker" popper-class="command-date-picker-popper"
-							v-model="formData.serviceLife"
+							v-model="formData.useDate"
 							type="date"
 							placeholder="选择日期"
-							value-format="YYYY-MM-DD HH:mm:ss"
+							value-format="YYYY-MM-DD"
 							clearable
 						/>
 					</el-form-item>
 				</el-col>
 				<el-col :span="12">
-					<el-form-item label="使用年限" prop="useDate">
-						<el-input type="number" class="command-input" v-model="formData.useDate" maxlength="50" placeholder="请输入" clearable />
+					<el-form-item label="使用年限" prop="serviceLife">
+						<!-- <el-input type="number" class="command-input" v-model="formData.useDate" maxlength="50" placeholder="请输入" clearable /> -->
+						 <el-input-number class="command-input" v-model="formData.serviceLife" :min="0" :max="100" :controls="false" placeholder="请输入" />
 					</el-form-item>
 				</el-col>
 				<el-col :span="12">
@@ -262,8 +263,8 @@
 	belongDept: fieldRules(true),
 	contactPhone: contactPhoneRules(true, 50),
 	charger: fieldRules(true),
-	serviceLife: fieldRules(true, 50),
-	useDate: fieldRules(true, 50),
+	serviceLife: fieldRules(true),
+	useDate: fieldRules(true),
 }
 
 const userList = ref([])
diff --git a/applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue b/applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue
index 532e075..5bae215 100644
--- a/applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue
+++ b/applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue
@@ -43,7 +43,8 @@
 const route = useRoute()
 /** ✅ 你的 WS 地址前缀(后面拼 userId) */
 // const WS_BASE = 'ws://218.202.104.82:38201/ws/chat?userId='
-const WS_BASE = 'ws://218.202.104.82:38201/ws/chat'
+// const WS_BASE = 'ws://218.202.104.82:38201/ws/chat'
+const WS_BASE = 'ws://220.177.172.27:8100/yisuanzhijian/system/ws/chat'
 const newUserInfo = ref(null)
 const uid = ref('')
 const peerUid = ref('')
diff --git a/applications/task-work-order/src/views/orderView/orderManage/inspectionReport/index.vue b/applications/task-work-order/src/views/orderView/orderManage/inspectionReport/index.vue
index 1b1d54a..f19d914 100644
--- a/applications/task-work-order/src/views/orderView/orderManage/inspectionReport/index.vue
+++ b/applications/task-work-order/src/views/orderView/orderManage/inspectionReport/index.vue
@@ -269,14 +269,23 @@
 ];
 const { VITE_APP_PREVIEW_URL } = import.meta.env
 
+// kkfileView 中,word/pdf 默认转成只读 pdf 预览,excel 才是可编辑的 html 模式。
+// 对这些类型追加 officePreviewType=html,让其以可编辑的 html 方式打开
+const editableOfficeTypes = ['doc', 'docx', 'pdf']
+
 // 在线查看文档
 function seeOnlineWord(row) {
 	// 获取点之后的文件格式名
-	const fileType = row?.link?.split('.').pop() || ''
+	const fileType = (row?.link?.split('.').pop() || '').toLowerCase()
 	if (!row.link) {
 		ElMessage.warning('文件链接不存在')
 	} else if (allSupportedExtensions.includes(fileType)){
-		window.open(`${VITE_APP_PREVIEW_URL}/onlinePreview?url=`+encodeURIComponent(Base64.encode(row.link)));
+		let url = `${VITE_APP_PREVIEW_URL}/onlinePreview?url=` + encodeURIComponent(Base64.encode(row.link))
+		// word/pdf 以可编辑的 html 模式打开(与 excel 一致)
+		if (editableOfficeTypes.includes(fileType)) {
+			url += '&officePreviewType=html'
+		}
+		window.open(url)
 	} else {
 		ElMessage.warning(`${fileType}文件格式,可以下载再查看`)
 	}

--
Gitblit v1.9.3