|
@ -1,7 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class="page-wraper"> |
|
|
<view class="page-wraper"> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<com-blank-view @goScan="showFromLocationPopup" v-if="detailSource.length == 0"></com-blank-view> |
|
|
<com-blank-view @goScan="openScanPopup" v-if="detailSource.length == 0"></com-blank-view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="page-wraper" v-if="detailSource.length > 0"> |
|
|
<view class="page-wraper" v-if="detailSource.length > 0"> |
|
@ -9,7 +9,9 @@ |
|
|
<scroll-view scroll-y="true" class="page-main-scroll"> |
|
|
<scroll-view scroll-y="true" class="page-main-scroll"> |
|
|
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> |
|
|
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<record-com-detail-card :dataContent="item" :index="index" :settingParam="dataContent" :isShowStatus="false" @removeItem="removeItem(index, item)" @updateData="updateData" @removePack="removePack"> </record-com-detail-card> |
|
|
<record-com-detail-card :dataContent="item" :index="index" :settingParam="dataContent" |
|
|
|
|
|
:isShowStatus="false" @removeItem="removeItem(index,item)" @updateData="updateData" |
|
|
|
|
|
@removePack="removePack"> |
|
|
</view> |
|
|
</view> |
|
|
<view class="split_line"></view> |
|
|
<view class="split_line"></view> |
|
|
</view> |
|
|
</view> |
|
@ -19,7 +21,8 @@ |
|
|
<view class="page-footer"> |
|
|
<view class="page-footer"> |
|
|
<view class="uni-flex u-col-center space-between padding_10" style="background-color: ghostwhite; width: 100%"> |
|
|
<view class="uni-flex u-col-center space-between padding_10" style="background-color: ghostwhite; width: 100%"> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<requiredLocation title="目标库位" :locationCode="toLocationCode" @getLocation="getToLocationCode" :locationAreaTypeList="tolocationTypeList"></requiredLocation> |
|
|
<requiredLocation title="目标库位" :locationCode="toLocationCode" @getLocation="getToLocationCode" |
|
|
|
|
|
:locationAreaTypeList="tolocationTypeList"></requiredLocation> |
|
|
</view> |
|
|
</view> |
|
|
<view class="uni-flex uni-row"> |
|
|
<view class="uni-flex uni-row"> |
|
|
<button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button> |
|
|
<button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button> |
|
@ -29,8 +32,8 @@ |
|
|
<win-scan-button @goScan="openScanPopup"></win-scan-button> |
|
|
<win-scan-button @goScan="openScanPopup"></win-scan-button> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<win-scan-pack-and-location :balanceFromInventoryStatuses="false" ref="scanPopup" @getResult="getScanResult"></win-scan-pack-and-location> |
|
|
<win-scan-package ref="scanPopup" @getResult='getScanResult'></win-scan-package> |
|
|
<win-scan-location ref="scanLocationCode" title="来源库位" @getLocation="getLocation" :locationAreaTypeList="fromLocationAreaTypeList"></win-scan-location> |
|
|
|
|
|
<com-message ref="comMessageRef" /> |
|
|
<com-message ref="comMessageRef" /> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
@ -54,6 +57,8 @@ import comBlankView from '@/mycomponents/common/comBlankView.vue' |
|
|
import winScanLocation from '@/mycomponents/scan/winScanLocation.vue' |
|
|
import winScanLocation from '@/mycomponents/scan/winScanLocation.vue' |
|
|
import winScanPackAndLocation from '@/mycomponents/scan/winScanPackAndLocation.vue' |
|
|
import winScanPackAndLocation from '@/mycomponents/scan/winScanPackAndLocation.vue' |
|
|
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue' |
|
|
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue' |
|
|
|
|
|
import winScanPackage from '@/mycomponents/scan/winScanPackage.vue' |
|
|
|
|
|
|
|
|
import { useCountStore } from '@/store' |
|
|
import { useCountStore } from '@/store' |
|
|
|
|
|
|
|
|
// 获取自定义的store |
|
|
// 获取自定义的store |
|
@ -70,6 +75,7 @@ const fromLocationAreaTypeList = ref([]) |
|
|
const tolocationTypeList = ref([]) |
|
|
const tolocationTypeList = ref([]) |
|
|
const inInventoryStatus = ref('') // 目标入库库存状态 |
|
|
const inInventoryStatus = ref('') // 目标入库库存状态 |
|
|
const outInventoryStatus = ref('') // 来源出库库存状态 |
|
|
const outInventoryStatus = ref('') // 来源出库库存状态 |
|
|
|
|
|
const bussinessCode = ref('ProductPutaway') |
|
|
const businessType = ref({}) |
|
|
const businessType = ref({}) |
|
|
const managementList = ref([]) |
|
|
const managementList = ref([]) |
|
|
const scanLocationCode = ref() |
|
|
const scanLocationCode = ref() |
|
@ -86,13 +92,12 @@ onLoad((option) => { |
|
|
} else if (type.value == 'assemble') { |
|
|
} else if (type.value == 'assemble') { |
|
|
updateTitle('装配上架记录') |
|
|
updateTitle('装配上架记录') |
|
|
} |
|
|
} |
|
|
const typeCode = 'ProductPutaway' |
|
|
getBusinessType(bussinessCode.value, (res) => { |
|
|
getBusinessType(typeCode, (res) => { |
|
|
|
|
|
if (res.success) { |
|
|
if (res.success) { |
|
|
businessType.value = res.businessType |
|
|
businessType.value = res.businessType |
|
|
fromLocationAreaTypeList.value = res.fromLocationAreaTypeList |
|
|
fromLocationAreaTypeList.value = res.fromLocationAreaTypeList |
|
|
tolocationTypeList.value = res.tolocationTypeList |
|
|
tolocationTypeList.value = res.tolocationTypeList |
|
|
showFromLocationPopup() |
|
|
openScanPopup() |
|
|
} else { |
|
|
} else { |
|
|
showErrorMessage(res.message) |
|
|
showErrorMessage(res.message) |
|
|
} |
|
|
} |
|
@ -155,11 +160,9 @@ const removePack = () => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const openScanPopup = () => { |
|
|
const openScanPopup = () => { |
|
|
if (fromLocationCode.value == '') { |
|
|
setTimeout(r => { |
|
|
showFromLocationPopup() |
|
|
scanPopup.value.openScanPopupByBusinessType(businessType.value) |
|
|
return |
|
|
}) |
|
|
} |
|
|
|
|
|
scanPopup.value.openScanPopupForType(fromLocationCode.value, businessType.value) |
|
|
|
|
|
} |
|
|
} |
|
|
const showFromLocationPopup = () => { |
|
|
const showFromLocationPopup = () => { |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|