|
@@ -10,7 +10,7 @@
|
|
|
<u-cell-item value="去选择" @click="toChooseCust">
|
|
|
<view slot="title">
|
|
|
选择客户:
|
|
|
- <u-tag v-if="buyerName" :text="buyerName" closeable :show="show" @close="tagClick" shape="circle" />
|
|
|
+ <u-tag v-if="queryparams.buyerName" :text="queryparams.buyerName" closeable :show="show" @close="tagClick" shape="circle" />
|
|
|
<u-tag v-else :text="'全部'" shape="circle" />
|
|
|
</view>
|
|
|
</u-cell-item>
|
|
@@ -59,10 +59,10 @@
|
|
|
noDataText: '暂无销售记录',
|
|
|
scrollH: 300,
|
|
|
queryparams: {
|
|
|
+ buyerName:'',
|
|
|
buyerSn: undefined,
|
|
|
productSn: undefined
|
|
|
},
|
|
|
- buyerName: '',
|
|
|
baseData: null,
|
|
|
show:false
|
|
|
}
|
|
@@ -71,8 +71,8 @@
|
|
|
this.queryparams.productSn = opts ? opts.productSn : undefined
|
|
|
this.baseData ={productName:opts.productName,productCode:opts.productCode}
|
|
|
uni.$on("searchSalesRecord",(data)=>{
|
|
|
- this.queryparams.buyerSn = data.customerSn
|
|
|
- this.buyerName = data.customerName
|
|
|
+ // this.queryparams.buyerSn = data.customerSn
|
|
|
+ this.queryparams.buyerName = data.customerName
|
|
|
this.show = true
|
|
|
this.getList(1)
|
|
|
})
|
|
@@ -102,7 +102,7 @@
|
|
|
},
|
|
|
tagClick(){
|
|
|
this.show = false
|
|
|
- this.buyerName = undefined
|
|
|
+ this.queryparams.buyerName = undefined
|
|
|
this.queryparams.buyerSn = undefined
|
|
|
this.getList(1)
|
|
|
},
|