Browse Source

pages/issue/coms 文件迁移Vue2升级Vue3 8/2-10/25

hella_vue3
王志国 3 weeks ago
parent
commit
3a75b774ab
  1. 21
      src/pages/issue/coms/comScanIssuePack.vue

21
src/pages/issue/coms/comScanIssuePack.vue

@ -31,7 +31,7 @@
</view> </view>
<u-line class="line_color" style="padding-top: 10rpx; padding-bottom: 20rpx"> </u-line> <u-line class="line_color" style="padding-top: 10rpx; padding-bottom: 20rpx"> </u-line>
<scroll-view scroll-y="true" class="scroll-view" v-if="expand && issueRecord.length > 0"> <scroll-view scroll-y="true" class="scroll-view" v-if="expand && issueRecord.length > 0">
<u-swipe-action :show="item.show" :index="index" v-for="(item, index) in issueRecord" :key="index" :options="scanOptions" bg-color="rgba(255,255,255,0)" @click="(...event) => swipeClick($event, item)"> <u-swipe-action :show="item.show" :index="index" v-for="(item, index) in issueRecord" :key="index" :options="scanOptions" bg-color="rgba(255,255,255,0)" @click="(...event) => swipeClick(event,item,index)">
<view style="padding: 0px 10px"> <view style="padding: 0px 10px">
<balance :dataContent="item" :isShowFromLocation="false" :isShowStdPack="false"></balance> <balance :dataContent="item" :isShowFromLocation="false" :isShowStdPack="false"></balance>
</view> </view>
@ -108,6 +108,8 @@ const comscan = ref()
const balanceSelectRef = ref() const balanceSelectRef = ref()
const balanceQtyEditRef = ref() const balanceQtyEditRef = ref()
const toLocationAreaTypeList = ref([]) const toLocationAreaTypeList = ref([])
const showItem = ref({})
const receiptHint = ref(null)
onMounted(() => { onMounted(() => {
detailOptions.value = getDetailOption() detailOptions.value = getDetailOption()
scanOptions.value = getDetailEditRemoveOption() scanOptions.value = getDetailEditRemoveOption()
@ -627,16 +629,13 @@ const expands = () => {
// this.remove(item, index) // this.remove(item, index)
// } // }
// } // }
const swipeClick = (params, item) => { const swipeClick = (e,item,index) => {
const { text } = scanOptions.value[params[1]] if (e.content.text == "详情") {
if (text == '详情') { this.detail(item)
detail(item) } else if (e.content.text == "编辑") {
} else if (text == '编辑') { this.edit(item)
edit(item) } else if (e.content.text == "移除") {
} else if (text == '库位') { this.remove(item, index)
showLocation(item)
} else if (text == '移除') {
remove(item)
} }
} }
const edit = (item) => { const edit = (item) => {

Loading…
Cancel
Save