parent
71956a4937
commit
75865f417c
12 changed files with 495 additions and 57 deletions
@ -0,0 +1,25 @@ |
|||||||
|
import request from '@/axios'; |
||||||
|
|
||||||
|
// 返工计划列表数据 /ReworkProcess/loadReworkPlan
|
||||||
|
export const getList = (current, size, params) => { |
||||||
|
return request({ |
||||||
|
url: '/blade-desk/ReworkProcess/loadReworkPlan', |
||||||
|
method: 'get', |
||||||
|
params: { |
||||||
|
current, |
||||||
|
size, |
||||||
|
...params, |
||||||
|
}, |
||||||
|
}); |
||||||
|
}; |
||||||
|
|
||||||
|
// 返工计划详情
|
||||||
|
export const getDetail = (params) => { |
||||||
|
return request({ |
||||||
|
url: '/blade-desk/ReworkProcess/reviewFormMess', |
||||||
|
method: 'get', |
||||||
|
params: { |
||||||
|
...params, |
||||||
|
}, |
||||||
|
}); |
||||||
|
}; |
||||||
@ -0,0 +1,245 @@ |
|||||||
|
<template> |
||||||
|
<el-dialog |
||||||
|
title="详情" |
||||||
|
append-to-body |
||||||
|
:modelValue="openShow" |
||||||
|
width="80%" |
||||||
|
@close="closeDialog" |
||||||
|
fullscreen |
||||||
|
> |
||||||
|
<avue-crud |
||||||
|
:option="option" |
||||||
|
:table-loading="loading" |
||||||
|
:data="data" |
||||||
|
v-model="form" |
||||||
|
v-model:page="page" |
||||||
|
ref="crud" |
||||||
|
@search-change="searchChange" |
||||||
|
@search-reset="searchReset" |
||||||
|
@current-change="currentChange" |
||||||
|
@size-change="sizeChange" |
||||||
|
@refresh-change="refreshChange" |
||||||
|
@on-load="onLoad" |
||||||
|
> |
||||||
|
<template #menu-left> </template> |
||||||
|
<template #menu-right> </template> |
||||||
|
<template #menu="{ row }"> </template> |
||||||
|
|
||||||
|
<template #heatTreat="scope"> </template> |
||||||
|
</avue-crud> |
||||||
|
|
||||||
|
<template #footer> |
||||||
|
<span class="dialog-footer"> |
||||||
|
<el-button @click="closeDialog">取 消</el-button> |
||||||
|
</span> |
||||||
|
</template> |
||||||
|
</el-dialog> |
||||||
|
</template> |
||||||
|
<script> |
||||||
|
import { getDetail } from '@/api/productionManagement/reworkPlan'; |
||||||
|
export default { |
||||||
|
props: { |
||||||
|
showDialog: { |
||||||
|
type: Boolean, |
||||||
|
default: false, |
||||||
|
}, |
||||||
|
rowItem: { |
||||||
|
type: Object, |
||||||
|
default: () => ({}), |
||||||
|
}, |
||||||
|
}, |
||||||
|
data() { |
||||||
|
return { |
||||||
|
openShow: false, |
||||||
|
form: {}, |
||||||
|
selectionList: [], |
||||||
|
query: {}, |
||||||
|
loading: false, |
||||||
|
page: { |
||||||
|
pageSize: 10, |
||||||
|
currentPage: 1, |
||||||
|
total: 0, |
||||||
|
}, |
||||||
|
option: { |
||||||
|
columnSort: true, |
||||||
|
tip: false, |
||||||
|
height: 'auto', |
||||||
|
calcHeight: 32, |
||||||
|
simplePage: false, |
||||||
|
searchShow: true, |
||||||
|
searchMenuSpan: 6, |
||||||
|
searchIcon: true, |
||||||
|
searchIndex: 3, |
||||||
|
tree: false, |
||||||
|
border: true, |
||||||
|
index: true, |
||||||
|
selection: false, |
||||||
|
addBtn: false, |
||||||
|
editBtn: false, |
||||||
|
viewBtn: false, |
||||||
|
delBtn: false, |
||||||
|
editBtnText: '修改', |
||||||
|
labelWidth: 120, |
||||||
|
menuWidth: 80, |
||||||
|
dialogWidth: 900, |
||||||
|
dialogClickModal: false, |
||||||
|
searchEnter: true, |
||||||
|
excelBtn: false, |
||||||
|
filterBtn: true, |
||||||
|
searchShowBtn: false, |
||||||
|
excelBtn: true, |
||||||
|
showOverflowTooltip: true, |
||||||
|
addBtnIcon: ' ', |
||||||
|
viewBtnIcon: ' ', |
||||||
|
delBtnIcon: ' ', |
||||||
|
editBtnIcon: ' ', |
||||||
|
gridBtn: false, |
||||||
|
searchLabelPosition: 'left', |
||||||
|
searchGutter: 24, |
||||||
|
searchSpan: 6, |
||||||
|
menuAlign: 'left', |
||||||
|
gridBtn: false, |
||||||
|
searchMenuPosition: 'right', |
||||||
|
align: 'center', |
||||||
|
menu: false, |
||||||
|
header: false, |
||||||
|
column: [ |
||||||
|
{ |
||||||
|
label: '审理单号', |
||||||
|
prop: 'sheetNo', |
||||||
|
search: false, |
||||||
|
sortable: true, |
||||||
|
span: 12, |
||||||
|
width: 150, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '责任零件', |
||||||
|
prop: 'p5layer1', |
||||||
|
search: false, |
||||||
|
sortable: true, |
||||||
|
span: 12, |
||||||
|
width: 150, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '责任批号', |
||||||
|
prop: 'p5layer3', |
||||||
|
search: false, |
||||||
|
sortable: true, |
||||||
|
span: 12, |
||||||
|
width: 150, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '工序号', |
||||||
|
prop: 'process', |
||||||
|
search: false, |
||||||
|
sortable: true, |
||||||
|
span: 12, |
||||||
|
width: 150, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '工序名字', |
||||||
|
prop: 'processName', |
||||||
|
search: false, |
||||||
|
sortable: true, |
||||||
|
span: 12, |
||||||
|
width: 150, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '上级编号', |
||||||
|
prop: 'precode', |
||||||
|
search: false, |
||||||
|
sortable: true, |
||||||
|
span: 12, |
||||||
|
width: 150, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '返修路线', |
||||||
|
prop: 'reworkLine', |
||||||
|
search: false, |
||||||
|
sortable: true, |
||||||
|
span: 12, |
||||||
|
width: 150, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '发生单位', |
||||||
|
prop: 'deptcode', |
||||||
|
search: false, |
||||||
|
sortable: true, |
||||||
|
span: 12, |
||||||
|
width: 150, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '责任部门', |
||||||
|
prop: 'layer1', |
||||||
|
search: false, |
||||||
|
sortable: true, |
||||||
|
span: 12, |
||||||
|
width: 150, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '审理人', |
||||||
|
prop: 'usercode', |
||||||
|
search: false, |
||||||
|
sortable: true, |
||||||
|
span: 12, |
||||||
|
width: 150, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '零件号', |
||||||
|
prop: 'prtno', |
||||||
|
search: false, |
||||||
|
sortable: true, |
||||||
|
span: 12, |
||||||
|
width: 150, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '槽号槽名', |
||||||
|
prop: 'lotno', |
||||||
|
search: false, |
||||||
|
sortable: true, |
||||||
|
span: 12, |
||||||
|
width: 150, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '备注', |
||||||
|
prop: 'memo', |
||||||
|
search: false, |
||||||
|
sortable: true, |
||||||
|
span: 12, |
||||||
|
width: 150, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '处理意见', |
||||||
|
prop: 'dispose', |
||||||
|
search: false, |
||||||
|
sortable: true, |
||||||
|
span: 12, |
||||||
|
width: 150, |
||||||
|
}, |
||||||
|
], |
||||||
|
}, |
||||||
|
|
||||||
|
data: [], |
||||||
|
}; |
||||||
|
}, |
||||||
|
mounted() { |
||||||
|
this.openShow = this.showDialog; |
||||||
|
}, |
||||||
|
methods: { |
||||||
|
init() { |
||||||
|
let query = { |
||||||
|
reworkCode: this.rowItem.redono, |
||||||
|
queryType: true, |
||||||
|
}; |
||||||
|
getDetail(query).then(res => { |
||||||
|
this.data = res.data.data; |
||||||
|
}); |
||||||
|
}, |
||||||
|
closeDialog() { |
||||||
|
this.openShow = false; |
||||||
|
this.$emit('closeDialog'); |
||||||
|
}, |
||||||
|
}, |
||||||
|
}; |
||||||
|
</script> |
||||||
|
<style lang="scss" scoped></style> |
||||||
Loading…
Reference in new issue