|
|
|
|
@ -5,8 +5,8 @@ |
|
|
|
|
@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" icon="el-icon-printer" @click="handlePrintTags">过程记录打印</el-button> |
|
|
|
|
<el-button type="primary" icon="el-icon-printer" @click="handlePrintTags">打印标签</el-button> |
|
|
|
|
<el-button type="primary" icon="el-icon-printer" @click="handlePrintTags">过程记录打印</el-button> |
|
|
|
|
<el-button type="primary" icon="el-icon-printer" @click="handlePrintTags">打印标签</el-button> |
|
|
|
|
<!-- <el-button type="primary" icon="el-icon-printer" plain @click="handlePrint">打印</el-button> |
|
|
|
|
<el-button type="primary" icon="el-icon-monitor" @click="handleOutsource(null, 'all')">批量外协</el-button> --> |
|
|
|
|
<!-- <el-button type="success" icon="el-icon-download">导出</el-button> --> |
|
|
|
|
@ -26,7 +26,7 @@ |
|
|
|
|
<el-button type="text" @click="handleClose(scope.row)" v-show="scope.row.runStatus < 15">关闭</el-button> |
|
|
|
|
<!-- <el-button type="text">打印</el-button> --> |
|
|
|
|
<el-dropdown @command="handleCommand" style="margin-top: 4px; margin-left: 12px" v-show="scope.row.approvalStatus != 2 && |
|
|
|
|
scope.row.oemType === -1 && scope.row.runStatus < 15 |
|
|
|
|
scope.row.oemType === -1 && scope.row.runStatus < 15 && scope.row.runStatus !== 5 |
|
|
|
|
"> |
|
|
|
|
<span class="el-dropdown-link" style="color: #284c89; cursor: pointer"> |
|
|
|
|
更多<i class="el-icon-arrow-down el-icon--right" /> |
|
|
|
|
@ -35,12 +35,11 @@ |
|
|
|
|
<el-dropdown-menu> |
|
|
|
|
<!-- <el-dropdown-item @click="handleIssued(scope.row)" |
|
|
|
|
v-show="scope.row.runStatus === 1">下达</el-dropdown-item> --> |
|
|
|
|
<!-- <el-dropdown-item @click="handleBatches(scope.row)" |
|
|
|
|
v-show="scope.row.runStatus < 15 && scope.row.runStatus !== 5" >分批</el-dropdown-item> -->/<!-- 分批按钮(状态2、3、4、6显示) --> |
|
|
|
|
<el-dropdown-item @click="handleBatches(scope.row)" |
|
|
|
|
v-show="[2,3,4,6].includes(scope.row.runStatus)">分批</el-dropdown-item> |
|
|
|
|
<el-dropdown-item @click="handleOutsource(scope.row, 'one')" |
|
|
|
|
v-show="scope.row.runStatus <= 6 && scope.row.runStatus !== 5">外协</el-dropdown-item> |
|
|
|
|
<!-- 分批按钮(状态2、3、4、6显示) --> |
|
|
|
|
<el-dropdown-item @click="handleBatches(scope.row)" |
|
|
|
|
v-if="[2, 3, 4, 6].includes(scope.row.runStatus)">分批</el-dropdown-item> |
|
|
|
|
<el-dropdown-item @click="handleOutsource(scope.row)" |
|
|
|
|
v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5">外协</el-dropdown-item> |
|
|
|
|
<!-- <el-dropdown-item @click="handleReturn(scope.row)" |
|
|
|
|
v-show="scope.row.runStatus === 2">退货</el-dropdown-item> --> |
|
|
|
|
<!-- <el-dropdown-item @click="handleScheduling(scope.row)" |
|
|
|
|
@ -48,10 +47,9 @@ |
|
|
|
|
<!-- <el-dropdown-item @click="handleClose(scope.row)" v-show="scope.row.runStatus < 15">关闭</el-dropdown-item> --> |
|
|
|
|
<!-- <el-dropdown-item @click="handleSintering(scope.row)" |
|
|
|
|
v-show="scope.row.runStatus < 15">转烧结</el-dropdown-item> --> |
|
|
|
|
<el-dropdown-item @click="priorityFn(scope.row)" |
|
|
|
|
v-show="scope.row.runStatus === 2">优先级调整</el-dropdown-item> |
|
|
|
|
<el-dropdown-item @click="handleAbnormal(scope.row)" |
|
|
|
|
v-show="scope.row.runStatus === 3 || scope.row.runStatus === 4" >异常申报</el-dropdown-item> |
|
|
|
|
<el-dropdown-item @click="priorityFn(scope.row)" v-if="scope.row.runStatus === 2">优先级调整</el-dropdown-item> |
|
|
|
|
<el-dropdown-item @click="handleAbnormal(scope.row)" |
|
|
|
|
v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4">异常申报</el-dropdown-item> |
|
|
|
|
</el-dropdown-menu> |
|
|
|
|
</template> |
|
|
|
|
<!-- <el-dropdown-menu slot="dropdown"> |
|
|
|
|
@ -77,6 +75,15 @@ |
|
|
|
|
<template #plate="{ row }">{{ |
|
|
|
|
row.pjYieldOrder && row.pjYieldOrder.plate |
|
|
|
|
}}</template> |
|
|
|
|
<template #planEndDate="{ row }"> |
|
|
|
|
{{ Array.isArray(row.planEndDate) ? row.planEndDate.join(' ~ ') : (row.planEndDate || '-') }} |
|
|
|
|
</template> |
|
|
|
|
<template #planTime="{ row }"> |
|
|
|
|
{{ Array.isArray(row.planTime) ? row.planTime.join(' ~ ') : (row.planTime || '-') }} |
|
|
|
|
</template> |
|
|
|
|
<template #putStoreTime="{ row }"> |
|
|
|
|
{{ Array.isArray(row.putStoreTime) ? row.putStoreTime.join(' ~ ') : (row.putStoreTime || '-') }} |
|
|
|
|
</template> |
|
|
|
|
<template #productType="{ row }">{{ |
|
|
|
|
row.pjYieldOrder && row.pjYieldOrder.productType |
|
|
|
|
}}</template> |
|
|
|
|
@ -131,7 +138,7 @@ |
|
|
|
|
<!-- 异常处理 --> |
|
|
|
|
<abnormalDialog :show-abnormal="showAbnormal" @closeDialog="closeDialog"></abnormalDialog> |
|
|
|
|
<productionMonitoringDialog :showDialog="isPriorityOpen" v-if="isPriorityOpen" @closeDialog="closeDialog" |
|
|
|
|
@submitPriority="handlePrioritySubmit"></productionMonitoringDialog> |
|
|
|
|
@submitPriority="handlePrioritySubmit"></productionMonitoringDialog> |
|
|
|
|
</basic-container> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
@ -245,7 +252,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
label: "当前工序", |
|
|
|
|
prop: "ppsName", |
|
|
|
|
@ -279,7 +286,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "订单状态", |
|
|
|
|
prop: "runStatus", |
|
|
|
|
prop: "runStatusTitle", |
|
|
|
|
type: "select", |
|
|
|
|
search: true, |
|
|
|
|
sortable: true, |
|
|
|
|
@ -529,7 +536,7 @@ export default { |
|
|
|
|
// }, |
|
|
|
|
// ], |
|
|
|
|
// }, |
|
|
|
|
{ |
|
|
|
|
{ |
|
|
|
|
label: "MES流程卡号", |
|
|
|
|
prop: "false", |
|
|
|
|
search: false, |
|
|
|
|
@ -604,8 +611,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
{ |
|
|
|
|
label: "单批次面积", |
|
|
|
|
prop: "batchArea", |
|
|
|
|
search: false, |
|
|
|
|
@ -620,7 +626,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
{ |
|
|
|
|
label: "订单优先级", |
|
|
|
|
prop: "priorityTitle", |
|
|
|
|
type: "select", |
|
|
|
|
@ -733,61 +739,77 @@ export default { |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
{ |
|
|
|
|
label: "计划下达时间", |
|
|
|
|
prop: "planTime", |
|
|
|
|
search: true, |
|
|
|
|
sortable: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
type: "datetimerange", |
|
|
|
|
filter: true, |
|
|
|
|
selectWidth: 150, |
|
|
|
|
span: 12, |
|
|
|
|
search: true, |
|
|
|
|
width: 200, |
|
|
|
|
searchSpan: 8, |
|
|
|
|
type: 'datetimerange', |
|
|
|
|
format: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
startPlaceholder: '时间日期开始', |
|
|
|
|
endPlaceholder: '时间日期结束', |
|
|
|
|
width: 200, |
|
|
|
|
startPlaceholder: '开始日期', |
|
|
|
|
endPlaceholder: '结束日期', |
|
|
|
|
rangeSeparator: '-', |
|
|
|
|
searchRange: true, |
|
|
|
|
rules: [ |
|
|
|
|
{ |
|
|
|
|
required: true, |
|
|
|
|
message: "请输入计划下达时间", |
|
|
|
|
trigger: "blur", |
|
|
|
|
message: "请选择日期范围", |
|
|
|
|
trigger: "change", |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, { |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "计划完工时间", |
|
|
|
|
prop: "planEndDate", |
|
|
|
|
search: false, |
|
|
|
|
sortable: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
type: "datetimerange", |
|
|
|
|
format: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
startPlaceholder: '时间日期开始', |
|
|
|
|
endPlaceholder: '时间日期结束', |
|
|
|
|
width: 200, |
|
|
|
|
rules: [ |
|
|
|
|
{ |
|
|
|
|
required: true, |
|
|
|
|
message: "请输入计划完工时间", |
|
|
|
|
message: "请输入计划下达时间", |
|
|
|
|
trigger: "blur", |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
label: "镀后入库时间", |
|
|
|
|
prop: "putStoreTime", |
|
|
|
|
search: true, |
|
|
|
|
sortable: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
filter: true, |
|
|
|
|
span: 12, |
|
|
|
|
search: true, |
|
|
|
|
searchSpan: 8, |
|
|
|
|
width: 200, |
|
|
|
|
type: "datetimerange", |
|
|
|
|
format: 'yyyy-MM-DD HH:mm:ss', |
|
|
|
|
valueFormat: 'yyyy-MM-DD HH:mm:ss', |
|
|
|
|
startPlaceholder: '时间日期开始', |
|
|
|
|
endPlaceholder: '时间日期结束', |
|
|
|
|
type: 'datetimerange', |
|
|
|
|
format: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
startPlaceholder: '开始日期', |
|
|
|
|
endPlaceholder: '结束日期', |
|
|
|
|
rangeSeparator: '-', |
|
|
|
|
searchRange: true, |
|
|
|
|
rules: [ |
|
|
|
|
{ |
|
|
|
|
required: true, |
|
|
|
|
message: "请输入镀后入库时间", |
|
|
|
|
trigger: "blur", |
|
|
|
|
message: "请选择日期范围", |
|
|
|
|
trigger: "change", |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
label: "外协状态", |
|
|
|
|
prop: "oemType", |
|
|
|
|
@ -890,9 +912,9 @@ export default { |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// { |
|
|
|
|
// label: "已入库数量", |
|
|
|
|
// prop: "inventoryQty", |
|
|
|
|
@ -993,7 +1015,7 @@ export default { |
|
|
|
|
// }, |
|
|
|
|
// ], |
|
|
|
|
// }, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
label: "备注", |
|
|
|
|
prop: "memo", |
|
|
|
|
@ -1043,12 +1065,15 @@ export default { |
|
|
|
|
mounted() { }, |
|
|
|
|
methods: { |
|
|
|
|
// 优先级调整 |
|
|
|
|
priorityFn() { |
|
|
|
|
this.isPriorityOpen = true |
|
|
|
|
}, |
|
|
|
|
handlePrioritySubmit(data) { |
|
|
|
|
this.$message.success(`优先级已调整为${data.priority === 1 ? '一级' : data.priority === 2 ? '二级' : '三级'}`); |
|
|
|
|
}, |
|
|
|
|
priorityFn(row) { |
|
|
|
|
this.rowItem = row; |
|
|
|
|
console.log(row.runStatus, 123) |
|
|
|
|
this.isPriorityOpen = true |
|
|
|
|
// console.log(runStatus,123) |
|
|
|
|
}, |
|
|
|
|
handlePrioritySubmit(data) { |
|
|
|
|
this.$message.success(`优先级已调整为${data.priority === 1 ? '一级' : data.priority === 2 ? '二级' : '三级'}`); |
|
|
|
|
}, |
|
|
|
|
selectionChange(val) { |
|
|
|
|
this.selectionList = val; |
|
|
|
|
}, |
|
|
|
|
@ -1127,9 +1152,13 @@ export default { |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//查询【加工中3、工艺变更5、检验中4、审理中6】状态的订单 |
|
|
|
|
//查询【生产中3、工艺变更5、检验中4、审理中6】状态的订单 |
|
|
|
|
queryOrdersHandle() { |
|
|
|
|
|
|
|
|
|
const targetStatuses = [3, 5, 4, 6]; |
|
|
|
|
const filteredData = this.data.filter(item => targetStatuses.includes(item.runStatus)); |
|
|
|
|
const originalData = [...this.data]; |
|
|
|
|
this.data = filteredData; |
|
|
|
|
this.$message.success(`已筛选出${filteredData.length}条符合条件的订单`); |
|
|
|
|
}, |
|
|
|
|
// 异常申报 |
|
|
|
|
handleAbnormal() { |
|
|
|
|
@ -1350,7 +1379,7 @@ export default { |
|
|
|
|
nowWorkCenter: null, |
|
|
|
|
oem: false, |
|
|
|
|
oemOut: true, |
|
|
|
|
oemType: 1, |
|
|
|
|
oemType: -1, |
|
|
|
|
oldRunStatus: null, |
|
|
|
|
orderMarkTitle: "热表中心", |
|
|
|
|
orderWoCode: "WO-2303122891-R01", |
|
|
|
|
@ -1476,7 +1505,7 @@ export default { |
|
|
|
|
reworkNo: null, |
|
|
|
|
rsCode: null, |
|
|
|
|
runStatus: 3, |
|
|
|
|
runStatusTitle: "加工中", |
|
|
|
|
runStatusTitle: "生产中", |
|
|
|
|
schedStatus: 0, |
|
|
|
|
scrapQty: 0.0, |
|
|
|
|
sendDownTime: "2023-03-28 10:01:18", |
|
|
|
|
@ -1677,7 +1706,7 @@ export default { |
|
|
|
|
nowWorkCenter: null, |
|
|
|
|
oem: false, |
|
|
|
|
oemOut: true, |
|
|
|
|
oemType: 1, |
|
|
|
|
oemType: -1, |
|
|
|
|
oldRunStatus: null, |
|
|
|
|
orderMarkTitle: "热表中心", |
|
|
|
|
orderWoCode: "WO-2303123426-R01", |
|
|
|
|
@ -1803,7 +1832,7 @@ export default { |
|
|
|
|
reworkNo: null, |
|
|
|
|
rsCode: null, |
|
|
|
|
runStatus: 2, |
|
|
|
|
runStatusTitle: "加工中", |
|
|
|
|
runStatusTitle: "待生产", |
|
|
|
|
schedStatus: 0, |
|
|
|
|
scrapQty: 0.0, |
|
|
|
|
sendDownTime: "2023-03-28 16:29:14", |
|
|
|
|
@ -2133,7 +2162,7 @@ export default { |
|
|
|
|
reworkNo: null, |
|
|
|
|
rsCode: null, |
|
|
|
|
runStatus: 4, |
|
|
|
|
runStatusTitle: "加工中", |
|
|
|
|
runStatusTitle: "检验中", |
|
|
|
|
schedStatus: 0, |
|
|
|
|
scrapQty: 0.0, |
|
|
|
|
sendDownTime: "2023-04-10 21:17:11", |
|
|
|
|
@ -2324,7 +2353,7 @@ export default { |
|
|
|
|
nowWorkCenter: null, |
|
|
|
|
oem: false, |
|
|
|
|
oemOut: true, |
|
|
|
|
oemType: 1, |
|
|
|
|
oemType: -1, |
|
|
|
|
oldRunStatus: null, |
|
|
|
|
orderMarkTitle: "热表中心", |
|
|
|
|
orderWoCode: "WO-2303122891-R01", |
|
|
|
|
@ -2450,7 +2479,7 @@ export default { |
|
|
|
|
reworkNo: null, |
|
|
|
|
rsCode: null, |
|
|
|
|
runStatus: 6, |
|
|
|
|
runStatusTitle: "加工中", |
|
|
|
|
runStatusTitle: "审理中", |
|
|
|
|
schedStatus: 0, |
|
|
|
|
scrapQty: 0.0, |
|
|
|
|
sendDownTime: "2023-03-28 10:01:18", |
|
|
|
|
@ -2641,7 +2670,7 @@ export default { |
|
|
|
|
nowWorkCenter: null, |
|
|
|
|
oem: false, |
|
|
|
|
oemOut: true, |
|
|
|
|
oemType: 1, |
|
|
|
|
oemType: -1, |
|
|
|
|
oldRunStatus: null, |
|
|
|
|
orderMarkTitle: "热表中心", |
|
|
|
|
orderWoCode: "WO-2303122891-R01", |
|
|
|
|
@ -2767,7 +2796,7 @@ export default { |
|
|
|
|
reworkNo: null, |
|
|
|
|
rsCode: null, |
|
|
|
|
runStatus: 5, |
|
|
|
|
runStatusTitle: "加工中", |
|
|
|
|
runStatusTitle: "工艺变更", |
|
|
|
|
schedStatus: 0, |
|
|
|
|
scrapQty: 0.0, |
|
|
|
|
sendDownTime: "2023-03-28 10:01:18", |
|
|
|
|
@ -2958,7 +2987,7 @@ export default { |
|
|
|
|
nowWorkCenter: null, |
|
|
|
|
oem: false, |
|
|
|
|
oemOut: true, |
|
|
|
|
oemType: 1, |
|
|
|
|
oemType: -1, |
|
|
|
|
oldRunStatus: null, |
|
|
|
|
orderMarkTitle: "热表中心", |
|
|
|
|
orderWoCode: "WO-2303122891-R01", |
|
|
|
|
@ -3084,7 +3113,7 @@ export default { |
|
|
|
|
reworkNo: null, |
|
|
|
|
rsCode: null, |
|
|
|
|
runStatus: 19, |
|
|
|
|
runStatusTitle: "加工中", |
|
|
|
|
runStatusTitle: "已返工", |
|
|
|
|
schedStatus: 0, |
|
|
|
|
scrapQty: 0.0, |
|
|
|
|
sendDownTime: "2023-03-28 10:01:18", |
|
|
|
|
@ -3100,7 +3129,7 @@ export default { |
|
|
|
|
ybCode: null, |
|
|
|
|
ybLocal: null, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]; |
|
|
|
|
this.page.total = this.data.length; |
|
|
|
|
}, |
|
|
|
|
|