parent
e88aeb0aaa
commit
94f736dac6
223 changed files with 6910 additions and 3699 deletions
@ -0,0 +1,534 @@ |
||||
<template> |
||||
<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-button type="primary" @click="subclass">关闭需求</el-button> --> |
||||
<!-- <el-upload :auto-upload="false" :show-file-list="false" action="action" :on-change="handleChange" |
||||
style="float: right;margin-left: 12px;"> |
||||
<el-button type="primary">导入</el-button> |
||||
</el-upload> --> |
||||
</template> |
||||
<template #menu-right> |
||||
|
||||
</template> |
||||
|
||||
<template #poCode="{ row }"> |
||||
<el-text type="primary">{{ row.poCode }}</el-text> |
||||
</template> |
||||
<template #prodIdent="{ row }"> |
||||
<el-tag>{{ row.prodIdent }}</el-tag> |
||||
</template> |
||||
<template #menu="{ row }"> |
||||
<!-- <el-button type="primary" text plain style="border: 0; background-color: transparent !important" |
||||
@click="lookProcessRoute(row)">详情 |
||||
</el-button> |
||||
<el-button type="primary" text plain style="border: 0; background-color: transparent !important" |
||||
@click="inBatchesFn(row)">模具申报 |
||||
</el-button> --> |
||||
|
||||
</template> |
||||
</avue-crud> |
||||
</template> |
||||
<script> |
||||
|
||||
|
||||
import { mapGetters } from 'vuex'; |
||||
import { validatenull } from '@/utils/validate'; |
||||
import { getList } from '@/api/base/region'; |
||||
|
||||
export default { |
||||
components: { |
||||
|
||||
}, |
||||
data() { |
||||
return { |
||||
activeName: 'first', |
||||
inBatchesOpen: false, |
||||
platingSmallOpen: false, |
||||
planOrderArr: [], |
||||
isOpen: false, |
||||
rowItem: {}, |
||||
poId: null, |
||||
form: {}, |
||||
box: false, |
||||
props: { |
||||
label: 'title', |
||||
value: 'key', |
||||
}, |
||||
menuGrantList: [], |
||||
dataScopeGrantList: [], |
||||
apiScopeGrantList: [], |
||||
apiGrantList: [], |
||||
menuTreeObj: [], |
||||
dataScopeTreeObj: [], |
||||
apiScopeTreeObj: [], |
||||
selectionList: [], |
||||
query: {}, |
||||
loading: true, |
||||
page: { |
||||
pageSize: 10, |
||||
currentPage: 1, |
||||
total: 0, |
||||
}, |
||||
option: { |
||||
columnSort: true, |
||||
tip: false, |
||||
height: 'auto', |
||||
calcHeight: 32, |
||||
simplePage: false, |
||||
searchShow: true, |
||||
searchMenuSpan: 12, |
||||
searchIcon: true, |
||||
searchIndex: 3, |
||||
tree: false, |
||||
border: true, |
||||
index: false, |
||||
selection: true, |
||||
viewBtn: false, |
||||
addBtn: false, |
||||
delBtn: false, |
||||
editBtn: false, |
||||
editBtnText: '修改', |
||||
labelWidth: 120, |
||||
// searchLabelWidth: 120, |
||||
menuWidth: 140, |
||||
dialogWidth: 900, |
||||
dialogClickModal: false, |
||||
searchEnter: true, |
||||
excelBtn: false, |
||||
filterBtn: true, |
||||
searchShowBtn: false, |
||||
excelBtn: true, |
||||
showOverflowTooltip: true, |
||||
addBtnIcon: ' ', |
||||
viewBtnIcon: ' ', |
||||
delBtnIcon: ' ', |
||||
editBtnIcon: ' ', |
||||
menuAlign: 'left', |
||||
searchLabelPosition:'left', |
||||
searchLabelPosition:'left', |
||||
searchGutter:24, |
||||
searchSpan:6, |
||||
menuAlign: 'left', |
||||
gridBtn:false, |
||||
searchMenuPosition:'right', |
||||
menu:false, |
||||
column: [ |
||||
{ |
||||
label: '需求单号', |
||||
prop: 'sureTypeTitle', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
}, |
||||
{ |
||||
label: '零件号', |
||||
prop: 'poCode', |
||||
search: true, |
||||
sortable: true, |
||||
span: 12, |
||||
hide: true, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
searchLabelWidth: 60, |
||||
}, |
||||
{ |
||||
label: '工装号', |
||||
prop: 'poCode', |
||||
search: true, |
||||
sortable: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
searchLabelWidth: 60, |
||||
}, |
||||
{ |
||||
label: '工装名称', |
||||
prop: 'partCode', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'left', |
||||
}, |
||||
{ |
||||
label: '订单需求量', |
||||
prop: 'productType', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
}, |
||||
{ |
||||
label: '库存量', |
||||
prop: 'partName', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
}, |
||||
{ |
||||
label: '占用量', |
||||
prop: 'prodIdent', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
}, |
||||
{ |
||||
label: '关联订单', |
||||
prop: 'useDept', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
}, |
||||
], |
||||
}, |
||||
|
||||
data: [], |
||||
}; |
||||
}, |
||||
|
||||
methods: { |
||||
inBatchesFn(row) { |
||||
this.rowItem = row; |
||||
this.inBatchesOpen = 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 = [ |
||||
{ |
||||
"alreadyBranchQty": 104.0, |
||||
"bsPlatingSmall": null, |
||||
"bsProcedureQua": null, |
||||
"closeMan": null, |
||||
"closeTime": null, |
||||
"curStatus": 4, |
||||
"curStatusText": "已派工", |
||||
"custodian": null, |
||||
"deliveryQty": 0.0, |
||||
"demandDate": "2025-03-13 00:00:00", |
||||
"dominantDept": "3400", |
||||
"dsPart": null, |
||||
"keyValue": 43933, |
||||
"memo": "最多三个批次0159BKFX", |
||||
"partCode": "21E6-575-1710_003-H14-C-N", |
||||
"partName": "09-J599_25烧结插座", |
||||
"planType": 2, |
||||
"planUser": "0300009", |
||||
"plate": "Ep.Ni3b", |
||||
"poArea": 0.0, |
||||
"poCode": "WO-2211134240", |
||||
"poId": 43933, |
||||
"poQty": 104, |
||||
"primaryCraft": "4(封接、表、涂色带)-库2", |
||||
"priority": 1, |
||||
"prodIdent": "JHT", |
||||
"prodLine": null, |
||||
"productType": "JY599", |
||||
"releaseDate": "2022-11-24 11:59:21", |
||||
"roamNo": "B5199029", |
||||
"routeNo": "LX08-05-002", |
||||
"sureType": null, |
||||
"sureTypeTitle": "未确认", |
||||
"syncTime": "2023-02-10 20:58:11", |
||||
"undeliveredQty": 104.0, |
||||
"useDept": "3502", |
||||
"wcName": null |
||||
}, |
||||
{ |
||||
"alreadyBranchQty": 104.0, |
||||
"bsPlatingSmall": null, |
||||
"bsProcedureQua": null, |
||||
"closeMan": null, |
||||
"closeTime": null, |
||||
"curStatus": 4, |
||||
"curStatusText": "已派工", |
||||
"custodian": null, |
||||
"deliveryQty": 0.0, |
||||
"demandDate": "2025-03-13 00:00:00", |
||||
"dominantDept": "3400", |
||||
"dsPart": null, |
||||
"keyValue": 43948, |
||||
"memo": "最多三个批次0159BKFX", |
||||
"partCode": "21E6-575-1710_003-H14-C-N", |
||||
"partName": "09-J599_25烧结插座", |
||||
"planType": 2, |
||||
"planUser": "0300009", |
||||
"plate": "Ep.Ni3b", |
||||
"poArea": 0.0, |
||||
"poCode": "WO-2211134240", |
||||
"poId": 43948, |
||||
"poQty": 104, |
||||
"primaryCraft": "4(封接、表、涂色带)-库2", |
||||
"priority": 1, |
||||
"prodIdent": "JHT", |
||||
"prodLine": null, |
||||
"productType": "JY599", |
||||
"releaseDate": "2022-11-24 11:59:21", |
||||
"roamNo": null, |
||||
"routeNo": "LX08-05-002", |
||||
"sureType": null, |
||||
"sureTypeTitle": "未确认", |
||||
"syncTime": "2023-02-10 20:58:11", |
||||
"undeliveredQty": 104.0, |
||||
"useDept": "3502", |
||||
"wcName": null |
||||
}, |
||||
{ |
||||
"alreadyBranchQty": 19.0, |
||||
"bsPlatingSmall": null, |
||||
"bsProcedureQua": null, |
||||
"closeMan": null, |
||||
"closeTime": null, |
||||
"curStatus": 4, |
||||
"curStatusText": "已派工", |
||||
"custodian": null, |
||||
"deliveryQty": 0.0, |
||||
"demandDate": "2025-02-23 00:00:00", |
||||
"dominantDept": "3400", |
||||
"dsPart": null, |
||||
"keyValue": 43932, |
||||
"memo": "最多三个批次0159BKFX", |
||||
"partCode": "21E6-575-1710_002-H14-N-N", |
||||
"partName": "09-J599_25烧结插座", |
||||
"planType": 2, |
||||
"planUser": "0300009", |
||||
"plate": "Ep.Ni3b", |
||||
"poArea": 0.0, |
||||
"poCode": "WO-2211134211", |
||||
"poId": 43932, |
||||
"poQty": 19, |
||||
"primaryCraft": "4(封接、表、涂色带)-库2", |
||||
"priority": 1, |
||||
"prodIdent": "JHT", |
||||
"prodLine": null, |
||||
"productType": "JY599", |
||||
"releaseDate": "2022-11-24 11:59:21", |
||||
"roamNo": null, |
||||
"routeNo": "LX08-05-002", |
||||
"sureType": null, |
||||
"sureTypeTitle": "未确认", |
||||
"syncTime": "2023-02-10 20:58:11", |
||||
"undeliveredQty": 19.0, |
||||
"useDept": "3502", |
||||
"wcName": null |
||||
} |
||||
] |
||||
this.page.total = this.data.length |
||||
// 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> |
||||
@ -0,0 +1,534 @@ |
||||
<template> |
||||
<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-button type="primary" @click="subclass">关闭需求</el-button> |
||||
<!-- <el-upload :auto-upload="false" :show-file-list="false" action="action" :on-change="handleChange" |
||||
style="float: right;margin-left: 12px;"> |
||||
<el-button type="primary">导入</el-button> |
||||
</el-upload> --> |
||||
</template> |
||||
<template #menu-right> |
||||
|
||||
</template> |
||||
|
||||
<template #poCode="{ row }"> |
||||
<el-text type="primary">{{ row.poCode }}</el-text> |
||||
</template> |
||||
<template #prodIdent="{ row }"> |
||||
<el-tag>{{ row.prodIdent }}</el-tag> |
||||
</template> |
||||
<template #menu="{ row }"> |
||||
<el-button type="primary" text plain style="border: 0; background-color: transparent !important" |
||||
@click="lookProcessRoute(row)">详情 |
||||
</el-button> |
||||
<el-button type="primary" text plain style="border: 0; background-color: transparent !important" |
||||
@click="inBatchesFn(row)">模具申报 |
||||
</el-button> |
||||
|
||||
</template> |
||||
</avue-crud> |
||||
</template> |
||||
<script> |
||||
|
||||
|
||||
import { mapGetters } from 'vuex'; |
||||
import { validatenull } from '@/utils/validate'; |
||||
import { getList } from '@/api/base/region'; |
||||
|
||||
export default { |
||||
components: { |
||||
|
||||
}, |
||||
data() { |
||||
return { |
||||
activeName: 'first', |
||||
inBatchesOpen: false, |
||||
platingSmallOpen: false, |
||||
planOrderArr: [], |
||||
isOpen: false, |
||||
rowItem: {}, |
||||
poId: null, |
||||
form: {}, |
||||
box: false, |
||||
props: { |
||||
label: 'title', |
||||
value: 'key', |
||||
}, |
||||
menuGrantList: [], |
||||
dataScopeGrantList: [], |
||||
apiScopeGrantList: [], |
||||
apiGrantList: [], |
||||
menuTreeObj: [], |
||||
dataScopeTreeObj: [], |
||||
apiScopeTreeObj: [], |
||||
selectionList: [], |
||||
query: {}, |
||||
loading: true, |
||||
page: { |
||||
pageSize: 10, |
||||
currentPage: 1, |
||||
total: 0, |
||||
}, |
||||
option: { |
||||
columnSort: true, |
||||
tip: false, |
||||
height: 'auto', |
||||
calcHeight: 32, |
||||
simplePage: false, |
||||
searchShow: true, |
||||
searchMenuSpan: 12, |
||||
searchIcon: true, |
||||
searchIndex: 3, |
||||
tree: false, |
||||
border: true, |
||||
index: false, |
||||
selection: true, |
||||
viewBtn: false, |
||||
addBtn: false, |
||||
delBtn: false, |
||||
editBtn: false, |
||||
editBtnText: '修改', |
||||
labelWidth: 120, |
||||
// searchLabelWidth: 120, |
||||
menuWidth: 140, |
||||
dialogWidth: 900, |
||||
dialogClickModal: false, |
||||
searchEnter: true, |
||||
excelBtn: false, |
||||
filterBtn: true, |
||||
searchShowBtn: false, |
||||
excelBtn: true, |
||||
showOverflowTooltip: true, |
||||
addBtnIcon: ' ', |
||||
viewBtnIcon: ' ', |
||||
delBtnIcon: ' ', |
||||
editBtnIcon: ' ', |
||||
menuAlign: 'left', |
||||
gridBtn: false, |
||||
searchLabelPosition:'left', |
||||
searchLabelPosition:'left', |
||||
searchGutter:24, |
||||
searchSpan:6, |
||||
menuAlign: 'left', |
||||
gridBtn:false, |
||||
searchMenuPosition:'right', |
||||
column: [ |
||||
{ |
||||
label: '需求单号', |
||||
prop: 'sureTypeTitle', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
}, |
||||
{ |
||||
label: '零件号', |
||||
prop: 'poCode', |
||||
search: true, |
||||
sortable: true, |
||||
span: 12, |
||||
hide: true, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
searchLabelWidth: 60, |
||||
}, |
||||
{ |
||||
label: '工装号', |
||||
prop: 'poCode', |
||||
search: true, |
||||
sortable: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
searchLabelWidth: 60, |
||||
}, |
||||
{ |
||||
label: '工装名称', |
||||
prop: 'partCode', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'left', |
||||
}, |
||||
{ |
||||
label: '订单需求量', |
||||
prop: 'productType', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
}, |
||||
{ |
||||
label: '库存量', |
||||
prop: 'partName', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
}, |
||||
{ |
||||
label: '占用量', |
||||
prop: 'prodIdent', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
}, |
||||
{ |
||||
label: '关联订单', |
||||
prop: 'useDept', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
}, |
||||
], |
||||
}, |
||||
|
||||
data: [], |
||||
}; |
||||
}, |
||||
|
||||
methods: { |
||||
inBatchesFn(row) { |
||||
this.rowItem = row; |
||||
this.inBatchesOpen = 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 = [ |
||||
{ |
||||
"alreadyBranchQty": 104.0, |
||||
"bsPlatingSmall": null, |
||||
"bsProcedureQua": null, |
||||
"closeMan": null, |
||||
"closeTime": null, |
||||
"curStatus": 4, |
||||
"curStatusText": "已派工", |
||||
"custodian": null, |
||||
"deliveryQty": 0.0, |
||||
"demandDate": "2025-03-13 00:00:00", |
||||
"dominantDept": "3400", |
||||
"dsPart": null, |
||||
"keyValue": 43933, |
||||
"memo": "最多三个批次0159BKFX", |
||||
"partCode": "21E6-575-1710_003-H14-C-N", |
||||
"partName": "09-J599_25烧结插座", |
||||
"planType": 2, |
||||
"planUser": "0300009", |
||||
"plate": "Ep.Ni3b", |
||||
"poArea": 0.0, |
||||
"poCode": "WO-2211134240", |
||||
"poId": 43933, |
||||
"poQty": 104, |
||||
"primaryCraft": "4(封接、表、涂色带)-库2", |
||||
"priority": 1, |
||||
"prodIdent": "JHT", |
||||
"prodLine": null, |
||||
"productType": "JY599", |
||||
"releaseDate": "2022-11-24 11:59:21", |
||||
"roamNo": "B5199029", |
||||
"routeNo": "LX08-05-002", |
||||
"sureType": null, |
||||
"sureTypeTitle": "未确认", |
||||
"syncTime": "2023-02-10 20:58:11", |
||||
"undeliveredQty": 104.0, |
||||
"useDept": "3502", |
||||
"wcName": null |
||||
}, |
||||
{ |
||||
"alreadyBranchQty": 104.0, |
||||
"bsPlatingSmall": null, |
||||
"bsProcedureQua": null, |
||||
"closeMan": null, |
||||
"closeTime": null, |
||||
"curStatus": 4, |
||||
"curStatusText": "已派工", |
||||
"custodian": null, |
||||
"deliveryQty": 0.0, |
||||
"demandDate": "2025-03-13 00:00:00", |
||||
"dominantDept": "3400", |
||||
"dsPart": null, |
||||
"keyValue": 43948, |
||||
"memo": "最多三个批次0159BKFX", |
||||
"partCode": "21E6-575-1710_003-H14-C-N", |
||||
"partName": "09-J599_25烧结插座", |
||||
"planType": 2, |
||||
"planUser": "0300009", |
||||
"plate": "Ep.Ni3b", |
||||
"poArea": 0.0, |
||||
"poCode": "WO-2211134240", |
||||
"poId": 43948, |
||||
"poQty": 104, |
||||
"primaryCraft": "4(封接、表、涂色带)-库2", |
||||
"priority": 1, |
||||
"prodIdent": "JHT", |
||||
"prodLine": null, |
||||
"productType": "JY599", |
||||
"releaseDate": "2022-11-24 11:59:21", |
||||
"roamNo": null, |
||||
"routeNo": "LX08-05-002", |
||||
"sureType": null, |
||||
"sureTypeTitle": "未确认", |
||||
"syncTime": "2023-02-10 20:58:11", |
||||
"undeliveredQty": 104.0, |
||||
"useDept": "3502", |
||||
"wcName": null |
||||
}, |
||||
{ |
||||
"alreadyBranchQty": 19.0, |
||||
"bsPlatingSmall": null, |
||||
"bsProcedureQua": null, |
||||
"closeMan": null, |
||||
"closeTime": null, |
||||
"curStatus": 4, |
||||
"curStatusText": "已派工", |
||||
"custodian": null, |
||||
"deliveryQty": 0.0, |
||||
"demandDate": "2025-02-23 00:00:00", |
||||
"dominantDept": "3400", |
||||
"dsPart": null, |
||||
"keyValue": 43932, |
||||
"memo": "最多三个批次0159BKFX", |
||||
"partCode": "21E6-575-1710_002-H14-N-N", |
||||
"partName": "09-J599_25烧结插座", |
||||
"planType": 2, |
||||
"planUser": "0300009", |
||||
"plate": "Ep.Ni3b", |
||||
"poArea": 0.0, |
||||
"poCode": "WO-2211134211", |
||||
"poId": 43932, |
||||
"poQty": 19, |
||||
"primaryCraft": "4(封接、表、涂色带)-库2", |
||||
"priority": 1, |
||||
"prodIdent": "JHT", |
||||
"prodLine": null, |
||||
"productType": "JY599", |
||||
"releaseDate": "2022-11-24 11:59:21", |
||||
"roamNo": null, |
||||
"routeNo": "LX08-05-002", |
||||
"sureType": null, |
||||
"sureTypeTitle": "未确认", |
||||
"syncTime": "2023-02-10 20:58:11", |
||||
"undeliveredQty": 19.0, |
||||
"useDept": "3502", |
||||
"wcName": null |
||||
} |
||||
] |
||||
this.page.total = this.data.length |
||||
// 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> |
||||
@ -1,3 +1,38 @@ |
||||
<template> |
||||
烧结模具计划 |
||||
</template> |
||||
<basic-container> |
||||
<el-tabs v-model="activeName" @tab-click="handleClick"> |
||||
<el-tab-pane label="模具需求" name="1"></el-tab-pane> |
||||
<el-tab-pane label="申报记录" name="2"></el-tab-pane> |
||||
</el-tabs> |
||||
<moldRequire v-if="activeName == '1'"></moldRequire> |
||||
<moldRecord v-if="activeName == '2'"></moldRecord> |
||||
</basic-container> |
||||
</template> |
||||
|
||||
<script> |
||||
import moldRequire from './components/moldRequire.vue' |
||||
import moldRecord from './components/moldRecord.vue' |
||||
export default { |
||||
components: { |
||||
moldRequire, |
||||
moldRecord |
||||
}, |
||||
data() { |
||||
return { |
||||
activeName: '1', |
||||
|
||||
|
||||
|
||||
}; |
||||
}, |
||||
|
||||
|
||||
methods: { |
||||
handleClick() { |
||||
console.log(9999999,this.activeName) |
||||
}, |
||||
}, |
||||
mounted() { |
||||
} |
||||
}; |
||||
</script> |
||||
|
||||
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue