|
|
@@ -120,7 +120,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref, reactive } from 'vue';
|
|
|
+import { ref, reactive, onMounted } from 'vue';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import PageHeader from '../common/PageHeader.vue';
|
|
|
import { cfStockInLeave } from '../api/stockIn.js';
|
|
|
@@ -137,7 +137,15 @@ const loading = ref(false);
|
|
|
const pickingModalVisible = ref(false);
|
|
|
|
|
|
// 是否为外侧屏幕
|
|
|
-const isOut = ref(true);
|
|
|
+const isOut = ref(false);
|
|
|
+
|
|
|
+// 初始化时从localStorage读取isOut值
|
|
|
+onMounted(() => {
|
|
|
+ const storedIsOut = localStorage.getItem('isOut');
|
|
|
+ if (storedIsOut !== null) {
|
|
|
+ isOut.value = storedIsOut === 'true';
|
|
|
+ }
|
|
|
+});
|
|
|
|
|
|
// 统计数据
|
|
|
const statistics = reactive([
|
|
|
@@ -312,70 +320,57 @@ const outButtons = reactive([
|
|
|
color: 'green',
|
|
|
action: 'materialReturn',
|
|
|
},
|
|
|
- {
|
|
|
- label: '出库确认',
|
|
|
- icon: 'fa-arrow-down',
|
|
|
- color: 'yellow',
|
|
|
- action: 'materialOutLeave',
|
|
|
- },
|
|
|
-
|
|
|
{
|
|
|
label: '还料',
|
|
|
icon: 'fa-arrow-up',
|
|
|
- color: 'red',
|
|
|
- action: 'materialIn',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '还料离开',
|
|
|
- icon: 'fa-arrow-down',
|
|
|
color: 'yellow',
|
|
|
- action: 'materialInLeave',
|
|
|
+ action: 'materialIn',
|
|
|
},
|
|
|
{
|
|
|
label: 'AGV RFID校验',
|
|
|
icon: 'fa-wifi',
|
|
|
- color: 'blue',
|
|
|
+ color: 'red',
|
|
|
action: 'agvRfidRecognition',
|
|
|
},
|
|
|
-
|
|
|
- // 测试待删除
|
|
|
- {
|
|
|
- label: '还料区管理',
|
|
|
- icon: 'fa-undo',
|
|
|
- color: 'green',
|
|
|
- action: 'returnManagement',
|
|
|
- },
|
|
|
{
|
|
|
- label: '取料区管理',
|
|
|
- icon: 'fa-arrow-down',
|
|
|
- color: 'red',
|
|
|
- action: 'deliverManagement',
|
|
|
+ label: '成品入库',
|
|
|
+ icon: 'fa-boxes',
|
|
|
+ color: 'blue',
|
|
|
+ action: 'finishedProductIn',
|
|
|
},
|
|
|
+
|
|
|
+ // 测试待删除
|
|
|
+ // {
|
|
|
+ // label: '还料区管理',
|
|
|
+ // icon: 'fa-undo',
|
|
|
+ // color: 'green',
|
|
|
+ // action: 'returnManagement',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '取料区管理',
|
|
|
+ // icon: 'fa-arrow-down',
|
|
|
+ // color: 'red',
|
|
|
+ // action: 'deliverManagement',
|
|
|
+ // },
|
|
|
]);
|
|
|
const inButtons = reactive([
|
|
|
{
|
|
|
- label: '还料',
|
|
|
- icon: 'fa-hand-holding',
|
|
|
- color: 'blue',
|
|
|
- action: 'materialIn',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '拣货',
|
|
|
+ label: '出库确认',
|
|
|
icon: 'fa-undo',
|
|
|
- color: 'green',
|
|
|
- action: 'materialReturn',
|
|
|
+ color: 'blue',
|
|
|
+ action: 'materialOutLeave',
|
|
|
},
|
|
|
{
|
|
|
label: '还料离开',
|
|
|
icon: 'fa-arrow-down',
|
|
|
- color: 'yellow',
|
|
|
+ color: 'green',
|
|
|
action: 'materialInLeave',
|
|
|
},
|
|
|
{
|
|
|
- label: 'AGV RFID校验',
|
|
|
- icon: 'fa-wifi',
|
|
|
- color: 'blue',
|
|
|
- action: 'agvRfidRecognition',
|
|
|
+ label: '成品出库',
|
|
|
+ icon: 'fa-boxes',
|
|
|
+ color: 'red',
|
|
|
+ action: 'finishedProductOut',
|
|
|
},
|
|
|
]);
|
|
|
|