|
|
@@ -3,7 +3,7 @@
|
|
|
<view class="title">列表</view>
|
|
|
<view class="itemList-item_box">
|
|
|
<view v-for="item in selectList" :key="item.id" class="show-item_box">
|
|
|
- <view class="item-body_box not-active">
|
|
|
+ <view class="item-body_box not-active" @click="popAddModelFn(item)">
|
|
|
<view class="flower-name_box">
|
|
|
<view class="current-item-title"><text class="name">{{item.name}}</text><text @click.stop="delItem(item)" class="del">删除</text></view>
|
|
|
</view>
|
|
|
@@ -29,13 +29,20 @@
|
|
|
</view>
|
|
|
<view> 合计 <text style="margin-left:5upx;">¥{{allPrice}}</text> </view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <!-- 开单选花材输入数量和金额 -->
|
|
|
+ <uni-popup ref="selectNumPriceRef" background-color="#fff" type="center" :animation="false">
|
|
|
+ <selectNumPrice @confirmAddItemModel="confirmAddItemModel" :customData.sync="customData" @addToClear="addToClear" @cancelKdSelectNumPrice="addItemModelHidden"></selectNumPrice>
|
|
|
+ </uni-popup>
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
import productMins from "@/mixins/product";
|
|
|
+import selectNumPrice from './selectNumPrice.vue'
|
|
|
export default {
|
|
|
name:'leftItem',
|
|
|
- components:{},
|
|
|
+ components:{selectNumPrice},
|
|
|
mixins: [productMins],
|
|
|
props: {
|
|
|
changeCurrentJobType:{
|
|
|
@@ -68,6 +75,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
+ popAddModelFn(info) {
|
|
|
+ let currentNum = info.currentNum
|
|
|
+ let unitPrice = info.unitPrice
|
|
|
+ let unitType = info.unitType
|
|
|
+ this.$util.hitVoice()
|
|
|
+ this.showAddModelFn({ ...info, currentNum: currentNum, unitPrice: unitPrice,unitType:unitType,action:'update'})
|
|
|
+ },
|
|
|
delItem(item){
|
|
|
this.$util.hitVoice()
|
|
|
item.currentNum = 0
|