parent
ee7427916e
commit
55bfb7e8b8
9 changed files with 753 additions and 406 deletions
@ -1,173 +0,0 @@ |
|||||||
export default { |
|
||||||
'workReporting': [ |
|
||||||
{ |
|
||||||
label: '车间订单', |
|
||||||
prop: 'woCode', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '流程卡号', |
|
||||||
prop: 'cardNo', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '零件号', |
|
||||||
prop: 'partCode', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '批次号', |
|
||||||
prop: 'batchNo', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '当前工序', |
|
||||||
prop: 'ppsName', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '数量', |
|
||||||
prop: 'workQty', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '班组', |
|
||||||
prop: 'tsId', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
// cell:true,
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '现接收人', |
|
||||||
prop: 'userName', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
// cell: true,
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '报工人详情', |
|
||||||
prop: 'detail', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
}, |
|
||||||
], |
|
||||||
'workReportingLog': [ |
|
||||||
{ |
|
||||||
label: '车间订单', |
|
||||||
prop: 'woCode', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '流程卡号', |
|
||||||
prop: 'cardNo', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '零件号', |
|
||||||
prop: 'partCode', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '批次号', |
|
||||||
prop: 'batchNo', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '当前工序', |
|
||||||
prop: 'ppsName', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '数量', |
|
||||||
prop: 'workQty', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '原班组', |
|
||||||
prop: 'oriMakeTeam', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '现班组', |
|
||||||
prop: 'makeTeam', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '原接收人', |
|
||||||
prop: 'oriReceiveMan', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '现接收人', |
|
||||||
prop: 'receiveMan', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '调整人', |
|
||||||
prop: 'adjustName', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
{ |
|
||||||
label: '调整时间', |
|
||||||
prop: 'updateTime', |
|
||||||
span: 24, |
|
||||||
overflow: true, |
|
||||||
search: false, |
|
||||||
|
|
||||||
}, |
|
||||||
] |
|
||||||
} |
|
||||||
@ -0,0 +1,414 @@ |
|||||||
|
<template> |
||||||
|
<div> |
||||||
|
<avue-crud |
||||||
|
:option="option" |
||||||
|
:table-loading="loading" |
||||||
|
:data="data" |
||||||
|
v-model="form" |
||||||
|
v-model:page="page" |
||||||
|
ref="crud" |
||||||
|
@row-del="rowDel" |
||||||
|
@search-change="searchChange" |
||||||
|
@search-reset="searchReset" |
||||||
|
@selection-change="selectionChange" |
||||||
|
@current-change="currentChange" |
||||||
|
@size-change="sizeChange" |
||||||
|
@refresh-change="refreshChange" |
||||||
|
@on-load="onLoad" |
||||||
|
> |
||||||
|
<template #menu-left> |
||||||
|
<el-form :inline="true" v-model="searchForm"> |
||||||
|
<el-form-item> |
||||||
|
<el-input |
||||||
|
v-model="searchForm.cardNo" |
||||||
|
placeholder="请扫描流程卡号" |
||||||
|
@keyup.enter="handleSearchInput" |
||||||
|
@keydown.enter.prevent |
||||||
|
></el-input> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item> |
||||||
|
<el-button |
||||||
|
type="primary" |
||||||
|
@click="saveUpdate" |
||||||
|
:loading="saveLoading" |
||||||
|
:disabled="data.length <= 0" |
||||||
|
>保存</el-button |
||||||
|
> |
||||||
|
<el-button |
||||||
|
type="primary" |
||||||
|
@click="changeTeam" |
||||||
|
:loading="saveLoading" |
||||||
|
:disabled="data.length <= 0" |
||||||
|
>转班</el-button |
||||||
|
> |
||||||
|
</el-form-item> |
||||||
|
</el-form> |
||||||
|
</template> |
||||||
|
<template #menu-right> </template> |
||||||
|
<template #menu="{ row }"> </template> |
||||||
|
<template #detail="{ row }"> |
||||||
|
<el-button type="text" @click="handleDetail(row)">详情</el-button> |
||||||
|
</template> |
||||||
|
|
||||||
|
<template #heatTreat="scope"> </template> |
||||||
|
</avue-crud> |
||||||
|
|
||||||
|
<!-- 详情 --> |
||||||
|
<el-dialog append-to-body title="详情" v-model="detailDialog"> |
||||||
|
<!-- <div style="display: flex; justify-content: flex-end"> |
||||||
|
<el-button type="primary">保存</el-button> |
||||||
|
</div> --> |
||||||
|
<el-table :data="tableData" style="margin-top: 20px"> |
||||||
|
<el-table-column label="数量" prop="workQty"></el-table-column> |
||||||
|
<el-table-column label="报工时间" prop="makeTime"></el-table-column> |
||||||
|
<el-table-column label="报工人" prop="worker"> </el-table-column> |
||||||
|
</el-table> |
||||||
|
</el-dialog> |
||||||
|
<!-- 转班 --> |
||||||
|
<el-dialog append-to-body title="转班" v-model="teamDialog"> |
||||||
|
<el-form ref="teamForm" :model="teamForm" :rules="teamRules"> |
||||||
|
<el-form-item> 旧班组:{{ data[0].prWorkOrder.makeTeam.tsName }} </el-form-item> |
||||||
|
<el-form-item label="新班组" prop="makeTeam"> |
||||||
|
<el-select v-model="teamForm.makeTeam"> |
||||||
|
<el-option |
||||||
|
v-for="(item, index) in teamSetList" |
||||||
|
:key="index" |
||||||
|
:label="item.tsName" |
||||||
|
:value="item.id" |
||||||
|
></el-option> |
||||||
|
</el-select> |
||||||
|
</el-form-item> |
||||||
|
</el-form> |
||||||
|
<template #footer> |
||||||
|
<span class="dialog-footer"> |
||||||
|
<el-button @click="teamDialog = false">取 消</el-button> |
||||||
|
<el-button type="primary" @click="submit" :loading="saveLoading">确 定</el-button> |
||||||
|
</span> |
||||||
|
</template> |
||||||
|
</el-dialog> |
||||||
|
</div> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script> |
||||||
|
import { getTeamSetList } from '@/api/processManagement/taskProcessing'; |
||||||
|
import { getRoleUserList } from '@/api/processManagement/taskDispatch'; |
||||||
|
import { |
||||||
|
getList, |
||||||
|
getRecordList, |
||||||
|
getDataByCardNo, |
||||||
|
getDataByWpId, |
||||||
|
uploadPlan, |
||||||
|
} from '@/api/productionManagement/workReportingManagement'; |
||||||
|
export default { |
||||||
|
components: {}, |
||||||
|
data() { |
||||||
|
return { |
||||||
|
form: {}, |
||||||
|
selectionList: [], |
||||||
|
query: {}, |
||||||
|
loading: false, |
||||||
|
page: { |
||||||
|
pageSize: 10, |
||||||
|
currentPage: 1, |
||||||
|
total: 0, |
||||||
|
}, |
||||||
|
option: { |
||||||
|
columnSort: true, |
||||||
|
tip: false, |
||||||
|
height: 'auto', |
||||||
|
align: 'center', |
||||||
|
calcHeight: 32, |
||||||
|
simplePage: false, |
||||||
|
searchShow: true, |
||||||
|
searchMenuSpan: 6, |
||||||
|
searchIcon: true, |
||||||
|
searchIndex: 3, |
||||||
|
tree: false, |
||||||
|
border: true, |
||||||
|
index: true, |
||||||
|
selection: false, |
||||||
|
viewBtn: false, |
||||||
|
delBtn: false, |
||||||
|
editBtn: false, |
||||||
|
addBtnIcon: ' ', |
||||||
|
viewBtnIcon: ' ', |
||||||
|
delBtnIcon: ' ', |
||||||
|
editBtnIcon: ' ', |
||||||
|
addBtn: false, |
||||||
|
labelWidth: 120, |
||||||
|
searchLabelWidth: 120, |
||||||
|
menu: true, |
||||||
|
menuWidth: 200, |
||||||
|
dialogWidth: 600, |
||||||
|
dialogClickModal: false, |
||||||
|
searchEnter: true, |
||||||
|
excelBtn: true, |
||||||
|
gridBtn: false, |
||||||
|
searchShowBtn: false, |
||||||
|
showOverflowTooltip: true, |
||||||
|
searchLabelPosition: 'left', |
||||||
|
searchGutter: 24, |
||||||
|
searchSpan: 6, |
||||||
|
menuAlign: 'left', |
||||||
|
gridBtn: false, |
||||||
|
searchMenuPosition: 'right', |
||||||
|
menu: false, |
||||||
|
column: [ |
||||||
|
{ |
||||||
|
label: '车间订单', |
||||||
|
prop: 'woCode', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '流程卡号', |
||||||
|
prop: 'cardNo', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '零件号', |
||||||
|
prop: 'partCode', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '批次号', |
||||||
|
prop: 'batchNo', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '当前工序', |
||||||
|
prop: 'ppsName', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '数量', |
||||||
|
prop: 'workQty', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '班组', |
||||||
|
prop: 'tsId', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
cell: true, |
||||||
|
type: 'select', |
||||||
|
dicUrl: '/blade-desk/BA/TeamSet/listForSelect', |
||||||
|
props: { |
||||||
|
label: 'tsName', |
||||||
|
value: 'id', |
||||||
|
}, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '现接收人', |
||||||
|
prop: 'userName', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
// cell: true, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '报工人详情', |
||||||
|
prop: 'detail', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
], |
||||||
|
}, |
||||||
|
|
||||||
|
data: [], |
||||||
|
searchForm: { |
||||||
|
cardNo: '', |
||||||
|
}, |
||||||
|
saveLoading:false, |
||||||
|
detailDialog: false, |
||||||
|
teamDialog: false, |
||||||
|
teamForm: {}, |
||||||
|
teamRules: { |
||||||
|
makeTeam: [{ required: true, message: '请选择新班组', trigger: 'blur' }], |
||||||
|
}, |
||||||
|
}; |
||||||
|
}, |
||||||
|
mounted() { |
||||||
|
this.getTeamSetList(); |
||||||
|
this.getRoleUserList(); |
||||||
|
}, |
||||||
|
methods: { |
||||||
|
// 获取人员 |
||||||
|
getRoleUserList() { |
||||||
|
getRoleUserList({ current: 1, size: 9999999 }).then(res => { |
||||||
|
this.userOptions = res.data.data.records; |
||||||
|
}); |
||||||
|
}, |
||||||
|
// 报工人详情 |
||||||
|
handleDetail(row) { |
||||||
|
this.detailDialog = true; |
||||||
|
getDataByWpId({ wpId: row.wpId }).then(res => { |
||||||
|
this.detailData = res.data.data; |
||||||
|
}); |
||||||
|
}, |
||||||
|
// 转班 |
||||||
|
changeTeam() { |
||||||
|
this.teamDialog = true; |
||||||
|
}, |
||||||
|
// 转班保存 |
||||||
|
submit() { |
||||||
|
this.$refs.teamForm.validate(valid => { |
||||||
|
if (valid) { |
||||||
|
this.saveLoading = true; |
||||||
|
shiftTransfer({ |
||||||
|
woId: this.woId, |
||||||
|
oldTsId: this.teamForm.tsId, |
||||||
|
newTsId: this.teamForm.tsId, |
||||||
|
}) |
||||||
|
.then(res => { |
||||||
|
this.saveLoading = false; |
||||||
|
this.teamDialog = false; |
||||||
|
}) |
||||||
|
.catch(err => { |
||||||
|
this.teamDialog = false; |
||||||
|
this.saveLoading = false; |
||||||
|
}); |
||||||
|
} |
||||||
|
}); |
||||||
|
}, |
||||||
|
// 保存 |
||||||
|
saveUpdate() { |
||||||
|
this.saveLoading = true; |
||||||
|
uploadPlan(this.data) |
||||||
|
.then(res => { |
||||||
|
this.saveLoading = false; |
||||||
|
}) |
||||||
|
.catch(err => { |
||||||
|
this.saveLoading = false; |
||||||
|
}); |
||||||
|
}, |
||||||
|
// 扫描流程卡号 获取数据 |
||||||
|
handleSearchInput(key, value) { |
||||||
|
this.loading = true; |
||||||
|
getDataByCardNo({ cardNo: this.searchForm.cardNo }) |
||||||
|
.then(res => { |
||||||
|
this.loading = false; |
||||||
|
this.data = res.data.data; |
||||||
|
this.data.forEach(item => { |
||||||
|
item.$cellEdit = true; |
||||||
|
item.tsId = item.tsId + ''; |
||||||
|
item.userId = item.userId + ''; |
||||||
|
}); |
||||||
|
}) |
||||||
|
.catch(() => { |
||||||
|
this.loading = false; |
||||||
|
}); |
||||||
|
}, |
||||||
|
rowSave(row, done, loading) { |
||||||
|
// addPersonAbility(row).then( |
||||||
|
// () => { |
||||||
|
// this.onLoad(this.page); |
||||||
|
// this.$message({ |
||||||
|
// type: 'success', |
||||||
|
// message: '操作成功!', |
||||||
|
// }); |
||||||
|
// done(); |
||||||
|
// }, |
||||||
|
// error => { |
||||||
|
// window.console.log(error); |
||||||
|
// loading(); |
||||||
|
// } |
||||||
|
// ); |
||||||
|
}, |
||||||
|
rowUpdate(row, index, done, loading) { |
||||||
|
// updatePersonAbility(row).then( |
||||||
|
// () => { |
||||||
|
// this.onLoad(this.page); |
||||||
|
// this.$message({ |
||||||
|
// type: 'success', |
||||||
|
// message: '操作成功!', |
||||||
|
// }); |
||||||
|
// done(); |
||||||
|
// }, |
||||||
|
// error => { |
||||||
|
// window.console.log(error); |
||||||
|
// loading(); |
||||||
|
// } |
||||||
|
// ); |
||||||
|
}, |
||||||
|
rowDel(row) { |
||||||
|
this.$confirm('确定将选择数据删除?', { |
||||||
|
confirmButtonText: '确定', |
||||||
|
cancelButtonText: '取消', |
||||||
|
type: 'warning', |
||||||
|
}) |
||||||
|
.then(() => { |
||||||
|
// return removePersonAbility(row.id); |
||||||
|
}) |
||||||
|
.then(() => { |
||||||
|
this.onLoad(this.page); |
||||||
|
this.$message({ |
||||||
|
type: 'success', |
||||||
|
message: '操作成功!', |
||||||
|
}); |
||||||
|
}); |
||||||
|
}, |
||||||
|
|
||||||
|
searchReset() { |
||||||
|
this.query = {}; |
||||||
|
this.onLoad(this.page); |
||||||
|
}, |
||||||
|
searchChange(params, done) { |
||||||
|
this.query = params; |
||||||
|
this.page.currentPage = 1; |
||||||
|
this.onLoad(this.page, params); |
||||||
|
done(); |
||||||
|
}, |
||||||
|
selectionChange(list) { |
||||||
|
this.selectionList = list; |
||||||
|
}, |
||||||
|
selectionClear() { |
||||||
|
this.selectionList = []; |
||||||
|
this.$refs.crud.toggleSelection(); |
||||||
|
}, |
||||||
|
|
||||||
|
currentChange(currentPage) { |
||||||
|
this.page.currentPage = currentPage; |
||||||
|
}, |
||||||
|
sizeChange(pageSize) { |
||||||
|
this.page.pageSize = pageSize; |
||||||
|
}, |
||||||
|
refreshChange() { |
||||||
|
this.onLoad(this.page, this.query); |
||||||
|
}, |
||||||
|
handleChange(file, fileList) { |
||||||
|
// proxy.$Export.xlsx(file.raw).then((data) => { |
||||||
|
// data.value = data.results; |
||||||
|
// }); |
||||||
|
this.$message({ |
||||||
|
type: 'success', |
||||||
|
message: '操作成功!', |
||||||
|
}); |
||||||
|
}, |
||||||
|
|
||||||
|
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(); |
||||||
|
// }); |
||||||
|
}, |
||||||
|
}, |
||||||
|
}; |
||||||
|
</script> |
||||||
|
d |
||||||
@ -0,0 +1,275 @@ |
|||||||
|
<template> |
||||||
|
<div> |
||||||
|
<avue-crud |
||||||
|
:option="option" |
||||||
|
:table-loading="loading" |
||||||
|
:data="data" |
||||||
|
v-model="form" |
||||||
|
v-model:page="page" |
||||||
|
ref="crud" |
||||||
|
@row-del="rowDel" |
||||||
|
@search-change="searchChange" |
||||||
|
@search-reset="searchReset" |
||||||
|
@selection-change="selectionChange" |
||||||
|
@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> |
||||||
|
</div> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script> |
||||||
|
|
||||||
|
export default { |
||||||
|
components: {}, |
||||||
|
data() { |
||||||
|
return { |
||||||
|
form: {}, |
||||||
|
selectionList: [], |
||||||
|
query: {}, |
||||||
|
loading: false, |
||||||
|
page: { |
||||||
|
pageSize: 10, |
||||||
|
currentPage: 1, |
||||||
|
total: 0, |
||||||
|
}, |
||||||
|
option: { |
||||||
|
columnSort: true, |
||||||
|
tip: false, |
||||||
|
height: 'auto', |
||||||
|
align: 'center', |
||||||
|
calcHeight: 32, |
||||||
|
simplePage: false, |
||||||
|
searchShow: true, |
||||||
|
searchMenuSpan: 6, |
||||||
|
searchIcon: true, |
||||||
|
searchIndex: 3, |
||||||
|
tree: false, |
||||||
|
border: true, |
||||||
|
index: true, |
||||||
|
selection: false, |
||||||
|
viewBtn: false, |
||||||
|
delBtn: false, |
||||||
|
editBtn: false, |
||||||
|
addBtnIcon: ' ', |
||||||
|
viewBtnIcon: ' ', |
||||||
|
delBtnIcon: ' ', |
||||||
|
editBtnIcon: ' ', |
||||||
|
addBtn: false, |
||||||
|
labelWidth: 120, |
||||||
|
searchLabelWidth: 120, |
||||||
|
menu: true, |
||||||
|
menuWidth: 200, |
||||||
|
dialogWidth: 600, |
||||||
|
dialogClickModal: false, |
||||||
|
searchEnter: true, |
||||||
|
excelBtn: true, |
||||||
|
gridBtn: false, |
||||||
|
searchShowBtn: false, |
||||||
|
showOverflowTooltip: true, |
||||||
|
searchLabelPosition: 'left', |
||||||
|
searchGutter: 24, |
||||||
|
searchSpan: 6, |
||||||
|
menuAlign: 'left', |
||||||
|
gridBtn: false, |
||||||
|
searchMenuPosition: 'right', |
||||||
|
column: [ |
||||||
|
{ |
||||||
|
label: '车间订单', |
||||||
|
prop: 'woCode', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '流程卡号', |
||||||
|
prop: 'cardNo', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '零件号', |
||||||
|
prop: 'partCode', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '批次号', |
||||||
|
prop: 'batchNo', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '当前工序', |
||||||
|
prop: 'ppsName', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '数量', |
||||||
|
prop: 'workQty', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '原班组', |
||||||
|
prop: 'oriMakeTeam', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '现班组', |
||||||
|
prop: 'makeTeam', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '原接收人', |
||||||
|
prop: 'oriReceiveMan', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '现接收人', |
||||||
|
prop: 'receiveMan', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '调整人', |
||||||
|
prop: 'adjustName', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '调整时间', |
||||||
|
prop: 'updateTime', |
||||||
|
span: 24, |
||||||
|
overflow: true, |
||||||
|
search: false, |
||||||
|
}, |
||||||
|
], |
||||||
|
}, |
||||||
|
|
||||||
|
data: [], |
||||||
|
}; |
||||||
|
}, |
||||||
|
methods: { |
||||||
|
rowSave(row, done, loading) { |
||||||
|
// addPersonAbility(row).then( |
||||||
|
// () => { |
||||||
|
// this.onLoad(this.page); |
||||||
|
// this.$message({ |
||||||
|
// type: 'success', |
||||||
|
// message: '操作成功!', |
||||||
|
// }); |
||||||
|
// done(); |
||||||
|
// }, |
||||||
|
// error => { |
||||||
|
// window.console.log(error); |
||||||
|
// loading(); |
||||||
|
// } |
||||||
|
// ); |
||||||
|
}, |
||||||
|
rowUpdate(row, index, done, loading) { |
||||||
|
// updatePersonAbility(row).then( |
||||||
|
// () => { |
||||||
|
// this.onLoad(this.page); |
||||||
|
// this.$message({ |
||||||
|
// type: 'success', |
||||||
|
// message: '操作成功!', |
||||||
|
// }); |
||||||
|
// done(); |
||||||
|
// }, |
||||||
|
// error => { |
||||||
|
// window.console.log(error); |
||||||
|
// loading(); |
||||||
|
// } |
||||||
|
// ); |
||||||
|
}, |
||||||
|
rowDel(row) { |
||||||
|
this.$confirm('确定将选择数据删除?', { |
||||||
|
confirmButtonText: '确定', |
||||||
|
cancelButtonText: '取消', |
||||||
|
type: 'warning', |
||||||
|
}) |
||||||
|
.then(() => { |
||||||
|
// return removePersonAbility(row.id); |
||||||
|
}) |
||||||
|
.then(() => { |
||||||
|
this.onLoad(this.page); |
||||||
|
this.$message({ |
||||||
|
type: 'success', |
||||||
|
message: '操作成功!', |
||||||
|
}); |
||||||
|
}); |
||||||
|
}, |
||||||
|
|
||||||
|
searchReset() { |
||||||
|
this.query = {}; |
||||||
|
this.onLoad(this.page); |
||||||
|
}, |
||||||
|
searchChange(params, done) { |
||||||
|
this.query = params; |
||||||
|
this.page.currentPage = 1; |
||||||
|
this.onLoad(this.page, params); |
||||||
|
done(); |
||||||
|
}, |
||||||
|
selectionChange(list) { |
||||||
|
this.selectionList = list; |
||||||
|
}, |
||||||
|
selectionClear() { |
||||||
|
this.selectionList = []; |
||||||
|
this.$refs.crud.toggleSelection(); |
||||||
|
}, |
||||||
|
|
||||||
|
currentChange(currentPage) { |
||||||
|
this.page.currentPage = currentPage; |
||||||
|
}, |
||||||
|
sizeChange(pageSize) { |
||||||
|
this.page.pageSize = pageSize; |
||||||
|
}, |
||||||
|
refreshChange() { |
||||||
|
this.onLoad(this.page, this.query); |
||||||
|
}, |
||||||
|
handleChange(file, fileList) { |
||||||
|
// proxy.$Export.xlsx(file.raw).then((data) => { |
||||||
|
// data.value = data.results; |
||||||
|
// }); |
||||||
|
this.$message({ |
||||||
|
type: 'success', |
||||||
|
message: '操作成功!', |
||||||
|
}); |
||||||
|
}, |
||||||
|
|
||||||
|
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(); |
||||||
|
// }); |
||||||
|
}, |
||||||
|
}, |
||||||
|
mounted() {}, |
||||||
|
}; |
||||||
|
</script> |
||||||
|
d |
||||||
Loading…
Reference in new issue