Commit 07ec32b7 authored by 康振飞's avatar 康振飞

任务列表bug处理

parent a0b117f8
...@@ -495,7 +495,7 @@ export default { ...@@ -495,7 +495,7 @@ export default {
if (this.list[i].userIds.length < 1) { if (this.list[i].userIds.length < 1) {
this.$Message.error('有工序的人员未选!') this.$Message.error('有工序的人员未选!')
return return
} else if (this.list[i].times.length < 1) { } else if (this.list[i].times[0] == undefined) {
this.$Message.error('有工序的时间段未选!') this.$Message.error('有工序的时间段未选!')
return return
} }
...@@ -510,8 +510,8 @@ export default { ...@@ -510,8 +510,8 @@ export default {
.then((r) => { .then((r) => {
this.disableFlag = true this.disableFlag = true
this.$Message.success('派工成功!') this.$Message.success('派工成功!')
})
this.$router.push('/produce/scheduling')// 返回上一级 this.$router.push('/produce/scheduling')// 返回上一级
})
}, },
//多选处理--表格选择项变化方法 //多选处理--表格选择项变化方法
selectFunction(selection) { selectFunction(selection) {
......
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
border class="tableCommon" :height="tbHeight" border class="tableCommon" :height="tbHeight"
ref="table" :columns="mColumn" :data="mDatas" > ref="table" :columns="mColumn" :data="mDatas" >
<template slot-scope="{ row,index }" slot="status"> <template slot-scope="{ row,index }" slot="status">
<state code="taskList.status" type="text" class="bold" :value="row.status"></state> <state code="plan.order.status" type="text" class="bold" :value="row.status"></state>
<!-- taskList.status -->
</template> </template>
</Table> </Table>
<!-- @on-row-click="(row,index)=>clickRow(row,index)" --> <!-- @on-row-click="(row,index)=>clickRow(row,index)" -->
...@@ -284,7 +285,7 @@ export default { ...@@ -284,7 +285,7 @@ export default {
slot:"status", slot:"status",
filters:this.getArry( filters:this.getArry(
this.$store.getters.dictionaryByKey( this.$store.getters.dictionaryByKey(
'taskList.status' 'plan.order.status'//taskList.status
) )
), ),
filterMultiple: false, filterMultiple: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment