|
@@ -1,11 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="billing_box_bg">
|
|
<view class="billing_box_bg">
|
|
|
<view class="input-wrap">
|
|
<view class="input-wrap">
|
|
|
- <app-search-module
|
|
|
|
|
- v-model="py"
|
|
|
|
|
- placeholder="输英文字母搜索,如艾莎 as"
|
|
|
|
|
- @input="searchFn"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <app-search-module v-model="py" placeholder="输字母搜索,如艾莎 as" @input="searchFn" />
|
|
|
</view>
|
|
</view>
|
|
|
<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">
|
|
@@ -14,7 +10,6 @@
|
|
|
</div>
|
|
</div>
|
|
|
<view style="height: 120upx"></view>
|
|
<view style="height: 120upx"></view>
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
-
|
|
|
|
|
<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"
|
|
@@ -29,7 +24,6 @@
|
|
|
<Commondity v-if="classItem.isActive"
|
|
<Commondity v-if="classItem.isActive"
|
|
|
:key="productIndex"
|
|
:key="productIndex"
|
|
|
:info="productItem"
|
|
:info="productItem"
|
|
|
- :storeItem="getSelectItemById(productItem.id, classItem.classId)"
|
|
|
|
|
@showAddModel="showAddModel"
|
|
@showAddModel="showAddModel"
|
|
|
@add="addEvent"
|
|
@add="addEvent"
|
|
|
@groupDataBeforeShowModel="groupInfoBeforeShowModel"
|
|
@groupDataBeforeShowModel="groupInfoBeforeShowModel"
|
|
@@ -42,7 +36,6 @@
|
|
|
<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>
|
|
|
-
|
|
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
<block v-else>
|
|
<block v-else>
|
|
|
<view style="width:100%">
|
|
<view style="width:100%">
|
|
@@ -50,15 +43,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</block>
|
|
</block>
|
|
|
</view>
|
|
</view>
|
|
|
- <modal-module
|
|
|
|
|
- :show="isModel"
|
|
|
|
|
- @cancel="modalCancel"
|
|
|
|
|
- @click="affirm"
|
|
|
|
|
- :title="customData.itemName"
|
|
|
|
|
- color="#333"
|
|
|
|
|
- :size="32"
|
|
|
|
|
- padding="30upx 30upx"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <modal-module :show="isModel" @cancel="modalCancel" @click="stockConfirm" :title="customData.itemName" color="#333" :size="32" padding="30rpx 30rpx" >
|
|
|
<template slot="customContent">
|
|
<template slot="customContent">
|
|
|
<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>
|
|
@@ -69,27 +54,15 @@
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
</modal-module>
|
|
</modal-module>
|
|
|
- <modal-module
|
|
|
|
|
- :show="showSubmitModel"
|
|
|
|
|
- @cancel="cancelEvent"
|
|
|
|
|
- @click="submitEvent"
|
|
|
|
|
- :title="confirmContent"
|
|
|
|
|
- color="#333"
|
|
|
|
|
- :size="32"
|
|
|
|
|
- padding="30upx 30upx"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <modal-module :show="showSubmitModel" @cancel="cancelEvent" @click="submitEvent" :title="confirmContent" color="#333" :size="32" padding="30rpx 30rpx" >
|
|
|
</modal-module>
|
|
</modal-module>
|
|
|
- <FooterCart
|
|
|
|
|
- :price="allPrice"
|
|
|
|
|
- :count="allCount"
|
|
|
|
|
- @confirm="confirmSelectEvent"
|
|
|
|
|
- ></FooterCart>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <FooterCart :price="allPrice" :count="allCount" @confirm="confirmOut" ></FooterCart>
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
|
-import AppTabs from "@/components/plugin/tabs";
|
|
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import Commondity from "@/components/module/app-commodity";
|
|
import Commondity from "@/components/module/app-commodity";
|
|
|
import FooterCart from "@/components/module/app-footer-cart";
|
|
import FooterCart from "@/components/module/app-footer-cart";
|
|
@@ -99,9 +72,8 @@ import productMins from "@/mixins/product";
|
|
|
import allMoreSelectInput from "@/components/module/allMoreSelectInput";
|
|
import allMoreSelectInput from "@/components/module/allMoreSelectInput";
|
|
|
import allMoreSelectInputMins from "@/mixins/allMoreSelectInput";
|
|
import allMoreSelectInputMins from "@/mixins/allMoreSelectInput";
|
|
|
export default {
|
|
export default {
|
|
|
- name: "allotEx", // 开单
|
|
|
|
|
|
|
+ name: "allotEx",
|
|
|
components: {
|
|
components: {
|
|
|
- AppTabs,
|
|
|
|
|
AppSearchModule,
|
|
AppSearchModule,
|
|
|
AppWrapperEmpty,
|
|
AppWrapperEmpty,
|
|
|
Commondity,
|
|
Commondity,
|
|
@@ -114,22 +86,11 @@ export default {
|
|
|
COMMODITY_TYPE,
|
|
COMMODITY_TYPE,
|
|
|
pageType: "allotEx",
|
|
pageType: "allotEx",
|
|
|
tabIndex: 0,
|
|
tabIndex: 0,
|
|
|
- tabs: [
|
|
|
|
|
- {
|
|
|
|
|
- name: "花材"
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: "成品"
|
|
|
|
|
- }
|
|
|
|
|
- ],
|
|
|
|
|
isFocus: false,
|
|
isFocus: false,
|
|
|
isModel: false,
|
|
isModel: false,
|
|
|
checkStock: true,
|
|
checkStock: true,
|
|
|
- isSmallCount:false,//是否是小单位(支)
|
|
|
|
|
- customData: {
|
|
|
|
|
- bigCount: 0,
|
|
|
|
|
- smallCount: 0
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ isSmallCount:false,
|
|
|
|
|
+ customData: { bigCount: 0, smallCount: 0, userPrice:0 },
|
|
|
showSubmitModel: false
|
|
showSubmitModel: false
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
@@ -156,8 +117,8 @@ export default {
|
|
|
modalCancel() {
|
|
modalCancel() {
|
|
|
this.isModel = false;
|
|
this.isModel = false;
|
|
|
this.customData = {};
|
|
this.customData = {};
|
|
|
- }, // 取消 确认
|
|
|
|
|
- affirm(val) {
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ stockConfirm(val) {
|
|
|
this.isFocus = false;
|
|
this.isFocus = false;
|
|
|
this.isFocusOne = false;
|
|
this.isFocusOne = false;
|
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
@@ -214,7 +175,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
//确认选好了
|
|
//确认选好了
|
|
|
- confirmSelectEvent() {
|
|
|
|
|
|
|
+ confirmOut() {
|
|
|
if (this.selectList.length > 0) {
|
|
if (this.selectList.length > 0) {
|
|
|
|
|
|
|
|
|
|
|