|
|
@@ -0,0 +1,52 @@
|
|
|
+<template>
|
|
|
+ <Navbar title="货架信息看板" :is-go-back="false" />
|
|
|
+ <a-card>
|
|
|
+ <a-form :model="shelfInfo" layout="inline">
|
|
|
+ <a-form-item label="货架编号">
|
|
|
+ <a-input v-model:value="shelfInfo.no" style="width: 220px" />
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item label="货架标题">
|
|
|
+ <a-select v-model:value="shelfInfo.name" style="width: 220px">
|
|
|
+ <a-select-option :value="'总装紧固件(上料区)'">总装紧固件(上料区)</a-select-option>
|
|
|
+ <a-select-option :value="'总装紧固件(取货区)'">总装紧固件(取货区)</a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item>
|
|
|
+ <a-button type="primary" @click="openBoard">打开</a-button>
|
|
|
+ </a-form-item>
|
|
|
+ </a-form>
|
|
|
+ </a-card>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup>
|
|
|
+import { ref } from 'vue';
|
|
|
+import { message } from 'ant-design-vue';
|
|
|
+import Common from '../common/Common';
|
|
|
+
|
|
|
+const shelfInfo = ref({
|
|
|
+ no: '',
|
|
|
+ name: '',
|
|
|
+});
|
|
|
+
|
|
|
+const openBoard = () => {
|
|
|
+ if (!shelfInfo.value.no || !shelfInfo.value.name) {
|
|
|
+ message.warning('请填写货架编号或货架标题');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ let type;
|
|
|
+ if (shelfInfo.value.name === '总装紧固件(上料区)') {
|
|
|
+ type = 'shelfOne.html';
|
|
|
+ } else if (shelfInfo.value.name === '总装紧固件(取货区)') {
|
|
|
+ type = 'shelfTwo.html';
|
|
|
+ }
|
|
|
+ const url = `/shelfBoard/html/${type}?shelfNumber=${shelfInfo.value.no}&shelfName=${shelfInfo.value.name}`;
|
|
|
+ window.open(url);
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+:deep(.ant-form-item .ant-form-item-label >label) {
|
|
|
+ font-size: 14px !important;
|
|
|
+ font-weight: 500 !important;
|
|
|
+}
|
|
|
+</style>
|