|
|
@@ -29,37 +29,17 @@
|
|
|
@tap.stop="swichClass"
|
|
|
>
|
|
|
<text>{{ item.className || "" }}</text>
|
|
|
- <text
|
|
|
- class="tag"
|
|
|
- v-if="
|
|
|
- getSelectClassById(item.classId).bigCount > 0 ||
|
|
|
- getSelectClassById(item.classId).smallCount > 0
|
|
|
- "
|
|
|
- >
|
|
|
- <text
|
|
|
- v-if="
|
|
|
- getSelectClassById(item.classId).bigCount > 0 ||
|
|
|
- getSelectClassById(item.classId).smallCount > 0
|
|
|
- "
|
|
|
- >
|
|
|
+ <text class="tag" v-if=" getSelectClassById(item.classId).bigCount > 0 || getSelectClassById(item.classId).smallCount > 0">
|
|
|
+ <text v-if="getSelectClassById(item.classId).bigCount > 0 || getSelectClassById(item.classId).smallCount > 0">
|
|
|
{{ `${getSelectClassById(item.classId).bigCount}` }}
|
|
|
</text>
|
|
|
- <text v-if="getSelectClassById(item.classId).smallCount > 0">
|
|
|
- /
|
|
|
- </text>
|
|
|
- <text v-if="getSelectClassById(item.classId).smallCount > 0">{{
|
|
|
- getSelectClassById(item.classId).smallCount
|
|
|
- }}</text>
|
|
|
+ <text v-if="getSelectClassById(item.classId).smallCount > 0">/</text>
|
|
|
+ <text v-if="getSelectClassById(item.classId).smallCount > 0">{{getSelectClassById(item.classId).smallCount}}</text>
|
|
|
</text>
|
|
|
</div>
|
|
|
</scroll-view>
|
|
|
|
|
|
- <scroll-view
|
|
|
- scroll-y
|
|
|
- class="right-box"
|
|
|
- v-if="tabIndex == 0"
|
|
|
- :scroll-into-view="scrollClassId"
|
|
|
- >
|
|
|
+ <scroll-view scroll-y class="right-box" v-if="tabIndex == 0" :scroll-into-view="scrollClassId">
|
|
|
<!--内容部分 start -->
|
|
|
<block v-if="!$util.isEmpty(filterProductInfo)">
|
|
|
<view
|
|
|
@@ -97,10 +77,7 @@
|
|
|
</view>
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
- <app-wrapper-empty
|
|
|
- title="暂无数据"
|
|
|
- :is-empty="$util.isEmpty(filterProductInfo)"
|
|
|
- />
|
|
|
+ <app-wrapper-empty title="暂无数据" :is-empty="$util.isEmpty(filterProductInfo)" />
|
|
|
</block>
|
|
|
<!--内容部分 end -->
|
|
|
</scroll-view>
|
|
|
@@ -111,44 +88,23 @@
|
|
|
</block>
|
|
|
</view>
|
|
|
<!-- :maskClosable="false" -->
|
|
|
- <modal-module
|
|
|
- :show="isModel"
|
|
|
- @cancel="modalCancel"
|
|
|
- @click="affirm"
|
|
|
- :title="customData.itemName"
|
|
|
- color="#333"
|
|
|
- :size="32"
|
|
|
- padding="30rpx 30rpx"
|
|
|
- >
|
|
|
+ <modal-module :show="isModel" @cancel="modalCancel" @click="affirm" :title="customData.itemName" color="#333" :size="32" padding="30rpx 30rpx">
|
|
|
<template slot="customContent">
|
|
|
<view class="select-cmd_bx" v-if="customData">
|
|
|
<view class="kc"> 库存{{ customData.stock }} </view>
|
|
|
<view class="num_bx">
|
|
|
- <input v-model="customData.bigCount" type="number" focus />扎
|
|
|
- <input
|
|
|
- v-model="customData.smallCount"
|
|
|
- type="number"
|
|
|
- style="margin-left:24upx"
|
|
|
- />支
|
|
|
+ <input v-model="customData.bigCount" focus type="number" >扎
|
|
|
+<!-- <input v-model="customData.bigCount" :focus="isModel" @focus="allSelect" :selection-start="startIndex" :selection-end="endIndex" type="number" >扎-->
|
|
|
+ <input v-model="customData.smallCount" type="number" style="margin-left:24upx" />支
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
</modal-module>
|
|
|
- <modal-module
|
|
|
- :show="showSubmitModel"
|
|
|
- @cancel="cancelEvent"
|
|
|
- @click="submitEvent"
|
|
|
- :title="confirmContent"
|
|
|
- color="#333"
|
|
|
- :size="32"
|
|
|
- padding="30rpx 30rpx"
|
|
|
- >
|
|
|
+
|
|
|
+ <modal-module :show="showSubmitModel" @cancel="cancelEvent" @click="submitEvent" :title="confirmContent" color="#333" :size="32" padding="30rpx 30rpx" >
|
|
|
</modal-module>
|
|
|
- <FooterCart
|
|
|
- :price="allPrice"
|
|
|
- :count="allCount"
|
|
|
- @confirm="confirmSelectEvent"
|
|
|
- ></FooterCart>
|
|
|
+
|
|
|
+ <FooterCart :price="allPrice" :count="allCount" @confirm="confirmSelectEvent" ></FooterCart>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -273,6 +229,7 @@ export default {
|
|
|
if (this.selectList.length > 0) {
|
|
|
const product = this.selectList.map(ele => {
|
|
|
return {
|
|
|
+ classId:ele.classId,
|
|
|
productId: ele.id,
|
|
|
bigNum: ele.bigCount,
|
|
|
smallNum: ele.smallCount
|