|
@@ -6,7 +6,7 @@
|
|
|
<app-search-module v-model="py" placeholder="输英文字母搜索" @input="searchFn"/>
|
|
<app-search-module v-model="py" placeholder="输英文字母搜索" @input="searchFn"/>
|
|
|
</view>
|
|
</view>
|
|
|
<view style="padding:0 0upx 0 20upx;" >
|
|
<view style="padding:0 0upx 0 20upx;" >
|
|
|
- <button class="admin-button-com middle blue" @click="pageTo({ url: '/admin/ptItem/itemList' })">导入花材</button>
|
|
|
|
|
|
|
+ <button class="admin-button-com middle blue" @click="pageTo({ url: '/admin/ptItem/itemList' })">添花材</button>
|
|
|
</view>
|
|
</view>
|
|
|
<view style="padding:0 0upx 0 20upx;" >
|
|
<view style="padding:0 0upx 0 20upx;" >
|
|
|
<button class="admin-button-com middle blue" @click="removeMemory(0)">清除采购</button>
|
|
<button class="admin-button-com middle blue" @click="removeMemory(0)">清除采购</button>
|
|
@@ -117,16 +117,20 @@ export default {
|
|
|
if(uni.getStorageSync('selectList_'+this.pageType)){
|
|
if(uni.getStorageSync('selectList_'+this.pageType)){
|
|
|
this.setSelectInfoByType({ type: this.pageType, info: uni.getStorageSync('selectList_'+this.pageType) });
|
|
this.setSelectInfoByType({ type: this.pageType, info: uni.getStorageSync('selectList_'+this.pageType) });
|
|
|
}
|
|
}
|
|
|
|
|
+ this.cgItemInit()
|
|
|
},
|
|
},
|
|
|
onUnload() {
|
|
onUnload() {
|
|
|
this.resetSelectInfoByType(this.pageType);
|
|
this.resetSelectInfoByType(this.pageType);
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
|
- this.shopId = this.getMyShopInfo.id;
|
|
|
|
|
- let type = '';
|
|
|
|
|
- this.initData({ type, shopId: this.shopId,status:0});
|
|
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ cgItemInit(){
|
|
|
|
|
+ this.shopId = this.getMyShopInfo.id;
|
|
|
|
|
+ let type = '';
|
|
|
|
|
+ this.initData({ type, shopId: this.shopId,status:0});
|
|
|
|
|
+ },
|
|
|
confirmSaveItem() {
|
|
confirmSaveItem() {
|
|
|
if (this.$util.isEmpty(this.selectList)) {
|
|
if (this.$util.isEmpty(this.selectList)) {
|
|
|
this.$msg('请选择花材')
|
|
this.$msg('请选择花材')
|