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