lxf 1 жил өмнө
parent
commit
4d829d5dcc

+ 4 - 0
src/views/group/product/management/index.vue

@@ -102,6 +102,7 @@ import Modification from "/src/components/makeProduct/modification/index";
 const { proxy } = getCurrentInstance();
 const props = defineProps({
   selectStatus: Boolean,
+  type: String,
 });
 const sourceList = ref({
   data: [],
@@ -245,6 +246,9 @@ const getList = async (req, status) => {
   } else {
     sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
   }
+  if (props.type && props.type === "null") {
+    sourceList.value.pagination.type = null;
+  }
   loading.value = true;
   proxy.post("/sku/page", sourceList.value.pagination).then((res) => {
     sourceList.value.data = res.rows;

+ 1 - 1
src/views/subsidiary/order/management/add.vue

@@ -338,7 +338,7 @@
     </el-card>
 
     <el-dialog title="选择产品" v-if="openProduct" v-model="openProduct" width="90%">
-      <SelectProduct :selectStatus="true" @selectProduct="selectProduct"></SelectProduct>
+      <SelectProduct :selectStatus="true" :type="'null'" @selectProduct="selectProduct"></SelectProduct>
       <template #footer>
         <el-button @click="openProduct = false" size="large">关 闭</el-button>
       </template>