Commit fe6667de authored by Damon's avatar Damon

feat: 复制物料名

parent a61c5b3e
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<image class="image-view" :src="imageUrl"></image> <image class="image-view" :src="imageUrl"></image>
</view> </view>
<view class="info-view"> <view class="info-view">
<view class="name-text">{{item.name}}</view> <view class="name-text" @click="copyName(item.name)">{{item.name}}</view>
<view class="info-bottom"> <view class="info-bottom">
<view>{{remarkText}}</view> <view>{{remarkText}}</view>
<view class="count-view"> <view class="count-view">
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
}, },
placeholderImage() { placeholderImage() {
return process.uniEnv.qn_base_url + 'morentupian.png' return process.uniEnv.qn_base_url + 'morentupian.png'
}, }
}, },
watch: { watch: {
'item.quantity'(val) { 'item.quantity'(val) {
...@@ -89,6 +89,11 @@ ...@@ -89,6 +89,11 @@
this.$emit('change', this.check) this.$emit('change', this.check)
this.$emit('numChange', event.value) this.$emit('numChange', event.value)
}, },
copyName(name) {
uni.setClipboardData({
data: name
})
}
} }
} }
</script> </script>
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<template v-else> <template v-else>
<view class="list-item" v-for="(item, index) in partsList" :key="item.id"> <view class="list-item" v-for="(item, index) in partsList" :key="item.id">
<SpareCell :item="item" :showChecked="showBounce" type="stock" <SpareCell :item="item" :showChecked="showBounce" type="stock"
@change="handleChange($event, index)"@numChange="handleNumChange($event, index)" /> @change="handleChange($event, index)" @numChange="handleNumChange($event, index)" />
</view> </view>
<!-- 底部加载状态 --> <!-- 底部加载状态 -->
<view class="load-more-view" v-if="partsList.length > 0"> <view class="load-more-view" v-if="partsList.length > 0">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment