|
@ -67,8 +67,8 @@ |
|
|
:apiUpdate="InventorymoveRequestDetailApi.updateInventorymoveRequestDetail" |
|
|
:apiUpdate="InventorymoveRequestDetailApi.updateInventorymoveRequestDetail" |
|
|
:apiPage="InventorymoveRequestDetailApi.getInventorymoveRequestDetailPage" |
|
|
:apiPage="InventorymoveRequestDetailApi.getInventorymoveRequestDetailPage" |
|
|
:apiDelete="InventorymoveRequestDetailApi.deleteInventorymoveRequestDetail" |
|
|
:apiDelete="InventorymoveRequestDetailApi.deleteInventorymoveRequestDetail" |
|
|
:Echo="Echo" |
|
|
|
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
|
|
|
@detailOpenForm="detailOpenForm" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
<!-- 导入 --> |
|
@ -271,7 +271,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
// console.log(InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromPackingNumber')).tableForm.searchCondition.find(item => (item.key == 'warehouseCode'))); |
|
|
|
|
|
} |
|
|
} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
@ -310,10 +309,6 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 子表新增的时候选择表格之后需要会显得字段 |
|
|
|
|
|
// const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom'] |
|
|
|
|
|
const Echo = [] |
|
|
|
|
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
// 获得表格的各种操作 |
|
|
const { getList, setSearchParams } = tableMethods |
|
|
const { getList, setSearchParams } = tableMethods |
|
|
|
|
|
|
|
@ -440,9 +435,31 @@ const openForm =async (type: string, row?: number) => { |
|
|
formRef.value.open(type, row) |
|
|
formRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 详情 新增/编辑事件 |
|
|
|
|
|
*/ |
|
|
|
|
|
const detailOpenForm = (type, row) => { |
|
|
|
|
|
if(InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.find(item => (item.key == 'warehouseCode')) == undefined){ |
|
|
|
|
|
InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.push({ |
|
|
|
|
|
key: 'warehouseCode', |
|
|
|
|
|
value: fromWarehouseCodeMain.value, |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.find(item => { |
|
|
|
|
|
if (item.key == 'warehouseCode') { |
|
|
|
|
|
item.value = fromWarehouseCodeMain.value |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const fromWarehouseCodeMain = ref() |
|
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
/** 详情操作 */ |
|
|
const detailRef = ref() |
|
|
const detailRef = ref() |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|
|
|
fromWarehouseCodeMain.value = row.fromWarehouseCode |
|
|
detailRef.value.openDetail(row, titleName, titleValue) |
|
|
detailRef.value.openDetail(row, titleName, titleValue) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|