|
|
|
|
@ -24,14 +24,19 @@ |
|
|
|
|
</el-button> |
|
|
|
|
</template> --> |
|
|
|
|
<template #redono="scope"> |
|
|
|
|
<el-button type="text" @dblclick="detailsFn(scope.row)"> |
|
|
|
|
<span class="partSel" @dblclick="detailsFn(scope.row)"> |
|
|
|
|
{{ scope.row.redono }} |
|
|
|
|
</el-button> |
|
|
|
|
</span> |
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
|
|
|
|
|
<!-- 返工订单详情 --> |
|
|
|
|
<reworkDetails v-if="detailsShow" :showDialog="detailsShow" @closeDialog="closeDialog" :rowItem="rowItem"></reworkDetails> |
|
|
|
|
<reworkDetails |
|
|
|
|
v-if="detailsShow" |
|
|
|
|
:showDialog="detailsShow" |
|
|
|
|
@closeDialog="closeDialog" |
|
|
|
|
:rowItem="rowItem" |
|
|
|
|
></reworkDetails> |
|
|
|
|
</basic-container> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
@ -39,11 +44,11 @@ |
|
|
|
|
import { getList } from '@/api/productionManagement/reworkPlan.js'; |
|
|
|
|
import reworkDetails from '../reworkOrder/components/reworkDetails.vue'; |
|
|
|
|
export default { |
|
|
|
|
components: {reworkDetails}, |
|
|
|
|
components: { reworkDetails }, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
detailsShow:false, |
|
|
|
|
rowItem:{}, |
|
|
|
|
detailsShow: false, |
|
|
|
|
rowItem: {}, |
|
|
|
|
form: {}, |
|
|
|
|
selectionList: [], |
|
|
|
|
query: {}, |
|
|
|
|
@ -181,13 +186,13 @@ export default { |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 跳转详情 |
|
|
|
|
detailsFn(row){ |
|
|
|
|
this.detailsShow = true |
|
|
|
|
this.rowItem = row |
|
|
|
|
detailsFn(row) { |
|
|
|
|
this.detailsShow = true; |
|
|
|
|
this.rowItem = row; |
|
|
|
|
}, |
|
|
|
|
closeDialog(){ |
|
|
|
|
this.detailsShow = false |
|
|
|
|
this.onLoad(this.page,this.query) |
|
|
|
|
closeDialog() { |
|
|
|
|
this.detailsShow = false; |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
}, |
|
|
|
|
rowSave(row, done, loading) { |
|
|
|
|
// addPersonAbility(row).then( |
|
|
|
|
@ -278,17 +283,25 @@ export default { |
|
|
|
|
|
|
|
|
|
onLoad(page, params = {}) { |
|
|
|
|
this.loading = true; |
|
|
|
|
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
|
|
|
|
this.data = res.data.data.records; |
|
|
|
|
this.loading = false; |
|
|
|
|
this.page.total = res.data.data.total; |
|
|
|
|
// this.selectionClear(); |
|
|
|
|
}).catch(() => { |
|
|
|
|
this.loading = false; |
|
|
|
|
}); |
|
|
|
|
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)) |
|
|
|
|
.then(res => { |
|
|
|
|
this.data = res.data.data.records; |
|
|
|
|
this.loading = false; |
|
|
|
|
this.page.total = res.data.data.total; |
|
|
|
|
// this.selectionClear(); |
|
|
|
|
}) |
|
|
|
|
.catch(() => { |
|
|
|
|
this.loading = false; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
mounted() {}, |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
d |
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
.partSel { |
|
|
|
|
cursor: pointer; |
|
|
|
|
color: #284c89 !important; |
|
|
|
|
font-weight: 600; |
|
|
|
|
} |
|
|
|
|
</style> |