快乐的昕的电脑
2025-11-01 06bcbfb1b8f4819e0cd34f6dcc1f73e0bb99cff4
components/mold.vue
@@ -7,7 +7,6 @@
                <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>
@@ -40,16 +39,16 @@
                    <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" />
@@ -76,10 +75,10 @@
                        </div>
                    </view>
                </view>
            </view>
        </view>
            <!-- 刀具使用记录表格 -->
            <view class="table-section">
        <!-- 刀具使用记录表格 -->
        <view class="table-section">
                <table class="styled-table">
                    <thead>
                        <tr>
@@ -118,14 +117,14 @@
                        </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>