parent
4c68f51e76
commit
2107fd8759
26 changed files with 2313 additions and 951 deletions
@ -0,0 +1,12 @@ |
||||
window.LOAD_Remind = 86400000 |
||||
window.TIMED_Trigger=86400000 |
||||
window.YINGDU_Trigger=3000 //硬度检测 轮巡时间
|
||||
window.PROCESS_FLOW_CARD_HEAT_METER="http://192.168.169.172:9000/jmreport/view/1154214123878776832"//工艺流程卡地址 热表公用
|
||||
|
||||
window.PROCESS_FLOW_CARD_HEAT_SINTER="http://192.168.169.172:9000/jmreport/view/1154632438942031872"//工艺流程卡地址 烧结
|
||||
|
||||
window.SCHEDULING_DASHBOARD = "http://192.168.0.117:2888/SCHEDULING_DASHBOARD" //排产看板地址
|
||||
window.SCHEDULING_EXCEPTION = "http://192.168.0.117:2888/SCHEDULING_EXCEPTION" //排产异常地址
|
||||
window.SCHEDULING_ANALYSIS = "http://192.168.0.117:2888/SCHEDULING_ANALYSIS" //排产统计分析地址
|
||||
|
||||
window.PROCESS_QUALITY_RECORD = "http://192.168.169.172:9000/jmreport/view/1153140195292762112" //电子档案-热表分厂-质量记录
|
||||
@ -0,0 +1,229 @@ |
||||
import request from '@/axios'; |
||||
|
||||
// 人员能力 增删改查
|
||||
export const getListPersonAbility = (current, size, params) => { |
||||
return request({ |
||||
url: '/blade-scheduling/personAbility/page', |
||||
method: 'get', |
||||
params: { |
||||
...params, |
||||
current, |
||||
size, |
||||
}, |
||||
}); |
||||
}; |
||||
export const removePersonAbility = ids => { |
||||
return request({ |
||||
url: '/blade-scheduling/personAbility/remove', |
||||
method: 'post', |
||||
params: { |
||||
ids, |
||||
}, |
||||
}); |
||||
}; |
||||
|
||||
export const addPersonAbility = row => { |
||||
return request({ |
||||
url: '/blade-scheduling/personAbility/submit', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
export const updatePersonAbility = row => { |
||||
return request({ |
||||
url: '/blade-scheduling/personAbility/submit', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
// 检验工时 增删改查
|
||||
export const getListInspectionItem = (current, size, params) => { |
||||
return request({ |
||||
url: '/blade-scheduling/inspectionItem/page', |
||||
method: 'get', |
||||
params: { |
||||
...params, |
||||
current, |
||||
size, |
||||
}, |
||||
}); |
||||
}; |
||||
export const removeInspectionItem = ids => { |
||||
return request({ |
||||
url: '/blade-scheduling/inspectionItem/remove', |
||||
method: 'post', |
||||
params: { |
||||
ids, |
||||
}, |
||||
}); |
||||
}; |
||||
|
||||
export const addInspectionItem = row => { |
||||
return request({ |
||||
url: '/blade-scheduling/inspectionItem/submit', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
export const updateInspectionItem = row => { |
||||
return request({ |
||||
url: '/blade-scheduling/inspectionItem/submit', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
// 质量等级 增删改查
|
||||
export const getListGualityGrade = (current, size, params) => { |
||||
return request({ |
||||
url: '/blade-scheduling/gualityGrade/page', |
||||
method: 'get', |
||||
params: { |
||||
...params, |
||||
current, |
||||
size, |
||||
}, |
||||
}); |
||||
}; |
||||
export const removeGualityGrade = ids => { |
||||
return request({ |
||||
url: '/blade-scheduling/gualityGrade/remove', |
||||
method: 'post', |
||||
params: { |
||||
ids, |
||||
}, |
||||
}); |
||||
}; |
||||
|
||||
export const addGualityGrade = row => { |
||||
return request({ |
||||
url: '/blade-scheduling/gualityGrade/submit', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
export const updateGualityGrade = row => { |
||||
return request({ |
||||
url: '/blade-scheduling/gualityGrade/submit', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
// 设备能力 增删改查
|
||||
export const getListEquipAbility = (current, size, params) => { |
||||
return request({ |
||||
url: '/blade-scheduling/equipAbility/page', |
||||
method: 'get', |
||||
params: { |
||||
...params, |
||||
current, |
||||
size, |
||||
}, |
||||
}); |
||||
}; |
||||
export const removeEquipAbility = ids => { |
||||
return request({ |
||||
url: '/blade-scheduling/equipAbility/remove', |
||||
method: 'post', |
||||
params: { |
||||
ids, |
||||
}, |
||||
}); |
||||
}; |
||||
|
||||
export const addEquipAbility = row => { |
||||
return request({ |
||||
url: '/blade-scheduling/equipAbility/submit', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
export const updateEquipAbility = row => { |
||||
return request({ |
||||
url: '/blade-scheduling/equipAbility/submit', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
// 主生产者 增删改查
|
||||
export const getListMainProducer = (current, size, params) => { |
||||
return request({ |
||||
url: '/blade-scheduling/mainProducer/page', |
||||
method: 'get', |
||||
params: { |
||||
...params, |
||||
current, |
||||
size, |
||||
}, |
||||
}); |
||||
}; |
||||
export const removeMainProducer = ids => { |
||||
return request({ |
||||
url: '/blade-scheduling/mainProducer/remove', |
||||
method: 'post', |
||||
params: { |
||||
ids, |
||||
}, |
||||
}); |
||||
}; |
||||
|
||||
export const addMainProducer = row => { |
||||
return request({ |
||||
url: '/blade-scheduling/mainProducer/submit', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
export const updateMainProducer = row => { |
||||
return request({ |
||||
url: '/blade-scheduling/equipAbility/submit', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
// 非同炉(槽)因素 增删改查
|
||||
export const getListDifferentFurnaceTank = (current, size, params) => { |
||||
return request({ |
||||
url: '/blade-scheduling/differentFurnaceTank/page', |
||||
method: 'get', |
||||
params: { |
||||
...params, |
||||
current, |
||||
size, |
||||
}, |
||||
}); |
||||
}; |
||||
export const removeDifferentFurnaceTank = ids => { |
||||
return request({ |
||||
url: '/blade-scheduling/differentFurnaceTank/remove', |
||||
method: 'post', |
||||
params: { |
||||
ids, |
||||
}, |
||||
}); |
||||
}; |
||||
|
||||
export const addDifferentFurnaceTank = row => { |
||||
return request({ |
||||
url: '/blade-scheduling/differentFurnaceTank/submit', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
export const updateDifferentFurnaceTank = row => { |
||||
return request({ |
||||
url: '/blade-scheduling/differentFurnaceTank/submit', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
@ -1,574 +1,215 @@ |
||||
|
||||
<template> |
||||
<basic-container> |
||||
<div class="search_box"> |
||||
|
||||
</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-button type="danger" @click="batchDel()">删除</el-button> |
||||
</template> |
||||
<template #menu-right> |
||||
<el-button type="primary" @click="batchDel()">导入</el-button> |
||||
</template> |
||||
<template #menu="{ row }"> |
||||
|
||||
</template> |
||||
|
||||
<template #heatTreat="scope"> |
||||
<el-tag v-if="scope.row.afterPlating" type="success">是</el-tag> |
||||
<el-tag v-else type="warning">否</el-tag> |
||||
</template> |
||||
<basic-container> |
||||
<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> |
||||
|
||||
</avue-crud> |
||||
|
||||
|
||||
</basic-container> |
||||
<template #heatTreat="scope"> </template> |
||||
</avue-crud> |
||||
</basic-container> |
||||
</template> |
||||
|
||||
<script> |
||||
|
||||
import { |
||||
add, |
||||
getRole, |
||||
getRoleAlias, |
||||
getRoleTreeById, |
||||
grant, |
||||
grantTree, |
||||
remove, |
||||
update, |
||||
} from '@/api/system/role'; |
||||
import { mapGetters } from 'vuex'; |
||||
import { validatenull } from '@/utils/validate'; |
||||
|
||||
|
||||
getListPersonAbility, |
||||
removePersonAbility, |
||||
addPersonAbility, |
||||
updatePersonAbility, |
||||
} from '@/api/productionSchedulingPlan/scheduling'; |
||||
export default { |
||||
components: { |
||||
}, |
||||
data() { |
||||
return { |
||||
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: 6, |
||||
searchIcon: true, |
||||
searchIndex: 3, |
||||
tree: false, |
||||
border: true, |
||||
index: true, |
||||
selection: false, |
||||
addBtn: false, |
||||
editBtn: false, |
||||
viewBtn: false, |
||||
delBtn: false, |
||||
editBtnText: '修改', |
||||
labelWidth: 120, |
||||
menuWidth: 80, |
||||
dialogWidth: 900, |
||||
dialogClickModal: false, |
||||
searchEnter: true, |
||||
excelBtn: false, |
||||
filterBtn: true, |
||||
searchShowBtn: false, |
||||
excelBtn: true, |
||||
showOverflowTooltip: true, |
||||
addBtnIcon: ' ', |
||||
viewBtnIcon: ' ', |
||||
delBtnIcon: ' ', |
||||
editBtnIcon: ' ', |
||||
gridBtn: false, |
||||
searchLabelPosition: 'left', |
||||
searchGutter: 24, |
||||
searchSpan: 6, |
||||
menuAlign: 'left', |
||||
gridBtn: false, |
||||
searchMenuPosition: 'right', |
||||
align: 'center', |
||||
column: [ |
||||
{ |
||||
label: '配套人', |
||||
prop: 'partCode', |
||||
bind: 'dsPart.partCode', |
||||
search: true, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
|
||||
}, |
||||
{ |
||||
label: '配套时间', |
||||
prop: 'partName', |
||||
bind: 'dsPart.partName', |
||||
search: true, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '计划单号', |
||||
prop: 'cycle', |
||||
search: true, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '生产单号', |
||||
prop: 'material', |
||||
bind: 'dsPart.material', |
||||
search: false, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
display: false, |
||||
}, |
||||
{ |
||||
label: '零件号', |
||||
prop: 'plate', |
||||
bind: 'dsPart.plate', |
||||
search: false, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
display: false, |
||||
}, |
||||
{ |
||||
label: '批次号', |
||||
prop: 'craftWay', |
||||
bind: 'dsPart.craftWay', |
||||
search: false, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
display: false, |
||||
}, |
||||
{ |
||||
label: '流程卡号', |
||||
prop: 'chlidPart', |
||||
search: false, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '产品型号', |
||||
prop: 'remindContent', |
||||
search: false, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '名称', |
||||
prop: 'parameter', |
||||
search: false, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
display: false, |
||||
}, |
||||
{ |
||||
label: '镀种', |
||||
prop: 'metalsTest', |
||||
search: false, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
display: false, |
||||
}, |
||||
{ |
||||
label: '生产标识', |
||||
prop: 'silverTest', |
||||
search: false, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
display: false, |
||||
}, |
||||
{ |
||||
label: '使用部门', |
||||
prop: 'heatTreat', |
||||
search: false, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
type: 'switch', |
||||
|
||||
}, |
||||
{ |
||||
label: '数量', |
||||
prop: 'afterPlating', |
||||
search: false, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
|
||||
}, |
||||
{ |
||||
label: '面积(d㎡)', |
||||
prop: 'afterPlating', |
||||
search: false, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
|
||||
}, |
||||
{ |
||||
label: '需求交期', |
||||
prop: 'afterPlating', |
||||
search: false, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
|
||||
}, |
||||
{ |
||||
label: '计划员', |
||||
prop: 'afterPlating', |
||||
search: false, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
|
||||
}, |
||||
{ |
||||
label: '计划下达时间', |
||||
prop: 'afterPlating', |
||||
search: false, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
|
||||
}, |
||||
{ |
||||
label: '流转编号', |
||||
prop: 'afterPlating', |
||||
search: false, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
|
||||
}, |
||||
{ |
||||
label: '备注', |
||||
prop: 'afterPlating', |
||||
search: false, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
|
||||
}, |
||||
{ |
||||
label: '状态', |
||||
prop: 'afterPlating', |
||||
search: false, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
|
||||
}, |
||||
], |
||||
}, |
||||
components: {}, |
||||
data() { |
||||
return { |
||||
form: {}, |
||||
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: 6, |
||||
searchIcon: true, |
||||
searchIndex: 3, |
||||
tree: false, |
||||
border: true, |
||||
index: true, |
||||
selection: false, |
||||
addBtn: false, |
||||
editBtn: false, |
||||
viewBtn: false, |
||||
delBtn: false, |
||||
editBtnText: '修改', |
||||
labelWidth: 120, |
||||
menuWidth: 80, |
||||
dialogWidth: 900, |
||||
dialogClickModal: false, |
||||
searchEnter: true, |
||||
excelBtn: false, |
||||
filterBtn: true, |
||||
searchShowBtn: false, |
||||
excelBtn: true, |
||||
showOverflowTooltip: true, |
||||
addBtnIcon: ' ', |
||||
viewBtnIcon: ' ', |
||||
delBtnIcon: ' ', |
||||
editBtnIcon: ' ', |
||||
gridBtn: false, |
||||
searchLabelPosition: 'left', |
||||
searchGutter: 24, |
||||
searchSpan: 6, |
||||
menuAlign: 'left', |
||||
gridBtn: false, |
||||
searchMenuPosition: 'right', |
||||
align: 'center', |
||||
column: [ |
||||
{ |
||||
label: '配套人', |
||||
prop: 'partCode', |
||||
bind: 'dsPart.partCode', |
||||
search: true, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '配套时间', |
||||
prop: 'partName', |
||||
bind: 'dsPart.partName', |
||||
search: true, |
||||
sortable: true, |
||||
width: 150, |
||||
span: 12, |
||||
}, |
||||
|
||||
], |
||||
}, |
||||
|
||||
data: [], |
||||
isRushOpen: false,//加急弹框 |
||||
isBatchOpen: 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: '操作成功!', |
||||
}); |
||||
}); |
||||
}, |
||||
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: '操作成功!', |
||||
}); |
||||
}, |
||||
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(); |
||||
}, |
||||
|
||||
onLoad(page, params = {}) { |
||||
this.loading = true; |
||||
this.data = [ |
||||
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: '操作成功!', |
||||
}); |
||||
}, |
||||
|
||||
] |
||||
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(); |
||||
// }); |
||||
}, |
||||
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() { |
||||
} |
||||
}, |
||||
mounted() {}, |
||||
}; |
||||
</script> |
||||
|
||||
@ -0,0 +1,305 @@ |
||||
<template> |
||||
<basic-container> |
||||
<avue-crud |
||||
:option="option" |
||||
:table-loading="loading" |
||||
:data="data" |
||||
v-model="form" |
||||
v-model:page="page" |
||||
ref="crud" |
||||
@row-del="rowDel" |
||||
@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> |
||||
<template #menu-right> </template> |
||||
<template #menu="{ row }"> </template> |
||||
|
||||
<template #heatTreat="scope"> </template> |
||||
</avue-crud> |
||||
</basic-container> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
getListEquipAbility, |
||||
removeEquipAbility, |
||||
addEquipAbility, |
||||
updateEquipAbility, |
||||
} from '@/api/productionSchedulingPlan/basic'; |
||||
export default { |
||||
components: {}, |
||||
data() { |
||||
return { |
||||
form: {}, |
||||
selectionList: [], |
||||
query: {}, |
||||
loading: false, |
||||
page: { |
||||
pageSize: 10, |
||||
currentPage: 1, |
||||
total: 0, |
||||
}, |
||||
option: { |
||||
columnSort: true, |
||||
tip: false, |
||||
height: 'auto', |
||||
calcHeight: 32, |
||||
simplePage: false, |
||||
searchShow: true, |
||||
searchMenuSpan: 6, |
||||
searchIcon: true, |
||||
searchIndex: 3, |
||||
tree: false, |
||||
border: true, |
||||
index: true, |
||||
selection: false, |
||||
addBtn: true, |
||||
editBtn: true, |
||||
viewBtn: false, |
||||
delBtn: true, |
||||
editBtnText: '修改', |
||||
labelWidth: 120, |
||||
menuWidth: 120, |
||||
dialogWidth: 900, |
||||
dialogClickModal: false, |
||||
searchEnter: true, |
||||
excelBtn: false, |
||||
filterBtn: true, |
||||
searchShowBtn: false, |
||||
excelBtn: true, |
||||
showOverflowTooltip: true, |
||||
addBtnIcon: ' ', |
||||
viewBtnIcon: ' ', |
||||
delBtnIcon: ' ', |
||||
editBtnIcon: ' ', |
||||
gridBtn: false, |
||||
searchLabelPosition: 'left', |
||||
searchGutter: 24, |
||||
searchSpan: 6, |
||||
menuAlign: 'left', |
||||
gridBtn: false, |
||||
searchMenuPosition: 'right', |
||||
align: 'center', |
||||
column: [ |
||||
{ |
||||
label: '作业中心', |
||||
prop: 'workCenterId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
width: 120, |
||||
}, |
||||
{ |
||||
label: '工序', |
||||
prop: '', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '设备编码', |
||||
prop: 'equipCode', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
width: 120, |
||||
}, |
||||
{ |
||||
label: '设备名称', |
||||
prop: 'equipName', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
width: 120, |
||||
}, |
||||
{ |
||||
label: '设备分类', |
||||
prop: 'equipType', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
width: 120, |
||||
type: 'select', |
||||
dicData: [ |
||||
{ |
||||
label: '设备产线', |
||||
value: 0, |
||||
}, |
||||
{ |
||||
label: '普通设备', |
||||
value: 1, |
||||
}, |
||||
], |
||||
}, |
||||
{ |
||||
label: '工艺能力', |
||||
prop: 'craftId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
width: 120, |
||||
|
||||
}, |
||||
{ |
||||
label: '额定加工能力(烧结-个/热表-面积)', |
||||
prop: 'standardProcessAbility', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
width: 270, |
||||
}, |
||||
{ |
||||
label: '额定工时(分钟)', |
||||
prop: 'standardTime', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
width: 180, |
||||
}, |
||||
{ |
||||
label: '准备工时(分钟)', |
||||
prop: 'prepareTime', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
width: 180, |
||||
}, |
||||
{ |
||||
label: '轮次间隔(分钟)', |
||||
prop: 'interval', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
width: 180, |
||||
}, |
||||
{ |
||||
label: '轮次间隔(分钟)', |
||||
prop: '', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
width: 180, |
||||
}, |
||||
{ |
||||
label: '指定使用', |
||||
prop: '', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
width: 120, |
||||
}, |
||||
{ |
||||
label: '备注', |
||||
prop: '', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
width: 180, |
||||
}, |
||||
], |
||||
}, |
||||
|
||||
data: [], |
||||
}; |
||||
}, |
||||
methods: { |
||||
rowSave(row, done, loading) { |
||||
addEquipAbility(row).then( |
||||
() => { |
||||
this.onLoad(this.page); |
||||
this.$message({ |
||||
type: 'success', |
||||
message: '操作成功!', |
||||
}); |
||||
done(); |
||||
}, |
||||
error => { |
||||
window.console.log(error); |
||||
loading(); |
||||
} |
||||
); |
||||
}, |
||||
rowUpdate(row, index, done, loading) { |
||||
updateEquipAbility(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 removeEquipAbility(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); |
||||
}, |
||||
onLoad(page, params = {}) { |
||||
this.loading = true; |
||||
getListEquipAbility(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,241 @@ |
||||
<template> |
||||
<basic-container> |
||||
<avue-crud |
||||
:option="option" |
||||
:table-loading="loading" |
||||
:data="data" |
||||
v-model="form" |
||||
v-model:page="page" |
||||
ref="crud" |
||||
@row-del="rowDel" |
||||
@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> |
||||
<template #menu-right> </template> |
||||
<template #menu="{ row }"> </template> |
||||
|
||||
<template #heatTreat="scope"> </template> |
||||
</avue-crud> |
||||
</basic-container> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
getListInspectionItem, |
||||
removeInspectionItem, |
||||
addInspectionItem, |
||||
updateInspectionItem, |
||||
} from '@/api/productionSchedulingPlan/basic'; |
||||
export default { |
||||
components: {}, |
||||
data() { |
||||
return { |
||||
form: {}, |
||||
selectionList: [], |
||||
query: {}, |
||||
loading: false, |
||||
page: { |
||||
pageSize: 10, |
||||
currentPage: 1, |
||||
total: 0, |
||||
}, |
||||
option: { |
||||
columnSort: true, |
||||
tip: false, |
||||
height: 'auto', |
||||
calcHeight: 32, |
||||
simplePage: false, |
||||
searchShow: true, |
||||
searchMenuSpan: 6, |
||||
searchIcon: true, |
||||
searchIndex: 3, |
||||
tree: false, |
||||
border: true, |
||||
index: true, |
||||
selection: false, |
||||
addBtn: true, |
||||
editBtn: true, |
||||
viewBtn: false, |
||||
delBtn: true, |
||||
editBtnText: '修改', |
||||
labelWidth: 120, |
||||
menuWidth: 120, |
||||
dialogWidth: 900, |
||||
dialogClickModal: false, |
||||
searchEnter: true, |
||||
excelBtn: false, |
||||
filterBtn: true, |
||||
searchShowBtn: false, |
||||
excelBtn: true, |
||||
showOverflowTooltip: true, |
||||
addBtnIcon: ' ', |
||||
viewBtnIcon: ' ', |
||||
delBtnIcon: ' ', |
||||
editBtnIcon: ' ', |
||||
gridBtn: false, |
||||
searchLabelPosition: 'left', |
||||
searchGutter: 24, |
||||
searchSpan: 6, |
||||
menuAlign: 'left', |
||||
gridBtn: false, |
||||
searchMenuPosition: 'right', |
||||
align: 'center', |
||||
column: [ |
||||
{ |
||||
label: '检验项目', |
||||
prop: '', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '抽样数量(常规)', |
||||
prop: '', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '额定工时(分钟)', |
||||
prop: '', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '额定工时(分钟/每人每个)', |
||||
prop: '', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
labelWidth:220, |
||||
}, |
||||
{ |
||||
label: '准备工时(分钟)', |
||||
prop: '', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
labelWidth:180, |
||||
}, |
||||
{ |
||||
label: '单位', |
||||
prop: 'unit', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '备注', |
||||
prop: 'remarks', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
], |
||||
}, |
||||
|
||||
data: [], |
||||
}; |
||||
}, |
||||
methods: { |
||||
rowSave(row, done, loading) { |
||||
addInspectionItem(row).then( |
||||
() => { |
||||
this.onLoad(this.page); |
||||
this.$message({ |
||||
type: 'success', |
||||
message: '操作成功!', |
||||
}); |
||||
done(); |
||||
}, |
||||
error => { |
||||
window.console.log(error); |
||||
loading(); |
||||
} |
||||
); |
||||
}, |
||||
rowUpdate(row, index, done, loading) { |
||||
updateInspectionItem(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 removeInspectionItem(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); |
||||
}, |
||||
onLoad(page, params = {}) { |
||||
this.loading = true; |
||||
getListInspectionItem(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,273 @@ |
||||
<template> |
||||
<basic-container> |
||||
<avue-crud |
||||
:option="option" |
||||
:table-loading="loading" |
||||
:data="data" |
||||
v-model="form" |
||||
v-model:page="page" |
||||
ref="crud" |
||||
@row-del="rowDel" |
||||
@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> |
||||
<template #menu-right> </template> |
||||
<template #menu="{ row }"> </template> |
||||
|
||||
<template #heatTreat="scope"> </template> |
||||
</avue-crud> |
||||
</basic-container> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
getListDifferentFurnaceTank, |
||||
removeDifferentFurnaceTank, |
||||
addDifferentFurnaceTank, |
||||
updateDifferentFurnaceTank, |
||||
} from '@/api/productionSchedulingPlan/basic'; |
||||
export default { |
||||
components: {}, |
||||
data() { |
||||
return { |
||||
form: {}, |
||||
selectionList: [], |
||||
query: {}, |
||||
loading: false, |
||||
page: { |
||||
pageSize: 10, |
||||
currentPage: 1, |
||||
total: 0, |
||||
}, |
||||
option: { |
||||
columnSort: true, |
||||
tip: false, |
||||
height: 'auto', |
||||
calcHeight: 32, |
||||
simplePage: false, |
||||
searchShow: true, |
||||
searchMenuSpan: 6, |
||||
searchIcon: true, |
||||
searchIndex: 3, |
||||
tree: false, |
||||
border: true, |
||||
index: true, |
||||
selection: false, |
||||
addBtn: true, |
||||
editBtn: true, |
||||
viewBtn: false, |
||||
delBtn: true, |
||||
editBtnText: '修改', |
||||
labelWidth: 120, |
||||
menuWidth: 120, |
||||
dialogWidth: 900, |
||||
dialogClickModal: false, |
||||
searchEnter: true, |
||||
excelBtn: false, |
||||
filterBtn: true, |
||||
searchShowBtn: false, |
||||
excelBtn: true, |
||||
showOverflowTooltip: true, |
||||
addBtnIcon: ' ', |
||||
viewBtnIcon: ' ', |
||||
delBtnIcon: ' ', |
||||
editBtnIcon: ' ', |
||||
gridBtn: false, |
||||
searchLabelPosition: 'left', |
||||
searchGutter: 24, |
||||
searchSpan: 6, |
||||
menuAlign: 'left', |
||||
gridBtn: false, |
||||
searchMenuPosition: 'right', |
||||
align: 'center', |
||||
column: [ |
||||
{ |
||||
label: '工艺能力', |
||||
prop: 'workCenterId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '影响因素', |
||||
prop: 'processId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
children: [ |
||||
{ |
||||
label: '键位', |
||||
prop: 'workCenterId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '生产厂家', |
||||
prop: 'workCenterId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '检验编号', |
||||
prop: 'workCenterId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '材料', |
||||
prop: 'workCenterId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '厚度(镀层)', |
||||
prop: 'workCenterId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
width:140, |
||||
}, |
||||
{ |
||||
label: '钝化', |
||||
prop: 'workCenterId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '硬度', |
||||
prop: 'workCenterId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '生产标识', |
||||
prop: 'workCenterId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '结构/单件面积', |
||||
prop: 'workCenterId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
width:150 |
||||
}, |
||||
], |
||||
}, |
||||
], |
||||
}, |
||||
|
||||
data: [], |
||||
}; |
||||
}, |
||||
methods: { |
||||
rowSave(row, done, loading) { |
||||
addDifferentFurnaceTank(row).then( |
||||
() => { |
||||
this.onLoad(this.page); |
||||
this.$message({ |
||||
type: 'success', |
||||
message: '操作成功!', |
||||
}); |
||||
done(); |
||||
}, |
||||
error => { |
||||
window.console.log(error); |
||||
loading(); |
||||
} |
||||
); |
||||
}, |
||||
rowUpdate(row, index, done, loading) { |
||||
updateDifferentFurnaceTank(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 removeDifferentFurnaceTank(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); |
||||
}, |
||||
onLoad(page, params = {}) { |
||||
this.loading = true; |
||||
getListDifferentFurnaceTank( |
||||
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,227 @@ |
||||
<template> |
||||
<basic-container> |
||||
<avue-crud |
||||
:option="option" |
||||
:table-loading="loading" |
||||
:data="data" |
||||
v-model="form" |
||||
v-model:page="page" |
||||
ref="crud" |
||||
@row-del="rowDel" |
||||
@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> |
||||
<template #menu-right> </template> |
||||
<template #menu="{ row }"> </template> |
||||
|
||||
<template #heatTreat="scope"> </template> |
||||
</avue-crud> |
||||
</basic-container> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
getListPersonAbility, |
||||
removePersonAbility, |
||||
addPersonAbility, |
||||
updatePersonAbility, |
||||
} from '@/api/productionSchedulingPlan/basic'; |
||||
export default { |
||||
components: {}, |
||||
data() { |
||||
return { |
||||
form: {}, |
||||
selectionList: [], |
||||
query: {}, |
||||
loading: false, |
||||
page: { |
||||
pageSize: 10, |
||||
currentPage: 1, |
||||
total: 0, |
||||
}, |
||||
option: { |
||||
columnSort: true, |
||||
tip: false, |
||||
height: 'auto', |
||||
calcHeight: 32, |
||||
simplePage: false, |
||||
searchShow: true, |
||||
searchMenuSpan: 6, |
||||
searchIcon: true, |
||||
searchIndex: 3, |
||||
tree: false, |
||||
border: true, |
||||
index: true, |
||||
selection: false, |
||||
addBtn: true, |
||||
editBtn: true, |
||||
viewBtn: false, |
||||
delBtn: true, |
||||
editBtnText: '修改', |
||||
labelWidth: 120, |
||||
menuWidth: 120, |
||||
dialogWidth: 900, |
||||
dialogClickModal: false, |
||||
searchEnter: true, |
||||
excelBtn: false, |
||||
filterBtn: true, |
||||
searchShowBtn: false, |
||||
excelBtn: true, |
||||
showOverflowTooltip: true, |
||||
addBtnIcon: ' ', |
||||
viewBtnIcon: ' ', |
||||
delBtnIcon: ' ', |
||||
editBtnIcon: ' ', |
||||
gridBtn: false, |
||||
searchLabelPosition: 'left', |
||||
searchGutter: 24, |
||||
searchSpan: 6, |
||||
menuAlign: 'left', |
||||
gridBtn: false, |
||||
searchMenuPosition: 'right', |
||||
align: 'center', |
||||
column: [ |
||||
{ |
||||
label: '作业中心', |
||||
prop: 'workCenterId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '工序', |
||||
prop: 'processId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '工艺能力', |
||||
prop: 'craftId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '额定工时(分钟/每人每个)', |
||||
prop: 'standardTime', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
labelWidth:220, |
||||
}, |
||||
{ |
||||
label: '准备工时(分钟)', |
||||
prop: 'prepareTime', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
labelWidth:180, |
||||
}, |
||||
], |
||||
}, |
||||
|
||||
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); |
||||
}, |
||||
onLoad(page, params = {}) { |
||||
this.loading = true; |
||||
getListPersonAbility(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,232 @@ |
||||
<template> |
||||
<basic-container> |
||||
<avue-crud |
||||
:option="option" |
||||
:table-loading="loading" |
||||
:data="data" |
||||
v-model="form" |
||||
v-model:page="page" |
||||
ref="crud" |
||||
@row-del="rowDel" |
||||
@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> |
||||
<template #menu-right> </template> |
||||
<template #menu="{ row }"> </template> |
||||
|
||||
<template #heatTreat="scope"> </template> |
||||
</avue-crud> |
||||
</basic-container> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
getListMainProducer, |
||||
removeMainProducer, |
||||
addMainProducer, |
||||
updateMainProducer, |
||||
} from '@/api/productionSchedulingPlan/basic'; |
||||
export default { |
||||
components: {}, |
||||
data() { |
||||
return { |
||||
form: {}, |
||||
selectionList: [], |
||||
query: {}, |
||||
loading: false, |
||||
page: { |
||||
pageSize: 10, |
||||
currentPage: 1, |
||||
total: 0, |
||||
}, |
||||
option: { |
||||
columnSort: true, |
||||
tip: false, |
||||
height: 'auto', |
||||
calcHeight: 32, |
||||
simplePage: false, |
||||
searchShow: true, |
||||
searchMenuSpan: 6, |
||||
searchIcon: true, |
||||
searchIndex: 3, |
||||
tree: false, |
||||
border: true, |
||||
index: true, |
||||
selection: false, |
||||
addBtn: true, |
||||
editBtn: true, |
||||
viewBtn: false, |
||||
delBtn: true, |
||||
editBtnText: '修改', |
||||
labelWidth: 120, |
||||
menuWidth: 120, |
||||
dialogWidth: 900, |
||||
dialogClickModal: false, |
||||
searchEnter: true, |
||||
excelBtn: false, |
||||
filterBtn: true, |
||||
searchShowBtn: false, |
||||
excelBtn: true, |
||||
showOverflowTooltip: true, |
||||
addBtnIcon: ' ', |
||||
viewBtnIcon: ' ', |
||||
delBtnIcon: ' ', |
||||
editBtnIcon: ' ', |
||||
gridBtn: false, |
||||
searchLabelPosition: 'left', |
||||
searchGutter: 24, |
||||
searchSpan: 6, |
||||
menuAlign: 'left', |
||||
gridBtn: false, |
||||
searchMenuPosition: 'right', |
||||
align: 'center', |
||||
column: [ |
||||
|
||||
{ |
||||
label: '工序', |
||||
prop: 'processId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '工艺能力', |
||||
prop: 'processId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '主生产者(人/设备)', |
||||
prop: 'mainProducer', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
labelWidth:220, |
||||
type:'select', |
||||
dicData:[ |
||||
{ |
||||
label:'人', |
||||
value:'人' |
||||
}, |
||||
{ |
||||
label:'设备', |
||||
value:'设备' |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
label: '备注', |
||||
prop: '', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
labelWidth:180, |
||||
}, |
||||
], |
||||
}, |
||||
|
||||
data: [], |
||||
}; |
||||
}, |
||||
methods: { |
||||
rowSave(row, done, loading) { |
||||
addMainProducer(row).then( |
||||
() => { |
||||
this.onLoad(this.page); |
||||
this.$message({ |
||||
type: 'success', |
||||
message: '操作成功!', |
||||
}); |
||||
done(); |
||||
}, |
||||
error => { |
||||
window.console.log(error); |
||||
loading(); |
||||
} |
||||
); |
||||
}, |
||||
rowUpdate(row, index, done, loading) { |
||||
updateMainProducer(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 removeMainProducer(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); |
||||
}, |
||||
onLoad(page, params = {}) { |
||||
this.loading = true; |
||||
getListMainProducer(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,219 @@ |
||||
<template> |
||||
<basic-container> |
||||
<avue-crud |
||||
:option="option" |
||||
:table-loading="loading" |
||||
:data="data" |
||||
v-model="form" |
||||
v-model:page="page" |
||||
ref="crud" |
||||
@row-del="rowDel" |
||||
@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> |
||||
<template #menu-right> </template> |
||||
<template #menu="{ row }"> </template> |
||||
|
||||
<template #heatTreat="scope"> </template> |
||||
</avue-crud> |
||||
</basic-container> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
getListGualityGrade, |
||||
removeGualityGrade, |
||||
addGualityGrade, |
||||
updateGualityGrade, |
||||
} from '@/api/productionSchedulingPlan/basic'; |
||||
export default { |
||||
components: {}, |
||||
data() { |
||||
return { |
||||
form: {}, |
||||
selectionList: [], |
||||
query: {}, |
||||
loading: false, |
||||
page: { |
||||
pageSize: 10, |
||||
currentPage: 1, |
||||
total: 0, |
||||
}, |
||||
option: { |
||||
columnSort: true, |
||||
tip: false, |
||||
height: 'auto', |
||||
calcHeight: 32, |
||||
simplePage: false, |
||||
searchShow: true, |
||||
searchMenuSpan: 6, |
||||
searchIcon: true, |
||||
searchIndex: 3, |
||||
tree: false, |
||||
border: true, |
||||
index: true, |
||||
selection: false, |
||||
addBtn: true, |
||||
editBtn: true, |
||||
viewBtn: false, |
||||
delBtn: true, |
||||
editBtnText: '修改', |
||||
labelWidth: 120, |
||||
menuWidth: 120, |
||||
dialogWidth: 900, |
||||
dialogClickModal: false, |
||||
searchEnter: true, |
||||
excelBtn: false, |
||||
filterBtn: true, |
||||
searchShowBtn: false, |
||||
excelBtn: true, |
||||
showOverflowTooltip: true, |
||||
addBtnIcon: ' ', |
||||
viewBtnIcon: ' ', |
||||
delBtnIcon: ' ', |
||||
editBtnIcon: ' ', |
||||
gridBtn: false, |
||||
searchLabelPosition: 'left', |
||||
searchGutter: 24, |
||||
searchSpan: 6, |
||||
menuAlign: 'left', |
||||
gridBtn: false, |
||||
searchMenuPosition: 'right', |
||||
align: 'center', |
||||
column: [ |
||||
{ |
||||
label: '质量等级', |
||||
prop: 'workCenterId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '军品', |
||||
prop: 'processId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '商飞', |
||||
prop: 'craftId', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
{ |
||||
label: '宇航', |
||||
prop: 'standardTime', |
||||
search: false, |
||||
sortable: true, |
||||
span: 12, |
||||
}, |
||||
|
||||
], |
||||
}, |
||||
|
||||
data: [], |
||||
}; |
||||
}, |
||||
methods: { |
||||
rowSave(row, done, loading) { |
||||
addGualityGrade(row).then( |
||||
() => { |
||||
this.onLoad(this.page); |
||||
this.$message({ |
||||
type: 'success', |
||||
message: '操作成功!', |
||||
}); |
||||
done(); |
||||
}, |
||||
error => { |
||||
window.console.log(error); |
||||
loading(); |
||||
} |
||||
); |
||||
}, |
||||
rowUpdate(row, index, done, loading) { |
||||
updateGualityGrade(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 removeGualityGrade(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); |
||||
}, |
||||
onLoad(page, params = {}) { |
||||
this.loading = true; |
||||
getListGualityGrade(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> |
||||
Loading…
Reference in new issue