王志国
3 weeks ago
5 changed files with 772 additions and 846 deletions
@ -1,48 +1,41 @@ |
|||
<template> |
|||
<template> |
|||
<view class=""> |
|||
<product-putaway-record :title="title" ref="productPutawayRecord" putawayType='assemble'></product-putaway-record> |
|||
<product-putaway-record :title="title" ref="productPutawayRecordRef" putawayType="assemble"></product-putaway-record> |
|||
</view> |
|||
</template> |
|||
</template> |
|||
|
|||
<script> |
|||
import productPutawayRecord from '@/pages/productPutaway/record/productPutawayRecord.vue' |
|||
<script setup> |
|||
import { ref } from 'vue'; |
|||
import { onLoad, onShow, onPullDownRefresh, onNavigationBarButtonTap } from '@dcloudio/uni-app'; |
|||
import productPutawayRecord from '@/pages/productPutaway/record/productPutawayRecord.vue'; |
|||
|
|||
export default { |
|||
components: { |
|||
productPutawayRecord |
|||
}, |
|||
data() { |
|||
return { |
|||
title:'' |
|||
}; |
|||
}, |
|||
onLoad(option){ |
|||
this.title = option.title |
|||
}, |
|||
const title = ref(''); |
|||
const productPutawayRecordRef = ref(null); |
|||
|
|||
onShow() { |
|||
if(this.$refs.productPutawayRecord!=undefined){ |
|||
// this.$refs.productPutawayRecord.refresh(); |
|||
} |
|||
}, |
|||
onLoad((option) => { |
|||
title.value = option.title; |
|||
}); |
|||
|
|||
onPullDownRefresh() { |
|||
// this.$refs.productPutawayRecord.refresh(); |
|||
}, |
|||
onNavigationBarButtonTap(e) { |
|||
if (e.index === 0) { |
|||
this.$refs.productPutawayRecord.toHome(); |
|||
} else if (e.index == 1) { |
|||
this.$refs.productPutawayRecord.openFilter(); |
|||
onShow(() => { |
|||
if (productPutawayRecordRef.value) { |
|||
// productPutawayRecordRef.value.refresh(); |
|||
} |
|||
}, |
|||
|
|||
methods: { |
|||
}); |
|||
|
|||
onPullDownRefresh(() => { |
|||
if (productPutawayRecordRef.value) { |
|||
// productPutawayRecordRef.value.refresh(); |
|||
} |
|||
} |
|||
</script> |
|||
}); |
|||
|
|||
<style scoped lang="scss"> |
|||
onNavigationBarButtonTap((e) => { |
|||
if (e.index === 0) { |
|||
productPutawayRecordRef.value.toHome(); |
|||
} else if (e.index === 1) { |
|||
productPutawayRecordRef.value.openFilter(); |
|||
} |
|||
}); |
|||
</script> |
|||
|
|||
</style> |
|||
<style scoped lang="scss"> |
|||
</style> |
|||
|
@ -1,48 +1,41 @@ |
|||
<template> |
|||
<view class=""> |
|||
<product-putaway-record :title="title" ref="productPutawayRecord" putawayType='predict'></product-putaway-record> |
|||
<product-putaway-record :title="title" ref="productPutawayRecordRef" putawayType="predict"></product-putaway-record> |
|||
</view> |
|||
</template> |
|||
</template> |
|||
|
|||
<script> |
|||
import productPutawayRecord from '@/pages/productPutaway/record/productPutawayRecord.vue' |
|||
<script setup lang="ts"> |
|||
import { ref } from 'vue'; |
|||
import { onLoad, onShow, onPullDownRefresh, onNavigationBarButtonTap } from '@dcloudio/uni-app'; |
|||
import productPutawayRecord from '@/pages/productPutaway/record/productPutawayRecord.vue'; |
|||
|
|||
export default { |
|||
components: { |
|||
productPutawayRecord |
|||
}, |
|||
data() { |
|||
return { |
|||
title:'' |
|||
}; |
|||
}, |
|||
onLoad(option){ |
|||
this.title = option.title |
|||
}, |
|||
const title = ref(''); |
|||
const productPutawayRecordRef = ref(null); |
|||
|
|||
onShow() { |
|||
if(this.$refs.productPutawayRecord!=undefined){ |
|||
this.$refs.productPutawayRecord.refresh(); |
|||
} |
|||
}, |
|||
onLoad((option) => { |
|||
title.value = option.title; |
|||
}); |
|||
|
|||
onPullDownRefresh() { |
|||
this.$refs.productPutawayRecord.refresh(); |
|||
}, |
|||
onNavigationBarButtonTap(e) { |
|||
if (e.index === 0) { |
|||
this.$refs.productPutawayRecord.toHome(); |
|||
} else if (e.index == 1) { |
|||
this.$refs.productPutawayRecord.openFilter(); |
|||
onShow(() => { |
|||
if (productPutawayRecordRef.value) { |
|||
productPutawayRecordRef.value.refresh(); |
|||
} |
|||
}, |
|||
|
|||
methods: { |
|||
}); |
|||
|
|||
onPullDownRefresh(() => { |
|||
if (productPutawayRecordRef.value) { |
|||
productPutawayRecordRef.value.refresh(); |
|||
} |
|||
} |
|||
</script> |
|||
}); |
|||
|
|||
<style scoped lang="scss"> |
|||
onNavigationBarButtonTap((e) => { |
|||
if (e.index === 0) { |
|||
productPutawayRecordRef.value.toHome(); |
|||
} else if (e.index === 1) { |
|||
productPutawayRecordRef.value.openFilter(); |
|||
} |
|||
}); |
|||
</script> |
|||
|
|||
</style> |
|||
<style scoped lang="scss"> |
|||
</style> |
|||
|
@ -1,48 +1,47 @@ |
|||
<template> |
|||
<view class=""> |
|||
<product-receipt-record :title="title" ref="productPutawayRecord" type='predict'></product-receipt-record> |
|||
<product-receipt-record :title="title" ref="productReceiptRecordRef" type="predict"></product-receipt-record> |
|||
</view> |
|||
</template> |
|||
|
|||
<script> |
|||
import productReceiptRecord from '@/pages/productReceipt/record/productReceiptRecord.vue' |
|||
<script setup> |
|||
import { ref } from 'vue'; |
|||
import { onLoad, onShow, onPullDownRefresh, onNavigationBarButtonTap } from '@dcloudio/uni-app'; |
|||
import productReceiptRecord from '@/pages/productReceipt/record/productReceiptRecord.vue'; |
|||
|
|||
export default { |
|||
components: { |
|||
productReceiptRecord |
|||
}, |
|||
data() { |
|||
return { |
|||
title:'' |
|||
}; |
|||
}, |
|||
onLoad(option){ |
|||
this.title = option.title |
|||
}, |
|||
// 定义响应式数据 |
|||
const title = ref(''); |
|||
const productReceiptRecordRef = ref(null); |
|||
|
|||
onShow() { |
|||
if(this.$refs.productReceiptRecord!=undefined){ |
|||
this.$refs.productReceiptRecord.refresh(); |
|||
} |
|||
}, |
|||
// 页面加载时处理 |
|||
onLoad((option) => { |
|||
title.value = option.title; |
|||
}); |
|||
|
|||
onPullDownRefresh() { |
|||
this.$refs.productReceiptRecord.refresh(); |
|||
}, |
|||
onNavigationBarButtonTap(e) { |
|||
if (e.index === 0) { |
|||
this.$refs.productReceiptRecord.toHome(); |
|||
} else if (e.index == 1) { |
|||
this.$refs.productReceiptRecord.openFilter(); |
|||
// 页面显示时处理 |
|||
onShow(() => { |
|||
if (productReceiptRecordRef.value) { |
|||
productReceiptRecordRef.value.refresh(); |
|||
} |
|||
}, |
|||
|
|||
methods: { |
|||
}); |
|||
|
|||
// 下拉刷新时处理 |
|||
onPullDownRefresh(() => { |
|||
if (productReceiptRecordRef.value) { |
|||
productReceiptRecordRef.value.refresh(); |
|||
} |
|||
}); |
|||
|
|||
// 导航栏按钮点击事件 |
|||
onNavigationBarButtonTap((e) => { |
|||
if (e.index === 0) { |
|||
productReceiptRecordRef.value.toHome(); |
|||
} else if (e.index === 1) { |
|||
productReceiptRecordRef.value.openFilter(); |
|||
} |
|||
}); |
|||
</script> |
|||
|
|||
<style scoped lang="scss"> |
|||
|
|||
/* 样式部分保持不变 */ |
|||
</style> |
Loading…
Reference in new issue