Browse Source

mycomponents/package 文件迁移 8/8-10/25

hella_vue3
王志国 4 weeks ago
parent
commit
cc3a2d8878
  1. 2
      src/mycomponents/package/PackageAndItemCard.vue
  2. 2
      src/mycomponents/package/packageCard.vue
  3. 10
      src/mycomponents/package/packageList.vue

2
src/mycomponents/package/PackageAndItemCard.vue

@ -3,7 +3,7 @@
<view class="uni-flex uni-row space-between" style="align-items: center">
<view style="word-break: break-all">
<item :dataContent="dataContent" style="margin-left: 4px; padding: 0px 5px 5px"></item>
<pack v-if="dataContent.packingNumber != null" :packingCode="dataContent.packingNumber"></pack>
<pack v-if="dataContent.packingNumber" :packingCode="dataContent.packingNumber"></pack>
<batch v-if="dataContent.batch != null" :batch="dataContent.batch"></batch>
<location v-if="dataContent.locationCode != null" :locationCode="dataContent.locationCode"></location>
</view>

2
src/mycomponents/package/packageCard.vue

@ -6,7 +6,7 @@
<view style="word-break: break-all">
<!-- <container v-if="isShowContainer&&dataContent.containerNumber!=null" :container="dataContent.containerNumber">
</container> -->
<pack v-if="isShowPack && dataContent.packingNumber != null" :packingCode="dataContent.packingNumber"> </pack>
<pack v-if="isShowPack && dataContent.packingNumber" :packingCode="dataContent.packingNumber"> </pack>
<batch v-if="isShowBatch && dataContent.batch != null" :batch="dataContent.batch"></batch>
<location v-if="isShowFromLocation" title="来源库位" :locationCode="dataContent.fromLocationCode"> </location>
<!-- <to-location></to-location> -->

10
src/mycomponents/package/packageList.vue

@ -5,7 +5,10 @@
<u-collapse-item :disabled="false" @change="collapseChange">
<template v-slot:title>
<u-swipe-action :options="item.scaned && isEdit ? editAndRemoveOptions : item.scaned ? removeOptions : options" bg-color="rgba(255,255,255,0)" @click="(...event) => swipeClick(event, cur, 'parent')">
<package-card :dataContent="item" :isShowLocation="false" :isShowFromLocation="isShowFromLocation" :isShowStatus="isShowStatus"></package-card>
<package-card :dataContent="item" :isShowLocation="false"
:isShowFromLocation="isShowFromLocation"
:isShowStatus="isShowStatus" :isShowStatus="isShowPackListStatus">
</package-card>
</u-swipe-action>
</template>
<u-swipe-action :show="item.show" :index="index" v-for="(cur, key) in item.packList" :key="index" :options="cur.scaned && isEdit ? editAndRemoveOptions : cur.scaned ? removeOptions : options" bg-color="rgba(255,255,255,0)" @click="(...event) => swipeClick(event, cur, 'child')">
@ -66,7 +69,10 @@ const props = defineProps({
type: Boolean,
default: true
},
isShowPackListStatus: {
type: Boolean,
default: true
},
locationTitle: {
type: String,
default: '库位'

Loading…
Cancel
Save