|
|
@ -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:"" |
|
|
|
} |
|
|
|
}, |
|
|
|
//返回首页 |
|
|
@ -190,6 +193,14 @@ |
|
|
|
value: this.locationCode |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
if (this.locationAreaCode) { |
|
|
|
filters.push({ |
|
|
|
column: "areaCode", |
|
|
|
action: "==", |
|
|
|
value: this.locationAreaCode |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
if (this.inventoryStatus) { |
|
|
|
filters.push({ |
|
|
@ -256,6 +267,14 @@ |
|
|
|
value: this.locationCode |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
if (this.locationAreaCode) { |
|
|
|
filters.push({ |
|
|
|
column: "areaCode", |
|
|
|
action: "==", |
|
|
|
value: this.locationAreaCode |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
if (this.inventoryStatus) { |
|
|
|
filters.push({ |
|
|
@ -320,7 +339,6 @@ |
|
|
|
mask: true |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.loadingType = "loading"; |
|
|
|
if (type === "refresh") { |
|
|
|
this.pageNo = 1; |
|
|
@ -340,7 +358,7 @@ |
|
|
|
value: this.locationCode |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.inventoryStatus) { |
|
|
|
filters.push({ |
|
|
|
column: "inventoryStatus", |
|
|
@ -409,7 +427,7 @@ |
|
|
|
value: this.locationCode |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.inventoryStatus) { |
|
|
|
filters.push({ |
|
|
|
column: "inventoryStatus", |
|
|
@ -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 |
|
|
|