|
@@ -79,6 +79,7 @@
|
|
<th rowspan="2" width="100px">序号</th>
|
|
<th rowspan="2" width="100px">序号</th>
|
|
<th rowspan="2" width="150px">车间</th>
|
|
<th rowspan="2" width="150px">车间</th>
|
|
<th rowspan="2" width="150px">设备名称</th>
|
|
<th rowspan="2" width="150px">设备名称</th>
|
|
|
|
+ <th rowspan="2" width="150px">设备位号</th>
|
|
<th rowspan="2" width="150px">设备编号</th>
|
|
<th rowspan="2" width="150px">设备编号</th>
|
|
<th rowspan="2" width="150px">填报时间</th>
|
|
<th rowspan="2" width="150px">填报时间</th>
|
|
<th :colspan="ListForm.length>0?ListForm[0].content.length:1">项目内容项</th>
|
|
<th :colspan="ListForm.length>0?ListForm[0].content.length:1">项目内容项</th>
|
|
@@ -94,6 +95,7 @@
|
|
<td>{{ i+1 }}</td>
|
|
<td>{{ i+1 }}</td>
|
|
<td>{{ item.positionName }}</td>
|
|
<td>{{ item.positionName }}</td>
|
|
<td>{{ item.sbName }}</td>
|
|
<td>{{ item.sbName }}</td>
|
|
|
|
+ <td>{{ item.positionNo }}</td>
|
|
<td>{{ item.sbNo }}</td>
|
|
<td>{{ item.sbNo }}</td>
|
|
<td>{{ item.updateTime }}</td>
|
|
<td>{{ item.updateTime }}</td>
|
|
<td v-for="li in item.content" :key="li.name">
|
|
<td v-for="li in item.content" :key="li.name">
|
|
@@ -110,6 +112,9 @@
|
|
<a-icon v-show="item.status === 1" type="check" style="color:#87d068;font-size: 26px;" />
|
|
<a-icon v-show="item.status === 1" type="check" style="color:#87d068;font-size: 26px;" />
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
|
|
+ <a-button v-if="editor" type="link" @click="handleDelete(item.sbId)">
|
|
|
|
+ 删除
|
|
|
|
+ </a-button>
|
|
<a-button v-if="editor" type="link" @click="handleRepair(item)">
|
|
<a-button v-if="editor" type="link" @click="handleRepair(item)">
|
|
报修
|
|
报修
|
|
</a-button>
|
|
</a-button>
|
|
@@ -173,7 +178,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { fillGatherTask, getFillGatherTask, getFillUpdates, pauseFillGatherTask } from '@/api/fill/task'
|
|
|
|
|
|
+import { fillGatherTask, getFillGatherTask, getFillUpdates, pauseFillGatherTask, updatetasks } from '@/api/fill/task'
|
|
import DispatchForm from './DispatchForm'
|
|
import DispatchForm from './DispatchForm'
|
|
import OvertimeForm from './OvertimeForm'
|
|
import OvertimeForm from './OvertimeForm'
|
|
import BaseFormRepair from './BaseFormRepair'
|
|
import BaseFormRepair from './BaseFormRepair'
|
|
@@ -450,6 +455,17 @@ export default {
|
|
this.type = 1
|
|
this.type = 1
|
|
this.status = null
|
|
this.status = null
|
|
this.$emit('ok')
|
|
this.$emit('ok')
|
|
|
|
+ },
|
|
|
|
+ handleDelete (id) {
|
|
|
|
+ console.log(id)
|
|
|
|
+ updatetasks({
|
|
|
|
+ id: this.id,
|
|
|
|
+ detailIds: [id],
|
|
|
|
+ isAdd: 0
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.$message.info('操作成功!')
|
|
|
|
+ this.getInfo()
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|