|
|
@ -1,7 +1,9 @@ |
|
|
|
<!-- 基于z-paging封装个性化分页组件演示(vue) --> |
|
|
|
<template> |
|
|
|
<view class="uni-flex" style="flex-direction: column"> |
|
|
|
<itemFilter ref="filter" @onConfirmClick="confirm"> |
|
|
|
<itemFilter ref="filter" |
|
|
|
:isShowLocationArea="true" |
|
|
|
@onConfirmClick="confirm"> |
|
|
|
</itemFilter> |
|
|
|
<view ref="topContent" class="top" > |
|
|
|
<com-blank-view @goScan='openScanPopup' v-if="itemCode==''"></com-blank-view> |
|
|
@ -88,7 +90,8 @@ |
|
|
|
locationCode: "", |
|
|
|
inventoryStatus: "", |
|
|
|
pageSize:10, |
|
|
|
topHeight:115 |
|
|
|
topHeight:115, |
|
|
|
locationAreaCode:"" |
|
|
|
} |
|
|
|
}, |
|
|
|
//返回首页 |
|
|
@ -191,6 +194,14 @@ |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
if (this.locationAreaCode) { |
|
|
|
filters.push({ |
|
|
|
column: "areaCode", |
|
|
|
action: "==", |
|
|
|
value: this.locationAreaCode |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
if (this.inventoryStatus) { |
|
|
|
filters.push({ |
|
|
|
column: "inventoryStatus", |
|
|
@ -257,6 +268,14 @@ |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
if (this.locationAreaCode) { |
|
|
|
filters.push({ |
|
|
|
column: "areaCode", |
|
|
|
action: "==", |
|
|
|
value: this.locationAreaCode |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
if (this.inventoryStatus) { |
|
|
|
filters.push({ |
|
|
|
column: "inventoryStatus", |
|
|
@ -320,7 +339,6 @@ |
|
|
|
mask: true |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.loadingType = "loading"; |
|
|
|
if (type === "refresh") { |
|
|
|
this.pageNo = 1; |
|
|
@ -469,9 +487,10 @@ |
|
|
|
this.getContentByTab(index, this.pageNo, this.pageSize, "refresh") |
|
|
|
}, |
|
|
|
|
|
|
|
confirm(locationCode, status) { |
|
|
|
confirm(locationCode, status,locationAreaCode) { |
|
|
|
if(this.itemCode){ |
|
|
|
this.locationCode = locationCode; |
|
|
|
this.locationAreaCode=locationAreaCode; |
|
|
|
if(status.length>0){ |
|
|
|
var arrayItems = status.join(',') |
|
|
|
this.inventoryStatus = arrayItems |
|
|
|