|  |  |  | 
|---|
|  |  |  | <el-table-column prop="batch" label="生产批次号" min-width="100px"></el-table-column> | 
|---|
|  |  |  | <el-table-column prop="promodel.name" label="工序" min-width="100px"></el-table-column> | 
|---|
|  |  |  | <el-table-column prop="omodel.planNum" label="计划数量" min-width="100px"> | 
|---|
|  |  |  | <template slot-scope="{row}"> | 
|---|
|  |  |  | <span>{{ row.omodel.planNum }}</span> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | <!-- <template slot-scope="{row}"> | 
|---|
|  |  |  | <span>{{ row.omodel.planNum + row.umodel.name }}</span> | 
|---|
|  |  |  | </template> --> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column prop="procedureName" label="生产员工" show-overflow-tooltip min-width="100px"> | 
|---|
|  |  |  | <template slot-scope="{row}"> | 
|---|
|  |  |  | <span class="long-title-style">{{ row.procedureName }}</span> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column prop="qualifiedNum" label="合格数量" min-width="100px"> | 
|---|
|  |  |  | <!-- <el-table-column prop="qualifiedNum" label="合格数量" min-width="100px"> | 
|---|
|  |  |  | <template slot-scope="{row}"> | 
|---|
|  |  |  | <span class="valid-style">{{ row.qualifiedNum + row.umodel.name }}</span> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column prop="unqualifiedNum" label="不良数量" min-width="100px"> | 
|---|
|  |  |  | <template slot-scope="{row}"> | 
|---|
|  |  |  | <span class="unvalid-style">{{ row.num + row.umodel.name}}</span> | 
|---|
|  |  |  | <!-- <span :class="row.materialDonetype==0 ? 'valid-style' : ''">{{ row.num + row.umodel.name }}</span> --> | 
|---|
|  |  |  | <span class="unvalid-style">{{ row.unqualifiedNum + row.umodel.name}}</span> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column prop="num" label="报工数量" min-width="100px"></el-table-column> | 
|---|
|  |  |  | <!-- <el-table-column prop="amodel.code" label="工装器具" min-width="100px"></el-table-column> --> | 
|---|
|  |  |  | </el-table-column> --> | 
|---|
|  |  |  | <el-table-column prop="doneType" label="质量属性" min-width="100px"> | 
|---|
|  |  |  | <template slot-scope="{row}"> | 
|---|
|  |  |  | <span v-if="row.materialDonetype==0" class="valid-style">合格</span> | 
|---|
|  |  |  | <span v-else-if="row.materialDonetype==1" class="unvalid-style">不良</span> | 
|---|
|  |  |  | <span v-else>-</span> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column prop="num" label="数量" min-width="100px"> | 
|---|
|  |  |  | <template slot-scope="{row}"> | 
|---|
|  |  |  | <span :class="row.materialDonetype==0 ? 'valid-style' : 'unvalid-style'">{{ row.num + row.umodel.name }}</span> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <!-- <el-table-column prop="num" label="报工数量" min-width="100px"> | 
|---|
|  |  |  | <template slot-scope="{row}"> | 
|---|
|  |  |  | {{ row.num + row.umodel.name }} | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> --> | 
|---|
|  |  |  | <el-table-column prop="deviceCode" label="设备" show-overflow-tooltip min-width="100px"> | 
|---|
|  |  |  | <template slot-scope="{row}"> | 
|---|
|  |  |  | <span class="long-title-style" :title="row.deviceCode + ' | ' + row.deviceName">{{ row.deviceCode + ' | ' + row.deviceName}}</span> | 
|---|
|  |  |  | 
|---|
|  |  |  | created () { | 
|---|
|  |  |  | this.config({ | 
|---|
|  |  |  | module: '投料记录', | 
|---|
|  |  |  | api: '/ext/workorderRecordExt', | 
|---|
|  |  |  | api: '/ext/workorderRecordPutExt', | 
|---|
|  |  |  | 'field.id': 'id', | 
|---|
|  |  |  | 'field.main': 'name', | 
|---|
|  |  |  | sorts: [{ direction: 'DESC', property: 'CREATE_TIME' }] | 
|---|
|  |  |  | 
|---|
|  |  |  | if (index === 0) { | 
|---|
|  |  |  | sums[index] = '合计'; | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } else if (index === 4 || index === 6 || index === 8 || index === 10) { | 
|---|
|  |  |  | } else if (index === 4 || index === 7 || index === 8 || index === 10) { | 
|---|
|  |  |  | // || index === 8 || index === 9 || index === 16 || index === 17 | 
|---|
|  |  |  | sums[index] = '-'; | 
|---|
|  |  |  | return; | 
|---|