diff --git a/src/mycomponents/record/recordComDetailCard.vue b/src/mycomponents/record/recordComDetailCard.vue index be1e5786..4acf9e97 100644 --- a/src/mycomponents/record/recordComDetailCard.vue +++ b/src/mycomponents/record/recordComDetailCard.vue @@ -4,15 +4,20 @@ - + @@ -31,7 +36,7 @@ import location from '@/mycomponents/balance/location.vue' import recordDetailPopup from '@/mycomponents/detail/recordDetailPopup.vue' import pack from '@/mycomponents/balance/pack.vue' import PackageAndItemCard from '@/mycomponents/package/PackageAndItemCard.vue' -import { getDetailOption, getDetailEditRemoveOption, getClearOption,getEditLocationRemoveOption } from '@/common/array.js' +import { getDetailOption, getDetailEditRemoveOption, getClearOption,getEditLocationRemoveOption ,getRecordOption} from '@/common/array.js' const props = defineProps({ dataContent: { @@ -64,6 +69,22 @@ const props = defineProps({ isShowBalanceQty: { type: Boolean, default: false + }, + isShowParentPack: { + type: Boolean, + default: true + }, + isShowModifedLocation: { + type: Boolean, + default: false + }, + allowModifyQty: { + type: Boolean, + default: false + }, + allowModifyLocation: { + type: Boolean, + default: false } }) const collapse1 = ref() @@ -102,8 +123,8 @@ dataContent.value.subList.forEach((item) => { }) onMounted(() => { detailOptions.value = getDetailOption() - scanOptions.value = getDetailEditRemoveOption() - removeOptions.value = getEditLocationRemoveOption() + scanOptions.value = getRecordOption(props.allowModifyQty,props.allowModifyLocation); + removeOptions.value = props.isShowModifedLocation ? getEditLocationRemoveOption():getClearOption(); }) const removeItem = (params, dataContent) => { const { text } = removeOptions.value[params[1]]