Browse Source

详情子表按钮显示隐藏扩展参数

master
陈薪名 11 months ago
parent
commit
3c8c813359
  1. 121
      src/components/Detail/src/Detail.vue
  2. 1
      src/views/wms/countManage/count/countPlanMain/index.vue
  3. 5
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue
  4. 6
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  5. 3
      src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue
  6. 8
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  7. 7
      src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRequestMain/index.vue
  8. 6
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
  9. 6
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

121
src/components/Detail/src/Detail.vue

@ -272,11 +272,29 @@ const props = defineProps({
required: false, required: false,
default: null default: null
}, },
// //
detailButtonIsShow:{ detailButtonIsShowFilter:{
type: Boolean, type: Boolean,
required: false, required: false,
default: false default: true
},
//
detailButtonIsShowAdd:{
type: Boolean,
required: false,
default: true
},
//
detailButtonIsShowEdit:{
type: Boolean,
required: false,
default: true
},
//
detailButtonIsShowDelete:{
type: Boolean,
required: false,
default: true
} }
}) })
const isShowDrawer = ref(false) const isShowDrawer = ref(false)
@ -388,81 +406,52 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName:
getRemarkList() getRemarkList()
getFileList() getFileList()
getChangeRecordList() getChangeRecordList()
// //
let detailButtonFilter: any = []
let detailButtonAdd: any = []
if (props.detailButtonIsShowFilter) {
//
detailButtonFilter = [
defaultButtons.defaultFilterBtn(null)
]
}
if (props.detailButtonIsShowAdd) {
//
detailButtonAdd = [
defaultButtons.defaultAddBtn({
hide: isShowMainButton(row, ['1'])
})
]
}
HeadButttondata.value = [...detailButtonFilter,...detailButtonAdd]
//
if (routeName.value.indexOf('Job') > -1) { if (routeName.value.indexOf('Job') > -1) {
HeadButttondata.value = [ HeadButttondata.value = [
defaultButtons.defaultFilterBtn(null) // defaultButtons.defaultFilterBtn(null) //
] ]
} else {
if(!props.detailButtonIsShow){
HeadButttondata.value = [
defaultButtons.defaultAddBtn({
hide: isShowMainButton(row, ['1'])
}), //
defaultButtons.defaultFilterBtn(null) //
]
}
//
if (props.fromeWhere == 'countPlan') {
HeadButttondata.value = [
defaultButtons.defaultAddBtn({
hide: isShowMainButton(row, ['1'])
}) //
]
}
//
if (props.fromeWhere == 'putawayRequest') {
HeadButttondata.value = [
defaultButtons.defaultFilterBtn(null) //
]
}
//
if (props.fromeWhere == 'countadjustRequest') {
HeadButttondata.value = [
defaultButtons.defaultFilterBtn(null) //
]
}
//
if (props.fromeWhere == 'purchasereceipt') {
HeadButttondata.value = [
defaultButtons.defaultFilterBtn(null) //
]
}
//
if (props.fromeWhere == 'customerreceipt') {
HeadButttondata.value = [
defaultButtons.defaultFilterBtn(null) //
]
}
//
if (props.fromeWhere == 'DeliverRequestMain') {
HeadButttondata.value = [
defaultButtons.defaultFilterBtn(null) //
]
}
} }
// let detailButtonEdit: any = []
if(!props.detailButtonIsShow){ let detailButtonDelete: any = []
buttondata.value = [...[ if (props.detailButtonIsShowEdit) {
//
detailButtonEdit = [
defaultButtons.mainListEditBtn({ defaultButtons.mainListEditBtn({
hide: isShowMainButton(row, ['1']) hide: isShowMainButton(row, ['1'])
}), // })
]
}
if (props.detailButtonIsShowDelete) {
//
detailButtonDelete = [
defaultButtons.mainListDeleteBtn({ defaultButtons.mainListDeleteBtn({
hide: isShowMainButton(row, ['1']) hide: isShowMainButton(row, ['1'])
})], // })
...props.buttondataTable
] ]
} }
// buttondata.value = [...detailButtonEdit,...detailButtonDelete,...props.buttondataTable]
if (props.fromeWhere == 'DeliverRequestMain') {
buttondata.value = [...[
defaultButtons.mainListEditBtn({
hide: isShowMainButton(row, ["1"])
})], //
...props.buttondataTable
]
}
} finally { } finally {
detailLoading.value = false detailLoading.value = false
} }

1
src/views/wms/countManage/count/countPlanMain/index.vue

@ -88,6 +88,7 @@
:formTypeDetail="formTypeDetail" :formTypeDetail="formTypeDetail"
:countPlanAllList="countPlanAllList" :countPlanAllList="countPlanAllList"
@detailOpenForm="detailOpenForm" @detailOpenForm="detailOpenForm"
:detailButtonIsShowFilter="false"
/> />
<!-- 导入 --> <!-- 导入 -->

5
src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue

@ -71,7 +71,7 @@
:apiPage="CustomerreceiptRequestDetailApi.getCustomerreceiptRequestDetailPage" :apiPage="CustomerreceiptRequestDetailApi.getCustomerreceiptRequestDetailPage"
:apiDelete="CustomerreceiptRequestDetailApi.deleteCustomerreceiptRequestDetail" :apiDelete="CustomerreceiptRequestDetailApi.deleteCustomerreceiptRequestDetail"
fromeWhere="customerreceipt" fromeWhere="customerreceipt"
:Echo="Echo" :detailButtonIsShowAdd="false"
/> />
</template> </template>
@ -134,9 +134,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} }
}) })
} }
//
// const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom']
const Echo = []
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: CustomerreceiptRequestMainApi.getCustomerreceiptRequestMainPage // getListApi: CustomerreceiptRequestMainApi.getCustomerreceiptRequestMainPage //

