|
@@ -2,16 +2,24 @@
|
|
|
<!-- 扫码板块 -->
|
|
|
<div class="commonTitle">扫码</div>
|
|
|
<div class="icon">
|
|
|
- <img class="imgIcon" src="@/assets/icons/shaoma.svg" />
|
|
|
+ <img class="imgIcon" src="@/assets/icons/shaoma.svg" @click="toProSteps" />
|
|
|
</div>
|
|
|
<div class="body">
|
|
|
- <ScanCodeInput :inputValue="inputValue" @setinputvalue="setInputValue" />
|
|
|
+ <ScanCodeInput :inputValue="inputValue" @setinputvalue="setInputValue" @enterfnc="toProSteps" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import ScanCodeInput from "@/components/ScanCodeInput/index.vue";
|
|
|
+import { useProcessStore } from "@/store";
|
|
|
+
|
|
|
+const store = useProcessStore();
|
|
|
+const router = useRouter();
|
|
|
const inputValue = ref("12020100000052404100011");
|
|
|
+const toProSteps = () => {
|
|
|
+ //判定是否选择了未完成订单以及工序
|
|
|
+ router.push({ path: "/pro-steps" });
|
|
|
+};
|
|
|
const setInputValue = (value: any) => {
|
|
|
inputValue.value = value;
|
|
|
};
|