|
|
@ -2,17 +2,19 @@ |
|
|
|
<view class="" style="background-color: #fff;"> |
|
|
|
<u-collapse ref="collapse"> |
|
|
|
<u-collapse-item :open="true"> |
|
|
|
<template v-slot:title> |
|
|
|
<u-swipe-action @click="(...event)=>swipeClick(event,dataContent)" |
|
|
|
options="dataContent.handleQty>0? removeOptions:options" |
|
|
|
:class="dataContent.scaned?'scan_view':''"> |
|
|
|
<itemCompareQty :dataContent="dataContent" :handleQty="dataContent.handleQty" |
|
|
|
:isShowPackUnit="false"></itemCompareQty> |
|
|
|
<batch v-if="dataContent.subList[0].batch" :batch="dataContent.subList[0].batch"></batch> |
|
|
|
<location title="来源库位" v-if="dataContent.subList[0].fromLocationCode" |
|
|
|
:locationCode="dataContent.subList[0].fromLocationCode"> |
|
|
|
</location> |
|
|
|
</u-swipe-action> |
|
|
|
<template #title> |
|
|
|
<view style="flex: 1"> |
|
|
|
<u-swipe-action @click="(...event)=>swipeClick(event,dataContent)" |
|
|
|
:options="dataContent.handleQty>0? removeOptions:options" |
|
|
|
:class="dataContent.scaned?'scan_view':''"> |
|
|
|
<itemCompareQty :dataContent="dataContent" :handleQty="dataContent.handleQty" |
|
|
|
:isShowPackUnit="false"></itemCompareQty> |
|
|
|
<batch v-if="dataContent.subList[0].batch" :batch="dataContent.subList[0].batch"></batch> |
|
|
|
<location title="来源库位" v-if="dataContent.subList[0].fromLocationCode" |
|
|
|
:locationCode="dataContent.subList[0].fromLocationCode"> |
|
|
|
</location> |
|
|
|
</u-swipe-action> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</u-collapse-item> |
|
|
|
</u-collapse> |
|
|
@ -30,7 +32,7 @@ |
|
|
|
import itemCompareQty from '@/mycomponents/item/itemCompareQty.vue' |
|
|
|
import recommend from '@/mycomponents/recommend/recommend.vue' |
|
|
|
import recommendQtyEdit from '@/mycomponents/qty/recommendQtyEdit.vue' |
|
|
|
import jobDetailPopup from '@/mycomponents/detail/jobDetailPopup.vue' |
|
|
|
import JobDetailPopup from '@/mycomponents/detail/jobDetailPopup.vue' |
|
|
|
import receiptDetailInfoPopup from '@/pages/purchaseReceipt/coms/receiptDetailInfoPopup.vue' |
|
|
|
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue" |
|
|
|
import detailList from '@/mycomponents/detail/detailList.vue' |
|
|
@ -50,10 +52,11 @@ import { |
|
|
|
|
|
|
|
import {ref, onMounted, watch, nextTick} from 'vue'; |
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
|
dataContent: { |
|
|
|
type: Object, |
|
|
|
default: null |
|
|
|
default: ()=>{} |
|
|
|
}, |
|
|
|
settingParam: { |
|
|
|
type: Object, |
|
|
@ -76,9 +79,19 @@ const removeOptions = ref([]); |
|
|
|
const collapse = ref(null); |
|
|
|
const receiptEdit = ref(null); |
|
|
|
const scanLocationCode = ref(null); |
|
|
|
const jobDetailPopup = ref(null); |
|
|
|
const message = ref(null); |
|
|
|
|
|
|
|
const jobDetailPopup = ref(null); |
|
|
|
watch(() => props.dataContent, (newDataContent, oldDataContent) => { |
|
|
|
if (newDataContent?.subList.length > 0) { |
|
|
|
nextTick(() => { |
|
|
|
setTimeout(() => { |
|
|
|
if (collapse.value) { |
|
|
|
collapse.value.init(); |
|
|
|
} |
|
|
|
}, 500); |
|
|
|
}); |
|
|
|
} |
|
|
|
}, { immediate: true, deep: true }); |
|
|
|
onMounted(() => { |
|
|
|
if (detailOptions.value.length === 0) { |
|
|
|
detailOptions.value = getDetailOption(); |
|
|
|