|
|
|
|
@ -1,23 +1,10 @@ |
|
|
|
|
<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" |
|
|
|
|
@sort-change="sortChange" |
|
|
|
|
> |
|
|
|
|
<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" |
|
|
|
|
@sort-change="sortChange"> |
|
|
|
|
<template #menu-left> |
|
|
|
|
<el-button type="primary" @click="batchClose()" v-if="permission.sj_order_batch_close">批量关闭</el-button> |
|
|
|
|
<el-button type="primary" @click.stop="priorityFn(row)" v-if="permission.sj_order_priority">优先级调整</el-button> |
|
|
|
|
@ -33,8 +20,7 @@ |
|
|
|
|
<template #curStatusText="{ row }"> |
|
|
|
|
<el-tag v-if="row.curStatusText == '已派工'">{{ row.curStatusText }}</el-tag> |
|
|
|
|
<el-tag class="ml-2" type="success" v-if="row.curStatusText == '已完工'"> |
|
|
|
|
{{ row.curStatusText }}</el-tag |
|
|
|
|
> |
|
|
|
|
{{ row.curStatusText }}</el-tag> |
|
|
|
|
<el-tag class="ml-2" type="info" v-if="row.curStatusText == '已关闭'">{{ |
|
|
|
|
row.curStatusText |
|
|
|
|
}}</el-tag> |
|
|
|
|
@ -46,36 +32,23 @@ |
|
|
|
|
}}</el-tag> |
|
|
|
|
</template> |
|
|
|
|
<template #menu="{ row }"> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
text |
|
|
|
|
plain |
|
|
|
|
style="border: 0; background-color: transparent !important" |
|
|
|
|
@click="lookProcessRoute(row)" |
|
|
|
|
v-if="permission.sj_order_process_route" |
|
|
|
|
>工艺路线 |
|
|
|
|
<el-button type="primary" text plain style="border: 0; background-color: transparent !important" |
|
|
|
|
@click="lookProcessRoute(row)" v-if="permission.sj_order_process_route">工艺路线 |
|
|
|
|
</el-button> |
|
|
|
|
<!-- <el-button type="primary" text plain style="border: 0; background-color: transparent !important" |
|
|
|
|
@click.stop="batchClose(row)">优先级调整 |
|
|
|
|
</el-button> --> |
|
|
|
|
|
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
text |
|
|
|
|
plain |
|
|
|
|
style="border: 0; background-color: transparent !important" |
|
|
|
|
@click.stop="updateFn(row)" |
|
|
|
|
v-if="permission.sj_order_edit" |
|
|
|
|
>修改 |
|
|
|
|
<el-button type="primary" text plain style="border: 0; background-color: transparent !important" |
|
|
|
|
@click.stop="updateFn(row)" v-if="permission.sj_order_edit">修改 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
text |
|
|
|
|
plain |
|
|
|
|
style="border: 0; background-color: transparent !important" |
|
|
|
|
<!-- --> |
|
|
|
|
<el-button type="primary" text plain style="border: 0; background-color: transparent !important" |
|
|
|
|
@click.stop="sendOrderFn(row)" v-if="permission.sj_order_send_order && row.firseqNameStatus == 17001">子件下达 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button type="primary" text plain style="border: 0; background-color: transparent !important" |
|
|
|
|
@click.stop="openGlassPlateDialog(row)" |
|
|
|
|
v-if="(row.orderType === 0 && row.glassPlateIssuedStatus === 0)&&permission.sj_order_issue_glass_cake" |
|
|
|
|
>下发玻璃饼 |
|
|
|
|
v-if="(row.orderType === 0 && row.glassPlateIssuedStatus === 0) && permission.sj_order_issue_glass_cake">下发玻璃饼 |
|
|
|
|
</el-button> |
|
|
|
|
</template> |
|
|
|
|
<template #demandDate="{ row }"> |
|
|
|
|
@ -91,29 +64,13 @@ |
|
|
|
|
|
|
|
|
|
<batchDialog :showDialog="isBatchOpen" v-if="isBatchOpen" @closeDialog="closeDialog"></batchDialog> --> |
|
|
|
|
<!-- 修改弹窗 --> |
|
|
|
|
<orderUpdateDailog |
|
|
|
|
:showDialog="isUpdateOpen" |
|
|
|
|
v-if="isUpdateOpen" |
|
|
|
|
type="sintering" |
|
|
|
|
@closeDialog="closeDialog" |
|
|
|
|
:id="id" |
|
|
|
|
> |
|
|
|
|
<orderUpdateDailog :showDialog="isUpdateOpen" v-if="isUpdateOpen" type="sintering" @closeDialog="closeDialog" |
|
|
|
|
:id="id"> |
|
|
|
|
</orderUpdateDailog> |
|
|
|
|
<sinTerYieIdDialog |
|
|
|
|
:priorityName="priorityName" |
|
|
|
|
:showDialog="isPriorityOpen" |
|
|
|
|
v-if="isPriorityOpen" |
|
|
|
|
@closeDialog="closeDialog" |
|
|
|
|
@submitPriority="handlePrioritySubmit" |
|
|
|
|
:list="selectionList" |
|
|
|
|
></sinTerYieIdDialog> |
|
|
|
|
<sinTerYieIdDialog :priorityName="priorityName" :showDialog="isPriorityOpen" v-if="isPriorityOpen" |
|
|
|
|
@closeDialog="closeDialog" @submitPriority="handlePrioritySubmit" :list="selectionList"></sinTerYieIdDialog> |
|
|
|
|
<!-- 玻璃饼下发弹窗 --> |
|
|
|
|
<el-dialog |
|
|
|
|
title="下发玻璃饼" |
|
|
|
|
v-model="glassPlateDialog" |
|
|
|
|
width="30%" |
|
|
|
|
:before-close="closeGlassPlateDialog" |
|
|
|
|
> |
|
|
|
|
<el-dialog title="下发玻璃饼" v-model="glassPlateDialog" width="30%" :before-close="closeGlassPlateDialog"> |
|
|
|
|
<span>确定要下发玻璃饼吗?</span> |
|
|
|
|
<template #footer> |
|
|
|
|
<span class="dialog-footer"> |
|
|
|
|
@ -123,14 +80,8 @@ |
|
|
|
|
</template> |
|
|
|
|
</el-dialog> |
|
|
|
|
<!-- 工艺路线弹窗 --> |
|
|
|
|
<lookProcess |
|
|
|
|
:is-open="isOpen" |
|
|
|
|
v-if="isOpen" |
|
|
|
|
@cancel="closeDialog" |
|
|
|
|
:rowData="rowItem" |
|
|
|
|
sourceId="sinTerYieIdOrder" |
|
|
|
|
:id="id" |
|
|
|
|
></lookProcess> |
|
|
|
|
<lookProcess :is-open="isOpen" v-if="isOpen" @cancel="closeDialog" :rowData="rowItem" sourceId="sinTerYieIdOrder" |
|
|
|
|
:id="id"></lookProcess> |
|
|
|
|
</basic-container> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
@ -141,6 +92,7 @@ import { |
|
|
|
|
closeBatchs, |
|
|
|
|
updatePreference, |
|
|
|
|
saveGlassCake, |
|
|
|
|
subItemAssignment |
|
|
|
|
} from '@/api/orderManagement/planYieIdOrder'; |
|
|
|
|
import { |
|
|
|
|
add, |
|
|
|
|
@ -223,7 +175,7 @@ export default { |
|
|
|
|
editBtnText: '修改', |
|
|
|
|
labelWidth: 120, |
|
|
|
|
searchLabelWidth: 'auto', |
|
|
|
|
menuWidth: 140, |
|
|
|
|
menuWidth: 180, |
|
|
|
|
dialogWidth: 900, |
|
|
|
|
dialogClickModal: false, |
|
|
|
|
searchEnter: true, |
|
|
|
|
@ -246,6 +198,10 @@ export default { |
|
|
|
|
gridBtn: false, |
|
|
|
|
searchMenuPosition: 'right', |
|
|
|
|
align: 'center', |
|
|
|
|
tree: true, |
|
|
|
|
selectable: (row) => row.isParent === true, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
column: [ |
|
|
|
|
{ |
|
|
|
|
label: '计划单号', |
|
|
|
|
@ -897,6 +853,27 @@ export default { |
|
|
|
|
this.id = row.id; |
|
|
|
|
this.isUpdateOpen = true; |
|
|
|
|
}, |
|
|
|
|
// 子件下达 |
|
|
|
|
sendOrderFn(row) { |
|
|
|
|
this.$confirm('确定此数据进行子件下达?', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning', |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
subItemAssignment({ id: row.id }).then(res => { |
|
|
|
|
this.loading = true |
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '操作成功!', |
|
|
|
|
}); |
|
|
|
|
}).catch(err => { |
|
|
|
|
this.loading = false |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
//工艺路线 |
|
|
|
|
lookProcessRoute(row) { |
|
|
|
|
this.id = row.id; |
|
|
|
|
@ -1208,6 +1185,9 @@ export default { |
|
|
|
|
...param |
|
|
|
|
}) |
|
|
|
|
this.data = res.data.data.records; |
|
|
|
|
this.data.forEach(item => { |
|
|
|
|
item.isParent = true |
|
|
|
|
}) |
|
|
|
|
this.page.total = res.data.data.total; |
|
|
|
|
} catch (err) { |
|
|
|
|
console.log(err); |
|
|
|
|
@ -1218,3 +1198,8 @@ export default { |
|
|
|
|
mounted() { }, |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
:deep(.el-checkbox.is-disabled){ |
|
|
|
|
display: none; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
|