Browse Source

mycomponents/balance 文件迁移Vue2升级Vue3 8/2-10/25

hella_vue3
王志国 3 weeks ago
parent
commit
2ec44be25d
  1. 67
      src/mycomponents/balance/handleBalanceBatch.vue
  2. 62
      src/mycomponents/balance/recommendBalanceBatch.vue

67
src/mycomponents/balance/handleBalanceBatch.vue

@ -20,56 +20,35 @@
</view> </view>
</template> </template>
<script> <script setup lang="ts">
import pack from '@/mycomponents/balance/pack.vue' import pack from '@/mycomponents/balance/pack.vue'
import location from '@/mycomponents/balance/location.vue' import location from '@/mycomponents/balance/location.vue'
import batch from '@/mycomponents/balance/batch.vue' 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'
export default { const props = defineProps({
components: { detail: {
pack, type: Object,
location, default: {}
batch, },
recommendQty, isShowPack: {
compareQty type: Boolean,
}, default: true
},
data() { isShowBatch: {
return { type: Boolean,
default: true
} },
}, isShowLocation: {
props: { type: Boolean,
detail: { default: true
type: Object, },
default: {} isShowStatus: {
}, type: Boolean,
isShowPack: { default: true
type: Boolean, },
default: true })
},
isShowBatch: {
type: Boolean,
default: true
},
isShowLocation: {
type: Boolean,
default: true
},
isShowStatus: {
type: Boolean,
default: true
},
},
watch: {
},
methods: {
}
}
</script> </script>
<style> <style>

62
src/mycomponents/balance/recommendBalanceBatch.vue

@ -15,53 +15,31 @@
</view> </view>
</template> </template>
<script> <script setup lang="ts">
import pack from '@/mycomponents/balance/pack.vue' import pack from '@/mycomponents/balance/pack.vue'
import location from '@/mycomponents/balance/location.vue' import location from '@/mycomponents/balance/location.vue'
import batch from '@/mycomponents/balance/batch.vue' 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'
const props = defineProps({
export default { detail: {
components: { type: Object,
pack, default: {}
location, },
batch, isShowPack: {
recommendQty, type: Boolean,
compareQty default: true
}, },
isShowBatch: {
data() { type: Boolean,
return { default: true
},
} isShowLocation: {
}, type: Boolean,
props: { default: true
detail: { },
type: Object,
default: {} })
},
isShowPack: {
type: Boolean,
default: true
},
isShowBatch: {
type: Boolean,
default: true
},
isShowLocation: {
type: Boolean,
default: true
},
},
watch: {
},
methods: {
}
}
</script> </script>
<style> <style>

Loading…
Cancel
Save