|
|
@ -586,7 +586,7 @@ |
|
|
<el-form style="text-align: center;"> |
|
|
<el-form style="text-align: center;"> |
|
|
<el-form-item style="margin-top: 10px;"> |
|
|
<el-form-item style="margin-top: 10px;"> |
|
|
<el-button class="customer-bun-mid" type="primary" @click="qualityInspectionModal" |
|
|
<el-button class="customer-bun-mid" type="primary" @click="qualityInspectionModal" |
|
|
style="margin-left: 15px; margin-bottom: 5px;"> |
|
|
|
|
|
|
|
|
:style="processInspectionButtonStyle + 'margin-left: 15px; margin-bottom: 5px;'"> |
|
|
过程检验 |
|
|
过程检验 |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -728,8 +728,7 @@ |
|
|
@refreshPageData="refreshPageData"></ComMalformedMaterial> |
|
|
@refreshPageData="refreshPageData"></ComMalformedMaterial> |
|
|
|
|
|
|
|
|
<!-- 过程检验组件 --> |
|
|
<!-- 过程检验组件 --> |
|
|
<ComProcessInspection :visible.sync="showProcessInspectionFlag"> |
|
|
|
|
|
</ComProcessInspection> |
|
|
|
|
|
|
|
|
<ComProcessInspection :visible.sync="showProcessInspectionFlag"></ComProcessInspection> |
|
|
|
|
|
|
|
|
<!-- SOP预览弹出框 --> |
|
|
<!-- SOP预览弹出框 --> |
|
|
<el-dialog title="SOP预览" :visible.sync="showSopPreviewFlag" width="50%" top="5vh" :before-close="closeSopPreview"> |
|
|
<el-dialog title="SOP预览" :visible.sync="showSopPreviewFlag" width="50%" top="5vh" :before-close="closeSopPreview"> |
|
|
@ -837,7 +836,8 @@ import { |
|
|
switchrollReverse, |
|
|
switchrollReverse, |
|
|
getSfdcFlowLabelData, |
|
|
getSfdcFlowLabelData, |
|
|
rollSplit, |
|
|
rollSplit, |
|
|
getOrderFirstItemNo |
|
|
|
|
|
|
|
|
getOrderFirstItemNo, |
|
|
|
|
|
checkProcessInspectionPendingCount |
|
|
} from "@/api/yieldReport/produce_report_normal.js"; |
|
|
} from "@/api/yieldReport/produce_report_normal.js"; |
|
|
import { |
|
|
import { |
|
|
getUserSpecialSecurity, |
|
|
getUserSpecialSecurity, |
|
|
@ -894,6 +894,7 @@ export default { |
|
|
showMalformedMaterialFlag: false,// 2022-11-17 |
|
|
showMalformedMaterialFlag: false,// 2022-11-17 |
|
|
malformedMaterialButtonFlag: true,// 2022-11-17 |
|
|
malformedMaterialButtonFlag: true,// 2022-11-17 |
|
|
showProcessInspectionFlag: false,// 过程检验弹窗显示状态 |
|
|
showProcessInspectionFlag: false,// 过程检验弹窗显示状态 |
|
|
|
|
|
processInspectionButtonStyle: '', // 过程检验按钮样式 |
|
|
showDefault: false, |
|
|
showDefault: false, |
|
|
popoverFlag: false, |
|
|
popoverFlag: false, |
|
|
showNotOverFlag: false, |
|
|
showNotOverFlag: false, |
|
|
@ -4194,6 +4195,9 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 刷新过程检验按钮状态 |
|
|
|
|
|
this.checkProcessInspectionPendingCount(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//设置参数 |
|
|
//设置参数 |
|
|
@ -4617,9 +4621,33 @@ export default { |
|
|
|
|
|
|
|
|
// 质量检验相关方法 |
|
|
// 质量检验相关方法 |
|
|
qualityInspectionModal() { |
|
|
qualityInspectionModal() { |
|
|
|
|
|
// 查询过程检验待检验记录数量 |
|
|
|
|
|
this.checkProcessInspectionPendingCount(); |
|
|
this.showProcessInspectionFlag = true; |
|
|
this.showProcessInspectionFlag = true; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 查询过程检验待检验记录数量 |
|
|
|
|
|
checkProcessInspectionPendingCount() { |
|
|
|
|
|
const params = { |
|
|
|
|
|
site: this.scheduleData.site, |
|
|
|
|
|
//buNo: this.scheduleData.buNo, |
|
|
|
|
|
orderNo: this.scheduleData.orderNo |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
checkProcessInspectionPendingCount(params).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
// 如果有待检验记录,设置按钮颜色为#d83c70 |
|
|
|
|
|
if (data.count > 0) { |
|
|
|
|
|
this.processInspectionButtonStyle = 'background-color: #d83c70; border-color: #d83c70;'; |
|
|
|
|
|
} else { |
|
|
|
|
|
this.processInspectionButtonStyle = ''; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
this.processInspectionButtonStyle = ''; |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
updateSampleModal() { |
|
|
updateSampleModal() { |
|
|
this.$message.info('更换样片功能'); |
|
|
this.$message.info('更换样片功能'); |
|
|
// TODO: 实现更换样片功能 |
|
|
// TODO: 实现更换样片功能 |
|
|
|