|
|
@@ -2,7 +2,10 @@
|
|
|
<view class="app-content">
|
|
|
<view class="ex-page">
|
|
|
<view class="top-bar">
|
|
|
- <view>aaaaa</view>
|
|
|
+ <view style="font-size:30upx;padding:10upx 0 10upx 0;">
|
|
|
+ <text style="margin-left:60upx;">请选花材</text>
|
|
|
+ <text style="margin-left:80upx;">请选客户</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<scroll-view scroll-y scroll-with-animation class="main-view">
|
|
|
<view class="space-view ex-table">
|
|
|
@@ -63,7 +66,11 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
dataList: [],
|
|
|
- bookData:[]
|
|
|
+ bookData:[],
|
|
|
+ itemId:0,
|
|
|
+ itemName:'',
|
|
|
+ customName:'',
|
|
|
+ customId:0
|
|
|
};
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
@@ -72,6 +79,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
onLoad() {
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['setUserShopAll']),
|
|
|
@@ -79,12 +87,21 @@ export default {
|
|
|
|
|
|
},
|
|
|
async init() {
|
|
|
+ if(this.option.itemId){
|
|
|
+ this.itemId = this.option.itemId
|
|
|
+ this.itemName = this.option.itemName
|
|
|
+ }
|
|
|
+ if(this.option.customId){
|
|
|
+ this.customId = this.option.customId
|
|
|
+ this.customName = this.option.custonName
|
|
|
+ }
|
|
|
this.getStatList();
|
|
|
},
|
|
|
getStatList() {
|
|
|
let that = this
|
|
|
uni.showLoading()
|
|
|
- getBookItemCustomList().then(res => {
|
|
|
+
|
|
|
+ getBookItemCustomList({itemId:this.itemId,customId:this.customId}).then(res => {
|
|
|
uni.hideLoading()
|
|
|
if (!this.$util.isEmpty(res.data.list)) {
|
|
|
that.bookData = res.data.list
|