|
|
@ -22,13 +22,15 @@ |
|
|
<el-input v-model="operatorData.operatorId" disabled="disabled" style="width: 80px;"></el-input> |
|
|
<el-input v-model="operatorData.operatorId" disabled="disabled" style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item class="customer-item" label="操作员姓名:"> |
|
|
<el-form-item class="customer-item" label="操作员姓名:"> |
|
|
<el-input v-model="operatorData.operatorName" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="operatorData.operatorName" class="customer-input-color-red" readonly="readonly" |
|
|
|
|
|
style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item class="customer-item" label="排产日期:"> |
|
|
<el-form-item class="customer-item" label="排产日期:"> |
|
|
<el-input v-model="pageData.scheduledDate" disabled="disabled" style="width: 80px;"></el-input> |
|
|
<el-input v-model="pageData.scheduledDate" disabled="disabled" style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item class="customer-item" label="班次:"> |
|
|
<el-form-item class="customer-item" label="班次:"> |
|
|
<el-input v-model="pageData.shiftDesc" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.shiftDesc" class="customer-input-color-red" readonly="readonly" |
|
|
|
|
|
style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-button type="info" :disabled="buttonTags.selectShiftFlag" plain @click="selectSchduleShiftModal" |
|
|
<el-button type="info" :disabled="buttonTags.selectShiftFlag" plain @click="selectSchduleShiftModal" |
|
|
style="margin-left: -10px; margin-top: 10px; height: 20px; padding: 3px 3px;"> |
|
|
style="margin-left: -10px; margin-top: 10px; height: 20px; padding: 3px 3px;"> |
|
|
@ -38,19 +40,26 @@ |
|
|
<el-form style="margin-top: -60px;margin-left: 570px"> |
|
|
<el-form style="margin-top: -60px;margin-left: 570px"> |
|
|
<el-form-item class="customer-button"> |
|
|
<el-form-item class="customer-button"> |
|
|
<el-button class="customer-bun-min" type="primary" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
<el-button class="customer-bun-min" type="primary" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
列表</el-button> |
|
|
|
|
|
|
|
|
列表 |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item class="customer-button"> |
|
|
<el-form-item class="customer-button"> |
|
|
<el-button class="customer-bun-min" type="primary" @click="refreshPageData" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
刷新</el-button> |
|
|
|
|
|
|
|
|
<el-button class="customer-bun-min" type="primary" @click="refreshPageData" |
|
|
|
|
|
style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
刷新 |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item class="customer-button"> |
|
|
<el-form-item class="customer-button"> |
|
|
<el-button class="customer-bun-min" type="primary" @click="finishRollBun" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
结束卷</el-button> |
|
|
|
|
|
|
|
|
<el-button class="customer-bun-min" type="primary" @click="finishRollBun" |
|
|
|
|
|
style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
结束卷 |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item class="customer-button"> |
|
|
<el-form-item class="customer-button"> |
|
|
<el-button class="customer-bun-min" type="primary" @click="closeDialog" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
关闭</el-button> |
|
|
|
|
|
|
|
|
<el-button class="customer-bun-min" type="primary" @click="closeDialog" |
|
|
|
|
|
style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
关闭 |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</el-col> |
|
|
</el-col> |
|
|
@ -61,20 +70,25 @@ |
|
|
<legend>卷数量统计</legend> |
|
|
<legend>卷数量统计</legend> |
|
|
<el-form-item class="customer-item"> |
|
|
<el-form-item class="customer-item"> |
|
|
<el-checkbox disabled="disabled" style="margin-top: 15px;" true-label="Y" false-label="N" |
|
|
<el-checkbox disabled="disabled" style="margin-top: 15px;" true-label="Y" false-label="N" |
|
|
v-model="pageData.reportedFlag">是否报告产量</el-checkbox> |
|
|
|
|
|
|
|
|
v-model="pageData.reportedFlag">是否报告产量 |
|
|
|
|
|
</el-checkbox> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item class="customer-item" label="总良品数量:" style="margin-top: -10px;"> |
|
|
<el-form-item class="customer-item" label="总良品数量:" style="margin-top: -10px;"> |
|
|
<!--<el-input v-model="pageData.approvedQty" type="number" @blur="checkValidApprovedQty"--> |
|
|
<!--<el-input v-model="pageData.approvedQty" type="number" @blur="checkValidApprovedQty"--> |
|
|
<el-input v-model="pageData.approvedQty" :disabled="showNumFlag" @blur="checkValidApprovedQty" type="number" style="width: 80px;" ></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.approvedQty" :disabled="showNumFlag" @blur="checkValidApprovedQty" |
|
|
|
|
|
type="number" style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item class="customer-item" label="总不良品数量:" style="margin-top: -10px;"> |
|
|
<el-form-item class="customer-item" label="总不良品数量:" style="margin-top: -10px;"> |
|
|
<el-input v-model="pageData.defectedQty" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.defectedQty" class="customer-input-color-red" readonly="readonly" |
|
|
|
|
|
style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item class="customer-item" label="总数量" style="margin-top: -10px;"> |
|
|
<el-form-item class="customer-item" label="总数量" style="margin-top: -10px;"> |
|
|
<el-input v-model="pageData.totalQty" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.totalQty" class="customer-input-color-red" readonly="readonly" |
|
|
|
|
|
style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item class="customer-item" label="其他卷数量:" style="margin-top: -10px;"> |
|
|
<el-form-item class="customer-item" label="其他卷数量:" style="margin-top: -10px;"> |
|
|
<el-input v-model="pageData.otherRollQty" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.otherRollQty" class="customer-input-color-red" readonly="readonly" |
|
|
|
|
|
style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'未生产下机拆卷数量'" class="customer-item"> |
|
|
<el-form-item :label="'未生产下机拆卷数量'" class="customer-item"> |
|
|
<el-input style="width: 110px;" |
|
|
<el-input style="width: 110px;" |
|
|
@ -93,13 +107,16 @@ |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item label="总调机时间:"> |
|
|
<el-form-item label="总调机时间:"> |
|
|
<el-input v-model="pageData.totalSetupTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;" ></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.totalSetupTime" class="customer-input-color-red" readonly="readonly" |
|
|
|
|
|
style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="总调机过程停机时间:"> |
|
|
<el-form-item label="总调机过程停机时间:"> |
|
|
<el-input v-model="pageData.totalDowntimeTimeSetup" class="customer-input-color-red" readonly="readonly" style="width: 100px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.totalDowntimeTimeSetup" class="customer-input-color-red" |
|
|
|
|
|
readonly="readonly" style="width: 100px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="净调机时间:"> |
|
|
<el-form-item label="净调机时间:"> |
|
|
<el-input v-model="pageData.totalPureSetupTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.totalPureSetupTime" class="customer-input-color-red" readonly="readonly" |
|
|
|
|
|
style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -107,13 +124,16 @@ |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item label="总生产时间"> |
|
|
<el-form-item label="总生产时间"> |
|
|
<el-input v-model="pageData.totalProdTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.totalProdTime" class="customer-input-color-red" readonly="readonly" |
|
|
|
|
|
style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="总生产过程停机时间:"> |
|
|
<el-form-item label="总生产过程停机时间:"> |
|
|
<el-input v-model="pageData.totalDowntimeTimeProd" class="customer-input-color-red" readonly="readonly" style="width: 100px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.totalDowntimeTimeProd" class="customer-input-color-red" |
|
|
|
|
|
readonly="readonly" style="width: 100px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="净生产时间:"> |
|
|
<el-form-item label="净生产时间:"> |
|
|
<el-input v-model="pageData.totalPureProdTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.totalPureProdTime" class="customer-input-color-red" readonly="readonly" |
|
|
|
|
|
style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -121,13 +141,16 @@ |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item label="总制造时间:"> |
|
|
<el-form-item label="总制造时间:"> |
|
|
<el-input v-model="pageData.totalManufactureTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.totalManufactureTime" class="customer-input-color-red" readonly="readonly" |
|
|
|
|
|
style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="总制造过程停机时间:"> |
|
|
<el-form-item label="总制造过程停机时间:"> |
|
|
<el-input v-model="pageData.totalManufactureDowntimeTime" class="customer-input-color-red" readonly="readonly" style="width: 100px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.totalManufactureDowntimeTime" class="customer-input-color-red" |
|
|
|
|
|
readonly="readonly" style="width: 100px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="净制造时间:"> |
|
|
<el-form-item label="净制造时间:"> |
|
|
<el-input v-model="pageData.totalPureManufactureTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.totalPureManufactureTime" class="customer-input-color-red" |
|
|
|
|
|
readonly="readonly" style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -147,13 +170,16 @@ |
|
|
<el-input v-model="pageData.tillTime" disabled="disabled" style="width: 130px;"></el-input> |
|
|
<el-input v-model="pageData.tillTime" disabled="disabled" style="width: 130px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="生产时间"> |
|
|
<el-form-item label="生产时间"> |
|
|
<el-input v-model="pageData.sfdcProdTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.sfdcProdTime" class="customer-input-color-red" readonly="readonly" |
|
|
|
|
|
style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="调机时间"> |
|
|
<el-form-item label="调机时间"> |
|
|
<el-input v-model="pageData.sfdcSetupTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.sfdcSetupTime" class="customer-input-color-red" readonly="readonly" |
|
|
|
|
|
style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="制造时间"> |
|
|
<el-form-item label="制造时间"> |
|
|
<el-input v-model="pageData.sfdcManufactureTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.sfdcManufactureTime" class="customer-input-color-red" readonly="readonly" |
|
|
|
|
|
style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -161,13 +187,16 @@ |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item label="合格数量"> |
|
|
<el-form-item label="合格数量"> |
|
|
<el-input v-model="pageData.sfdcApprovedQty" class="customer-input-color-red" readonly="readonly" style="width: 130px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.sfdcApprovedQty" class="customer-input-color-red" readonly="readonly" |
|
|
|
|
|
style="width: 130px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="不合格数量"> |
|
|
<el-form-item label="不合格数量"> |
|
|
<el-input v-model="pageData.defectedQty" class="customer-input-color-red" readonly="readonly" style="width: 130px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.defectedQty" class="customer-input-color-red" readonly="readonly" |
|
|
|
|
|
style="width: 130px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="报告数量"> |
|
|
<el-form-item label="报告数量"> |
|
|
<el-input v-model="pageData.sfdcReportedQty" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="pageData.sfdcReportedQty" class="customer-input-color-red" readonly="readonly" |
|
|
|
|
|
style="width: 80px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="调机停机"> |
|
|
<el-form-item label="调机停机"> |
|
|
<el-input v-model="pageData.sfdcSetupDownTime" style="width: 80px;"></el-input> |
|
|
<el-input v-model="pageData.sfdcSetupDownTime" style="width: 80px;"></el-input> |
|
|
@ -259,6 +288,10 @@ |
|
|
finishRollWithNoFqc, |
|
|
finishRollWithNoFqc, |
|
|
getSORoutingPreviousOperationItemNo |
|
|
getSORoutingPreviousOperationItemNo |
|
|
} from '@/api/yieldReport/com_finish_roll.js'; |
|
|
} from '@/api/yieldReport/com_finish_roll.js'; |
|
|
|
|
|
import { |
|
|
|
|
|
getScheduleDateShift, |
|
|
|
|
|
} from "@/api/yieldReport/produce_report_normal.js"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
@ -535,6 +568,15 @@ export default { |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
// 获取排产日期 |
|
|
|
|
|
searchScheduleDateShift(scheduleDateShiftDto) { |
|
|
|
|
|
getScheduleDateShift(scheduleDateShiftDto).then(({data}) => { |
|
|
|
|
|
if (data.code == 0) { |
|
|
|
|
|
this.pageData.shiftDesc = data.map.ShiftNo |
|
|
|
|
|
this.pageData.scheduledDate = this.dayjs(data.map.scheduleddate).format('YYYY-MM-DD') |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
/*初始化页面参数*/ |
|
|
/*初始化页面参数*/ |
|
|
init(scheduleData, operatorData) { |
|
|
init(scheduleData, operatorData) { |
|
|
//初始化参数 |
|
|
//初始化参数 |
|
|
@ -544,11 +586,17 @@ export default { |
|
|
this.pageData.itemNo = scheduleData.itemNo; |
|
|
this.pageData.itemNo = scheduleData.itemNo; |
|
|
this.pageData.seqNo = scheduleData.seqNo; |
|
|
this.pageData.seqNo = scheduleData.seqNo; |
|
|
this.pageData.rollNo = scheduleData.rollNo; |
|
|
this.pageData.rollNo = scheduleData.rollNo; |
|
|
this.pageData.scheduledDate = scheduleData.scheduledDate; |
|
|
|
|
|
this.pageData.shiftNo = scheduleData.shiftNo; |
|
|
|
|
|
|
|
|
// this.pageData.scheduledDate = scheduleData.scheduledDate; |
|
|
|
|
|
// this.pageData.shiftNo = scheduleData.shiftNo; |
|
|
this.pageData.resourceId = scheduleData.resourceId; |
|
|
this.pageData.resourceId = scheduleData.resourceId; |
|
|
this.pageData.operatorId = operatorData.operatorId; |
|
|
this.pageData.operatorId = operatorData.operatorId; |
|
|
this.pageData.operatorName = operatorData.operatorName; |
|
|
this.pageData.operatorName = operatorData.operatorName; |
|
|
|
|
|
// let scheduleDateShiftDto = { |
|
|
|
|
|
// site: this.$store.state.user.site, |
|
|
|
|
|
// resourceId: scheduleData.resourceId, |
|
|
|
|
|
// currentDateTime: this.dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss') |
|
|
|
|
|
// } |
|
|
|
|
|
// this.searchScheduleDateShift(scheduleDateShiftDto) |
|
|
//重置时间 |
|
|
//重置时间 |
|
|
this.pageData.reportedTime = this.dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'); |
|
|
this.pageData.reportedTime = this.dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'); |
|
|
//初始化操作员对象 |
|
|
//初始化操作员对象 |
|
|
@ -617,7 +665,7 @@ export default { |
|
|
this.pageData.sfdcDownTime = this.pageData.totalManufactureDowntimeTime; |
|
|
this.pageData.sfdcDownTime = this.pageData.totalManufactureDowntimeTime; |
|
|
}); |
|
|
}); |
|
|
//3.刷新派工单的班次信息 |
|
|
//3.刷新派工单的班次信息 |
|
|
await getScheduleShiftData(this.scheduleData).then(({data}) => { |
|
|
|
|
|
|
|
|
await getScheduleShiftData(this.pageData).then(({data}) => { |
|
|
let specialAuth = 'N'; |
|
|
let specialAuth = 'N'; |
|
|
//区分是否存在班次 |
|
|
//区分是否存在班次 |
|
|
if (data.code == 500) { |
|
|
if (data.code == 500) { |
|
|
@ -751,7 +799,6 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*检查数据是否有效*/ |
|
|
/*检查数据是否有效*/ |
|
|
checkValidQty(row) { |
|
|
checkValidQty(row) { |
|
|
//判断当前是否为空 |
|
|
//判断当前是否为空 |
|
|
@ -920,6 +967,7 @@ export default { |
|
|
.customer-item { |
|
|
.customer-item { |
|
|
margin-top: -10px; |
|
|
margin-top: -10px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/*fieldset下table的样式*/ |
|
|
/*fieldset下table的样式*/ |
|
|
.customer-fieldset /deep/ .el-table__header th.is-leaf { |
|
|
.customer-fieldset /deep/ .el-table__header th.is-leaf { |
|
|
line-height: 16px; |
|
|
line-height: 16px; |
|
|
@ -949,6 +997,7 @@ div.table-input /deep/ input.el-input__inner{ |
|
|
width: 80px; |
|
|
width: 80px; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/*当前按钮的通用样式*/ |
|
|
/*当前按钮的通用样式*/ |
|
|
.customer-css .el-button--medium { |
|
|
.customer-css .el-button--medium { |
|
|
padding: 5px 5px; |
|
|
padding: 5px 5px; |
|
|
|