From 99227892dd3c52a488cc594eb530e5a75b8491ea Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期三, 08 十月 2025 17:21:45 +0800
Subject: [PATCH] 添加刀具使用上限

---
 .vs/slnx.sqlite     |    0 
 .vs/前端2/v17/.wsuo   |    0 
 components/mold.vue |   10 ++++++++++
 3 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite
index 3034100..c1d8f25 100644
--- a/.vs/slnx.sqlite
+++ b/.vs/slnx.sqlite
Binary files differ
diff --git "a/.vs/\345\211\215\347\253\2572/v17/.wsuo" "b/.vs/\345\211\215\347\253\2572/v17/.wsuo"
index 607b17e..0ec841f 100644
--- "a/.vs/\345\211\215\347\253\2572/v17/.wsuo"
+++ "b/.vs/\345\211\215\347\253\2572/v17/.wsuo"
Binary files differ
diff --git a/components/mold.vue b/components/mold.vue
index 0b658a3..610d4b8 100644
--- a/components/mold.vue
+++ b/components/mold.vue
@@ -6,6 +6,15 @@
 		<view class="top-section">
 			<view class="form-group">
 				<label>閫夋嫨鍒�鍏风紪鍙凤細</label>
+				<view class="form-group">
+					<label>璁剧疆浣跨敤涓婇檺锛�</label>
+					<input class="input"
+						   type="number"
+						   v-model="useLimitInput"
+						   placeholder="姣忔鎹㈠垁鍚庢墜濉�"
+						   :disabled="!selectedToolNo" />
+					<button class="btn-blue" @click="setUseLimit" :disabled="!selectedToolNo || !useLimitInput">淇濆瓨涓婇檺</button>
+				</view>
 				<select v-model="selectedToolNo">
 					<option v-for="tool in toolList" :key="tool.no" :value="tool.no">{{ tool.no }} | {{ tool.name }}</option>
 				</select>
@@ -107,6 +116,7 @@
 				showToolDialog: false,
 				searchKey: '',
 				filteredTools: [],
+                useLimitInput: '',
 				toolRecords: [
 					// 绀轰緥鏁版嵁锛屽疄闄呭簲浠庡悗绔帴鍙h幏鍙�
 					{ id: 1, no: 'T22050338', name: 'm1.5鍚堥噾闀垮垁', upTime: '7-13 9:00', upCount: 15, downTime: '7-13 19:00', downCount: 3115, useCount: 3100, useLimit: 8888, lifePercent: '34.88%', lifeWarn: '90%', warnStatus: '姝e父' }

--
Gitblit v1.9.3