|
|
|
@ -1,43 +1,39 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<avue-crud |
|
|
|
<div> |
|
|
|
:option="option" |
|
|
|
<avue-crud :option="option" :table-loading="loading" :data="data" v-model="form" v-model:page="page" ref="crud" |
|
|
|
:table-loading="loading" |
|
|
|
@row-del="rowDel" @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange" |
|
|
|
:data="data" |
|
|
|
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> |
|
|
|
v-model="form" |
|
|
|
<template #menu-left> |
|
|
|
v-model:page="page" |
|
|
|
<!-- <el-button type="danger" icon="el-icon-delete" @click="handleDelete">删 除 |
|
|
|
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-button type="danger" icon="el-icon-delete" @click="handleDelete">删 除 |
|
|
|
|
|
|
|
</el-button> --> |
|
|
|
</el-button> --> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template #menu-right> |
|
|
|
<template #menu-right> |
|
|
|
<!-- <el-button type="success" icon="el-icon-upload" @click="handleImport">批量发送 |
|
|
|
<!-- <el-button type="success" icon="el-icon-upload" @click="handleImport">批量发送 |
|
|
|
</el-button> --> |
|
|
|
</el-button> --> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template #menu> |
|
|
|
<template #menu="scope"> |
|
|
|
<el-button type="text" size="mini" @click="render(scope.row)">提交</el-button> |
|
|
|
<el-button type="text" @click="detailsFn(scope.row)">详情</el-button> |
|
|
|
</template> |
|
|
|
<!-- <el-button type="text" @click="render(scope.row)">提交</el-button> --> |
|
|
|
</avue-crud> |
|
|
|
</template> |
|
|
|
|
|
|
|
</avue-crud> |
|
|
|
|
|
|
|
<detailsDialog v-if="detailsShow" :showDialog="detailsShow" :rowItem="rowItem" @closeDialog="closeDialog"></detailsDialog> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import {getTrackList} from "@/api/storeManagement/additionalPlan" |
|
|
|
import { getTrackList } from "@/api/storeManagement/additionalPlan" |
|
|
|
|
|
|
|
import detailsDialog from "./details.vue" |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
|
|
|
|
components: { detailsDialog }, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
detailsShow:false, |
|
|
|
formData: { |
|
|
|
formData: { |
|
|
|
method: "mes_request_stocks", |
|
|
|
method: "mes_request_stocks", |
|
|
|
date: [], |
|
|
|
date: [], |
|
|
|
}, |
|
|
|
}, |
|
|
|
loading:false, |
|
|
|
loading: false, |
|
|
|
selectionList: [], |
|
|
|
selectionList: [], |
|
|
|
option: { |
|
|
|
option: { |
|
|
|
height: "auto", |
|
|
|
height: "auto", |
|
|
|
@ -52,8 +48,8 @@ export default { |
|
|
|
tree: false, |
|
|
|
tree: false, |
|
|
|
border: true, |
|
|
|
border: true, |
|
|
|
index: true, |
|
|
|
index: true, |
|
|
|
selection: true, |
|
|
|
selection: false, |
|
|
|
viewBtn: true, |
|
|
|
viewBtn: false, |
|
|
|
editBtn: false, |
|
|
|
editBtn: false, |
|
|
|
delBtn: false, |
|
|
|
delBtn: false, |
|
|
|
addBtn: false, |
|
|
|
addBtn: false, |
|
|
|
@ -64,8 +60,8 @@ export default { |
|
|
|
editBtnIcon: " ", |
|
|
|
editBtnIcon: " ", |
|
|
|
viewBtnText: "详情", |
|
|
|
viewBtnText: "详情", |
|
|
|
labelWidth: 120, |
|
|
|
labelWidth: 120, |
|
|
|
menuWidth: 120, |
|
|
|
menuWidth: 80, |
|
|
|
searchLabelWidth:100, |
|
|
|
searchLabelWidth: 100, |
|
|
|
dialogWidth: 1040, |
|
|
|
dialogWidth: 1040, |
|
|
|
dialogClickModal: false, |
|
|
|
dialogClickModal: false, |
|
|
|
searchEnter: true, |
|
|
|
searchEnter: true, |
|
|
|
@ -75,14 +71,13 @@ export default { |
|
|
|
columnSort: true, |
|
|
|
columnSort: true, |
|
|
|
excelBtn: true, |
|
|
|
excelBtn: true, |
|
|
|
columnSort: true, |
|
|
|
columnSort: true, |
|
|
|
index: false, |
|
|
|
|
|
|
|
showOverflowTooltip: true, |
|
|
|
showOverflowTooltip: true, |
|
|
|
menu: false, |
|
|
|
menu: true, |
|
|
|
searchLabelPosition: "left", |
|
|
|
searchLabelPosition: "left", |
|
|
|
searchLabelWidth: 'auto', |
|
|
|
searchLabelWidth: 'auto', |
|
|
|
searchGutter: 24, |
|
|
|
searchGutter: 24, |
|
|
|
searchSpan: 6, |
|
|
|
searchSpan: 6, |
|
|
|
menuAlign: "left", |
|
|
|
menuAlign: "center", |
|
|
|
gridBtn: false, |
|
|
|
gridBtn: false, |
|
|
|
searchMenuPosition: "right", |
|
|
|
searchMenuPosition: "right", |
|
|
|
align: "center", |
|
|
|
align: "center", |
|
|
|
@ -97,16 +92,6 @@ export default { |
|
|
|
width: 140, |
|
|
|
width: 140, |
|
|
|
// searchLabelWidth: 140, |
|
|
|
// searchLabelWidth: 140, |
|
|
|
}, |
|
|
|
}, |
|
|
|
// { |
|
|
|
|
|
|
|
// label: "上报单号", //可点击 点击跳转展示 老mes的额外计划详情页面 |
|
|
|
|
|
|
|
// prop: "boCode", |
|
|
|
|
|
|
|
// search: true, |
|
|
|
|
|
|
|
// sortable: true, |
|
|
|
|
|
|
|
// filter: true, |
|
|
|
|
|
|
|
// span: 12, |
|
|
|
|
|
|
|
// width: 140, |
|
|
|
|
|
|
|
// // searchLabelWidth: 140, |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "物料编号", |
|
|
|
label: "物料编号", |
|
|
|
prop: "goodsCode", |
|
|
|
prop: "goodsCode", |
|
|
|
@ -169,36 +154,36 @@ export default { |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "批料状态", |
|
|
|
label: "批料状态", |
|
|
|
prop: "batchStatus", |
|
|
|
prop: "batchStatus", |
|
|
|
type:"select", |
|
|
|
type: "select", |
|
|
|
search: true, |
|
|
|
search: true, |
|
|
|
sortable: true, |
|
|
|
sortable: true, |
|
|
|
filter: true, |
|
|
|
filter: true, |
|
|
|
span: 12, |
|
|
|
span: 12, |
|
|
|
width: 140, |
|
|
|
width: 140, |
|
|
|
dicData:[ |
|
|
|
dicData: [ |
|
|
|
{label:'新建',value:'新建'}, |
|
|
|
{ label: '新建', value: '新建' }, |
|
|
|
{label:'未批料',value:'未批料'}, |
|
|
|
{ label: '未批料', value: '未批料' }, |
|
|
|
{label:'部分批料',value:'部分批料'}, |
|
|
|
{ label: '部分批料', value: '部分批料' }, |
|
|
|
{label:'全部批料',value:'全部批料'}, |
|
|
|
{ label: '全部批料', value: '全部批料' }, |
|
|
|
{label:'物资取消',value:'物资取消'}, |
|
|
|
{ label: '物资取消', value: '物资取消' }, |
|
|
|
{label:'车间取消',value:'车间取消'}, |
|
|
|
{ label: '车间取消', value: '车间取消' }, |
|
|
|
{label:'完工取消',value:'完工取消'}, |
|
|
|
{ label: '完工取消', value: '完工取消' }, |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "领料状态", |
|
|
|
label: "领料状态", |
|
|
|
prop: "pickStatus", |
|
|
|
prop: "pickStatus", |
|
|
|
type:"select", |
|
|
|
type: "select", |
|
|
|
search: true, |
|
|
|
search: true, |
|
|
|
sortable: true, |
|
|
|
sortable: true, |
|
|
|
filter: true, |
|
|
|
filter: true, |
|
|
|
span: 12, |
|
|
|
span: 12, |
|
|
|
width: 140, |
|
|
|
width: 140, |
|
|
|
dicData:[ |
|
|
|
dicData: [ |
|
|
|
{label:'新建',value:'新建'}, |
|
|
|
{ label: '新建', value: '新建' }, |
|
|
|
{label:'未领',value:'未领'}, |
|
|
|
{ label: '未领', value: '未领' }, |
|
|
|
{label:'领取部分',value:'领取部分'}, |
|
|
|
{ label: '领取部分', value: '领取部分' }, |
|
|
|
{label:'已领',value:'已领'}, |
|
|
|
{ label: '已领', value: '已领' }, |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -216,8 +201,8 @@ export default { |
|
|
|
search: true, |
|
|
|
search: true, |
|
|
|
sortable: true, |
|
|
|
sortable: true, |
|
|
|
filter: true, |
|
|
|
filter: true, |
|
|
|
format:"YYYY-MM-DD", |
|
|
|
format: "YYYY-MM-DD", |
|
|
|
valueFormat:"YYYY-MM-DD", |
|
|
|
valueFormat: "YYYY-MM-DD", |
|
|
|
span: 12, |
|
|
|
span: 12, |
|
|
|
width: 140, |
|
|
|
width: 140, |
|
|
|
type: 'date', |
|
|
|
type: 'date', |
|
|
|
@ -244,46 +229,46 @@ export default { |
|
|
|
span: 12, |
|
|
|
span: 12, |
|
|
|
width: 140, |
|
|
|
width: 140, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
|
|
|
|
label: '采购部门', |
|
|
|
|
|
|
|
prop: 'purchaseDeptName', |
|
|
|
|
|
|
|
// bind: 'buyDept.deptName', |
|
|
|
|
|
|
|
search: false, |
|
|
|
|
|
|
|
sortable: true, |
|
|
|
|
|
|
|
filter: true, |
|
|
|
|
|
|
|
span: 12, |
|
|
|
|
|
|
|
width: 140, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: '需求部门', |
|
|
|
|
|
|
|
prop: 'requireDeptName', |
|
|
|
|
|
|
|
// bind: 'needDept.deptName', |
|
|
|
|
|
|
|
search: true, |
|
|
|
|
|
|
|
sortable: true, |
|
|
|
|
|
|
|
filter: true, |
|
|
|
|
|
|
|
span: 12, |
|
|
|
|
|
|
|
width: 140, |
|
|
|
|
|
|
|
searchOrder: 16, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "采购员", |
|
|
|
label: '采购部门', |
|
|
|
prop: "buyManName", |
|
|
|
prop: 'purchaseDeptName', |
|
|
|
// bind: "buyMan.userName", |
|
|
|
// bind: 'buyDept.deptName', |
|
|
|
|
|
|
|
search: false, |
|
|
|
|
|
|
|
sortable: true, |
|
|
|
|
|
|
|
filter: true, |
|
|
|
|
|
|
|
span: 12, |
|
|
|
|
|
|
|
width: 140, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: '需求部门', |
|
|
|
|
|
|
|
prop: 'requireDeptName', |
|
|
|
|
|
|
|
// bind: 'needDept.deptName', |
|
|
|
search: true, |
|
|
|
search: true, |
|
|
|
sortable: true, |
|
|
|
sortable: true, |
|
|
|
filter: true, |
|
|
|
filter: true, |
|
|
|
span: 12, |
|
|
|
span: 12, |
|
|
|
width: 140, |
|
|
|
width: 140, |
|
|
|
|
|
|
|
searchOrder: 16, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// { |
|
|
|
|
|
|
|
// label: "采购员", |
|
|
|
|
|
|
|
// prop: "buyManName", |
|
|
|
|
|
|
|
// // bind: "buyMan.userName", |
|
|
|
|
|
|
|
// search: true, |
|
|
|
|
|
|
|
// sortable: true, |
|
|
|
|
|
|
|
// filter: true, |
|
|
|
|
|
|
|
// span: 12, |
|
|
|
|
|
|
|
// width: 140, |
|
|
|
|
|
|
|
// }, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "申报日期", |
|
|
|
label: "申报日期", |
|
|
|
prop: "declareDate", |
|
|
|
prop: "declareDate", |
|
|
|
search: true, |
|
|
|
search: true, |
|
|
|
sortable: true, |
|
|
|
sortable: true, |
|
|
|
filter: true, |
|
|
|
filter: true, |
|
|
|
format:"YYYY-MM-DD", |
|
|
|
format: "YYYY-MM-DD", |
|
|
|
valueFormat:"YYYY-MM-DD", |
|
|
|
valueFormat: "YYYY-MM-DD", |
|
|
|
span: 12, |
|
|
|
span: 12, |
|
|
|
width: 140, |
|
|
|
width: 140, |
|
|
|
type: 'date', |
|
|
|
type: 'date', |
|
|
|
@ -321,7 +306,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
query:{}, |
|
|
|
query: {}, |
|
|
|
form: {}, |
|
|
|
form: {}, |
|
|
|
page: { |
|
|
|
page: { |
|
|
|
pageSize: 10, |
|
|
|
pageSize: 10, |
|
|
|
@ -331,6 +316,15 @@ export default { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
// 详情 |
|
|
|
|
|
|
|
detailsFn(row) { |
|
|
|
|
|
|
|
this.detailsShow = true |
|
|
|
|
|
|
|
this.rowItem = row |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
closeDialog(){ |
|
|
|
|
|
|
|
this.detailsShow = false |
|
|
|
|
|
|
|
this.onLoad(this.page) |
|
|
|
|
|
|
|
}, |
|
|
|
handleDelete() { |
|
|
|
handleDelete() { |
|
|
|
if (this.selectionList.length === 0) { |
|
|
|
if (this.selectionList.length === 0) { |
|
|
|
this.$message.warning("请选择至少一条数据"); |
|
|
|
this.$message.warning("请选择至少一条数据"); |
|
|
|
@ -340,19 +334,19 @@ export default { |
|
|
|
confirmButtonText: "确定", |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
type: "warning", |
|
|
|
}).then(() => {}); |
|
|
|
}).then(() => { }); |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 多选 |
|
|
|
// 多选 |
|
|
|
selectionChange(list) { |
|
|
|
selectionChange(list) { |
|
|
|
this.selectionList = list; |
|
|
|
this.selectionList = list; |
|
|
|
}, |
|
|
|
}, |
|
|
|
searchChange(params, done){ |
|
|
|
searchChange(params, done) { |
|
|
|
this.query = params; |
|
|
|
this.query = params; |
|
|
|
this.page.currentPage = 1 |
|
|
|
this.page.currentPage = 1 |
|
|
|
this.onLoad(this.page, params) |
|
|
|
this.onLoad(this.page, params) |
|
|
|
done() |
|
|
|
done() |
|
|
|
}, |
|
|
|
}, |
|
|
|
searchReset(){ |
|
|
|
searchReset() { |
|
|
|
this.query = {} |
|
|
|
this.query = {} |
|
|
|
this.onLoad() |
|
|
|
this.onLoad() |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -366,18 +360,18 @@ export default { |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
...this.query, |
|
|
|
...this.query, |
|
|
|
startNeedDate:this.query.needDate && this.query.needDate.length != 0 && this.query.needDate[0], |
|
|
|
startNeedDate: this.query.needDate && this.query.needDate.length != 0 && this.query.needDate[0], |
|
|
|
endNeedDate:this.query.needDate && this.query.needDate.length != 0 && this.query.needDate[1], |
|
|
|
endNeedDate: this.query.needDate && this.query.needDate.length != 0 && this.query.needDate[1], |
|
|
|
startDeclareDate:this.query.declareDate && this.query.declareDate.length != 0 && this.query.declareDate[0], |
|
|
|
startDeclareDate: this.query.declareDate && this.query.declareDate.length != 0 && this.query.declareDate[0], |
|
|
|
endDeclareDate:this.query.declareDate && this.query.declareDate.length != 0 && this.query.declareDate[1], |
|
|
|
endDeclareDate: this.query.declareDate && this.query.declareDate.length != 0 && this.query.declareDate[1], |
|
|
|
} |
|
|
|
} |
|
|
|
let {needDate,declareDate,...searchParams} = params |
|
|
|
let { needDate, declareDate, ...searchParams } = params |
|
|
|
console.log('searchParams',searchParams) |
|
|
|
console.log('searchParams', searchParams) |
|
|
|
getTrackList({ |
|
|
|
getTrackList({ |
|
|
|
current:this.page.currentPage, |
|
|
|
current: this.page.currentPage, |
|
|
|
size:this.page.pageSize, |
|
|
|
size: this.page.pageSize, |
|
|
|
...searchParams |
|
|
|
...searchParams |
|
|
|
}).then(res =>{ |
|
|
|
}).then(res => { |
|
|
|
this.data = res.data.data.records |
|
|
|
this.data = res.data.data.records |
|
|
|
this.page.total = res.data.data.total |
|
|
|
this.page.total = res.data.data.total |
|
|
|
this.loading = false |
|
|
|
this.loading = false |
|
|
|
|