|
|
|
@ -320,7 +320,7 @@ |
|
|
|
<el-tab-pane label="机器下机卷" name="sfdc_roll"> |
|
|
|
<el-table |
|
|
|
height="260" |
|
|
|
:data="sfdcRollList" |
|
|
|
:data="materialRollList" |
|
|
|
border |
|
|
|
show-summary |
|
|
|
v-loading="dataListLoading" |
|
|
|
@ -349,9 +349,6 @@ |
|
|
|
width="115" |
|
|
|
:label="'操作'"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.finishedFlag != 'N'" |
|
|
|
@click="warnReopenSfdcRollsConfirm(scope.row)" |
|
|
|
>重打开</a> |
|
|
|
<a class="customer-a" v-if="operatorData.operatorName != ''" |
|
|
|
@click="warnDeleteSfdcRollsConfirm(scope.row)" |
|
|
|
>删除卷</a> |
|
|
|
@ -596,7 +593,6 @@ import { |
|
|
|
getSfdcMaterialByCon, |
|
|
|
getSfdcRollOpsByCon, |
|
|
|
getSfdcDefectByCon, |
|
|
|
getSfdcRollByCon, |
|
|
|
refreshWorkPlatformButtons, |
|
|
|
checkScheduleButton, |
|
|
|
checkCreateNewSfdcRoll, |
|
|
|
@ -606,6 +602,7 @@ import { |
|
|
|
processFinishTool,/*执行工具的结束使用的方法*/ |
|
|
|
finishMaterialWithNoRemainder,/*执行材料结束使用 且无剩余 */ |
|
|
|
switchrollReverse, |
|
|
|
refreshSplitScheduleTable, |
|
|
|
} from "@/api/yieldReport/com_split_order_report.js"; |
|
|
|
/*引入组件*/ |
|
|
|
import comSwitchOperator from "./com_switch_operator";/*切换操作员*/ |
|
|
|
@ -656,7 +653,7 @@ export default { |
|
|
|
sfdcMaterialList: [], |
|
|
|
sfdcRollOpsList: [], |
|
|
|
sfdcDefectList: [], |
|
|
|
sfdcRollList: [], |
|
|
|
materialRollList: [], |
|
|
|
columnTimeArray: [ |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -2511,9 +2508,9 @@ export default { |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5303, |
|
|
|
serialNumber: '5303RollRollNo', |
|
|
|
tableId: "5303Roll", |
|
|
|
tableName: "下机卷", |
|
|
|
serialNumber: '5303MaterialRollNo', |
|
|
|
tableId: "5303Material", |
|
|
|
tableName: "材料", |
|
|
|
columnProp: "rollNo", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
@ -2528,122 +2525,14 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5303, |
|
|
|
serialNumber: '5303RollCreatedDate', |
|
|
|
tableId: "5303Roll", |
|
|
|
tableName: "下机卷", |
|
|
|
columnProp: "createdDate", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "创建时间", |
|
|
|
columnWidth: 125, |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5303, |
|
|
|
serialNumber: '5303RollCreatedBy', |
|
|
|
tableId: "5303Roll", |
|
|
|
tableName: "下机卷", |
|
|
|
columnProp: "createdBy", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "创建人", |
|
|
|
columnWidth: 55, |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5303, |
|
|
|
serialNumber: '5303RollCurrentOpsItemNo', |
|
|
|
tableId: "5303Roll", |
|
|
|
tableName: "下机卷", |
|
|
|
columnProp: "currentOpsItemNo", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "当前生产工序号", |
|
|
|
columnWidth: 95, |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5303, |
|
|
|
serialNumber: '5303RollLastFinishedOpsItemNo', |
|
|
|
tableId: "5303Roll", |
|
|
|
tableName: "下机卷", |
|
|
|
columnProp: "lastFinishedOpsItemNo", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "最近完工工序号", |
|
|
|
columnWidth: 95, |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5303, |
|
|
|
serialNumber: '5303RollFinishedDate', |
|
|
|
tableId: "5303Roll", |
|
|
|
tableName: "下机卷", |
|
|
|
columnProp: "finishedDate", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "完工时间", |
|
|
|
columnWidth: 125, |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5303, |
|
|
|
serialNumber: '5303RollFinishedFlag', |
|
|
|
tableId: "5303Roll", |
|
|
|
tableName: "下机卷", |
|
|
|
columnProp: "finishedFlag", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "是否完成", |
|
|
|
columnWidth: 60, |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5303, |
|
|
|
serialNumber: '5303RollOnLineFlag', |
|
|
|
tableId: "5303Roll", |
|
|
|
tableName: "下机卷", |
|
|
|
columnProp: "onLineFlag", |
|
|
|
functionId: 5305, |
|
|
|
serialNumber: '5305MaterialRollQty', |
|
|
|
tableId: "5305Material", |
|
|
|
tableName: "材料", |
|
|
|
columnProp: "rollQty", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "是否在线", |
|
|
|
columnLabel: "卷数量", |
|
|
|
columnWidth: 60, |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
@ -2654,32 +2543,14 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5303, |
|
|
|
serialNumber: '5303RollPauseFlag', |
|
|
|
tableId: "5303Roll", |
|
|
|
tableName: "下机卷", |
|
|
|
columnProp: "pauseFlag", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "暂停", |
|
|
|
columnWidth: 35, |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5303, |
|
|
|
serialNumber: '5303RollOriRollNo', |
|
|
|
tableId: "5303Roll", |
|
|
|
tableName: "下机卷", |
|
|
|
columnProp: "oriRollNo", |
|
|
|
functionId: 5305, |
|
|
|
serialNumber: '5305MaterialSuppDeliveryNote', |
|
|
|
tableId: "5305Material", |
|
|
|
tableName: "材料", |
|
|
|
columnProp: "suppDeliveryNote", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "原卷号", |
|
|
|
columnLabel: "供应商送货单号", |
|
|
|
columnWidth: 100, |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
@ -2690,33 +2561,15 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5303, |
|
|
|
serialNumber: '5303RollStartOpsItemNo', |
|
|
|
tableId: "5303Roll", |
|
|
|
tableName: "下机卷", |
|
|
|
columnProp: "startOpsItemNo", |
|
|
|
functionId: 5305, |
|
|
|
serialNumber: '5305MaterialRollDate', |
|
|
|
tableId: "5305Material", |
|
|
|
tableName: "材料", |
|
|
|
columnProp: "rollDate", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "开始生产工序号", |
|
|
|
columnWidth: 95, |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5303, |
|
|
|
serialNumber: '5303RollRollType', |
|
|
|
tableId: "5303Roll", |
|
|
|
tableName: "下机卷", |
|
|
|
columnProp: "rollType", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "卷类型", |
|
|
|
columnWidth: 75, |
|
|
|
columnLabel: "入库日期", |
|
|
|
columnWidth: 100, |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
@ -2726,15 +2579,15 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5303, |
|
|
|
serialNumber: '5303RollCreatedOpsItemNo', |
|
|
|
tableId: "5303Roll", |
|
|
|
tableName: "下机卷", |
|
|
|
columnProp: "createdOpsItemNo", |
|
|
|
functionId: 5305, |
|
|
|
serialNumber: '5305MaterialCreatedDate', |
|
|
|
tableId: "5305Material", |
|
|
|
tableName: "材料", |
|
|
|
columnProp: "createdDate", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "创建卷的工序号", |
|
|
|
columnWidth: 95, |
|
|
|
columnLabel: "分卷日期", |
|
|
|
columnWidth: 125, |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
@ -2744,15 +2597,15 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5303, |
|
|
|
serialNumber: '5303RollRollQty', |
|
|
|
tableId: "5303Roll", |
|
|
|
tableName: "下机卷", |
|
|
|
columnProp: "rollQty", |
|
|
|
functionId: 5305, |
|
|
|
serialNumber: '5305MaterialCreatedBy', |
|
|
|
tableId: "5305Material", |
|
|
|
tableName: "材料", |
|
|
|
columnProp: "createdBy", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "卷数量", |
|
|
|
columnWidth: 55, |
|
|
|
align: "right", |
|
|
|
columnLabel: "分卷人", |
|
|
|
columnWidth: 80, |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
@ -2762,15 +2615,15 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5303, |
|
|
|
serialNumber: '5303RollFirstLevelRollNo', |
|
|
|
tableId: "5303Roll", |
|
|
|
tableName: "下机卷", |
|
|
|
columnProp: "firstLevelRollNo", |
|
|
|
functionId: 5305, |
|
|
|
serialNumber: '5305MaterialSuppRollNoFlag', |
|
|
|
tableId: "5305Material", |
|
|
|
tableName: "材料", |
|
|
|
columnProp: "suppRollNoFlag", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "最原始卷号", |
|
|
|
columnWidth: 100, |
|
|
|
align: "right", |
|
|
|
columnLabel: "已录入供应商批号", |
|
|
|
columnWidth: 80, |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
@ -2780,14 +2633,14 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5303, |
|
|
|
serialNumber: '5303RollVirtualRollFlag', |
|
|
|
tableId: "5303Roll", |
|
|
|
tableName: "下机卷", |
|
|
|
columnProp: "virtualRollFlag", |
|
|
|
functionId: 5305, |
|
|
|
serialNumber: '5305MaterialSuppRollNo', |
|
|
|
tableId: "5305Material", |
|
|
|
tableName: "材料", |
|
|
|
columnProp: "suppRollNo", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "虚拟卷", |
|
|
|
columnLabel: "供应商批号", |
|
|
|
columnWidth: 80, |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
@ -3084,8 +2937,8 @@ export default { |
|
|
|
|
|
|
|
//刷新派工单的下机卷的记录 |
|
|
|
getSfdcRollList() { |
|
|
|
getSfdcRollByCon(this.searchData).then(({data}) => { |
|
|
|
this.sfdcRollList = data.rows; |
|
|
|
refreshSplitScheduleTable(this.searchData).then(({data}) => { |
|
|
|
this.materialRollList = data.rows; |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
@ -3265,7 +3118,6 @@ export default { |
|
|
|
|
|
|
|
/*不初始化操作员的方法*/ |
|
|
|
notInitOperatorData() { |
|
|
|
debugger; |
|
|
|
//关闭切换用户的组件 |
|
|
|
this.showOperatorFlag = false; |
|
|
|
$(".controller-bun").addClass("disabled-bun"); |
|
|
|
@ -3547,6 +3399,9 @@ export default { |
|
|
|
|
|
|
|
/*提醒是否删除的提示*/ |
|
|
|
warnDeleteSfdcRollsConfirm(sfdcRollRow) { |
|
|
|
//等待开发 |
|
|
|
this.$message.error('待开发!') |
|
|
|
return false; |
|
|
|
this.$confirm('确实要删除该卷吗?', '提示', { |
|
|
|
confirmButtonText: '确认', |
|
|
|
celButtonText: '取消', |
|
|
|
|