From 5c5042417b36c47d3e2b12309155616a10d3139b Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 5 Jul 2024 13:19:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasePlanMain/index.vue | 19 +++++++++++-------- .../purchasePlanMain/purchasePlanMain.data.ts | 18 ++++++++++-------- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue index b87a21fac..ca1db0367 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue @@ -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 } } // 获取部门 用于详情 部门回显 diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts index 4d84e28d5..132aecbbf 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts @@ -109,7 +109,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive([ isSearchList: true, searchListPlaceholder: '请选择采购订单', searchField: 'number', - searchTitle: '采购订单信息', + searchTitle: '采购订单信息3', searchAllSchemas: PurchaseMain.allSchemas, searchPage: PurchaseMainApi.getPurchaseMainPage, searchCondition: [{ @@ -512,7 +512,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ isSearchList: true, searchListPlaceholder: '请选择采购订单', searchField: 'number', - searchTitle: '采购订单信息', + searchTitle: '采购订单信息5', searchAllSchemas: PurchaseMain.allSchemas, searchPage: PurchaseMainApi.getPurchaseMainPage, searchCondition: [{ @@ -546,7 +546,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ isInpuFocusShow: false, searchListPlaceholder: '请选择订单号', searchField: 'number', - searchTitle: '采购订单信息', + searchTitle: '采购订单信息4', searchAllSchemas: PurchaseMain.allSchemas, searchPage: PurchaseMainApi.getPurchaseMainPage, searchCondition: [{ @@ -568,10 +568,11 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ form: { // labelMessage: '信息提示说明!!!', componentProps: { - isSearchList: true, + disabled: true, + isSearchList: false, searchListPlaceholder: '请选择订单号', searchField: 'number', - searchTitle: '采购订单信息', + searchTitle: '采购订单信息6', searchAllSchemas: PurchaseMain.allSchemas, searchPage: PurchaseMainApi.getPurchaseMainPage, searchCondition: [{ @@ -622,10 +623,11 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ form: { // labelMessage: '信息提示说明!!!', componentProps: { - isSearchList: true, + disabled: true, + isSearchList: false, searchListPlaceholder: '请选择订单行', searchField: 'lineNumber', - searchTitle: '采购订单信息', + searchTitle: '采购订单信息2', searchAllSchemas: PurchaseDetail.allSchemas, searchPage: PurchaseDetailApi.getPurchaseDetailPagePoNumber, searchCondition: [{ @@ -646,7 +648,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ isInpuFocusShow: false, searchListPlaceholder: '请选择订单行', searchField: 'lineNumber', - searchTitle: '采购订单信息', + searchTitle: '采购订单信息1', searchAllSchemas: PurchaseDetail.allSchemas, searchPage: PurchaseDetailApi.getPurchaseDetailPagePoNumber, searchCondition: [{