Browse Source

子表

master_hella_20240701
wangyufei 5 months ago
parent
commit
5c5042417b
  1. 19
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  2. 18
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

19
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
}
}
//

18
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

@ -109,7 +109,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearchList: true,
searchListPlaceholder: '请选择采购订单',
searchField: 'number',
searchTitle: '采购订单信息',
searchTitle: '采购订单信息3',
searchAllSchemas: PurchaseMain.allSchemas,
searchPage: PurchaseMainApi.getPurchaseMainPage,
searchCondition: [{
@ -512,7 +512,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
isSearchList: true,
searchListPlaceholder: '请选择采购订单',
searchField: 'number',
searchTitle: '采购订单信息',
searchTitle: '采购订单信息5',
searchAllSchemas: PurchaseMain.allSchemas,
searchPage: PurchaseMainApi.getPurchaseMainPage,
searchCondition: [{
@ -546,7 +546,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
isInpuFocusShow: false,
searchListPlaceholder: '请选择订单号',
searchField: 'number',
searchTitle: '采购订单信息',
searchTitle: '采购订单信息4',
searchAllSchemas: PurchaseMain.allSchemas,
searchPage: PurchaseMainApi.getPurchaseMainPage,
searchCondition: [{
@ -568,10 +568,11 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
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<CrudSchema[]>([
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<CrudSchema[]>([
isInpuFocusShow: false,
searchListPlaceholder: '请选择订单行',
searchField: 'lineNumber',
searchTitle: '采购订单信息',
searchTitle: '采购订单信息1',
searchAllSchemas: PurchaseDetail.allSchemas,
searchPage: PurchaseDetailApi.getPurchaseDetailPagePoNumber,
searchCondition: [{

Loading…
Cancel
Save