|
@@ -1,5 +1,9 @@
|
|
|
<template>
|
|
|
- <el-scrollbar>
|
|
|
+ <div class="container-desperse">
|
|
|
+ <div class="left">2</div>
|
|
|
+ <div class="right">3</div>
|
|
|
+ </div>
|
|
|
+ <!-- <el-scrollbar>
|
|
|
<div class="grid-container">
|
|
|
<div
|
|
|
v-for="(box, index) in merterielBoxes"
|
|
@@ -19,100 +23,92 @@
|
|
|
<div class="suit-desc">当前库存</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </el-scrollbar>
|
|
|
- <CallHistory ref="callHistoryRef" />
|
|
|
+ </div>
|
|
|
+ </el-scrollbar>-->
|
|
|
+ <!-- <CallHistory ref="callHistoryRef" />
|
|
|
<MarterielBoxDetail ref="materielBoxDetailRef" />
|
|
|
<ChangeCount ref="changeCountRef" description="双面胶黑色" title="叫料数量" />
|
|
|
- <ConfirmMessage ref="confirmMessageRef" />
|
|
|
+ <ConfirmMessage ref="confirmMessageRef" /> -->
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import CallHistory from "@/views/pro-operation/call-materiel/components/call-history.vue";
|
|
|
-import MarterielBoxDetail from "@/views/pro-operation/call-materiel/components/materiel-box-detail.vue";
|
|
|
-import ChangeCount from "@/components/CommonDialogs/ChangeCount.vue";
|
|
|
-import ConfirmMessage from "@/components/CommonDialogs/ConfirmMessage.vue";
|
|
|
-import { stockMaterialList } from "@/api/process/callMateriel";
|
|
|
-import { useProcessStore } from "@/store/modules/processView";
|
|
|
+// import CallHistory from "@/views/pro-operation/call-materiel/components/call-history.vue";
|
|
|
+// import MarterielBoxDetail from "@/views/pro-operation/call-materiel/components/materiel-box-detail.vue";
|
|
|
+// import ChangeCount from "@/components/CommonDialogs/ChangeCount.vue";
|
|
|
+// import ConfirmMessage from "@/components/CommonDialogs/ConfirmMessage.vue";
|
|
|
+// import { stockMaterialList } from "@/api/process/callMateriel";
|
|
|
+// import { useProcessStore } from "@/store/modules/processView";
|
|
|
+// import { useDictionaryStore } from "@/store/modules/dictionary";
|
|
|
|
|
|
-const processStore = useProcessStore();
|
|
|
-const merterielBoxes = ref<any>([]);
|
|
|
+// const processStore = useProcessStore();
|
|
|
+// const dictStore = useDictionaryStore();
|
|
|
+// const merterielBoxes = ref<any>([]);
|
|
|
|
|
|
onMounted(() => {
|
|
|
+ // console.log("dictS.dicts", dictStore.dicts.accessories_type);
|
|
|
+ // merterielBoxes.value = dictStore.dicts.accessories_type.keys();
|
|
|
// 获取数据
|
|
|
- stockMaterialList(processStore.scanInfo.materialCode).then((res) => {
|
|
|
- merterielBoxes.value = res.data;
|
|
|
- });
|
|
|
+ // stockMaterialList(processStore.scanInfo.materialCode).then((res) => {
|
|
|
+ // merterielBoxes.value = res.data;
|
|
|
+ // });
|
|
|
});
|
|
|
-
|
|
|
-// =========叫料历史
|
|
|
-const callHistoryRef = ref<InstanceType<typeof CallHistory>>();
|
|
|
-
|
|
|
-// =========料箱详情
|
|
|
-const materielBoxDetailRef = ref<InstanceType<typeof MarterielBoxDetail>>();
|
|
|
-// =========叫料数量
|
|
|
-const changeCountRef = ref<InstanceType<typeof ChangeCount>>();
|
|
|
-
|
|
|
-// =========确认弹窗
|
|
|
-const confirmMessageRef = ref<InstanceType<typeof ConfirmMessage>>();
|
|
|
-
|
|
|
-const testClick = (index: number) => {
|
|
|
- callHistoryRef.value?.showDrawer();
|
|
|
- materielBoxDetailRef.value?.showDialog("", () => {});
|
|
|
- changeCountRef.value?.showDialog(12, (value: number) => {
|
|
|
- console.log(value);
|
|
|
- });
|
|
|
- confirmMessageRef.value?.showDialog(
|
|
|
- "工位上料提示",
|
|
|
- "料箱:LX1321312已到达缓存位,是否立即工位上料?",
|
|
|
- "工位上料",
|
|
|
- () => {}
|
|
|
- );
|
|
|
-};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-.grid-container {
|
|
|
- width: 100%;
|
|
|
- display: grid;
|
|
|
- /*行间距*/
|
|
|
- grid-row-gap: 24px;
|
|
|
- /*列间距*/
|
|
|
- grid-column-gap: 24px;
|
|
|
+.container-desperse {
|
|
|
+ display: flex;
|
|
|
+ .left {
|
|
|
+ width: 300px;
|
|
|
+ background-color: red;
|
|
|
+ }
|
|
|
|
|
|
- grid-template-columns: 1fr 1fr 1fr;
|
|
|
- overflow-y: auto;
|
|
|
+ .right {
|
|
|
+ flex: 1;
|
|
|
+ // margin-left: 12%;
|
|
|
+ background-color: black;
|
|
|
+ }
|
|
|
+}
|
|
|
+// .grid-container {
|
|
|
+// width: 100%;
|
|
|
+// display: grid;
|
|
|
+// /*行间距*/
|
|
|
+// grid-row-gap: 24px;
|
|
|
+// /*列间距*/
|
|
|
+// grid-column-gap: 24px;
|
|
|
|
|
|
- .suit-box {
|
|
|
- height: 210px;
|
|
|
- background-color: white;
|
|
|
- border-radius: 16px 16px 16px 16px;
|
|
|
- padding: 24px 30px;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: start;
|
|
|
- justify-content: space-between;
|
|
|
- position: relative;
|
|
|
+// grid-template-columns: 1fr 1fr 1fr;
|
|
|
+// overflow-y: auto;
|
|
|
|
|
|
- .suit-title {
|
|
|
- font-weight: 500;
|
|
|
- font-size: 20px;
|
|
|
- color: rgba(0, 0, 0, 0.9);
|
|
|
- text-align: left;
|
|
|
- }
|
|
|
+// .suit-box {
|
|
|
+// height: 210px;
|
|
|
+// background-color: white;
|
|
|
+// border-radius: 16px 16px 16px 16px;
|
|
|
+// padding: 24px 30px;
|
|
|
+// display: flex;
|
|
|
+// flex-direction: column;
|
|
|
+// align-items: start;
|
|
|
+// justify-content: space-between;
|
|
|
+// position: relative;
|
|
|
|
|
|
- .suit-count {
|
|
|
- font-weight: bold;
|
|
|
- font-size: 38px;
|
|
|
- color: rgba(0, 0, 0, 0.9);
|
|
|
- text-align: left;
|
|
|
- }
|
|
|
+// .suit-title {
|
|
|
+// font-weight: 500;
|
|
|
+// font-size: 20px;
|
|
|
+// color: rgba(0, 0, 0, 0.9);
|
|
|
+// text-align: left;
|
|
|
+// }
|
|
|
|
|
|
- .suit-desc {
|
|
|
- font-size: 20px;
|
|
|
- color: rgba(0, 0, 0, 0.6);
|
|
|
- text-align: left;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
+// .suit-count {
|
|
|
+// font-weight: bold;
|
|
|
+// font-size: 38px;
|
|
|
+// color: rgba(0, 0, 0, 0.9);
|
|
|
+// text-align: left;
|
|
|
+// }
|
|
|
+
|
|
|
+// .suit-desc {
|
|
|
+// font-size: 20px;
|
|
|
+// color: rgba(0, 0, 0, 0.6);
|
|
|
+// text-align: left;
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
</style>
|