|
|
@@ -119,16 +119,41 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- v-if="
|
|
|
- taskDefinitionKey === 'leader_check' &&
|
|
|
- infoData.logList.length == 1
|
|
|
- "
|
|
|
- label="质检"
|
|
|
- prop="status"
|
|
|
- >
|
|
|
+ <el-table-column label="是否遗失" prop="isLose">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-select v-model="scope.row.status" placeholder="请选择">
|
|
|
+ <el-select
|
|
|
+ v-if="taskDefinitionKey === 'user_submit'"
|
|
|
+ v-model="scope.row.isLose"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in option"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ :key="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <span v-else>{{
|
|
|
+ scope.row.isLose != null
|
|
|
+ ? option.filter(
|
|
|
+ (item) => item.value == scope.row.isLose
|
|
|
+ )[0].label
|
|
|
+ : ''
|
|
|
+ }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="质检" prop="qualityStatus">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-select
|
|
|
+ v-if="
|
|
|
+ (taskDefinitionKey === 'leader_check' &&
|
|
|
+ infoData.logList.length == 1) ||
|
|
|
+ taskDefinitionKey === 'user_receive'
|
|
|
+ "
|
|
|
+ v-model="scope.row.qualityStatus"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
<el-option
|
|
|
v-for="item in statusOption"
|
|
|
:label="item.label"
|
|
|
@@ -137,6 +162,13 @@
|
|
|
>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
+ <span v-else>{{
|
|
|
+ scope.row.qualityStatus != null
|
|
|
+ ? statusOption.filter(
|
|
|
+ (item) => item.value == scope.row.qualityStatus
|
|
|
+ )[0].label
|
|
|
+ : ''
|
|
|
+ }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -290,10 +322,21 @@
|
|
|
infoData: {
|
|
|
planDeviceList: [
|
|
|
{
|
|
|
+ substance: {},
|
|
|
workItems: []
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ option: [
|
|
|
+ {
|
|
|
+ value: 0,
|
|
|
+ label: '否'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 1,
|
|
|
+ label: '是'
|
|
|
+ }
|
|
|
+ ],
|
|
|
statusOption: [
|
|
|
{
|
|
|
value: 0,
|
|
|
@@ -348,6 +391,16 @@
|
|
|
console.log(res);
|
|
|
data.logList = res.data;
|
|
|
this.infoData = data;
|
|
|
+ if (this.taskDefinitionKey == 'leader_check') {
|
|
|
+ this.infoData.planDeviceList = this.infoData.planDeviceList.map(
|
|
|
+ (item) => {
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ qualityStatus: 0
|
|
|
+ };
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
EventBus.$emit('getData', this.infoData);
|
|
|
});
|
|
|
},
|