Selaa lähdekoodia

1.修改bug。

jiaxiaoqiang 1 vuosi sitten
vanhempi
commit
7d972fe229

+ 1 - 0
src/store/modules/dictionary.ts

@@ -10,6 +10,7 @@ export const useDictionaryStore = defineStore("dictionaryStore", () => {
     "outsource_state",
     "work_order_seq_state",
     "accessories_type",
+    "danwei_type",
   ];
   const dicts = ref<{ [key: string]: any[] }>({});
 

+ 6 - 1
src/views/material-flow/creatTask.vue

@@ -170,7 +170,12 @@ const createTask = () => {
 
   addMaterialFlow(params).then((res) => {
     ElMessage.success("创建成功");
-    console.log("res", res);
+
+    //1366 一体机—物料流转任务创建成功后 清空页面数据
+    currentBox.value = "";
+    boxDetail.value = {};
+    scanCodeInput.value = "";
+    materialList.value = [];
   });
 };
 </script>

+ 9 - 2
src/views/pro-operation/call-materiel/components/materiel-box-detail.vue

@@ -17,12 +17,17 @@
             class="item-container"
           >
             <div>
-              <div class="item-header">{{ item?.materialName }}</div>
+              <div class="item-header">
+                {{ item?.materialName }} {{ item?.materialCode }}
+                {{ item?.batchCode }}
+              </div>
               <div class="item-describe">{{ item?.spec }}</div>
             </div>
             <div>
               <span class="item-count">{{ item?.num }}</span>
-              <span class="item-unit">{{ item?.unit }}</span>
+              <span class="item-unit">
+                {{ dictS.getLableByValue("danwei_type", item?.unit) }}
+              </span>
             </div>
           </div>
         </el-scrollbar>
@@ -40,7 +45,9 @@
 
 <script lang="ts" setup>
 import { outSuitBox } from "@/api/process/callMateriel";
+import { useDictionaryStore } from "@/store";
 
+const dictS = useDictionaryStore();
 const visible = ref(false);
 
 let callBack: Function | null = null;