|
@ -4,15 +4,20 @@ |
|
|
<u-collapse-item :open="true"> |
|
|
<u-collapse-item :open="true"> |
|
|
<template v-slot:title> |
|
|
<template v-slot:title> |
|
|
<u-swipe-action :show="false" style="width: 90%" :options="removeOptions" bg-color="rgba(255,255,255,0)" @click="(...event) => removeItem(event, dataContent)"> |
|
|
<u-swipe-action :show="false" style="width: 90%" :options="removeOptions" bg-color="rgba(255,255,255,0)" @click="(...event) => removeItem(event, dataContent)"> |
|
|
<item-qty :dataContent="dataContent" :isShowBalance="true" :isShowBalanceQty="isShowBalanceQty"></item-qty> |
|
|
<item-qty :dataContent="dataContent" :isShowBalance="true" |
|
|
|
|
|
:isShowBalanceQty="isShowBalanceQty" :isShowRecommendQty="false"> |
|
|
|
|
|
</item-qty> |
|
|
<view style="margin-left: 10px; margin-top: 5px;"> |
|
|
<view style="margin-left: 10px; margin-top: 5px;"> |
|
|
<pack title='父包装' :packingCode='dataContent.containerNumber'></pack> |
|
|
<pack title='父包装' v-if="dataContent.containerNumber" :packingCode='dataContent.containerNumber'></pack> |
|
|
<location v-if="isShowParentToLocation" title='目标库位' :locationCode='dataContent.toLocationCode'></location> |
|
|
<location v-if="isShowParentToLocation" title='目标库位' :locationCode='dataContent.toLocationCode'></location> |
|
|
</view> |
|
|
</view> |
|
|
</u-swipe-action> |
|
|
</u-swipe-action> |
|
|
</template> |
|
|
</template> |
|
|
<u-swipe-action :show="detail.show" :index="index" v-for="(detail, index) in dataContent.subList" :key="index" :options="detail.scaned ? scanOptions : detailOptions" bg-color="rgba(255,255,255,0)" class="u-m-b-20" @click="(...event) => swipeClick(event, detail)"> |
|
|
<u-swipe-action :show="detail.show" :index="index" v-for="(detail, index) in dataContent.subList" :key="index" :options="detail.scaned ? scanOptions : detailOptions" bg-color="rgba(255,255,255,0)" class="u-m-b-20" @click="(...event) => swipeClick(event, detail)"> |
|
|
<balance :dataContent="detail" :isShowStdPack="false" :isShowStatus="isShowStatus" :isShowPack="true" :isShowFromLocation="isShowFromLocation" :isShowToLocation="isShowToLocation"> </balance> |
|
|
<balance :dataContent="detail" :isShowStdPack="false" |
|
|
|
|
|
:isShowStatus="isShowStatus" :isShowPack="true" |
|
|
|
|
|
:isShowFromLocation="isShowFromLocation" :isShowParentPack="isShowParentPack" |
|
|
|
|
|
:isShowToLocation="isShowToLocation"> </balance> |
|
|
</u-swipe-action> |
|
|
</u-swipe-action> |
|
|
</u-collapse-item> |
|
|
</u-collapse-item> |
|
|
</u-collapse> |
|
|
</u-collapse> |
|
@ -31,7 +36,7 @@ import location from '@/mycomponents/balance/location.vue' |
|
|
import recordDetailPopup from '@/mycomponents/detail/recordDetailPopup.vue' |
|
|
import recordDetailPopup from '@/mycomponents/detail/recordDetailPopup.vue' |
|
|
import pack from '@/mycomponents/balance/pack.vue' |
|
|
import pack from '@/mycomponents/balance/pack.vue' |
|
|
import PackageAndItemCard from '@/mycomponents/package/PackageAndItemCard.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({ |
|
|
const props = defineProps({ |
|
|
dataContent: { |
|
|
dataContent: { |
|
@ -64,6 +69,22 @@ const props = defineProps({ |
|
|
isShowBalanceQty: { |
|
|
isShowBalanceQty: { |
|
|
type: Boolean, |
|
|
type: Boolean, |
|
|
default: false |
|
|
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() |
|
|
const collapse1 = ref() |
|
@ -102,8 +123,8 @@ dataContent.value.subList.forEach((item) => { |
|
|
}) |
|
|
}) |
|
|
onMounted(() => { |
|
|
onMounted(() => { |
|
|
detailOptions.value = getDetailOption() |
|
|
detailOptions.value = getDetailOption() |
|
|
scanOptions.value = getDetailEditRemoveOption() |
|
|
scanOptions.value = getRecordOption(props.allowModifyQty,props.allowModifyLocation); |
|
|
removeOptions.value = getEditLocationRemoveOption() |
|
|
removeOptions.value = props.isShowModifedLocation ? getEditLocationRemoveOption():getClearOption(); |
|
|
}) |
|
|
}) |
|
|
const removeItem = (params, dataContent) => { |
|
|
const removeItem = (params, dataContent) => { |
|
|
const { text } = removeOptions.value[params[1]] |
|
|
const { text } = removeOptions.value[params[1]] |
|
|