Browse Source

半成品添加2个参数

dengrui 6 tháng trước cách đây
mục cha
commit
b5c876177f

+ 9 - 0
src/views/plan/workOrder/components/work-order-page.vue

@@ -55,6 +55,12 @@ const props = defineProps({
       return null;
     },
   },
+  semiFinishedStock: {
+    type: String,
+    default: () => {
+      return null;
+    },
+  },
   workOrderState: {
     type: String,
     default: () => {
@@ -274,6 +280,9 @@ option.value = Object.assign(option.value, {
 
 onMounted(() => {
   multipleKeyVal.value = props.multipleKey;
+  if (props.semiFinishedStock != null) {
+    search.value.semiFinishedStock = String(props.semiFinishedStock);
+  }
   if (props.queryComplete != null) {
     search.value.queryComplete = String(props.queryComplete);
   }

+ 6 - 1
src/views/storage/semi/index.vue

@@ -36,7 +36,12 @@
       width="950px"
       @close="dialog1.visible = false"
     >
-      <work-order-page :opType="0" @order-info="materialInfo1" />
+      <work-order-page
+        :opType="0"
+        :semiFinishedStock="1"
+        :queryComplete="1"
+        @order-info="materialInfo1"
+      />
     </el-dialog>
     <el-dialog
       v-model="dialog2.visible"