|
|
|
@ -1,10 +1,23 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<basic-container> |
|
|
|
<basic-container> |
|
|
|
<!-- 库存汇总 --> |
|
|
|
<!-- 库存汇总 --> |
|
|
|
<avue-crud :option="option" :table-loading="loading" :data="data" v-model="form" v-model:page="page" ref="crud" |
|
|
|
<avue-crud |
|
|
|
@row-update="rowUpdate" @row-save="rowSave" @search-change="searchChange" @search-reset="searchReset" |
|
|
|
:option="option" |
|
|
|
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" |
|
|
|
:table-loading="loading" |
|
|
|
@refresh-change="refreshChange" @on-load="onLoad"> |
|
|
|
:data="data" |
|
|
|
|
|
|
|
v-model="form" |
|
|
|
|
|
|
|
v-model:page="page" |
|
|
|
|
|
|
|
ref="crud" |
|
|
|
|
|
|
|
@row-update="rowUpdate" |
|
|
|
|
|
|
|
@row-save="rowSave" |
|
|
|
|
|
|
|
@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 #menu-left> |
|
|
|
<el-button type="primary" @click="handlePrepare">准备</el-button> |
|
|
|
<el-button type="primary" @click="handlePrepare">准备</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
@ -13,6 +26,7 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
|
|
|
|
import { getList } from "@/api/productionManagement/frontTooling"; |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
@ -65,13 +79,13 @@ export default { |
|
|
|
excelBtn: true, |
|
|
|
excelBtn: true, |
|
|
|
columnSort: true, |
|
|
|
columnSort: true, |
|
|
|
showOverflowTooltip: true, |
|
|
|
showOverflowTooltip: true, |
|
|
|
searchLabelPosition:'left', |
|
|
|
searchLabelPosition: 'left', |
|
|
|
searchLabelPosition:'left', |
|
|
|
searchLabelPosition: 'left', |
|
|
|
searchGutter:24, |
|
|
|
searchGutter: 24, |
|
|
|
searchSpan:6, |
|
|
|
searchSpan: 6, |
|
|
|
menuAlign: 'left', |
|
|
|
menuAlign: 'left', |
|
|
|
gridBtn:false, |
|
|
|
gridBtn: false, |
|
|
|
searchMenuPosition:'right', |
|
|
|
searchMenuPosition: 'right', |
|
|
|
column: [ |
|
|
|
column: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '准备状态', |
|
|
|
label: '准备状态', |
|
|
|
@ -91,9 +105,9 @@ searchMenuPosition:'right', |
|
|
|
dicData: [ |
|
|
|
dicData: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
value: 1, |
|
|
|
value: 1, |
|
|
|
label: '已准备' |
|
|
|
label: '已准备', |
|
|
|
} |
|
|
|
}, |
|
|
|
] |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '生产计划号', |
|
|
|
label: '生产计划号', |
|
|
|
@ -293,8 +307,8 @@ searchMenuPosition:'right', |
|
|
|
prop: 'createTime', |
|
|
|
prop: 'createTime', |
|
|
|
type: 'date', |
|
|
|
type: 'date', |
|
|
|
searchRange: true, |
|
|
|
searchRange: true, |
|
|
|
startPlaceholder:'开始时间', |
|
|
|
startPlaceholder: '开始时间', |
|
|
|
endPlaceholder:"结束时间", |
|
|
|
endPlaceholder: '结束时间', |
|
|
|
width: 200, |
|
|
|
width: 200, |
|
|
|
search: true, |
|
|
|
search: true, |
|
|
|
sortable: true, |
|
|
|
sortable: true, |
|
|
|
@ -312,8 +326,8 @@ searchMenuPosition:'right', |
|
|
|
prop: 'demandDate', |
|
|
|
prop: 'demandDate', |
|
|
|
type: 'date', |
|
|
|
type: 'date', |
|
|
|
searchRange: true, |
|
|
|
searchRange: true, |
|
|
|
startPlaceholder:'开始时间', |
|
|
|
startPlaceholder: '开始时间', |
|
|
|
endPlaceholder:"结束时间", |
|
|
|
endPlaceholder: '结束时间', |
|
|
|
width: 200, |
|
|
|
width: 200, |
|
|
|
search: true, |
|
|
|
search: true, |
|
|
|
sortable: true, |
|
|
|
sortable: true, |
|
|
|
@ -461,28 +475,28 @@ searchMenuPosition:'right', |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
] |
|
|
|
], |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
mounted() {}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
selectionChange(val) { |
|
|
|
selectionChange(val) { |
|
|
|
this.selectionList = val |
|
|
|
this.selectionList = val; |
|
|
|
}, |
|
|
|
}, |
|
|
|
handlePrepare() { |
|
|
|
handlePrepare() { |
|
|
|
if (this.selectionList.length == 0) { |
|
|
|
if (this.selectionList.length == 0) { |
|
|
|
this.$message.error('请先选择数据') |
|
|
|
this.$message.error('请先选择数据'); |
|
|
|
return |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
currentChange(currentPage) { |
|
|
|
currentChange(currentPage) { |
|
|
|
this.page.currentPage = currentPage; |
|
|
|
this.page.currentPage = currentPage; |
|
|
|
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
}, |
|
|
|
}, |
|
|
|
sizeChange(pageSize) { |
|
|
|
sizeChange(pageSize) { |
|
|
|
this.page.pageSize = pageSize; |
|
|
|
this.page.pageSize = pageSize; |
|
|
|
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
}, |
|
|
|
}, |
|
|
|
refreshChange() { |
|
|
|
refreshChange() { |
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
@ -490,7 +504,7 @@ searchMenuPosition:'right', |
|
|
|
searchReset() { |
|
|
|
searchReset() { |
|
|
|
this.query = {}; |
|
|
|
this.query = {}; |
|
|
|
this.treeDeptId = ''; |
|
|
|
this.treeDeptId = ''; |
|
|
|
this.onLoad(this.page); |
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
}, |
|
|
|
}, |
|
|
|
searchChange(params, done) { |
|
|
|
searchChange(params, done) { |
|
|
|
this.query = params; |
|
|
|
this.query = params; |
|
|
|
@ -502,12 +516,21 @@ searchMenuPosition:'right', |
|
|
|
this.selectionList = []; |
|
|
|
this.selectionList = []; |
|
|
|
this.$refs.crud.toggleSelection(); |
|
|
|
this.$refs.crud.toggleSelection(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
onLoad(page, params = {}) { |
|
|
|
this.data = [] |
|
|
|
// this.loading = true; |
|
|
|
this.page.total = this.data.length |
|
|
|
// getList( |
|
|
|
} |
|
|
|
// page.currentPage, |
|
|
|
} |
|
|
|
// page.pageSize, |
|
|
|
} |
|
|
|
// Object.assign(params, this.query, { yieldType: '1' }) |
|
|
|
|
|
|
|
// ).then(res => { |
|
|
|
|
|
|
|
// this.data = res.data.data.records; |
|
|
|
|
|
|
|
// this.loading = false; |
|
|
|
|
|
|
|
// this.page.total = res.data.data.total; |
|
|
|
|
|
|
|
// this.selectionClear(); |
|
|
|
|
|
|
|
// }); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style></style> |
|
|
|
<style></style> |