Browse Source

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

hella_vue3
王志国 3 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(() => {
setTimeout(() => {
if (collapse1.value) {
collapse1.value.resize();
collapse1.value.init();
}
}, 500);
});

3
src/mycomponents/item/itemQty.vue

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

2
src/mycomponents/job/jobFilter.vue

@ -307,7 +307,7 @@ const getScanNumber = (val) => {
scanNumber.value.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 })
</script>
<style lang="scss">

60
src/mycomponents/qty/packUnit.vue

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

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 compareQty from '@/mycomponents/qty/compareQty.vue'
import config from '@/static/config.js'
import {watch} from 'vue'
const props = defineProps({
detail: {
type: Object,

7
src/mycomponents/scan/winComScanBalance.vue

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

4
src/mycomponents/scan/winScanPack.vue

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

4
src/mycomponents/scan/winScanPackLevel.vue

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

4
src/mycomponents/scan/winScanPackage.vue

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

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

@ -8,7 +8,7 @@
</view>
<view class="">
<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 v-if="dataContent.scaned" style="margin-top: 10rpx; float: right;">
<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>
<scroll-view scroll-y="true" class="" style="margin-bottom: 0px">
<view class="detail-list" v-for="(item, index) in showList" :key="item.id">
<uni-swipe-action ref="swipeAction">
<uni-swipe-action-item @click="swipeClick($event, item)" :right-options="item.scaned ? scanOptions : detailOptions">
<view class="uni-flex uni-row" style="align-items: center" :class="item.scaned ? 'scan_view' : 'item'">
<view class="" style="font-size: 30rpx; font-weight: bold"> {{ index + 1 }}. </view>
<comCountDetailcards :ref="'countDetail_'+index" :dataContent="item" :index="index" @editItem="editItem"
:settingParam="jobContent" @remove="updateData" @updateData="updateData">
</comCountDetailcards>
</view>
<view class="split_line"></view>
</uni-swipe-action-item>
</uni-swipe-action>
<u-swipe-action ref="swipeAction"
:options="item.scaned ? scanOptions : detailOptions"
@click="(...event)=>swipeClick(event, item)">
<view class="uni-flex uni-row" style="align-items: center" :class="item.scaned ? 'scan_view' : 'item'">
<view class="" style="font-size: 30rpx; font-weight: bold"> {{ index + 1 }}. </view>
<comCountDetailcards :ref="'countDetail_'+index" :dataContent="item" :index="index" @editItem="editItem"
:settingParam="jobContent" @remove="updateData" @updateData="updateData">
</comCountDetailcards>
</view>
<view class="split_line"></view>
</u-swipe-action>
</view>
</scroll-view>
<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>
<win-scan-location ref="scanLocationCode" title="目标库位" :locationAreaTypeList="locationAreaTypeList" @getLocation="getLocation"></win-scan-location>
<detail-info-popup ref="detailInfoPopupRef"></detail-info-popup>
<com-message ref="comMessageRef" />
<comMessage ref="comMessageRef"></comMessage>
</view>
</template>
@ -47,7 +47,7 @@ const props = defineProps({
}
})
watch(()=> props.dataContent, (newName, oldName)=>{
if (dataContent.value.subList.length > 0) {
if (props.dataContent.subList.length > 0) {
nextTick(res => {
setTimeout(() => {
if (collapse1.value) {
@ -68,7 +68,7 @@ const detailOptions = ref([])
const scanOptions = ref([])
const removeOptions = ref([])
const dataList = ref([])
const comMessageRef = ref('')
const comMessageRef = ref(null)
const detailInfoPopupRef = ref('')
const qtyEdit = ref('')
const scanLocationCode = ref('')
@ -91,6 +91,7 @@ const openDetailCardPopup = () => {
winHint.value.openScanPopup()
}
const swipeClick = (params, item) => {
console.log(params);
let text = ''
if (item.scaned) {
text = scanOptions.value[params[1]].text
@ -139,7 +140,6 @@ const getLocation = (location, code) => {
emit('updateData')
}
//
const emit = defineEmits(['updateData', 'removePack', 'openDetail'])
</script>

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

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

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

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

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

@ -7,10 +7,10 @@
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
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'
const receiptjob = ref()
const receiptjob = ref(null)
const title = ref('')
onShow(() => {
nextTick(() => {

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

@ -444,7 +444,6 @@ const showMessage = (message) => {
})
}
const openScanPopup = () => {
scanPopup.value.openScanPopup()
if (businessType.value == null) {
getBusinessTypeFunc()
} 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 comReturnJobCard from '@/pages/productionReturn/coms/comReturnJobCard.vue'
import JobListPopup from '@/pages/productionReturn/coms/jobListPopup.vue'
import {ref, onMounted, onBeforeUnmount, computed} from 'vue';
import JobInfoPopup from "@/mycomponents/job/jobInfoPopup.vue";
import {ref} from 'vue';
import {
onLoad,
onShow,

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

@ -7,7 +7,7 @@
</job-filter>
<view v-if="jobList.length>0">
<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)">
<com-return-job-card :dataContent="item" @click='openJobDetail(item)'></com-return-job-card>
</u-swipe-action>

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

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

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

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

Loading…
Cancel
Save