Handy_Cao 1 年之前
父节点
当前提交
91daf6e2bd

+ 1 - 3
src/packages/mobile/views/order/position/Index.vue

@@ -12,7 +12,7 @@
         <Tabs class="van-tabs--list" v-model:active="active" :swipe-threshold="4">
             <template v-for="(item, index) in components" :key="index">
                 <Tab :title="item.title" :name="index">
-                    <component :is="item.component" v-bind="{ fromTrade, goodsCode }" />
+                    <component :is="item.component" />
                 </Tab>
             </template>
         </Tabs>
@@ -28,8 +28,6 @@ import { useComponent } from '@/hooks/component'
 import { i18n } from '@/stores'
 
 const { global: { t } } = i18n
-const fromTrade = false
-const goodsCode = ''
 
 const components = [
     {

+ 2 - 3
src/packages/mobile/views/order/position/components/pricing/list/Index.vue

@@ -83,11 +83,10 @@ const callBack = (item: Model.TradePositionRsp) => {
 const props = defineProps({
     fromTrade: {
         type: Boolean,
-        required: true
+        default: false
     },
     goodsCode: {
-        type: String,
-        required: true
+        type: String
     }
 })