Browse Source

2026-12-04

优化
master
fengyuan_yang 7 hours ago
parent
commit
9cd748a5ab
  1. 28
      src/views/modules/qc/qmsPropertiesItem.vue
  2. 31
      src/views/modules/report/outgoing_report.vue

28
src/views/modules/qc/qmsPropertiesItem.vue

@ -47,40 +47,44 @@
<el-dialog :title="modalData.edit ? '编辑属性项目' : '新增属性项目'" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="500px">
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="项目编码" required>
<el-input v-model="modalData.propertiesItemNo" :disabled="modalData.edit" maxlength="20"></el-input>
<el-input v-model="modalData.propertiesItemNo" :disabled="modalData.edit" maxlength="20" style="width: 143px"></el-input>
</el-form-item>
<el-form-item label="项目名称">
<el-input v-model="modalData.itemDesc" maxlength="100"></el-input>
<el-input v-model="modalData.itemDesc" maxlength="100" style="width: 143px"></el-input>
</el-form-item>
<el-form-item label="默认值">
<el-input v-model="modalData.defaultValue" maxlength="100"></el-input>
<el-input v-model="modalData.defaultValue" maxlength="100" style="width: 143px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="值类型">
<el-input v-model="modalData.valueType" maxlength="20"></el-input>
<el-input v-model="modalData.valueType" maxlength="20" style="width: 143px"></el-input>
</el-form-item>
<el-form-item label="值类型标识">
<el-input v-model="modalData.valueTypeDb" maxlength="1" style="width: 120px"></el-input>
<el-input v-model="modalData.valueTypeDb" maxlength="1" style="width: 143px"></el-input>
</el-form-item>
<el-form-item label="可选">
<el-select v-model="modalData.valueChooseFlag" clearable style="width: 120px">
<el-select v-model="modalData.valueChooseFlag" clearable placeholder="请选择" style="width: 143px">
<el-option label="是" value="Y"></el-option>
<el-option label="否" value="N"></el-option>
</el-select>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="计算">
<el-select v-model="modalData.calcFlag" clearable style="width: 120px">
<el-select v-model="modalData.calcFlag" clearable placeholder="请选择" style="width: 143px">
<el-option label="是" value="Y"></el-option>
<el-option label="否" value="N"></el-option>
</el-select>
</el-form-item>
<el-form-item label="计算公式">
<el-input v-model="modalData.calcFormula" type="textarea" :rows="3" maxlength="4000"></el-input>
<el-input v-model="modalData.calcFormula" maxlength="4000" style="width: 300px"></el-input>
</el-form-item>
</el-form>
<span slot="footer">
<el-button @click="modalFlag = false">取消</el-button>
<el-button type="primary" @click="saveModal()">确定</el-button>
</span>
<el-footer style="height:40px;margin-top: 20px;text-align:center">
<el-button type="primary" @click="saveModal()">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button>
</el-footer>
</el-dialog>
</div>
</template>

31
src/views/modules/report/outgoing_report.vue

@ -301,8 +301,8 @@
<tr>
<td colspan="2" class="left">Post Cure:</td>
<td colspan="2">{{ postText('postCure1') }}</td>
<td class="label">xx</td>
<td colspan="2">{{ postText('xx') }}</td>
<td class="label">Post Cure2</td>
<td colspan="2">{{ postText('postCure2') }}</td>
<td colspan="2" class="label">Job/Purchase No.</td>
<td>{{ postText('jobPurchase') }}</td>
<td class="left">Taste</td>
@ -331,8 +331,8 @@
</td>
<td rowspan="3" class="col-op">操作</td>
<td rowspan="3" class="col-mode">展现方式</td>
<td rowspan="2">Dimension</td>
<td rowspan="2">Tolerance</td>
<td rowspan="3">Dimension</td>
<td rowspan="3">Tolerance</td>
<td rowspan="3">转换</td>
<td colspan="2">Limited Dimension</td>
<td colspan="5">Inspection Data</td>
@ -340,15 +340,11 @@
<td rowspan="3">FAIL</td>
</tr>
<tr>
<td>Down</td>
<td>UP</td>
<td rowspan="2">Down</td>
<td rowspan="2">UP</td>
<td v-for="n in 5" :key="'cav'+n">Cavity</td>
</tr>
<tr>
<td class="unit-note">(英寸:INCH) (不转换:MM)</td>
<td class="unit-note">(英寸:INCH) (不转换:MM)</td>
<td class="unit-note">(英寸:INCH) (不转换:MM)</td>
<td class="unit-note">(英寸:INCH) (不转换:MM)</td>
<td v-for="n in 5" :key="'idx'+n">{{ n }}</td>
</tr>
<tr v-for="(row, index) in dimRows" :key="'u'+row.uid">
@ -396,15 +392,13 @@
<td rowspan="2">Dimension</td>
<td rowspan="2">Tolerance</td>
<td rowspan="2"></td>
<td>Down</td>
<td>UP</td>
<td rowspan="2">Down</td>
<td rowspan="2">UP</td>
<td v-for="n in 5" :key="'lc'+n">Cavity</td>
<td rowspan="2">PASS</td>
<td rowspan="2">FAIL</td>
</tr>
<tr>
<td class="unit-note">(英寸:INCH) (不转换:MM)</td>
<td class="unit-note">(英寸:INCH) (不转换:MM)</td>
<td v-for="n in 5" :key="'li'+n">{{ n + 5 }}</td>
</tr>
<tr v-for="(row, index) in dimRows" :key="'d'+row.uid">
@ -624,7 +618,7 @@ const FIELD_ALIASES = [
['density', ['Density', 'Density(G/CM)']],
['mooney', ['Mooney', 'Mooney(1+4)']],
['postCure1', ['Post Cure', 'Post Cure 1']],
['xx', ['xx']],
['postCure2', ['Post Cure2', 'Post Cure 2']],
['jobPurchase', ['Job/Purchase No.', 'Job/Purchase No']],
['toleranceAttr', ['Tolerance']]
]
@ -632,7 +626,7 @@ const FIELD_KEY = {}
FIELD_ALIASES.forEach(pair => {
pair[1].forEach(label => { FIELD_KEY[normName(label)] = pair[0] })
})
const POST_KEYS = { postCure1: true, xx: true, jobPurchase: true, toleranceAttr: true }
const POST_KEYS = { postCure1: true, postCure2: true, jobPurchase: true, toleranceAttr: true }
const SPOT_ITEMS = [
'Flash & Burrs',
@ -1198,7 +1192,6 @@ export default {
.dim-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: -1px; }
.dim-table td { border: 1px solid #000; text-align: center; vertical-align: middle; font-size: 8px; padding: 1px; word-break: break-all; height: auto; }
.print-only { display: inline; }
.unit-note { font-size: 7px; }
.sign-btn { display: none; }
`
}
@ -1406,10 +1399,6 @@ export default {
text-align: left;
padding-left: 4px;
}
.unit-note {
font-size: 10px;
line-height: 1.2;
}
.seq-cell {
position: relative;
}

Loading…
Cancel
Save