Commit fe6667de authored by Damon's avatar Damon

feat: 复制物料名

parent a61c5b3e
......@@ -6,7 +6,7 @@
<image class="image-view" :src="imageUrl"></image>
</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>{{remarkText}}</view>
<view class="count-view">
......@@ -66,7 +66,7 @@
},
placeholderImage() {
return process.uniEnv.qn_base_url + 'morentupian.png'
},
}
},
watch: {
'item.quantity'(val) {
......@@ -89,6 +89,11 @@
this.$emit('change', this.check)
this.$emit('numChange', event.value)
},
copyName(name) {
uni.setClipboardData({
data: name
})
}
}
}
</script>
......
......@@ -34,7 +34,7 @@
<template v-else>
<view class="list-item" v-for="(item, index) in partsList" :key="item.id">
<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 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