|
@@ -115,10 +115,10 @@ const stepComponents = ref([
|
|
|
compentName: "印刷板",
|
|
|
compentType: "printboard",
|
|
|
},
|
|
|
- // {
|
|
|
- // compentName: "检验批号",
|
|
|
- // compentType: "jianyanpihao",
|
|
|
- // },
|
|
|
+ {
|
|
|
+ compentName: "产品文档",
|
|
|
+ compentType: "pdmfile",
|
|
|
+ },
|
|
|
]);
|
|
|
const setComponents = () => {
|
|
|
// if (store.scanInfo.inspection == 1 || store.scanInfo.firstCheck == 1) {
|
|
@@ -130,22 +130,17 @@ const setComponents = () => {
|
|
|
// compentType: "xunjian",
|
|
|
// });
|
|
|
// }
|
|
|
- if (store.processInfo.documentShow == 1) {
|
|
|
- stepComponents.value = stepComponents.value.filter(
|
|
|
- (item) => item.compentName !== "产品文档"
|
|
|
- );
|
|
|
- stepComponents.value.push({
|
|
|
- compentName: "产品文档",
|
|
|
- compentType: "pdmfile",
|
|
|
- });
|
|
|
- }
|
|
|
- if (
|
|
|
- store.odersData.operationType == "SX" ||
|
|
|
- store.odersData.operationType == "RX"
|
|
|
- ) {
|
|
|
- stepComponents.value = stepComponents.value.filter(
|
|
|
- (item) => item.compentName !== "返工"
|
|
|
- );
|
|
|
+ // if (store.processInfo.documentShow == 1) {
|
|
|
+ // stepComponents.value = stepComponents.value.filter(
|
|
|
+ // (item) => item.compentName !== "产品文档"
|
|
|
+ // );
|
|
|
+ // stepComponents.value.push({
|
|
|
+ // compentName: "产品文档",
|
|
|
+ // compentType: "pdmfile",
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ if (store.odersData.operationType == "SX" || store.odersData.operationType == "RX") {
|
|
|
+ stepComponents.value = stepComponents.value.filter((item) => item.compentName !== "返工");
|
|
|
}
|
|
|
};
|
|
|
onMounted(async () => {
|