parent
9404311f68
commit
0e1b713742
4 changed files with 574 additions and 736 deletions
@ -0,0 +1,23 @@ |
|||||||
|
import request from '@/axios'; |
||||||
|
|
||||||
|
// 排产看板数据
|
||||||
|
export const getData = row => { |
||||||
|
return request({ |
||||||
|
url: '/blade-scheduling/workOrder/schedulingBoard', |
||||||
|
method: 'post', |
||||||
|
data: row, |
||||||
|
}); |
||||||
|
}; |
||||||
|
|
||||||
|
// 排产异常数据
|
||||||
|
export const getYieldOrderList = (current, size, params) => { |
||||||
|
return request({ |
||||||
|
url: '/blade-scheduling/yieldOrder/page', |
||||||
|
method: 'get', |
||||||
|
params: { |
||||||
|
...params, |
||||||
|
current, |
||||||
|
size, |
||||||
|
}, |
||||||
|
}); |
||||||
|
}; |
||||||
@ -1,561 +1,303 @@ |
|||||||
|
|
||||||
<template> |
<template> |
||||||
<basic-container> |
<basic-container> |
||||||
<div class="search_box"> |
<div class="search_box"></div> |
||||||
|
<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" |
:data="data" |
||||||
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" |
v-model="form" |
||||||
@refresh-change="refreshChange" @on-load="onLoad"> |
v-model:page="page" |
||||||
<template #menu-left> |
ref="crud" |
||||||
<!-- <el-button type="danger" @click="batchDel()">删除</el-button> --> |
@search-change="searchChange" |
||||||
</template> |
@search-reset="searchReset" |
||||||
<template #menu-right> |
@selection-change="selectionChange" |
||||||
<!-- <el-button type="primary" @click="batchDel()">导入</el-button> --> |
@current-change="currentChange" |
||||||
</template> |
@size-change="sizeChange" |
||||||
<template #menu="{ row }"> |
@refresh-change="refreshChange" |
||||||
|
@on-load="onLoad" |
||||||
</template> |
> |
||||||
|
|
||||||
<template #heatTreat="scope"> |
|
||||||
<!-- <el-tag v-if="scope.row.afterPlating" type="success">是</el-tag> |
|
||||||
<el-tag v-else type="warning">否</el-tag> --> |
|
||||||
</template> |
|
||||||
|
|
||||||
</avue-crud> |
</avue-crud> |
||||||
|
</basic-container> |
||||||
|
|
||||||
</basic-container> |
|
||||||
</template> |
</template> |
||||||
|
|
||||||
<script> |
<script> |
||||||
|
import { getYieldOrderList } from '@/api/productionSchedulingPlan/scheduling'; |
||||||
import { |
|
||||||
add, |
|
||||||
getRole, |
|
||||||
getRoleAlias, |
|
||||||
getRoleTreeById, |
|
||||||
grant, |
|
||||||
grantTree, |
|
||||||
remove, |
|
||||||
update, |
|
||||||
} from '@/api/system/role'; |
|
||||||
import { mapGetters } from 'vuex'; |
|
||||||
import { validatenull } from '@/utils/validate'; |
|
||||||
|
|
||||||
|
|
||||||
export default { |
export default { |
||||||
components: { |
components: {}, |
||||||
}, |
data() { |
||||||
data() { |
return { |
||||||
return { |
inBatchesOpen: false, |
||||||
inBatchesOpen: false, |
platingSmallOpen: false, |
||||||
platingSmallOpen: false, |
planOrderArr: [], |
||||||
planOrderArr: [], |
isOpen: false, |
||||||
isOpen: false, |
rowItem: {}, |
||||||
rowItem: {}, |
poId: null, |
||||||
poId: null, |
form: {}, |
||||||
form: {}, |
box: false, |
||||||
box: false, |
props: { |
||||||
props: { |
label: 'title', |
||||||
label: 'title', |
value: 'key', |
||||||
value: 'key', |
}, |
||||||
}, |
menuGrantList: [], |
||||||
menuGrantList: [], |
dataScopeGrantList: [], |
||||||
dataScopeGrantList: [], |
apiScopeGrantList: [], |
||||||
apiScopeGrantList: [], |
apiGrantList: [], |
||||||
apiGrantList: [], |
menuTreeObj: [], |
||||||
menuTreeObj: [], |
dataScopeTreeObj: [], |
||||||
dataScopeTreeObj: [], |
apiScopeTreeObj: [], |
||||||
apiScopeTreeObj: [], |
selectionList: [], |
||||||
selectionList: [], |
query: {}, |
||||||
query: {}, |
loading: true, |
||||||
loading: true, |
page: { |
||||||
page: { |
pageSize: 10, |
||||||
pageSize: 10, |
currentPage: 1, |
||||||
currentPage: 1, |
total: 0, |
||||||
total: 0, |
}, |
||||||
}, |
option: { |
||||||
option: { |
columnSort: true, |
||||||
columnSort: true, |
tip: false, |
||||||
tip: false, |
height: 'auto', |
||||||
height: 'auto', |
calcHeight: 32, |
||||||
calcHeight: 32, |
simplePage: false, |
||||||
simplePage: false, |
searchShow: true, |
||||||
searchShow: true, |
searchMenuSpan: 6, |
||||||
searchMenuSpan: 6, |
searchIcon: true, |
||||||
searchIcon: true, |
searchIndex: 3, |
||||||
searchIndex: 3, |
tree: false, |
||||||
tree: false, |
border: true, |
||||||
border: true, |
index: true, |
||||||
index: true, |
selection: false, |
||||||
selection: false, |
addBtn: false, |
||||||
addBtn: false, |
editBtn: false, |
||||||
editBtn: false, |
viewBtn: false, |
||||||
viewBtn: false, |
delBtn: false, |
||||||
delBtn: false, |
editBtnText: '修改', |
||||||
editBtnText: '修改', |
labelWidth: 120, |
||||||
labelWidth: 120, |
menuWidth: 80, |
||||||
menuWidth: 80, |
dialogWidth: 900, |
||||||
dialogWidth: 900, |
dialogClickModal: false, |
||||||
dialogClickModal: false, |
searchEnter: true, |
||||||
searchEnter: true, |
excelBtn: false, |
||||||
excelBtn: false, |
filterBtn: true, |
||||||
filterBtn: true, |
searchShowBtn: false, |
||||||
searchShowBtn: false, |
excelBtn: true, |
||||||
excelBtn: true, |
showOverflowTooltip: true, |
||||||
showOverflowTooltip: true, |
addBtnIcon: ' ', |
||||||
addBtnIcon: ' ', |
viewBtnIcon: ' ', |
||||||
viewBtnIcon: ' ', |
delBtnIcon: ' ', |
||||||
delBtnIcon: ' ', |
editBtnIcon: ' ', |
||||||
editBtnIcon: ' ', |
gridBtn: false, |
||||||
gridBtn: false, |
searchLabelPosition: 'left', |
||||||
searchLabelPosition: 'left', |
searchGutter: 24, |
||||||
searchGutter: 24, |
searchSpan: 6, |
||||||
searchSpan: 6, |
menuAlign: 'left', |
||||||
menuAlign: 'left', |
gridBtn: false, |
||||||
gridBtn: false, |
searchMenuPosition: 'right', |
||||||
searchMenuPosition: 'right', |
align: 'center', |
||||||
align: 'center', |
menu: false, |
||||||
column: [ |
column: [ |
||||||
{ |
{ |
||||||
label: '异常原因', |
label: '异常原因', |
||||||
prop: 'partCode', |
prop: 'errorInfo', |
||||||
search: false, |
search: false, |
||||||
sortable: true, |
sortable: true, |
||||||
width: 150, |
width: 150, |
||||||
span: 12, |
span: 12, |
||||||
|
}, |
||||||
}, |
// { |
||||||
{ |
// label: '处理方式', |
||||||
label: '处理方式', |
// prop: 'partName', |
||||||
prop: 'partName', |
// search: false, |
||||||
search: false, |
// sortable: true, |
||||||
sortable: true, |
// width: 150, |
||||||
width: 150, |
// span: 12, |
||||||
span: 12, |
// }, |
||||||
}, |
{ |
||||||
{ |
label: '调度员', |
||||||
label: '调度员', |
prop: 'planUser', |
||||||
prop: 'cycle', |
search: false, |
||||||
search: false, |
sortable: true, |
||||||
sortable: true, |
width: 150, |
||||||
width: 150, |
span: 12, |
||||||
span: 12, |
}, |
||||||
}, |
{ |
||||||
{ |
label: '生产单号', |
||||||
label: '生产单号', |
prop: 'yoCode', |
||||||
prop: 'material', |
search: true, |
||||||
search: true, |
sortable: true, |
||||||
sortable: true, |
width: 150, |
||||||
width: 150, |
span: 12, |
||||||
span: 12, |
display: false, |
||||||
display: false, |
}, |
||||||
}, |
{ |
||||||
{ |
label: '计划单号', |
||||||
label: '计划单号', |
prop: 'ypCode', |
||||||
prop: 'plate', |
search: false, |
||||||
search: false, |
sortable: true, |
||||||
sortable: true, |
width: 150, |
||||||
width: 150, |
span: 12, |
||||||
span: 12, |
display: false, |
||||||
display: false, |
}, |
||||||
}, |
{ |
||||||
{ |
label: '订单优先级', |
||||||
label: '订单优先级', |
prop: 'priority', |
||||||
prop: 'craftWay', |
search: false, |
||||||
search: false, |
sortable: true, |
||||||
sortable: true, |
width: 150, |
||||||
width: 150, |
span: 12, |
||||||
span: 12, |
display: false, |
||||||
display: false, |
}, |
||||||
}, |
{ |
||||||
{ |
label: '零件号', |
||||||
label: '零件号', |
prop: 'partCode', |
||||||
prop: 'chlidPart', |
search: true, |
||||||
search: true, |
sortable: true, |
||||||
sortable: true, |
width: 150, |
||||||
width: 150, |
span: 12, |
||||||
span: 12, |
}, |
||||||
}, |
{ |
||||||
{ |
label: '零件名称', |
||||||
label: '零件名称', |
prop: 'partName', |
||||||
prop: 'remindContent', |
search: false, |
||||||
search: false, |
sortable: true, |
||||||
sortable: true, |
width: 150, |
||||||
width: 150, |
span: 12, |
||||||
span: 12, |
}, |
||||||
}, |
{ |
||||||
{ |
label: '产品型号', |
||||||
label: '产品型号', |
prop: 'productType', |
||||||
prop: 'parameter', |
search: false, |
||||||
search: false, |
sortable: true, |
||||||
sortable: true, |
width: 150, |
||||||
width: 150, |
span: 12, |
||||||
span: 12, |
}, |
||||||
}, |
{ |
||||||
{ |
label: '批次号', |
||||||
label: '批次号', |
prop: 'batchNo', |
||||||
prop: 'metalsTest', |
search: true, |
||||||
search: true, |
sortable: true, |
||||||
sortable: true, |
width: 150, |
||||||
width: 150, |
span: 12, |
||||||
span: 12, |
}, |
||||||
}, |
{ |
||||||
{ |
label: '流程卡号', |
||||||
label: '流程卡号', |
prop: 'cardNo', |
||||||
prop: 'silverTest', |
search: true, |
||||||
search: true, |
sortable: true, |
||||||
sortable: true, |
width: 150, |
||||||
width: 150, |
span: 12, |
||||||
span: 12, |
display: false, |
||||||
display: false, |
}, |
||||||
}, |
{ |
||||||
{ |
label: '流转编码', |
||||||
label: '流转编码', |
prop: 'roamNo', |
||||||
prop: 'heatTreat', |
search: true, |
||||||
search: true, |
sortable: true, |
||||||
sortable: true, |
width: 150, |
||||||
width: 150, |
span: 12, |
||||||
span: 12, |
}, |
||||||
type: 'switch', |
{ |
||||||
|
label: '镀种', |
||||||
}, |
prop: 'plate', |
||||||
{ |
search: false, |
||||||
label: '镀种', |
sortable: true, |
||||||
prop: 'afterPlating', |
width: 150, |
||||||
search: false, |
span: 12, |
||||||
sortable: true, |
}, |
||||||
width: 150, |
{ |
||||||
span: 12, |
label: '生产标识', |
||||||
|
prop: 'productIdent', |
||||||
}, |
search: false, |
||||||
{ |
sortable: true, |
||||||
label: '生产标识', |
width: 150, |
||||||
prop: 'afterPlating', |
span: 12, |
||||||
search: false, |
}, |
||||||
sortable: true, |
{ |
||||||
width: 150, |
label: '生产数量', |
||||||
span: 12, |
prop: 'ypQty', |
||||||
|
search: false, |
||||||
}, |
sortable: true, |
||||||
{ |
width: 150, |
||||||
label: '生产数量', |
span: 12, |
||||||
prop: 'afterPlating', |
}, |
||||||
search: false, |
{ |
||||||
sortable: true, |
label: '面积(d㎡)', |
||||||
width: 150, |
prop: 'ypArea', |
||||||
span: 12, |
search: false, |
||||||
|
sortable: true, |
||||||
|
width: 150, |
||||||
|
span: 12, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '需求交期', |
||||||
|
prop: 'demandDate', |
||||||
|
search: false, |
||||||
|
sortable: true, |
||||||
|
width: 150, |
||||||
|
span: 12, |
||||||
|
}, |
||||||
|
|
||||||
}, |
{ |
||||||
{ |
label: '计划下达时间', |
||||||
label: '面积(d㎡)', |
prop: 'releaseDate', |
||||||
prop: 'afterPlating', |
search: false, |
||||||
search: false, |
sortable: true, |
||||||
sortable: true, |
width: 150, |
||||||
width: 150, |
span: 12, |
||||||
span: 12, |
}, |
||||||
|
|
||||||
}, |
{ |
||||||
{ |
label: '备注', |
||||||
label: '需求交期', |
prop: 'memo', |
||||||
prop: 'afterPlating', |
search: false, |
||||||
search: false, |
sortable: true, |
||||||
sortable: true, |
width: 150, |
||||||
width: 150, |
span: 12, |
||||||
span: 12, |
}, |
||||||
|
], |
||||||
|
}, |
||||||
|
|
||||||
}, |
data: [], |
||||||
|
isRushOpen: false, //加急弹框 |
||||||
{ |
isBatchOpen: false, //分批处理 |
||||||
label: '计划下达时间', |
}; |
||||||
prop: 'afterPlating', |
}, |
||||||
search: false, |
methods: { |
||||||
sortable: true, |
searchReset() { |
||||||
width: 150, |
this.query = {}; |
||||||
span: 12, |
this.onLoad(this.page); |
||||||
|
}, |
||||||
}, |
searchChange(params, done) { |
||||||
|
this.query = params; |
||||||
{ |
this.page.currentPage = 1; |
||||||
label: '备注', |
this.onLoad(this.page, params); |
||||||
prop: 'afterPlating', |
done(); |
||||||
search: false, |
}, |
||||||
sortable: true, |
currentChange(currentPage) { |
||||||
width: 150, |
this.page.currentPage = currentPage; |
||||||
span: 12, |
}, |
||||||
|
sizeChange(pageSize) { |
||||||
}, |
this.page.pageSize = pageSize; |
||||||
|
}, |
||||||
], |
refreshChange() { |
||||||
}, |
this.onLoad(this.page, this.query); |
||||||
|
|
||||||
data: [], |
|
||||||
isRushOpen: false,//加急弹框 |
|
||||||
isBatchOpen: false,//分批处理 |
|
||||||
}; |
|
||||||
}, |
}, |
||||||
methods: { |
|
||||||
// 批量接收 |
|
||||||
batchReceiving() { |
|
||||||
this.$confirm('确定将选择数据批量接收?', { |
|
||||||
confirmButtonText: '确定', |
|
||||||
cancelButtonText: '取消', |
|
||||||
type: 'warning', |
|
||||||
}) |
|
||||||
.then(() => { |
|
||||||
// return remove(row.id); |
|
||||||
}) |
|
||||||
.then(() => { |
|
||||||
// this.onLoad(this.page); |
|
||||||
// this.$message({ |
|
||||||
// type: 'success', |
|
||||||
// message: '操作成功!', |
|
||||||
// }); |
|
||||||
}); |
|
||||||
}, |
|
||||||
// 批量关闭 |
|
||||||
batchDel() { |
|
||||||
this.$confirm('确定将选择数据批量删除?', { |
|
||||||
confirmButtonText: '确定', |
|
||||||
cancelButtonText: '取消', |
|
||||||
type: 'warning', |
|
||||||
}) |
|
||||||
.then(() => { |
|
||||||
// return remove(row.id); |
|
||||||
}) |
|
||||||
.then(() => { |
|
||||||
// this.onLoad(this.page); |
|
||||||
// this.$message({ |
|
||||||
// type: 'success', |
|
||||||
// message: '操作成功!', |
|
||||||
// }); |
|
||||||
}); |
|
||||||
}, |
|
||||||
// 加急 |
|
||||||
rushFn() { |
|
||||||
this.isRushOpen = true |
|
||||||
}, |
|
||||||
closeDialog() { |
|
||||||
this.isRushOpen = false |
|
||||||
this.isBatchOpen = false |
|
||||||
}, |
|
||||||
inBatchesFn(row) { |
|
||||||
this.rowItem = row; |
|
||||||
this.isBatchOpen = true; |
|
||||||
}, |
|
||||||
subclass() { |
|
||||||
this.platingSmallOpen = true; |
|
||||||
}, |
|
||||||
lookProcessRoute(row) { |
|
||||||
this.isOpen = true; |
|
||||||
this.rowItem = row; |
|
||||||
}, |
|
||||||
cancel(refresh) { |
|
||||||
if (refresh) { |
|
||||||
this.$refs.myTable.load(); |
|
||||||
} |
|
||||||
this.inBatchesOpen = false; |
|
||||||
this.isOpen = false; |
|
||||||
this.planFormOpen = false; |
|
||||||
this.platingSmallOpen = false; |
|
||||||
}, |
|
||||||
initData(roleId) { |
|
||||||
getRoleTreeById(roleId).then(res => { |
|
||||||
const column = this.findObject(this.option.column, 'parentId'); |
|
||||||
column.dicData = res.data.data; |
|
||||||
}); |
|
||||||
}, |
|
||||||
submit() { |
|
||||||
const menuList = this.$refs.treeMenu.getCheckedKeys(); |
|
||||||
const dataScopeList = this.$refs.treeDataScope.getCheckedKeys(); |
|
||||||
const apiScopeList = this.$refs.treeApiScope.getCheckedKeys(); |
|
||||||
grant(this.idsArray, menuList, dataScopeList, apiScopeList).then(() => { |
|
||||||
this.box = false; |
|
||||||
this.$message({ |
|
||||||
type: 'success', |
|
||||||
message: '操作成功!', |
|
||||||
}); |
|
||||||
this.selectionList = []; |
|
||||||
this.onLoad(this.page); |
|
||||||
}); |
|
||||||
}, |
|
||||||
rowSave(row, done, loading) { |
|
||||||
add(row).then( |
|
||||||
() => { |
|
||||||
this.onLoad(this.page); |
|
||||||
this.$message({ |
|
||||||
type: 'success', |
|
||||||
message: '操作成功!', |
|
||||||
}); |
|
||||||
done(); |
|
||||||
}, |
|
||||||
error => { |
|
||||||
window.console.log(error); |
|
||||||
loading(); |
|
||||||
} |
|
||||||
); |
|
||||||
}, |
|
||||||
rowUpdate(row, index, done, loading) { |
|
||||||
update(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 remove(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(); |
|
||||||
}, |
|
||||||
beforeOpen(done, type) { |
|
||||||
if (['add', 'edit'].includes(type)) { |
|
||||||
this.initData(this.form.id); |
|
||||||
} |
|
||||||
if (['edit', 'view'].includes(type)) { |
|
||||||
if (this.form.parentId === '0') { |
|
||||||
this.form.parentId = ''; |
|
||||||
} |
|
||||||
} |
|
||||||
getRoleAlias().then(res => { |
|
||||||
const column = this.findObject(this.option.column, 'currentAlias'); |
|
||||||
column.dicData = res.data.data; |
|
||||||
}); |
|
||||||
done(); |
|
||||||
}, |
|
||||||
handleRole() { |
|
||||||
if (this.selectionList.length !== 1) { |
|
||||||
this.$message.warning('只能选择一条数据'); |
|
||||||
return; |
|
||||||
} |
|
||||||
this.menuTreeObj = []; |
|
||||||
this.dataScopeTreeObj = []; |
|
||||||
this.apiScopeTreeObj = []; |
|
||||||
grantTree().then(res => { |
|
||||||
this.menuGrantList = res.data.data.menu; |
|
||||||
this.dataScopeGrantList = res.data.data.dataScope; |
|
||||||
this.apiScopeGrantList = res.data.data.apiScope; |
|
||||||
getRole(this.ids).then(res => { |
|
||||||
this.menuTreeObj = res.data.data.menu; |
|
||||||
this.dataScopeTreeObj = res.data.data.dataScope; |
|
||||||
this.apiScopeTreeObj = res.data.data.apiScope; |
|
||||||
this.box = true; |
|
||||||
}); |
|
||||||
}); |
|
||||||
}, |
|
||||||
handleRowRole(row) { |
|
||||||
this.menuTreeObj = []; |
|
||||||
this.dataScopeTreeObj = []; |
|
||||||
this.apiScopeTreeObj = []; |
|
||||||
grantTree().then(res => { |
|
||||||
this.menuGrantList = res.data.data.menu; |
|
||||||
this.dataScopeGrantList = res.data.data.dataScope; |
|
||||||
this.apiScopeGrantList = res.data.data.apiScope; |
|
||||||
getRole(row.id).then(res => { |
|
||||||
this.menuTreeObj = res.data.data.menu; |
|
||||||
this.dataScopeTreeObj = res.data.data.dataScope; |
|
||||||
this.apiScopeTreeObj = res.data.data.apiScope; |
|
||||||
this.selectionList.push(row); |
|
||||||
this.box = true; |
|
||||||
}); |
|
||||||
}); |
|
||||||
}, |
|
||||||
handleDelete() { |
|
||||||
if (this.selectionList.length === 0) { |
|
||||||
this.$message.warning('请选择至少一条数据'); |
|
||||||
return; |
|
||||||
} |
|
||||||
this.$confirm('确定将选择数据删除?', { |
|
||||||
confirmButtonText: '确定', |
|
||||||
cancelButtonText: '取消', |
|
||||||
type: 'warning', |
|
||||||
}) |
|
||||||
.then(() => { |
|
||||||
return remove(this.ids); |
|
||||||
}) |
|
||||||
.then(() => { |
|
||||||
this.onLoad(this.page); |
|
||||||
this.$message({ |
|
||||||
type: 'success', |
|
||||||
message: '操作成功!', |
|
||||||
}); |
|
||||||
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; |
|
||||||
this.data = [ |
|
||||||
|
|
||||||
] |
onLoad(page, params = {}) { |
||||||
this.page.total = this.data.length |
this.loading = true; |
||||||
// getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
this.data = []; |
||||||
// this.data = res.data.data.records; |
getYieldOrderList( |
||||||
this.loading = false; |
page.currentPage, |
||||||
// this.page.total = res.data.data.total |
page.pageSize, |
||||||
// this.selectionClear(); |
Object.assign(params, this.query, { status: 6 }) |
||||||
// }); |
).then(res => { |
||||||
}, |
this.data = res.data.data.records; |
||||||
|
this.loading = false; |
||||||
|
this.page.total = res.data.data.total; |
||||||
|
}); |
||||||
}, |
}, |
||||||
mounted() { |
}, |
||||||
} |
|
||||||
}; |
}; |
||||||
</script> |
</script> |
||||||
|
|||||||
Loading…
Reference in new issue