|
|
|
@ -657,15 +657,7 @@ |
|
|
|
min-width="100" |
|
|
|
label="当前不合格次数"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="editBatchVisible"> |
|
|
|
<el-input :controls="false" v-model="scope.row.currentDefectCount" |
|
|
|
@input="value=>scope.row.currentDefectCount = value.match(/^[1-9]\d*$/) ? value.match(/^[1-9]\d*$/)[0] : ''" |
|
|
|
style="height: 11px; width: 98%;"> |
|
|
|
</el-input> |
|
|
|
</span> |
|
|
|
<span v-else> |
|
|
|
<span>{{scope.row[scope.column.property]}}</span> |
|
|
|
</span> |
|
|
|
<span>{{scope.row[scope.column.property]}}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
@ -675,15 +667,27 @@ |
|
|
|
min-width="100" |
|
|
|
label="上次不合格次数"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="editBatchVisible"> |
|
|
|
<el-input :controls="false" v-model="scope.row.lastDefectCount" |
|
|
|
@input="value=>scope.row.lastDefectCount = value.match(/^[1-9]\d*$/) ? value.match(/^[1-9]\d*$/)[0] : ''" |
|
|
|
style="height: 11px; width: 98%;"> |
|
|
|
</el-input> |
|
|
|
</span> |
|
|
|
<span v-else> |
|
|
|
<span>{{scope.row[scope.column.property]}}</span> |
|
|
|
</span> |
|
|
|
<span>{{scope.row[scope.column.property]}}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="remainingTrackingBatches" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
min-width="100" |
|
|
|
label="剩余跟踪批次"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{scope.row.remainingTrackingBatches}}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="lastTriggerTime" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
min-width="140" |
|
|
|
label="最近触发时间"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{scope.row.lastTriggerTime}}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
@ -1242,12 +1246,6 @@ |
|
|
|
<el-form-item label="连续合格批次数量"> |
|
|
|
<el-input-number :controls="false" :step="0" v-model="defectTrackingData.recoveryBatchCount" style="width: 100px"></el-input-number> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="当前不合格次数"> |
|
|
|
<el-input-number :controls="false" :step="0" v-model="defectTrackingData.currentDefectCount" style="width: 100px"></el-input-number> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="上次不合格次数"> |
|
|
|
<el-input-number :controls="false" :step="0" v-model="defectTrackingData.lastDefectCount" style="width: 100px"></el-input-number> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-footer style="height:35px;margin-top: 15px;text-align:center"> |
|
|
|
<el-button type="primary" @click="saveDefectTracking()">保存</el-button> |
|
|
|
|