快乐的昕的电脑
2025-11-19 ec6ce3c1218555e1b10bf5679cf26893ccde584c
components/mold.vue
@@ -8,16 +8,14 @@
                    <label class="form-label">刀具编号:</label>
                    <input class="input small-font" v-model="selectedToolNo" placeholder="请通过刀具目录选择" disabled />
                </view>
                <view class="form-cell">
                <view class="form-cell form-cell-flex">
                    <label class="form-label highlight-label">使用上限:</label>
                    <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>
                    <label class="form-label" style="margin-left:16px;">寿命比预警值:</label>
                    <view class="input-with-unit">
                        <input class="input small-font input-life-warn"
                               v-model="lifeWarnInput"
                               placeholder="如0.9或90"
                               placeholder="如90或0.90"
                               :disabled="!selectedToolNo || loadingForm" />
                        <span class="unit-text">%</span>
                    </view>
@@ -702,11 +700,11 @@
        }
    .form-label {
        width: 120px;
        width: auto;
        font-weight: bold;
        color: #333;
        white-space: nowrap;
        margin-right: 12px;
        margin-right: 4px;
        flex-shrink: 0;
    }
@@ -732,18 +730,20 @@
            cursor: not-allowed;
        }
    .input, .input-with-unit {
        width: 100%;
        box-sizing: border-box;
    }
    .input-with-unit {
        display: flex;
        align-items: center;
        width: auto !important; /* 让内容自适应 */
        min-width: 0;
        flex-shrink: 1;
        gap: 0;
    }
        .input-with-unit .input {
            width: 60px !important;
            min-width: 0 !important;
            margin-right: 2px !important;
            text-align: center;
            padding-left: 2px;
            padding-right: 2px;
        }
        .input-with-unit .input {
            margin-right: 4px !important;
@@ -755,6 +755,7 @@
    .unit-text {
        margin-left: 0 !important;
        padding-left: 0 !important;
        font-size: 22px !important;
    }
    .btn-blue, .btn-blue.large-btn {
@@ -1074,16 +1075,8 @@
        font-size: 22px !important;
    }
    .input-use-limit {
        width: 100px !important;
        min-width: 0 !important;
        margin-right: 16px;
        color: #1890ff !important;
        border-color: #1890ff !important;
    }
    .input-tool-model {
        width: 100px !important;
        width: 320px !important; /* 原为200px,现加长 */
        min-width: 0 !important;
        margin-right: 16px;
    }
@@ -1099,9 +1092,34 @@
    }
    .tool-dir-cell {
        flex: 1 1 auto !important;
        justify-content: flex-end !important;
        flex: 0 0 auto !important;
        justify-content: flex-start !important;
        display: flex !important;
        align-items: center;
        margin-left: 16px; /* 与规格型号输入框拉开距离 */
    }
    .form-cell-flex {
        display: flex;
        align-items: center;
        flex: 0 0 60%;
        min-width: 320px;
    }
        .form-cell-flex .form-label {
            margin-right: 4px;
            width: auto;
        }
        .form-cell-flex .input-use-limit {
            margin-right: 12px;
        }
    .input-use-limit {
        width: 450px !important;
        min-width: 0 !important;
        margin-right: 16px;
        flex: none !important; /* 关键:彻底禁止flex拉伸 */
    }
</style>