| | |
| | | <view class="form-cell"> |
| | | <label class="form-label">刀具编号:</label> |
| | | <input class="input small-font" v-model="selectedToolNo" placeholder="请通过刀具目录选择" disabled /> |
| | | <!-- 移除的按钮位置 --> |
| | | </view> |
| | | <view class="form-cell"> |
| | | <label class="form-label">设置使用上限:</label> |
| | |
| | | <button class="btn-blue large-btn" @click="openToolDialog" :disabled="loadingTools">刀具目录</button> |
| | | </view> |
| | | </view> |
| | | </view> <!-- 这里闭合 top-section-grid --> |
| | | <!-- 操作按钮 - 移出 top-section-grid --> |
| | | <view class="button-row"> |
| | | <button class="save-btn" @click="handleUpTool" :disabled="submitting || loadingForm">上刀提交</button> |
| | | <button class="save-btn" @click="handleDownTool" :disabled="submitting || loadingForm">下刀提交</button> |
| | | <button class="cancel-btn" @click="cancel" :disabled="submitting || loadingForm">取消</button> |
| | | </view> |
| | | |
| | | <!-- 操作按钮 --> |
| | | <view class="button-row"> |
| | | <button class="save-btn" @click="handleUpTool" :disabled="submitting || loadingForm">上刀提交</button> |
| | | <button class="save-btn" @click="handleDownTool" :disabled="submitting || loadingForm">下刀提交</button> |
| | | <button class="cancel-btn" @click="cancel" :disabled="submitting || loadingForm">取消</button> |
| | | </view> |
| | | |
| | | <!-- 刀具目录弹窗 --> |
| | | <view v-if="showToolDialog" class="dialog-overlay"> |
| | | <!-- 刀具目录弹窗 --> |
| | | <view v-if="showToolDialog" class="dialog-overlay"> |
| | | <view class="dialog"> |
| | | <view class="form-group"> |
| | | <input v-model="searchKey" placeholder="输入刀具编码、名称模糊搜索" class="input" @input="onSearchKeyInput" /> |
| | |
| | | </div> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- 刀具使用记录表格 --> |
| | | <view class="table-section"> |
| | | <!-- 刀具使用记录表格 --> |
| | | <view class="table-section"> |
| | | <table class="styled-table"> |
| | | <thead> |
| | | <tr> |
| | |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- 说明 --> |
| | | <!--<view class="tool-desc"> |
| | | <p style="color:red;">'使用上限'以下刀时的'使用上限'为计算标准</p> |
| | | <p style="color:red;">寿命比预警值默认为90%</p> |
| | | </view>--> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | align-items: center; |
| | | flex: 1; |
| | | margin: 0 8px; |
| | | min-height: 40px; |
| | | min-height: 44px; |
| | | } |
| | | |
| | | .form-label { |
| | |
| | | color: #333; |
| | | white-space: nowrap; |
| | | margin-right: 8px; |
| | | flex-shrink: 0; |
| | | } |
| | | |
| | | .input { |
| | |
| | | font-size: 16px; |
| | | border: 1px solid #dcdfe6; |
| | | flex: 1; |
| | | margin-right: 8px; |
| | | margin-right: 0; |
| | | border-radius: 4px; |
| | | background: #fff; |
| | | min-width: 0; |
| | |
| | | height: 36px; |
| | | box-sizing: border-box; |
| | | transition: all 0.3s; |
| | | flex-shrink: 0; |
| | | } |
| | | |
| | | .btn-blue:hover { |
| | |
| | | |
| | | /* 新增大按钮样式 */ |
| | | .btn-blue.large-btn { |
| | | padding: 12px 24px; |
| | | font-size: 18px; |
| | | height: 44px; |
| | | min-width: 120px; |
| | | padding: 8px 24px; |
| | | font-size: 16px; |
| | | height: 36px; |
| | | min-width: 100px; |
| | | } |
| | | |
| | | /* 调整表单单元格布局以适应大按钮 */ |
| | | .form-cell:last-child { |
| | | justify-content: flex-end; |
| | | /* 调整表单单元格布局以适应按钮 */ |
| | | .form-row .form-cell:last-child { |
| | | justify-content: center; |
| | | flex: 0 0 auto; |
| | | min-width: 120px; |
| | | } |
| | | |
| | | </style> |