فهرست منبع

库存预警更改

qinhb 9 ماه پیش
والد
کامیت
6d54b2cc62
2فایلهای تغییر یافته به همراه8 افزوده شده و 3 حذف شده
  1. 7 1
      src/views/base/materials/components/choice-item-page.vue
  2. 1 2
      src/views/storage/alarm/index.vue

+ 7 - 1
src/views/base/materials/components/choice-item-page.vue

@@ -33,6 +33,12 @@ const props = defineProps({
     default: () => {
       return '';
     }
+  },
+  enabled: {
+    type: String,
+    default: ()=>{
+      return '0'
+    }
   }
 })
 // 传入一个url,后面不带/
@@ -176,7 +182,7 @@ option.value = Object.assign(option.value, {
 
 onMounted(() => {
   search.value.prodtCode = props.materialCode
-  search.value.enabled = "0"
+  search.value.enabled = props.enabled
   dataList();
 });
 </script>

+ 1 - 2
src/views/storage/alarm/index.vue

@@ -33,14 +33,13 @@
         width="950px"
         @close="dialog1.visible = false"
     >
-      <choice-item-page @materialInfo="materialInfo"/>
+      <choice-item-page enabled="" @materialInfo="materialInfo"/>
     </el-dialog>
   </div>
 </template>
 <script setup>
 import { ref, getCurrentInstance } from "vue";
 import { useCrud } from "@/hooks/userCrud";
-import ButtonPermKeys from "@/common/configs/buttonPermission";
 
 import { useCommonStoreHook } from "@/store";
 import dictDataUtil from "@/common/configs/dictDataUtil";