| | |
| | | </view> |
| | | <view class="form-cell"> |
| | | <label class="form-label">设置使用上限:</label> |
| | | <input class="input small-font" type="number" v-model="useLimitInput" placeholder="每次换刀后手填" :disabled="!selectedToolNo || loadingForm" /> |
| | | <input class="input small-font input-use-limit" type="number" v-model="useLimitInput" placeholder="每次换刀后手填" :disabled="!selectedToolNo || loadingForm" /> |
| | | </view> |
| | | <view class="form-cell"> |
| | | <label class="form-label">寿命比预警值:</label> |
| | | <view class="input-with-unit"> |
| | | <input class="input small-font" |
| | | <input class="input small-font input-life-warn" |
| | | v-model="lifeWarnInput" |
| | | placeholder="如0.9或90" |
| | | :disabled="!selectedToolNo || loadingForm" /> |
| | |
| | | </view> |
| | | |
| | | <!-- 第二行:在最后添加刀具目录按钮 --> |
| | | <view class="form-row"> |
| | | <view class="form-cell"> |
| | | <label class="form-label">刀具名称:</label> |
| | | <input class="input small-font" v-model="toolName" placeholder="刀具带出" disabled /> |
| | | </view> |
| | | <view class="form-cell"> |
| | | <label class="form-label">规格型号:</label> |
| | | <input class="input small-font" v-model="toolModel" placeholder="刀具带出" disabled /> |
| | | </view> |
| | | <!-- 新增的刀具目录按钮 --> |
| | | <view class="form-cell"> |
| | | <button class="btn-blue large-btn" @click="openToolDialog" :disabled="loadingTools">刀具目录</button> |
| | | </view> |
| | | <!-- 刀具名称 --> |
| | | <view class="form-cell"> |
| | | <label class="form-label">刀具名称:</label> |
| | | <input class="input small-font input-tool-name" v-model="toolName" placeholder="刀具带出" disabled /> |
| | | </view> |
| | | <!-- 规格型号 --> |
| | | <view class="form-cell"> |
| | | <label class="form-label">规格型号:</label> |
| | | <input class="input small-font input-tool-model" v-model="toolModel" placeholder="刀具带出" disabled /> |
| | | </view> |
| | | <!-- 新增的刀具目录按钮 --> |
| | | <view class="form-cell"> |
| | | <button class="btn-blue large-btn" @click="openToolDialog" :disabled="loadingTools">刀具目录</button> |
| | | </view> |
| | | </view> |
| | | </view> <!-- 这里闭合 top-section-grid --> |
| | | <!-- 操作按钮 - 移出 top-section-grid --> |
| | | <view class="button-row"> |
| | |
| | | min-width: 120px; |
| | | } |
| | | |
| | | /* 新增:让“设置使用上限”“寿命比预警值”输入框变窄 */ |
| | | .input-use-limit { |
| | | width: 80px !important; |
| | | min-width: 0 !important; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .input-life-warn { |
| | | width: 80px !important; |
| | | min-width: 0 !important; |
| | | margin-right: 4px; |
| | | } |
| | | |
| | | .input-use-limit { |
| | | width: 60px !important; |
| | | min-width: 0 !important; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .input-tool-model { |
| | | width: 60px !important; |
| | | min-width: 0 !important; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .input-tool-name { |
| | | width: 120px !important; |
| | | min-width: 0 !important; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .input-tool-model { |
| | | width: 120px !important; |
| | | min-width: 0 !important; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | </style> |