|
@@ -1,7 +1,15 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="billing_box_bg">
|
|
<view class="billing_box_bg">
|
|
|
<view class="input-wrap">
|
|
<view class="input-wrap">
|
|
|
|
|
+ <view class="search-bar">
|
|
|
<app-search-module v-model="py" placeholder="请输入关键词,支持拼音首字母搜索" @input="searchFn"/>
|
|
<app-search-module v-model="py" placeholder="请输入关键词,支持拼音首字母搜索" @input="searchFn"/>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view style="padding:0 0rpx 0 20rpx;" >
|
|
|
|
|
+ <button class="admin-button-com middle blue" @click="pageTo({ url: '/admin/item/detail' })">添加</button>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view style="padding:0 0rpx 0 20rpx;" >
|
|
|
|
|
+ <button class="admin-button-com middle blue" @click="removeAllSelectList()">清除采购</button>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="scroll-middle_bx">
|
|
<view class="scroll-middle_bx">
|
|
@@ -123,6 +131,7 @@ export default {
|
|
|
pageType: "purchase",
|
|
pageType: "purchase",
|
|
|
|
|
|
|
|
isFocus: false,
|
|
isFocus: false,
|
|
|
|
|
+ isReserve: true,
|
|
|
isAloneAllActive: false,
|
|
isAloneAllActive: false,
|
|
|
isAloneAllFocus: false,
|
|
isAloneAllFocus: false,
|
|
|
|
|
|
|
@@ -145,6 +154,11 @@ export default {
|
|
|
...mapGetters(["getMyShopInfo","getLoginInfo"]),
|
|
...mapGetters(["getMyShopInfo","getLoginInfo"]),
|
|
|
},
|
|
},
|
|
|
onShow(){
|
|
onShow(){
|
|
|
|
|
+ if(uni.getStorageSync('selectList')){
|
|
|
|
|
+ console.log(uni.getStorageSync('selectList'))
|
|
|
|
|
+ this.setSelectInfoByType({ type: this.pageType, info: uni.getStorageSync('selectList') });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.shopId = this.getMyShopInfo.id;
|
|
this.shopId = this.getMyShopInfo.id;
|
|
|
let type = '';
|
|
let type = '';
|
|
|
this.initData({ type, shopId: this.shopId,status:0});
|
|
this.initData({ type, shopId: this.shopId,status:0});
|
|
@@ -155,6 +169,10 @@ export default {
|
|
|
this.initData({ type, shopId: this.shopId,status:0});
|
|
this.initData({ type, shopId: this.shopId,status:0});
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ removeAllSelectList(){
|
|
|
|
|
+ uni.removeStorageSync('selectList');
|
|
|
|
|
+ this.resetSelectInfoByType(this.pageType);
|
|
|
|
|
+ },
|
|
|
// 计算重量
|
|
// 计算重量
|
|
|
countWeight(){
|
|
countWeight(){
|
|
|
let ratio = this.customData.ratio;
|
|
let ratio = this.customData.ratio;
|
|
@@ -334,7 +352,11 @@ export default {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
.input-wrap {
|
|
.input-wrap {
|
|
|
|
|
+ display: flex;
|
|
|
padding: 22px 20px 22px 30px;
|
|
padding: 22px 20px 22px 30px;
|
|
|
|
|
+ .search-bar {
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.scroll-middle_bx {
|
|
.scroll-middle_bx {
|
|
|
flex: 1;
|
|
flex: 1;
|