|
|
@ -45,8 +45,9 @@ |
|
|
|
:apiUpdate="PurchasePlanMainApi.updatePurchasePlanMain" |
|
|
|
:apiCreate="PurchasePlanMainApi.createPurchasePlanMain" |
|
|
|
:isBusiness="true" |
|
|
|
:isShowReduceButtonSelection="isShowButtonSelection" |
|
|
|
:isShowButton="isShowButtonSelection" |
|
|
|
:isShowReduceButtonSelection="false" |
|
|
|
:isShowReduceButton="false" |
|
|
|
:isShowButton="false" |
|
|
|
@handleAddTable="handleAddTable" |
|
|
|
@handleDeleteTable="handleDeleteTable" |
|
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
@ -68,8 +69,13 @@ |
|
|
|
:apiDelete="PurchasePlanDetailApi.deletePurchasePlanDetail" |
|
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
|
:detailValidate="detailValidate" |
|
|
|
:detailButtonIsShowDelete="false" |
|
|
|
:detailButtonIsShowEdit="false" |
|
|
|
:detailButtonIsShowAddStatusArray="['1','2','3','4','5']" |
|
|
|
:detailButtonIsShowEdit="true" |
|
|
|
:detailButtonIsShowDelete="true" |
|
|
|
:detailButtonIsShowAdd="true" |
|
|
|
:isOpenSearchTable="true" |
|
|
|
fieldTableColumn="poLine" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
@ -201,7 +207,7 @@ |
|
|
|
|
|
|
|
const getSearchTableData = async (number,formField,searchField)=>{ |
|
|
|
const {tableObject ,tableMethods} = useTable({ |
|
|
|
defaultParams:{number}, |
|
|
|
defaultParams:{number,available:'TRUE'}, |
|
|
|
getListApi: PurchaseDetailApi.getPurchaseDetailPagePoNumber // 分页接口 |
|
|
|
}) |
|
|
|
tableObject.pageSize = 500 |
|
|
@ -378,14 +384,12 @@ const getSearchTableData = async (number,formField,searchField)=>{ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const isShowButtonSelection = ref(false) |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const formRef = ref() |
|
|
|
const openForm = async (type : string, row ?: number) => { |
|
|
|
tableData.value = [] // 重置明细数据 |
|
|
|
formRef.value.open(type, row) |
|
|
|
if('create'==type){ |
|
|
|
isShowButtonSelection.value = false |
|
|
|
nextTick(async () => { |
|
|
|
formRef.value.formRef.setValues({deliveryDate:dayjs().valueOf()}) |
|
|
|
}) |
|
|
@ -404,7 +408,6 @@ const getSearchTableData = async (number,formField,searchField)=>{ |
|
|
|
item.componentProps.isSearchList = false |
|
|
|
} |
|
|
|
}) |
|
|
|
isShowButtonSelection.value = true |
|
|
|
} |
|
|
|
} |
|
|
|
// 获取部门 用于详情 部门回显 |
|
|
|