|
|
@@ -3,8 +3,8 @@
|
|
|
<!-- 标题栏 -->
|
|
|
<view class="popup-header">
|
|
|
<view class="header-content">
|
|
|
- <text>剩7扎 单价:</text>
|
|
|
- <input class="price-input" @focus="option.price=''" v-model="option.price" type="digit" />
|
|
|
+ <text>剩{{customData.stock?parseFloat(customData.stock):0}}扎 单价:</text>
|
|
|
+ <input class="price-input" @focus="customData.unitPrice=''" v-model="customData.unitPrice" type="digit" />
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -58,10 +58,9 @@
|
|
|
export default {
|
|
|
name: 'selectFlowerGrid',
|
|
|
props: {
|
|
|
- flowerData: {
|
|
|
- type: Array,
|
|
|
- default: () => []
|
|
|
- }
|
|
|
+ flowerData: { type: Array, default: () => [] },
|
|
|
+ customData:{ type:Object, default:()=>{} },
|
|
|
+ customId: { type: Number, default: 0 }
|
|
|
},
|
|
|
data() {
|
|
|
return {
|