...
|
...
|
@@ -42,9 +42,14 @@ |
|
|
|
|
|
export default {
|
|
|
created() {
|
|
|
this.tableFalse = false;
|
|
|
this.inventoryService = new InventoryService();
|
|
|
this.noFilteredDataText = '请输入查询条件,进行数据筛选展示!';
|
|
|
|
|
|
if (this.$route.query.productSkn) {
|
|
|
this.getInventory();
|
|
|
} else {
|
|
|
this.tableFalse = false;
|
|
|
this.noFilteredDataText = '请输入查询条件,进行数据筛选展示!';
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
|
return store.call(this);
|
...
|
...
|
@@ -70,6 +75,7 @@ |
|
|
this.filters.productSku.model = null;
|
|
|
this.filters.factoryCode.model = null;
|
|
|
this.filters.upmCode.model = null;
|
|
|
this.$route.query.productSkn = null;
|
|
|
|
|
|
this.pageData.current = 1;
|
|
|
this.tableData = [];
|
...
|
...
|
@@ -84,6 +90,7 @@ |
|
|
let productSku = this.filters.productSku.model || null;
|
|
|
let factoryCode = this.filters.factoryCode.model || null;
|
|
|
let upmCode = this.filters.upmCode.model || null;
|
|
|
let productSkn = this.$route.query.productSkn || null;
|
|
|
|
|
|
let pageNo = this.pageData.current;
|
|
|
let pageSize = this.pageData.pageSize;
|
...
|
...
|
@@ -98,11 +105,13 @@ |
|
|
|
|
|
params.pageSize = this.pageData.pageSize;
|
|
|
params.pageNo = this.pageData.current;
|
|
|
params.productSkn = productSkn;
|
|
|
|
|
|
return Promise.resolve({
|
|
|
productSku,
|
|
|
factoryCode,
|
|
|
upmCode,
|
|
|
productSkn,
|
|
|
pageNo,
|
|
|
pageSize
|
|
|
});
|
...
|
...
|
@@ -113,7 +122,7 @@ |
|
|
},
|
|
|
getInventory() {
|
|
|
return this.filtersParams().then((params) => {
|
|
|
if (params.productSku || params.factoryCode || params.upmCode) {
|
|
|
if (params.productSku || params.factoryCode || params.upmCode || params.productSkn) {
|
|
|
this.noFilteredDataText = '暂无数据';
|
|
|
this.$Loading.start();
|
|
|
return this.inventoryService.list(params).then((result) => {
|
...
|
...
|
|