6
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

@ -67,9 +67,7 @@
:apiUpdate="CustomerreturnRequestDetailApi.updateCustomerreturnRequestDetail" :apiUpdate="CustomerreturnRequestDetailApi.updateCustomerreturnRequestDetail"
:apiPage="CustomerreturnRequestDetailApi.getCustomerreturnRequestDetailPage" :apiPage="CustomerreturnRequestDetailApi.getCustomerreturnRequestDetailPage"
:apiDelete="CustomerreturnRequestDetailApi.deleteCustomerreturnRequestDetail" :apiDelete="CustomerreturnRequestDetailApi.deleteCustomerreturnRequestDetail"
:Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
:detailButtonIsShow = trueFalse
/> />
<!-- 导入 --> <!-- 导入 -->
@ -167,10 +165,6 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
}) })
} }
//
// const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom']
const Echo = []
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: CustomerreturnRequestMainApi.getCustomerreturnRequestMainPage // getListApi: CustomerreturnRequestMainApi.getCustomerreturnRequestMainPage //
}) })

3
src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue

@ -69,7 +69,8 @@
:apiDelete="CustomersettleRequestDetailApi.deleteCustomersettleRequestDetail" :apiDelete="CustomersettleRequestDetailApi.deleteCustomersettleRequestDetail"
:Echo="Echo" :Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
:detailButtonIsShow = true :detailButtonIsShowEdit="false"
:detailButtonIsShowDelete="false"
/> />
<!-- 导入 --> <!-- 导入 -->

8
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

