Browse Source

去除indexTableColumn-- 错误的字段

master_hella_20240701
yufei0306 6 months ago
parent
commit
8b80464d79
  1. 11
      src/components/BasicForm/src/BasicForm.vue
  2. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
  3. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

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

@ -274,12 +274,7 @@ const props = defineProps({
required: false,
default: false
},
// TableForm fieldTableColumn indexTableColumn
indexTableColumn :{
type: Number,
required: false,
default: 0
},
fieldTableColumn:{
type: String,
required: false,
@ -515,11 +510,7 @@ const handleAddTable = () => {
tableFormKeys[item.field] = item.default ? item.default : ''
})
if(props.fieldTableColumn!=''){
console.log('handleAddTable',tableAllSchemas.value.tableFormColumns.find(item=>item.field==props.fieldTableColumn))
inpuFocus(tableAllSchemas.value.tableFormColumns.find(item=>item.field==props.fieldTableColumn),tableFormKeys,0)
}else{
inpuFocus(tableAllSchemas.value.tableFormColumns[props.indexTableColumn],tableFormKeys,0)
}
}else{
emit('handleAddTable')

2
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue

@ -44,7 +44,7 @@
<BasicForm ref="formRef"
@success="getList"
:isOpenSearchTable="true"
fieldTableColumn="lineNumber"
fieldTableColumn="itemCode"
:rules="PurchaseMainRules"
:formAllSchemas="PurchaseMain.allSchemas"
:tableAllSchemas="PurchaseDetail.allSchemas"

2
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -29,7 +29,7 @@
<!-- 表单弹窗添加/修改 -->
<BasicForm ref="formRef" @success="getList"
:isOpenSearchTable="true"
fieldTableColumn="poNumber"
fieldTableColumn="poLine"
:rules="PurchasePlanMainRules"
:formAllSchemas="PurchasePlanMain.allSchemas"
:tableAllSchemas="PurchasePlanDetail.allSchemas"

Loading…
Cancel
Save