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>
<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">
<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">
<balance :dataContent="item" :isShowFromLocation="false" :isShowStdPack="false"></balance>
</view>
@ -108,6 +108,8 @@ const comscan = ref()
const balanceSelectRef = ref()
const balanceQtyEditRef = ref()
const toLocationAreaTypeList = ref([])
const showItem = ref({})
const receiptHint = ref(null)
onMounted(() => {
detailOptions.value = getDetailOption()
scanOptions.value = getDetailEditRemoveOption()
@ -627,16 +629,13 @@ const expands = () => {
// this.remove(item, index)
// }
// }
const swipeClick = (params, item) => {
const { text } = scanOptions.value[params[1]]
if (text == '详情') {
detail(item)
} else if (text == '编辑') {
edit(item)
} else if (text == '库位') {
showLocation(item)
} else if (text == '移除') {
remove(item)
const swipeClick = (e,item,index) => {
if (e.content.text == "详情") {
this.detail(item)
} else if (e.content.text == "编辑") {
this.edit(item)
} else if (e.content.text == "移除") {
this.remove(item, index)
}
}
const edit = (item) => {

Loading…
Cancel
Save