|
@@ -39,12 +39,27 @@
|
|
|
<div class="mainContentBox">
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="4" class="boxStyle">
|
|
|
+ <div class="productInfo">
|
|
|
+ <div
|
|
|
+ class="productitleText"
|
|
|
+ style="font-size: 500; font-size: 24px"
|
|
|
+ >
|
|
|
+ 卫星通导模块
|
|
|
+ </div>
|
|
|
+ <div class="productitleText" style="color: #ffffff60">
|
|
|
+ ASF-ASFA-ASD-FAS
|
|
|
+ </div>
|
|
|
+ <div style="display: flex">
|
|
|
+ <div class="productitleText" style="color: #ffffff60">S/N</div>
|
|
|
+ <div class="productitleText"> 202501020215421532</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<!-- 侧边栏盒子 -->
|
|
|
<div class="commonTitle">工序</div>
|
|
|
<el-scrollbar
|
|
|
- style="height: calc(100vh - 120px); padding-bottom: 60px"
|
|
|
+ style="height: calc(100vh - 220px); padding-bottom: 60px"
|
|
|
>
|
|
|
- <Steps :opsArray="opsArray" />
|
|
|
+ <Steps :opsArray="opsArray" @init="init" />
|
|
|
</el-scrollbar>
|
|
|
</el-col>
|
|
|
<el-col :span="20">
|
|
@@ -111,38 +126,38 @@ store.processInfo = {
|
|
|
operationCode: "XFOP-0015",
|
|
|
operationName: "装配",
|
|
|
};
|
|
|
-store.scanInfo = {
|
|
|
- batchReport: 1,
|
|
|
- changeWhen: null,
|
|
|
- created: "2025-03-03 17:18:26",
|
|
|
- creator: "admin",
|
|
|
- currentState: "start",
|
|
|
- deptId: "1",
|
|
|
- id: "347",
|
|
|
- materialCode: "51264341413213",
|
|
|
- materialModel: "1S043-17(B)_60051S043T1_1S043-17(B)底遮板弹星发射天线(再入)",
|
|
|
- materialName: "底遮板弹星发射天线",
|
|
|
- nextStation: "调试工位-2",
|
|
|
- offLine: 0,
|
|
|
- operationId: 536,
|
|
|
- operationName: "装配",
|
|
|
- operator: "admin",
|
|
|
- orderCode: "DD2503010003",
|
|
|
- orderId: "64",
|
|
|
- orgId: "1",
|
|
|
- outsource: 0,
|
|
|
- realEndWhen: null,
|
|
|
- realStartWhen: "2025-03-03 17:18:26",
|
|
|
- repairId: "0",
|
|
|
- reworkId: "0",
|
|
|
- seqNo: "10.25.0021-0001",
|
|
|
- stanId: "54",
|
|
|
- totalTime: "0",
|
|
|
- updated: "2025-03-03 17:18:26",
|
|
|
- updator: "admin",
|
|
|
- workOrderCode: "10.25.0021",
|
|
|
- workOrderId: "158",
|
|
|
-};
|
|
|
+// store.scanInfo = {
|
|
|
+// batchReport: 1,
|
|
|
+// changeWhen: null,
|
|
|
+// created: "2025-03-03 17:18:26",
|
|
|
+// creator: "admin",
|
|
|
+// currentState: "start",
|
|
|
+// deptId: "1",
|
|
|
+// id: "347",
|
|
|
+// materialCode: "51264341413213",
|
|
|
+// materialModel: "1S043-17(B)_60051S043T1_1S043-17(B)底遮板弹星发射天线(再入)",
|
|
|
+// materialName: "底遮板弹星发射天线",
|
|
|
+// nextStation: "调试工位-2",
|
|
|
+// offLine: 0,
|
|
|
+// operationId: 536,
|
|
|
+// operationName: "装配",
|
|
|
+// operator: "admin",
|
|
|
+// orderCode: "DD2503010003",
|
|
|
+// orderId: "64",
|
|
|
+// orgId: "1",
|
|
|
+// outsource: 0,
|
|
|
+// realEndWhen: null,
|
|
|
+// realStartWhen: "2025-03-03 17:18:26",
|
|
|
+// repairId: "0",
|
|
|
+// reworkId: "0",
|
|
|
+// seqNo: "10.25.0021-0001",
|
|
|
+// stanId: "54",
|
|
|
+// totalTime: "0",
|
|
|
+// updated: "2025-03-03 17:18:26",
|
|
|
+// updator: "admin",
|
|
|
+// workOrderCode: "10.25.0021",
|
|
|
+// workOrderId: "158",
|
|
|
+// };
|
|
|
store.useSeqNo = "10.25.0021-0001";
|
|
|
const opsArray = [
|
|
|
{
|
|
@@ -464,39 +479,55 @@ const getOpCompentArray = async () => {
|
|
|
const setSelectIndex = (index) => {
|
|
|
selectIndex.value = index;
|
|
|
};
|
|
|
+const init = async () => {
|
|
|
+ console.log("111");
|
|
|
+ // if (recondOPId.value == null || qrCode.value == null) {
|
|
|
+ // //相当于首次进入该路由
|
|
|
+ // await getOpCompentArray();
|
|
|
+ // } else {
|
|
|
+ // if (
|
|
|
+ // recondOPId.value != store.odersData.operationId ||
|
|
|
+ // qrCode.value != store.scanInfo.seqNo
|
|
|
+ // ) {
|
|
|
+ // //当发生改变时
|
|
|
+ // setSelectIndex(0);
|
|
|
+ // await getOpCompentArray();
|
|
|
+ // key.value = !key.value;
|
|
|
+ // } else {
|
|
|
+ // await getOpCompentArray();
|
|
|
+ // if (
|
|
|
+ // !instance.devtoolsRawSetupState.router.options.history.state.forward
|
|
|
+ // ) {
|
|
|
+ // key.value = !key.value;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+};
|
|
|
onActivated(async () => {
|
|
|
//缓存组件数据逻辑
|
|
|
- if (recondOPId.value == null || qrCode.value == null) {
|
|
|
- //相当于首次进入该路由
|
|
|
- await getOpCompentArray();
|
|
|
- } else {
|
|
|
- if (
|
|
|
- recondOPId.value != store.odersData.operationId ||
|
|
|
- qrCode.value != store.scanInfo.seqNo
|
|
|
- ) {
|
|
|
- //当发生改变时
|
|
|
- setSelectIndex(0);
|
|
|
- await getOpCompentArray();
|
|
|
- key.value = !key.value;
|
|
|
- } else {
|
|
|
- await getOpCompentArray();
|
|
|
- if (
|
|
|
- !instance.devtoolsRawSetupState.router.options.history.state.forward
|
|
|
- ) {
|
|
|
- key.value = !key.value;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ init();
|
|
|
});
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.boxStyle {
|
|
|
height: calc(100vh - 80px);
|
|
|
+
|
|
|
.commonTitle {
|
|
|
color: var(--ohos-text);
|
|
|
font-size: 28px;
|
|
|
}
|
|
|
+ .productInfo {
|
|
|
+ width: 100%;
|
|
|
+ height: 100px;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ border-radius: 16px;
|
|
|
+ background-color: var(--ohos-area-bg);
|
|
|
+ padding: 10px 20px;
|
|
|
+ .productitleText {
|
|
|
+ color: white;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.optionBox {
|
|
|
height: calc(100vh - 150px);
|