Commit d335aa5a authored by 邓春圆's avatar 邓春圆

提货日志页面不刷新bug修复

parent 340a3c39
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<el-dialog :title="title" visible :before-close="closeDialog" :close-on-click-modal="false" v-loading="loading"> <el-dialog :title="title" visible :before-close="closeDialog" :close-on-click-modal="false" v-loading="loading">
<el-timeline v-if="list.length"> <el-timeline v-if="list.length">
<el-timeline-item v-for="item in list" :timestamp="item.pickTime|parseTime" placement="top" :key="item.id"> <el-timeline-item v-for="item in list" :timestamp="item.pickTime|parseTime" placement="top" :key="item.id">
<div> {{item.deleted ? $t('已撤销') : $t('已提货')}} <el-button v-if="!item.deleted" size="mini" @click="deletePickup(item.id)" class="ml-10">{{$t('撤销')}}</el-button></div> <div> {{item.deleted ? $t('已撤销') : $t('已提货')}} <el-button v-if="!item.deleted" :disabled="loading" size="mini" @click="deletePickup(item.id)" class="ml-10">{{$t('撤销')}}</el-button></div>
<div>{{$t('提货箱数')}}{{item.pickNum}}</div> <div>{{$t('提货箱数')}}{{item.pickNum}}</div>
<div>{{$t('操作人')}}{{item.creator}}</div> <div>{{$t('操作人')}}{{item.creator}}</div>
<div v-if="item.deleted">{{$t('撤销人')}}{{item.updater}}</div> <div v-if="item.deleted">{{$t('撤销人')}}{{item.updater}}</div>
...@@ -50,6 +50,7 @@ export default { ...@@ -50,6 +50,7 @@ export default {
}).then(res => { }).then(res => {
this.$message.success('操作成功') this.$message.success('操作成功')
this.$emit('delete', id) this.$emit('delete', id)
this.getList()
}) })
}, },
closeDialog(){ closeDialog(){
...@@ -58,4 +59,4 @@ export default { ...@@ -58,4 +59,4 @@ export default {
} }
} }
} }
</script> </script>
\ No newline at end of file
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