Browse Source

HL-5421考虑影响范围太大,封装单独属性控制

hella_online_20240821
wangyufei 3 months ago
parent
commit
a998dadef9
  1. 11
      src/components/BasicForm/src/BasicForm.vue
  2. 1
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue

11
src/components/BasicForm/src/BasicForm.vue

@ -78,7 +78,7 @@
<el-input v-model="formSchema.value" v-if="isDetail && formTypeDetail == 'InputString'" />
</template>
</Form>
<Tabs ref="tabRef" v-if="formType=='create'&&tableAllSchemas&&tableAllSchemas.tableFormColumns.find(item=>item.field == 'itemCode')" :tabsList="[{
<Tabs ref="tabRef" v-if="includeCollectionTable&&formType=='create'&&tableAllSchemas&&tableAllSchemas.tableFormColumns.find(item=>item.field == 'itemCode')" :tabsList="[{
label: '明细',
prop: 'TableForm'
},{
@ -135,7 +135,7 @@
@handleDeleteTable="handleDeleteTable"
/>
</div>
<div v-if="formType=='create'&&tableAllSchemas&&tableAllSchemas.tableFormColumns.find(item=>item.field == 'itemCode')" v-show="tabSheet=='CollectionTable'">
<div v-if="includeCollectionTable&&formType=='create'&&tableAllSchemas&&tableAllSchemas.tableFormColumns.find(item=>item.field == 'itemCode')" v-show="tabSheet=='CollectionTable'">
<CollectionTable
:tableFields="tableAllSchemas?tableAllSchemas.tableFormColumns:[]"
:tableData="tableData"
@ -369,7 +369,12 @@ const props = defineProps({
isCheckStrictly:{
type:Boolean,
default:false
}
},
// true ; false
includeCollectionTable:{
type:Boolean,
default:false
},
})
const { t } = useI18n() //

1
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue

@ -44,6 +44,7 @@
ref="formRef"
:isOpenSearchTable="true"
fieldTableColumn="fromPackingNumber"
:includeCollectionTable="true"
@success="getList"
:rules="InventorymoveRequestMainRules"
:formAllSchemas="InventorymoveRequestMain.allSchemas"

Loading…
Cancel
Save