Browse Source

import BalanceSelect 改成大写 文件迁移Vue2升级Vue3 8/2-10/25

hella_vue3
王志国 2 weeks ago
parent
commit
f0d3f18ddd
  1. 2
      src/mycomponents/detail/comRecommendDetailCard.vue
  2. 3
      src/mycomponents/item/itemQty.vue
  3. 2
      src/mycomponents/job/jobFilter.vue
  4. 60
      src/mycomponents/qty/packUnit.vue
  5. 2
      src/mycomponents/recommend/recommend.vue
  6. 7
      src/mycomponents/scan/winComScanBalance.vue
  7. 4
      src/mycomponents/scan/winScanPack.vue
  8. 4
      src/mycomponents/scan/winScanPackLevel.vue
  9. 4
      src/mycomponents/scan/winScanPackage.vue
  10. 2
      src/pages/count/coms/comCountDetailcards.vue
  11. 22
      src/pages/count/job/countLightDetail.vue
  12. 8
      src/pages/inventoryMove/coms/comInventoryDetailCard.vue
  13. 32
      src/pages/inventoryMove/coms/comInventoryDetailCardBatch.vue
  14. 1
      src/pages/inventoryMove/coms/comMoveJob.vue
  15. 4
      src/pages/inventoryMove/job/moveJob.vue
  16. 1
      src/pages/issue/job/issueJob.vue
  17. 4
      src/pages/productionReturn/job/holdToReturnJob.vue
  18. 2
      src/pages/productionReturn/job/okToReturnJob.vue
  19. 6
      src/pages/purchaseReceipt/job/receiptJob.vue
  20. 2
      src/pages/unPlanned/job/issueJob.vue

2
src/mycomponents/detail/comRecommendDetailCard.vue

