Browse Source

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

master
陈薪名 10 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,
default: null
},
//
detailButtonIsShow:{
//
detailButtonIsShowFilter:{
type: Boolean,
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)
@ -388,81 +406,52 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName:
getRemarkList()
getFileList()
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) {
HeadButttondata.value = [
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) //
]
}
}
//
if(!props.detailButtonIsShow){
buttondata.value = [...[
let detailButtonEdit: any = []
let detailButtonDelete: any = []
if (props.detailButtonIsShowEdit) {
//
detailButtonEdit = [
defaultButtons.mainListEditBtn({
hide: isShowMainButton(row, ['1'])
}), //
})
]
}
if (props.detailButtonIsShowDelete) {
//
detailButtonDelete = [
defaultButtons.mainListDeleteBtn({
hide: isShowMainButton(row, ['1'])
})], //
...props.buttondataTable
})
]
}
//
if (props.fromeWhere == 'DeliverRequestMain') {
buttondata.value = [...[
defaultButtons.mainListEditBtn({
hide: isShowMainButton(row, ["1"])
})], //
...props.buttondataTable
]
}
buttondata.value = [...detailButtonEdit,...detailButtonDelete,...props.buttondataTable]
} finally {
detailLoading.value = false
}

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

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

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

@ -71,7 +71,7 @@
:apiPage="CustomerreceiptRequestDetailApi.getCustomerreceiptRequestDetailPage"
:apiDelete="CustomerreceiptRequestDetailApi.deleteCustomerreceiptRequestDetail"
fromeWhere="customerreceipt"
:Echo="Echo"
:detailButtonIsShowAdd="false"
/>
</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({
getListApi: CustomerreceiptRequestMainApi.getCustomerreceiptRequestMainPage //

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

@ -67,9 +67,7 @@
:apiUpdate="CustomerreturnRequestDetailApi.updateCustomerreturnRequestDetail"
:apiPage="CustomerreturnRequestDetailApi.getCustomerreturnRequestDetailPage"
:apiDelete="CustomerreturnRequestDetailApi.deleteCustomerreturnRequestDetail"
:Echo="Echo"
@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({
getListApi: CustomerreturnRequestMainApi.getCustomerreturnRequestMainPage //
})

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

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

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

@ -71,10 +71,10 @@
:apiUpdate="DeliverRequestDetailApi.updateDeliverRequestDetail"
:apiPage="DeliverRequestDetailApi.getDeliverRequestDetailPage"
:apiDelete="DeliverRequestDetailApi.deleteDeliverRequestDetail"
:Echo="Echo"
fromeWhere="DeliverRequestMain"
@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({
getListApi: DeliverRequestMainApi.getDeliverRequestMainPage //
})

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

@ -69,8 +69,8 @@
:apiUpdate="TransferreceiptRequestDetailApi.updateTransferreceiptRequestDetail"
:apiPage="TransferreceiptRequestDetailApi.getTransferreceiptRequestDetailPage"
:apiDelete="TransferreceiptRequestDetailApi.deleteTransferreceiptRequestDetail"
:Echo="Echo"
:detailButtonIsShow="true"
:detailButtonIsShowEdit="false"
: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({
getListApi: TransferreceiptRequestMainApi.getTransferreceiptRequestMainPage //

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

@ -67,9 +67,9 @@
:apiUpdate="PurchasereceiptRequestDetailApi.updatePurchasereceiptRequestDetail"
:apiPage="apiPage"
:apiDelete="PurchasereceiptRequestDetailApi.deletePurchasereceiptRequestDetail"
:Echo="Echo"
fromeWhere="purchasereceipt"
@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({
getListApi: PurchasereceiptRequestMainApi.getPurchasereceiptRequestMainPage //
})

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

@ -67,9 +67,9 @@
:apiUpdate="PutawayRequestDetailApi.updatePutawayRequestDetail"
:apiPage="PutawayRequestDetailApi.getPutawayRequestDetailPage"
:apiDelete="PutawayRequestDetailApi.deletePutawayRequestDetail"
:Echo="Echo"
fromeWhere="putawayRequest"
@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({
getListApi: PutawayRequestMainApi.getPutawayRequestMainPage //
})

Loading…
Cancel
Save