|
@@ -142,6 +142,12 @@ export default {
|
|
|
newLoading: Boolean,
|
|
|
detailData: Object
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ data (newValue, oldValue) {
|
|
|
+ console.log(newValue)
|
|
|
+ this.resetSearchForm()
|
|
|
+ }
|
|
|
+ },
|
|
|
data () {
|
|
|
return {
|
|
|
advanced: true, // 高级搜索 展开/关闭
|
|
@@ -155,7 +161,8 @@ export default {
|
|
|
brandSn: undefined, // 产品品牌
|
|
|
productTypeSn1: '', // 产品一级分类
|
|
|
productTypeSn2: '', // 产品二级分类
|
|
|
- productTypeSn3: '' // 产品三级分类
|
|
|
+ productTypeSn3: '', // 产品三级分类
|
|
|
+ salesBillSn: ''
|
|
|
},
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
selectedRowKeys: [], // Check here to configure the default column
|
|
@@ -164,6 +171,7 @@ export default {
|
|
|
loadData: parameter => {
|
|
|
this.disabled = true
|
|
|
this.queryParam.salesBillSn = this.salesBillSn
|
|
|
+ console.log(this.salesBillSn, 'this.salesBillSn')
|
|
|
return salesDetailAllList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
let data = res.data
|
|
|
if (data) {
|
|
@@ -342,11 +350,6 @@ export default {
|
|
|
this.queryParam.productTypeSn2 = val[1] ? val[1] : ''
|
|
|
this.queryParam.productTypeSn3 = val[2] ? val[2] : ''
|
|
|
}
|
|
|
- },
|
|
|
- beforeRouteEnter (to, from, next) {
|
|
|
- next(vm => {
|
|
|
- vm.$refs.table.refresh()
|
|
|
- })
|
|
|
}
|
|
|
}
|
|
|
</script>
|