@ -71,10 +71,10 @@
:apiUpdate="DeliverRequestDetailApi.updateDeliverRequestDetail" :apiUpdate="DeliverRequestDetailApi.updateDeliverRequestDetail"
:apiPage="DeliverRequestDetailApi.getDeliverRequestDetailPage" :apiPage="DeliverRequestDetailApi.getDeliverRequestDetailPage"
:apiDelete="DeliverRequestDetailApi.deleteDeliverRequestDetail" :apiDelete="DeliverRequestDetailApi.deleteDeliverRequestDetail"
:Echo="Echo"
fromeWhere="DeliverRequestMain" fromeWhere="DeliverRequestMain"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
:detailButtonIsShowAdd="false"
:detailButtonIsShowDelete="false"
/> />
<!-- 导入 --> <!-- 导入 -->
@ -168,10 +168,6 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
}) })
} }
//
// const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom']
const Echo = []
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: DeliverRequestMainApi.getDeliverRequestMainPage // getListApi: DeliverRequestMainApi.getDeliverRequestMainPage //
}) })

7
src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRequestMain/index.vue

@ -69,8 +69,8 @@
:apiUpdate="TransferreceiptRequestDetailApi.updateTransferreceiptRequestDetail" :apiUpdate="TransferreceiptRequestDetailApi.updateTransferreceiptRequestDetail"
:apiPage="TransferreceiptRequestDetailApi.getTransferreceiptRequestDetailPage" :apiPage="TransferreceiptRequestDetailApi.getTransferreceiptRequestDetailPage"
:apiDelete="TransferreceiptRequestDetailApi.deleteTransferreceiptRequestDetail" :apiDelete="TransferreceiptRequestDetailApi.deleteTransferreceiptRequestDetail"
:Echo="Echo" :detailButtonIsShowEdit="false"
:detailButtonIsShow="true" :detailButtonIsShowDelete="false"
/> />
<!-- 导入 --> <!-- 导入 -->
@ -137,9 +137,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} }
}) })
} }
//
// const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom']
const Echo = []
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: TransferreceiptRequestMainApi.getTransferreceiptRequestMainPage // getListApi: TransferreceiptRequestMainApi.getTransferreceiptRequestMainPage //

6
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -67,9 +67,9 @@
:apiUpdate="PurchasereceiptRequestDetailApi.updatePurchasereceiptRequestDetail" :apiUpdate="PurchasereceiptRequestDetailApi.updatePurchasereceiptRequestDetail"
:apiPage="apiPage" :apiPage="apiPage"
:apiDelete="PurchasereceiptRequestDetailApi.deletePurchasereceiptRequestDetail" :apiDelete="PurchasereceiptRequestDetailApi.deletePurchasereceiptRequestDetail"
:Echo="Echo"
fromeWhere="purchasereceipt" fromeWhere="purchasereceipt"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
:detailButtonIsShowAdd="false"
/> />
<!-- 导入 --> <!-- 导入 -->
@ -141,10 +141,6 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
}) })
} }
//
// const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom']
const Echo = []
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: PurchasereceiptRequestMainApi.getPurchasereceiptRequestMainPage // getListApi: PurchasereceiptRequestMainApi.getPurchasereceiptRequestMainPage //
}) })

6
src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

@ -67,9 +67,9 @@
:apiUpdate="PutawayRequestDetailApi.updatePutawayRequestDetail" :apiUpdate="PutawayRequestDetailApi.updatePutawayRequestDetail"
:apiPage="PutawayRequestDetailApi.getPutawayRequestDetailPage" :apiPage="PutawayRequestDetailApi.getPutawayRequestDetailPage"
:apiDelete="PutawayRequestDetailApi.deletePutawayRequestDetail" :apiDelete="PutawayRequestDetailApi.deletePutawayRequestDetail"
:Echo="Echo"
fromeWhere="putawayRequest" fromeWhere="putawayRequest"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
:detailButtonIsShowAdd="false"
/> />
<!-- 导入 --> <!-- 导入 -->
@ -132,10 +132,6 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
}) })
} }
//
// const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom']
const Echo = []
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: PutawayRequestMainApi.getPutawayRequestMainPage // getListApi: PutawayRequestMainApi.getPutawayRequestMainPage //
}) })

Loading…
Cancel
Save