问题修改

dev-scheduling
zhangdi 4 days ago
parent 00010fcbbc
commit b43196a6a5
  1. 9
      src/api/orderManagement/planYieIdOrder.js
  2. 47
      src/views/oem/oemOrder/index.vue
  3. 187
      src/views/orderManagement/sinTerYieIdOrder.vue
  4. 1
      src/views/productionManagement/blbWorkOrder/components/glass.vue

@ -98,3 +98,12 @@ export const getProcessRouting = (params) => {
params, params,
}); });
}; };
// 子件下达
export const subItemAssignment = (params) => {
return request({
url: '/api/blade-desk/order/yieldOrder/subItemAssignment',
method: 'post',
params,
});
};

@ -384,43 +384,28 @@ export default {
}, },
{ {
label: "优先级", label: "优先级",
prop: "priority", prop: "priorityName",
// bind: "prWorkOrder.priority",
sortable: 'custom', sortable: 'custom',
search: true, search: true,
overHidden: true, overHidden: true,
width: 120, width: 120,
type: "select", },
headerAlign: "center",
// align: "left",
dicUrl: "/api/blade-system/dict/dictionary?code=orderPriority",
props: {
label: "dictValue",
value: "dictKey"
}
// dicData: [
// {
// value: 1,
// label: "-",
// },
// {
// value: 2,
// label: "-",
// },
// {
// value: 3,
// label: "-",
// },
// {
// value: 4,
// label: "-",
// },
// { // {
// value: 5, // label: "",
// label: "-", // prop: "priority",
// sortable: 'custom',
// search: true,
// overHidden: true,
// width: 120,
// hide: true,
// type: "select",
// headerAlign: "center",
// dicUrl: "/api/blade-system/dict/dictionary?code=orderPriority",
// props: {
// label: "dictValue",
// value: "dictKey"
// }
// }, // },
// ],
},
{ {
label: "使用部门", label: "使用部门",
prop: "deptName", prop: "deptName",

@ -1,23 +1,10 @@
<template> <template>
<basic-container> <basic-container>
<div class="search_box"></div> <div class="search_box"></div>
<avue-crud <avue-crud :option="option" :table-loading="loading" :data="data" v-model="form" v-model:page="page" ref="crud"
:option="option" @row-del="rowDel" @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"
:table-loading="loading" @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"
:data="data" @sort-change="sortChange">
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> <template #menu-left>
<el-button type="primary" @click="batchClose()" v-if="permission.sj_order_batch_close">批量关闭</el-button> <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> <el-button type="primary" @click.stop="priorityFn(row)" v-if="permission.sj_order_priority">优先级调整</el-button>
@ -33,8 +20,7 @@
<template #curStatusText="{ row }"> <template #curStatusText="{ row }">
<el-tag v-if="row.curStatusText == '已派工'">{{ row.curStatusText }}</el-tag> <el-tag v-if="row.curStatusText == '已派工'">{{ row.curStatusText }}</el-tag>
<el-tag class="ml-2" type="success" v-if="row.curStatusText == '已完工'"> <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 == '已关闭'">{{ <el-tag class="ml-2" type="info" v-if="row.curStatusText == '已关闭'">{{
row.curStatusText row.curStatusText
}}</el-tag> }}</el-tag>
@ -46,36 +32,23 @@
}}</el-tag> }}</el-tag>
</template> </template>
<template #menu="{ row }"> <template #menu="{ row }">
<el-button <el-button type="primary" text plain style="border: 0; background-color: transparent !important"
type="primary" @click="lookProcessRoute(row)" v-if="permission.sj_order_process_route">工艺路线
text
plain
style="border: 0; background-color: transparent !important"
@click="lookProcessRoute(row)"
v-if="permission.sj_order_process_route"
>工艺路线
</el-button> </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="batchClose(row)">优先级调整 @click.stop="batchClose(row)">优先级调整
</el-button> --> </el-button> -->
<el-button <el-button type="primary" text plain style="border: 0; background-color: transparent !important"
type="primary" @click.stop="updateFn(row)" v-if="permission.sj_order_edit">修改
text
plain
style="border: 0; background-color: transparent !important"
@click.stop="updateFn(row)"
v-if="permission.sj_order_edit"
>修改
</el-button> </el-button>
<el-button <!-- -->
type="primary" <el-button type="primary" text plain style="border: 0; background-color: transparent !important"
text @click.stop="sendOrderFn(row)" v-if="permission.sj_order_send_order && row.firseqNameStatus == 17001">子件下达
plain </el-button>
style="border: 0; background-color: transparent !important" <el-button type="primary" text plain style="border: 0; background-color: transparent !important"
@click.stop="openGlassPlateDialog(row)" @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> </el-button>
</template> </template>
<template #demandDate="{ row }"> <template #demandDate="{ row }">
@ -91,29 +64,13 @@
<batchDialog :showDialog="isBatchOpen" v-if="isBatchOpen" @closeDialog="closeDialog"></batchDialog> --> <batchDialog :showDialog="isBatchOpen" v-if="isBatchOpen" @closeDialog="closeDialog"></batchDialog> -->
<!-- 修改弹窗 --> <!-- 修改弹窗 -->
<orderUpdateDailog <orderUpdateDailog :showDialog="isUpdateOpen" v-if="isUpdateOpen" type="sintering" @closeDialog="closeDialog"
:showDialog="isUpdateOpen" :id="id">
v-if="isUpdateOpen"
type="sintering"
@closeDialog="closeDialog"
:id="id"
>
</orderUpdateDailog> </orderUpdateDailog>
<sinTerYieIdDialog <sinTerYieIdDialog :priorityName="priorityName" :showDialog="isPriorityOpen" v-if="isPriorityOpen"
:priorityName="priorityName" @closeDialog="closeDialog" @submitPriority="handlePrioritySubmit" :list="selectionList"></sinTerYieIdDialog>
:showDialog="isPriorityOpen"
v-if="isPriorityOpen"
@closeDialog="closeDialog"
@submitPriority="handlePrioritySubmit"
:list="selectionList"
></sinTerYieIdDialog>
<!-- 玻璃饼下发弹窗 --> <!-- 玻璃饼下发弹窗 -->
<el-dialog <el-dialog title="下发玻璃饼" v-model="glassPlateDialog" width="30%" :before-close="closeGlassPlateDialog">
title="下发玻璃饼"
v-model="glassPlateDialog"
width="30%"
:before-close="closeGlassPlateDialog"
>
<span>确定要下发玻璃饼吗</span> <span>确定要下发玻璃饼吗</span>
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
@ -123,14 +80,8 @@
</template> </template>
</el-dialog> </el-dialog>
<!-- 工艺路线弹窗 --> <!-- 工艺路线弹窗 -->
<lookProcess <lookProcess :is-open="isOpen" v-if="isOpen" @cancel="closeDialog" :rowData="rowItem" sourceId="sinTerYieIdOrder"
:is-open="isOpen" :id="id"></lookProcess>
v-if="isOpen"
@cancel="closeDialog"
:rowData="rowItem"
sourceId="sinTerYieIdOrder"
:id="id"
></lookProcess>
</basic-container> </basic-container>
</template> </template>
@ -141,6 +92,7 @@ import {
closeBatchs, closeBatchs,
updatePreference, updatePreference,
saveGlassCake, saveGlassCake,
subItemAssignment
} from '@/api/orderManagement/planYieIdOrder'; } from '@/api/orderManagement/planYieIdOrder';
import { import {
add, add,
@ -223,7 +175,7 @@ export default {
editBtnText: '修改', editBtnText: '修改',
labelWidth: 120, labelWidth: 120,
searchLabelWidth: 'auto', searchLabelWidth: 'auto',
menuWidth: 140, menuWidth: 180,
dialogWidth: 900, dialogWidth: 900,
dialogClickModal: false, dialogClickModal: false,
searchEnter: true, searchEnter: true,
@ -246,12 +198,16 @@ export default {
gridBtn: false, gridBtn: false,
searchMenuPosition: 'right', searchMenuPosition: 'right',
align: 'center', align: 'center',
tree: true,
selectable: (row) => row.isParent === true,
column: [ column: [
{ {
label: '计划单号', label: '计划单号',
prop: 'ypCode', prop: 'ypCode',
search: true, search: true,
searchOrder:5, searchOrder: 5,
sortable: 'custom', sortable: 'custom',
width: 150, width: 150,
span: 12, span: 12,
@ -270,7 +226,7 @@ export default {
prop: 'yoCode', prop: 'yoCode',
search: true, search: true,
sortable: 'custom', sortable: 'custom',
searchOrder:4, searchOrder: 4,
width: 150, width: 150,
span: 12, span: 12,
headerAlign: 'center', headerAlign: 'center',
@ -287,7 +243,7 @@ export default {
label: '零件号', label: '零件号',
prop: 'partCode', prop: 'partCode',
search: true, search: true,
searchOrder:2, searchOrder: 2,
sortable: 'custom', sortable: 'custom',
width: 180, width: 180,
span: 12, span: 12,
@ -361,7 +317,7 @@ export default {
prop: 'cardNo', prop: 'cardNo',
search: true, search: true,
sortable: 'custom', sortable: 'custom',
searchOrder:20, searchOrder: 20,
width: 150, width: 150,
span: 12, span: 12,
headerAlign: 'center', headerAlign: 'center',
@ -408,12 +364,12 @@ export default {
trigger: 'blur', trigger: 'blur',
}, },
], ],
dicData:[ dicData: [
{ label:'1级-极高紧急度',value:15001 }, { label: '1级-极高紧急度', value: 15001 },
{ label:'2级-高紧急度',value:15002 }, { label: '2级-高紧急度', value: 15002 },
{ label:'3级-中紧急度',value:15003 }, { label: '3级-中紧急度', value: 15003 },
{ label:'4级-低紧急度',value:15004 }, { label: '4级-低紧急度', value: 15004 },
{ label:'5级-正常',value:15005 }, { label: '5级-正常', value: 15005 },
] ]
}, },
{ {
@ -435,11 +391,11 @@ export default {
// YIELD_TYPE_5("", 12005), // YIELD_TYPE_5("", 12005),
// YIELD_TYPE_6("", 12006), // YIELD_TYPE_6("", 12006),
// {label: '', value: 12001}, // {label: '', value: 12001},
{label: '烧结订单', value: 12002}, { label: '烧结订单', value: 12002 },
{label: '玻璃饼', value: 12003}, { label: '玻璃饼', value: 12003 },
{label: '壳体', value: 12004}, { label: '壳体', value: 12004 },
{label: '插针', value: 12005}, { label: '插针', value: 12005 },
{label: '石墨模', value: 12006} { label: '石墨模', value: 12006 }
// { // {
// label: '', // label: '',
// value: 0, // value: 0,
@ -760,8 +716,8 @@ export default {
width: '140', width: '140',
display: false, display: false,
// RECEIVE_STATUS_NO( name:"", // RECEIVE_STATUS_NO( name:"",
// RECEIVE_STATUS_YES(name:"", // RECEIVE_STATUS_YES(name:"",
// code:11000),code:11001) // code:11000),code:11001)
dicData: [ dicData: [
{ {
value: 11000, value: 11000,
@ -774,12 +730,12 @@ export default {
], ],
}, },
{ {
label:"接收人", label: "接收人",
prop: 'receiveUserName', prop: 'receiveUserName',
width: '140', width: '140',
}, },
{ {
label:"接收时间", label: "接收时间",
prop: 'receiveTime', prop: 'receiveTime',
width: '140', width: '140',
sortable: 'custom', sortable: 'custom',
@ -858,7 +814,7 @@ export default {
const orderByField = prop.replace(/([a-z])([A-Z0-9])/g, '$1_$2').toUpperCase(); const orderByField = prop.replace(/([a-z])([A-Z0-9])/g, '$1_$2').toUpperCase();
this.query.orderByField = orderByField; this.query.orderByField = orderByField;
this.query.asc = order === 'ascending'?true:false; this.query.asc = order === 'ascending' ? true : false;
} }
// // // //
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
@ -897,6 +853,27 @@ export default {
this.id = row.id; this.id = row.id;
this.isUpdateOpen = true; 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) { lookProcessRoute(row) {
this.id = row.id; this.id = row.id;
@ -929,7 +906,7 @@ export default {
return; return;
} }
let tmp = this.selectionList.filter(item => item.status === 10015 || item.status === 10021) let tmp = this.selectionList.filter(item => item.status === 10015 || item.status === 10021)
if(tmp.length > 0){ if (tmp.length > 0) {
this.$message.error('请勿选择状态为【已完工】或【已关闭】的数据'); this.$message.error('请勿选择状态为【已完工】或【已关闭】的数据');
return return
} }
@ -987,7 +964,7 @@ export default {
if (this.currentRow) { if (this.currentRow) {
// //
this.currentRow.glassPlateIssuedStatus = 1; this.currentRow.glassPlateIssuedStatus = 1;
saveGlassCake({yieldPlanId:this.id}).then(res => { saveGlassCake({ yieldPlanId: this.id }).then(res => {
this.$message.success('玻璃饼下发成功'); this.$message.success('玻璃饼下发成功');
}).catch(err => { }).catch(err => {
this.$message.error('玻璃饼下发失败'); this.$message.error('玻璃饼下发失败');
@ -1197,17 +1174,20 @@ export default {
try { try {
let param = { let param = {
...this.query, ...this.query,
releaseDateStart:this.query.releaseDate && this.query.releaseDate.length != 0 ? this.$dayjs(this.query.releaseDate[0]).format('YYYY-MM-DD') : null, releaseDateStart: this.query.releaseDate && this.query.releaseDate.length != 0 ? this.$dayjs(this.query.releaseDate[0]).format('YYYY-MM-DD') : null,
releaseDateEnd:this.query.releaseDate && this.query.releaseDate.length != 0 ? this.$dayjs(this.query.releaseDate[1]).format('YYYY-MM-DD') : null, releaseDateEnd: this.query.releaseDate && this.query.releaseDate.length != 0 ? this.$dayjs(this.query.releaseDate[1]).format('YYYY-MM-DD') : null,
} }
if(param.releaseDate) delete param.releaseDate; if (param.releaseDate) delete param.releaseDate;
console.log('para-----------',param) console.log('para-----------', param)
const res = await getSinterOrderList({ const res = await getSinterOrderList({
current:this.page.currentPage, current: this.page.currentPage,
size:this.page.pageSize, size: this.page.pageSize,
...param ...param
}) })
this.data = res.data.data.records; this.data = res.data.data.records;
this.data.forEach(item => {
item.isParent = true
})
this.page.total = res.data.data.total; this.page.total = res.data.data.total;
} catch (err) { } catch (err) {
console.log(err); console.log(err);
@ -1215,6 +1195,11 @@ export default {
this.loading = false; this.loading = false;
}, },
}, },
mounted() {}, mounted() { },
}; };
</script> </script>
<style lang="scss" scoped>
:deep(.el-checkbox.is-disabled){
display: none;
}
</style>

@ -376,7 +376,6 @@ export default {
{ {
label: '订单优先级', label: '订单优先级',
prop: 'priorityName', prop: 'priorityName',
type: 'select',
search: false, search: false,
sortable: true, sortable: true,
overHidden: true, overHidden: true,

Loading…
Cancel
Save