@ -104,7 +104,7 @@ watch(() => props.dataContent, (newDataContent, oldDataContent) => {
nextTick(() => { nextTick(() => {
setTimeout(() => { setTimeout(() => {
if (collapse1.value) { if (collapse1.value) {
collapse1.value.resize(); collapse1.value.init();
} }
}, 500); }, 500);
}); });

3
src/mycomponents/item/itemQty.vue

@ -7,8 +7,7 @@
<balance-qty v-if="isShowBalanceQty" :dataContent="dataContent"></balance-qty> <balance-qty v-if="isShowBalanceQty" :dataContent="dataContent"></balance-qty>
<compare-qty v-else :dataContent="dataContent" :recommendQty="Number(dataContent.qty)" <compare-qty v-else :dataContent="dataContent" :recommendQty="Number(dataContent.qty)"
:handleQty="dataContent.handleQty" :isShowRecommendQty="isShowRecommendQty" :handleQty="dataContent.handleQty" :isShowRecommendQty="isShowRecommendQty"
:isShowStatus="false" :isShowStdPack="showStdPack"> :isShowStatus="false" :isShowStdPack="showStdPack"></compare-qty>
</compare-qty>
</view> </view>
</view> </view>
</template> </template>

2
src/mycomponents/job/jobFilter.vue

@ -307,7 +307,7 @@ const getScanNumber = (val) => {
scanNumber.value.closeScanPopup() scanNumber.value.closeScanPopup()
closeScanPopup() closeScanPopup()
} }
const emit = defineEmits(['switchChangeToday', 'switchChangeWait', 'onScanNumber', 'onScanAsnNumber', 'productionLineCode', 'fromLocationCode', 'fromLocationCodeConfirm']) const emit = defineEmits(['switchChangeToday', 'switchChangeWait', 'onScanNumber', 'onScanAsnNumber', 'productionLineCode', 'fromLocationCode', 'fromLocationCodeConfirm','onQuery'])
defineExpose({ openFilter }) defineExpose({ openFilter })
</script> </script>
<style lang="scss"> <style lang="scss">

60
src/mycomponents/qty/packUnit.vue

@ -1,36 +1,38 @@
<template> <template>
<view class="std_pack" v-if="dataContent.packQty!=undefined"> <view class="std_pack" v-if="dataContent.packQty!=undefined">
<text> <text>
<!-- {{Number(dataContent.packQty)}}{{getUomInfo(dataContent.uom)}}/{{getPackUnitName(dataContent.packUnit)}} --> <!-- {{Number(dataContent.packQty)}}{{getUomInfo(dataContent.uom)}}/{{getPackUnitName(dataContent.packUnit)}} -->
<!-- {{getPackUnit(dataContent.packUnit)}}({{Number(dataContent.packQty)}}{{getUom(dataContent.uom)}})--> <!-- {{getPackUnit(dataContent.packUnit)}}({{Number(dataContent.packQty)}}{{getUom(dataContent.uom)}})-->
{{dataContent.packUnit}}({{Number(dataContent.packQty)}}{{getUomInfo(dataContent.uom)}}) {{ dataContent.packUnit }}({{ Number(dataContent.packQty) }}{{ getUom(dataContent.uom) }})
</text> </text>
</view> </view>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { import {onLoad} from "@dcloudio/uni-app";
getUomInfo, import {
getPackUnitName getUomInfo,
} from '@/common/directory.js'; getPackUnitName
const props = defineProps({ } from '@/common/directory.js';
dataContent: {
packQty: 1000,
uom: "EA",
}
})
const getUom = (uom) => {
let item = getUomInfo(uom);
if (item == '') {
return uom;
} else {
return item.label
}
}
const getPackUnit = (packUnit) => { const props = defineProps({
let unit = getPackUnitName(packUnit); dataContent: {
return unit; packQty: 1000,
} uom: "EA",
}
})
const getUom = (uom) => {
let item = getUomInfo(uom);
if (item == '') {
return uom;
} else {
return item.label
}
}
const getPackUnit = (packUnit) => {
let unit = getPackUnitName(packUnit);
return unit;
}
</script> </script>

2
src/mycomponents/recommend/recommend.vue

@ -33,7 +33,7 @@ import batch from '@/mycomponents/balance/batch.vue'
import recommendQty from '@/mycomponents/qty/recommendQty.vue' import recommendQty from '@/mycomponents/qty/recommendQty.vue'
import compareQty from '@/mycomponents/qty/compareQty.vue' import compareQty from '@/mycomponents/qty/compareQty.vue'
import config from '@/static/config.js' import config from '@/static/config.js'
import {watch} from 'vue'
const props = defineProps({ const props = defineProps({
detail: { detail: {
type: Object, type: Object,

7
src/mycomponents/scan/winComScanBalance.vue

@ -104,6 +104,7 @@ const balanceSelectRef = ref(null)
// //
const openScanPopup = (businessTypeValue) => { const openScanPopup = (businessTypeValue) => {
console.log(businessTypeValue);
businessType.value = businessTypeValue businessType.value = businessTypeValue
fromInventoryStatuses.value = getDirectoryItemArray(businessTypeValue.outInventoryStatuses) fromInventoryStatuses.value = getDirectoryItemArray(businessTypeValue.outInventoryStatuses)
fromLocationAreaTypeList.value = getDirectoryItemArray(businessTypeValue.outAreaTypes) fromLocationAreaTypeList.value = getDirectoryItemArray(businessTypeValue.outAreaTypes)
@ -301,6 +302,12 @@ const losefocus = () => {
} }
const emit = defineEmits(['getBalance']) const emit = defineEmits(['getBalance'])
defineExpose({
openScanPopup,
closeScanPopup,
getfocus,
losefocus
})
</script> </script>
<style lang="scss"> <style lang="scss">

4
src/mycomponents/scan/winScanPack.vue

@ -55,10 +55,10 @@ const simulateScan = (scanMessage) => {
}) })
} }
const openScanPopup = () => { const openScanPopup = () => {
show.value = true
setTimeout((res) => { setTimeout((res) => {
show.value = true
getfocus() getfocus()
}, 200) }, 500)
} }
const closeScanPopup = () => { const closeScanPopup = () => {

4
src/mycomponents/scan/winScanPackLevel.vue

@ -79,10 +79,10 @@ const simulateScan = (scanMessage) => {
}) })
} }
const openScanPopup = () => { const openScanPopup = () => {
show.value = true
setTimeout((res) => { setTimeout((res) => {
show.value = true
getfocus() getfocus()
}, 200) }, 500)
} }
const closeScanPopup = () => { const closeScanPopup = () => {
losefocus() losefocus()

4
src/mycomponents/scan/winScanPackage.vue

@ -56,10 +56,10 @@ const simulateScan = (item) => {
comscansimulate.value.clickScanMsg() comscansimulate.value.clickScanMsg()
} }
const openScanPopup = () => { const openScanPopup = () => {
show.value = true
setTimeout((res) => { setTimeout((res) => {
show.value = true
getfocus() getfocus()
}, 200) }, 500)
} }
const closeScanPopup = () => { const closeScanPopup = () => {

2
src/pages/count/coms/comCountDetailcards.vue

@ -8,7 +8,7 @@
</view> </view>
<view class=""> <view class="">
<view class="uni-flex uni-row"> <view class="uni-flex uni-row">
<compareQty :dataContent="dataContent" :recommendQty="dataContent.recommendQty" :handleQty="dataContent.handleQty" :isShowRecommendQty="isShowRecommendQty" :isShowRecommendQty="isShowRecommendQty"> </compareQty> <compareQty :dataContent="dataContent" :recommendQty="dataContent.recommendQty" :handleQty="dataContent.handleQty" :isShowRecommendQty="isShowRecommendQty"> </compareQty>
</view> </view>
<!-- <view v-if="dataContent.scaned" style="margin-top: 10rpx; float: right;"> <!-- <view v-if="dataContent.scaned" style="margin-top: 10rpx; float: right;">
<button type="primary" size="mini" @click="edit">编辑</button> <button type="primary" size="mini" @click="edit">编辑</button>

22
src/pages/count/job/countLightDetail.vue

@ -34,17 +34,17 @@
<u-line color="#D8D8D8" style="margin-bottom: 15rpx"></u-line> <u-line color="#D8D8D8" style="margin-bottom: 15rpx"></u-line>
<scroll-view scroll-y="true" class="" style="margin-bottom: 0px"> <scroll-view scroll-y="true" class="" style="margin-bottom: 0px">
<view class="detail-list" v-for="(item, index) in showList" :key="item.id"> <view class="detail-list" v-for="(item, index) in showList" :key="item.id">
<uni-swipe-action ref="swipeAction"> <u-swipe-action ref="swipeAction"
<uni-swipe-action-item @click="swipeClick($event, item)" :right-options="item.scaned ? scanOptions : detailOptions"> :options="item.scaned ? scanOptions : detailOptions"
<view class="uni-flex uni-row" style="align-items: center" :class="item.scaned ? 'scan_view' : 'item'"> @click="(...event)=>swipeClick(event, item)">
<view class="" style="font-size: 30rpx; font-weight: bold"> {{ index + 1 }}. </view> <view class="uni-flex uni-row" style="align-items: center" :class="item.scaned ? 'scan_view' : 'item'">
<comCountDetailcards :ref="'countDetail_'+index" :dataContent="item" :index="index" @editItem="editItem" <view class="" style="font-size: 30rpx; font-weight: bold"> {{ index + 1 }}. </view>
:settingParam="jobContent" @remove="updateData" @updateData="updateData"> <comCountDetailcards :ref="'countDetail_'+index" :dataContent="item" :index="index" @editItem="editItem"
</comCountDetailcards> :settingParam="jobContent" @remove="updateData" @updateData="updateData">
</view> </comCountDetailcards>
<view class="split_line"></view> </view>
</uni-swipe-action-item> <view class="split_line"></view>
</uni-swipe-action> </u-swipe-action>
</view> </view>
</scroll-view> </scroll-view>
<u-loadmore :status="loadingType" v-if="showList.length > 0" /> <u-loadmore :status="loadingType" v-if="showList.length > 0" />

8
src/pages/inventoryMove/coms/comInventoryDetailCard.vue

@ -14,7 +14,7 @@
<balance-qty-edit ref="qtyEdit" :settingParam="settingParam" @confirm="confirm" :allowEditQty="allowEditQty" :allowEditStatus="true"></balance-qty-edit> <balance-qty-edit ref="qtyEdit" :settingParam="settingParam" @confirm="confirm" :allowEditQty="allowEditQty" :allowEditStatus="true"></balance-qty-edit>
<win-scan-location ref="scanLocationCode" title="目标库位" :locationAreaTypeList="locationAreaTypeList" @getLocation="getLocation"></win-scan-location> <win-scan-location ref="scanLocationCode" title="目标库位" :locationAreaTypeList="locationAreaTypeList" @getLocation="getLocation"></win-scan-location>
<detail-info-popup ref="detailInfoPopupRef"></detail-info-popup> <detail-info-popup ref="detailInfoPopupRef"></detail-info-popup>
<com-message ref="comMessageRef" /> <comMessage ref="comMessageRef"></comMessage>
</view> </view>
</template> </template>
@ -47,7 +47,7 @@ const props = defineProps({
} }
}) })
watch(()=> props.dataContent, (newName, oldName)=>{ watch(()=> props.dataContent, (newName, oldName)=>{
if (dataContent.value.subList.length > 0) { if (props.dataContent.subList.length > 0) {
nextTick(res => { nextTick(res => {
setTimeout(() => { setTimeout(() => {
if (collapse1.value) { if (collapse1.value) {
@ -68,7 +68,7 @@ const detailOptions = ref([])
const scanOptions = ref([]) const scanOptions = ref([])
const removeOptions = ref([]) const removeOptions = ref([])
const dataList = ref([]) const dataList = ref([])
const comMessageRef = ref('') const comMessageRef = ref(null)
const detailInfoPopupRef = ref('') const detailInfoPopupRef = ref('')
const qtyEdit = ref('') const qtyEdit = ref('')
const scanLocationCode = ref('') const scanLocationCode = ref('')
@ -91,6 +91,7 @@ const openDetailCardPopup = () => {
winHint.value.openScanPopup() winHint.value.openScanPopup()
} }
const swipeClick = (params, item) => { const swipeClick = (params, item) => {
console.log(params);
let text = '' let text = ''
if (item.scaned) { if (item.scaned) {
text = scanOptions.value[params[1]].text text = scanOptions.value[params[1]].text
@ -139,7 +140,6 @@ const getLocation = (location, code) => {
emit('updateData') emit('updateData')
} }
//
const emit = defineEmits(['updateData', 'removePack', 'openDetail']) const emit = defineEmits(['updateData', 'removePack', 'openDetail'])
</script> </script>

32
src/pages/inventoryMove/coms/comInventoryDetailCardBatch.vue

@ -1,26 +1,24 @@
<template> <template>
<view class="" style="background-color: #fff;"> <view class="" style="background-color: #fff;">
<!-- <item-qty :dataContent="dataContent" :handleQty="dataContent.handleQty"></item-qty> --> <!-- <item-qty :dataContent="dataContent" :handleQty="dataContent.handleQty"></item-qty> -->
<item-compare-qty :dataContent="dataContent" :handleQty="dataContent.handleQty" :isShowStdPack="false"> <item-compare-qty :dataContent="dataContent" :handleQty="dataContent.handleQty" :isShowStdPack="false">
</item-compare-qty> </item-compare-qty>
<view class='split_line'></view> <view class='split_line'></view>
<view class="" v-for="(item,index) in dataContent.subList"> <view class="" v-for="(item,index) in dataContent.subList">
<u-swipe-action ref="swipeAction" v-if="index ==0" :class="item.scaned?'scan_view':''"> <u-swipe-action ref="swipeAction" v-if="index ==0"
<u-swipe-action-item :options="(item.scaned&&isEdit)?editAndRemoveOptions : item.scaned? removeOptions:options"
:right-options="(item.scaned&&isEdit)?editAndRemoveOptions : item.scaned? removeOptions:options" @click="(...event)=>swipeClick(event,item)"
@click="swipeClick($event,item)"> :class="item.scaned?'scan_view':''">
<div style="display: flex;"> <view style="display: flex;">
<div style="flex: 1;"> <view style="flex: 1;">
<batch v-if="item.batch" :batch="item.batch"></batch> <batch v-if="item.batch" :batch="item.batch"></batch>
<location v-if="item.fromLocationCode" title="来源库位" :locationCode="item.fromLocationCode"> <location v-if="item.fromLocationCode" title="来源库位" :locationCode="item.fromLocationCode">
</location> </location>
<to-location v-if="item.toLocationCode" title="目标库位" :locationCode="item.toLocationCode"> <to-location v-if="item.toLocationCode" title="目标库位" :locationCode="item.toLocationCode">
</to-location> </to-location>
</div> </view>
<text style="font-size: 30rpx;color: #2979ff; " @click="copy(item)" v-if="isDevlement()">复制</text> <text style="font-size: 30rpx;color: #2979ff; " @click="copy(item)" v-if="isDevlement()">复制</text>
</div> </view>
</u-swipe-action-item>
</u-swipe-action> </u-swipe-action>
</view> </view>
@ -70,7 +68,7 @@ const props = defineProps({
default: true default: true
} }
}); });
const emit = defineEmits(['openDetail', 'remove']) const emit = defineEmits(['openDetail', 'remove','updateData'])
const option = ref([]); const option = ref([]);
const title = ref("推荐详情"); const title = ref("推荐详情");

1
src/pages/inventoryMove/coms/comMoveJob.vue

@ -72,6 +72,7 @@ const comMessageRef = ref()
const jobInfoPopupRef = ref() const jobInfoPopupRef = ref()
const jobListPopupRef = ref() const jobListPopupRef = ref()
const filterItemCode = ref('') const filterItemCode = ref('')
const comReceiptJobList = ref(null)
onMounted(() => { onMounted(() => {
nextTick(() => { nextTick(() => {
detailOptions.value = getDetailOption() detailOptions.value = getDetailOption()

4
src/pages/inventoryMove/job/moveJob.vue

@ -7,10 +7,10 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue' import { ref, getCurrentInstance, nextTick } from 'vue'
import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh ,onLoad} from '@dcloudio/uni-app' import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh ,onLoad} from '@dcloudio/uni-app'
import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue' import ComMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
import { goHome, getCurrDate } from '@/common/basic.js' import { goHome, getCurrDate } from '@/common/basic.js'
const receiptjob = ref() const receiptjob = ref(null)
const title = ref('') const title = ref('')
onShow(() => { onShow(() => {
nextTick(() => { nextTick(() => {

1
src/pages/issue/job/issueJob.vue

@ -444,7 +444,6 @@ const showMessage = (message) => {
}) })
} }
const openScanPopup = () => { const openScanPopup = () => {
scanPopup.value.openScanPopup()
if (businessType.value == null) { if (businessType.value == null) {
getBusinessTypeFunc() getBusinessTypeFunc()
} else { } else {

4
src/pages/productionReturn/job/holdToReturnJob.vue

@ -42,8 +42,8 @@ import comEmptyView from '@/mycomponents/common/comEmptyView.vue'
import jobFilter from '@/mycomponents/job/jobFilter.vue' import jobFilter from '@/mycomponents/job/jobFilter.vue'
import comReturnJobCard from '@/pages/productionReturn/coms/comReturnJobCard.vue' import comReturnJobCard from '@/pages/productionReturn/coms/comReturnJobCard.vue'
import JobListPopup from '@/pages/productionReturn/coms/jobListPopup.vue' import JobListPopup from '@/pages/productionReturn/coms/jobListPopup.vue'
import JobInfoPopup from "@/mycomponents/job/jobInfoPopup.vue";
import {ref, onMounted, onBeforeUnmount, computed} from 'vue'; import {ref} from 'vue';
import { import {
onLoad, onLoad,
onShow, onShow,

2
src/pages/productionReturn/job/okToReturnJob.vue

@ -7,7 +7,7 @@
</job-filter> </job-filter>
<view v-if="jobList.length>0"> <view v-if="jobList.length>0">
<u-swipe-action ref="swipeAction" v-for="(item, index) in jobList" <u-swipe-action ref="swipeAction" v-for="(item, index) in jobList"
:key="index" options="item.status=='2'?detailGiveupOptions:detailOptions" :key="index" :options="item.status=='2'?detailGiveupOptions:detailOptions"
@click="(...event)=>swipeClick(event,item)"> @click="(...event)=>swipeClick(event,item)">
<com-return-job-card :dataContent="item" @click='openJobDetail(item)'></com-return-job-card> <com-return-job-card :dataContent="item" @click='openJobDetail(item)'></com-return-job-card>
</u-swipe-action> </u-swipe-action>

6
src/pages/purchaseReceipt/job/receiptJob.vue

@ -97,7 +97,7 @@ const refresh = () => {
const openFilter = () => { const openFilter = () => {
filter.value.openFilter() filter.value.openFilter()
} }
const goHome = () => { const goHome1 = () => {
goHome() goHome()
} }
const getList = (type) => { const getList = (type) => {
@ -142,7 +142,7 @@ const getList = (type) => {
const { list } = res.data const { list } = res.data
totalCount.value = res.data.total totalCount.value = res.data.total
updateTitle(`${title.value}(${totalCount.value})`) updateTitle(`${props.title}(${totalCount.value})`)
loadingType.value = 'loadmore' loadingType.value = 'loadmore'
if (list == null || list.length == 0) { if (list == null || list.length == 0) {
loadingType.value = 'nomore' loadingType.value = 'nomore'
@ -403,7 +403,7 @@ const getScanResult = (result) => {
defineExpose({ defineExpose({
refresh, refresh,
openFilter, openFilter,
goHome, goHome1,
onReach onReach
}) })
</script> </script>

2
src/pages/unPlanned/job/issueJob.vue

@ -55,7 +55,7 @@ const comMessageRef = ref()
const jobInfoPopupRef = ref() const jobInfoPopupRef = ref()
const jobListPopupRef = ref() const jobListPopupRef = ref()
const scanPopup = ref() const scanPopup = ref()
onShow(() => { onLoad(() => {
nextTick(() => { nextTick(() => {
getList('refresh') getList('refresh')
}) })

Loading…
Cancel
Save