|
@@ -7,7 +7,6 @@
|
|
|
@input="searchFn"
|
|
@input="searchFn"
|
|
|
/>
|
|
/>
|
|
|
</view>
|
|
</view>
|
|
|
-<!-- <app-tabs :tabs="tabs" :currentTab="tabIndex" @change="change" itemWidth="50%"/>-->
|
|
|
|
|
<view class="scroll-middle_bx">
|
|
<view class="scroll-middle_bx">
|
|
|
<scroll-view scroll-y scroll-with-animation class="tab-view" :scroll-top="scrollTop">
|
|
<scroll-view scroll-y scroll-with-animation class="tab-view" :scroll-top="scrollTop">
|
|
|
<div v-for="(item, index) in filterProductInfo" :key="index" class="tab-bar-item" :class="[classIndex == index ? 'active' : '']" :data-current="index" @tap.stop="swichClass(index)">
|
|
<div v-for="(item, index) in filterProductInfo" :key="index" class="tab-bar-item" :class="[classIndex == index ? 'active' : '']" :data-current="index" @tap.stop="swichClass(index)">
|
|
@@ -21,20 +20,12 @@
|
|
|
</text>
|
|
</text>
|
|
|
</div>
|
|
</div>
|
|
|
<view style="height: 120rpx"></view>
|
|
<view style="height: 120rpx"></view>
|
|
|
- <!-- <view class="switchover-unit" @tap="isSmallCount = !isSmallCount">{{isSmallCount?'支':'扎'}}</view> -->
|
|
|
|
|
</scroll-view>
|
|
</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="scroll_into_view" scroll-with-animation="true"
|
|
<scroll-view scroll-y class="right-box" v-if="tabIndex == 0" :scroll-into-view="scroll_into_view" scroll-with-animation="true"
|
|
|
@scroll="scroll_detail"
|
|
@scroll="scroll_detail"
|
|
|
lower-threshold="100"
|
|
lower-threshold="100"
|
|
|
@scrolltolower="scroll_bottom">
|
|
@scrolltolower="scroll_bottom">
|
|
|
- <!--内容部分 start -->
|
|
|
|
|
<block v-if="!$util.isEmpty(filterProductInfo)">
|
|
<block v-if="!$util.isEmpty(filterProductInfo)">
|
|
|
<view class="item_list_bx selectAll" v-for="(classItem, classIndex) in filterProductInfo" :key="classIndex" :id="`class_${classIndex}`">
|
|
<view class="item_list_bx selectAll" v-for="(classItem, classIndex) in filterProductInfo" :key="classIndex" :id="`class_${classIndex}`">
|
|
|
<view class="item_list_title">
|
|
<view class="item_list_title">
|
|
@@ -58,20 +49,13 @@
|
|
|
@del="delEvent"
|
|
@del="delEvent"
|
|
|
></Commondity>
|
|
></Commondity>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- <Commondity
|
|
|
|
|
- :type="COMMODITY_TYPE.CHANGE"
|
|
|
|
|
- @customNum="customNum"
|
|
|
|
|
- ></Commondity> -->
|
|
|
|
|
</template>
|
|
</template>
|
|
|
</view>
|
|
</view>
|
|
|
</block>
|
|
</block>
|
|
|
<block v-else>
|
|
<block v-else>
|
|
|
- <app-wrapper-empty
|
|
|
|
|
- title="暂无数据"
|
|
|
|
|
- :is-empty="$util.isEmpty(filterProductInfo)"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <app-wrapper-empty title="暂无数据" :is-empty="$util.isEmpty(filterProductInfo)" />
|
|
|
</block>
|
|
</block>
|
|
|
- <!--内容部分 end -->
|
|
|
|
|
|
|
+
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
<block v-else>
|
|
<block v-else>
|
|
|
<view style="width:100%">
|
|
<view style="width:100%">
|
|
@@ -79,7 +63,6 @@
|
|
|
</view>
|
|
</view>
|
|
|
</block>
|
|
</block>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- :maskClosable="false" -->
|
|
|
|
|
<modal-module
|
|
<modal-module
|
|
|
:show="isModel"
|
|
:show="isModel"
|
|
|
@cancel="modalCancel"
|
|
@cancel="modalCancel"
|
|
@@ -93,12 +76,6 @@
|
|
|
<view class="select-cmd_bx" v-if="customData">
|
|
<view class="select-cmd_bx" v-if="customData">
|
|
|
<view class="kc"> 库存{{ customData.stock }} </view>
|
|
<view class="kc"> 库存{{ customData.stock }} </view>
|
|
|
<view class="num_bx">
|
|
<view class="num_bx">
|
|
|
- <!--<allMoreSelectInput-->
|
|
|
|
|
- <!--:isActive="isActive" :isFocus="isFocus" :value="customData.bigCount"-->
|
|
|
|
|
- <!--:isActiveOne="isActiveOne" :isFocusOne="isFocusOne" :valueOne="customData.smallCount"-->
|
|
|
|
|
- <!--@deleteInputVal="deleteInputVal" @initAllInput="initAllInput" @moveAllInput="moveAllInput"-->
|
|
|
|
|
- <!--@deleteInputValOne="deleteInputValOne" @initAllInputOne="initAllInputOne" @moveAllInputOne="moveAllInputOne">-->
|
|
|
|
|
- <!--</allMoreSelectInput>-->
|
|
|
|
|
<input v-model="customData.bigCount" :focus="isFocus" type="number" />扎
|
|
<input v-model="customData.bigCount" :focus="isFocus" type="number" />扎
|
|
|
<input v-model="customData.smallCount" type="number" style="margin-left:24upx"/>支
|
|
<input v-model="customData.smallCount" type="number" style="margin-left:24upx"/>支
|
|
|
</view>
|
|
</view>
|
|
@@ -157,9 +134,6 @@ export default {
|
|
|
{
|
|
{
|
|
|
name: "成品"
|
|
name: "成品"
|
|
|
}
|
|
}
|
|
|
- // {
|
|
|
|
|
- // name: '课程'
|
|
|
|
|
- // },
|
|
|
|
|
],
|
|
],
|
|
|
isFocus: false,
|
|
isFocus: false,
|
|
|
isModel: false,
|
|
isModel: false,
|
|
@@ -181,7 +155,6 @@ export default {
|
|
|
return content;
|
|
return content;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
//自定义数量
|
|
//自定义数量
|
|
|
customNum(info) {
|
|
customNum(info) {
|
|
@@ -234,27 +207,6 @@ export default {
|
|
|
|
|
|
|
|
this.updateItemEvent(this.customData);
|
|
this.updateItemEvent(this.customData);
|
|
|
this.modalCancel();
|
|
this.modalCancel();
|
|
|
- // const {
|
|
|
|
|
- // bigCount,
|
|
|
|
|
- // smallCount,
|
|
|
|
|
- // bigNum,
|
|
|
|
|
- // bigUnit,
|
|
|
|
|
- // smallNum,
|
|
|
|
|
- // smallUnit,
|
|
|
|
|
- // ratio
|
|
|
|
|
- // } = this.customData;
|
|
|
|
|
- // const ratioNum = Number(ratio);
|
|
|
|
|
- //
|
|
|
|
|
- // //超过库存时 设置为库存最大值
|
|
|
|
|
- // if (Number(bigCount) * ratioNum + Number(smallCount) > Number(bigNum) * ratioNum + Number(smallNum)) {
|
|
|
|
|
- // uni.showToast({title: `库存只有${bigNum}${bigUnit}${smallNum}${smallUnit}`,icon: "none"});
|
|
|
|
|
- // this.customData.bigCount = 0;
|
|
|
|
|
- // this.customData.smallCount = 0;
|
|
|
|
|
- // this.delAllEvent(this.customData)
|
|
|
|
|
- // } else {
|
|
|
|
|
- // this.updateItemEvent(this.customData);
|
|
|
|
|
- // this.modalCancel();
|
|
|
|
|
- // }
|
|
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
},
|
|
},
|
|
@@ -274,8 +226,7 @@ export default {
|
|
|
this.cancelEvent();
|
|
this.cancelEvent();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ //确认选好了
|
|
|
confirmSelectEvent() {
|
|
confirmSelectEvent() {
|
|
|
if (this.selectList.length > 0) {
|
|
if (this.selectList.length > 0) {
|
|
|
|
|
|