|
@ -39,7 +39,7 @@ |
|
|
getExpectinByItemcode, |
|
|
getExpectinByItemcode, |
|
|
getBalanceByItemCode, |
|
|
getBalanceByItemCode, |
|
|
getBasicItemByCode, |
|
|
getBasicItemByCode, |
|
|
getBalanceSummary |
|
|
getTransaction |
|
|
} from '@/api/request2.js'; |
|
|
} from '@/api/request2.js'; |
|
|
import { |
|
|
import { |
|
|
goHome |
|
|
goHome |
|
@ -67,7 +67,7 @@ import { nextTick } from 'vue'; |
|
|
return { |
|
|
return { |
|
|
//v-model绑定的这个变量不要在分页请求结束中自己赋值!!! |
|
|
//v-model绑定的这个变量不要在分页请求结束中自己赋值!!! |
|
|
dataList: [], |
|
|
dataList: [], |
|
|
tabList: ['汇总', '明细', '预计入', '预计出'], |
|
|
tabList: ['库存余额', '预计入', '预计出', '库存事务'], |
|
|
tabIndex: 0, |
|
|
tabIndex: 0, |
|
|
itemDetail: undefined, |
|
|
itemDetail: undefined, |
|
|
itemCode: '', |
|
|
itemCode: '', |
|
@ -154,7 +154,7 @@ import { nextTick } from 'vue'; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 汇总 |
|
|
// 汇总 |
|
|
getSummary(pageNo, pageSize, type) { |
|
|
getBalanceItem(pageNo, pageSize, type) { |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
|
title: "加载中...", |
|
|
title: "加载中...", |
|
|
mask: true |
|
|
mask: true |
|
@ -190,7 +190,9 @@ import { nextTick } from 'vue'; |
|
|
var params = { |
|
|
var params = { |
|
|
filters: filters, |
|
|
filters: filters, |
|
|
pageNo: this.pageNo, |
|
|
pageNo: this.pageNo, |
|
|
pageSize: pageSize |
|
|
pageSize: pageSize, |
|
|
|
|
|
sort:"createTime", |
|
|
|
|
|
by: "ASC" |
|
|
} |
|
|
} |
|
|
getBalanceByItemCode(params).then(res => { |
|
|
getBalanceByItemCode(params).then(res => { |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
@ -205,9 +207,6 @@ import { nextTick } from 'vue'; |
|
|
this.loadingType = "nomore"; |
|
|
this.loadingType = "nomore"; |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
list.forEach(item=>{ |
|
|
|
|
|
item.packingNumber="" |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
this.dataList = type === "refresh" ? list : this.dataList.concat(list); |
|
|
this.dataList = type === "refresh" ? list : this.dataList.concat(list); |
|
|
this.pageNo++; |
|
|
this.pageNo++; |
|
@ -218,7 +217,7 @@ import { nextTick } from 'vue'; |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
//明细 |
|
|
//明细 |
|
|
getDetailList(pageNo, pageSize, type) { |
|
|
getTransactionByItemCode(pageNo, pageSize, type) { |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
|
title: "加载中...", |
|
|
title: "加载中...", |
|
|
mask: true |
|
|
mask: true |
|
@ -254,9 +253,11 @@ import { nextTick } from 'vue'; |
|
|
var params = { |
|
|
var params = { |
|
|
filters: filters, |
|
|
filters: filters, |
|
|
pageNo: this.pageNo, |
|
|
pageNo: this.pageNo, |
|
|
pageSize: pageSize |
|
|
pageSize: pageSize, |
|
|
|
|
|
sort:"createTime", |
|
|
|
|
|
by: "DESC" |
|
|
} |
|
|
} |
|
|
getBalanceByItemCode(params).then(res => { |
|
|
getTransaction(params).then(res => { |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
|
|
|
|
|
|
if (type === "refresh") { |
|
|
if (type === "refresh") { |
|
@ -280,12 +281,12 @@ import { nextTick } from 'vue'; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
getContentByTab(index, pageNo, pageSize, type) { |
|
|
getContentByTab(index, pageNo, pageSize, type) { |
|
|
if (index === 0) this.getSummary(pageNo, pageSize, type); |
|
|
if (index === 0) this.getBalanceItem(pageNo, pageSize, type); |
|
|
else if (index === 1) this.getDetailList(pageNo, pageSize, type); |
|
|
else if (index === 1) this.getExpectin(pageNo, pageSize, type); |
|
|
else if (index === 2) { |
|
|
else if (index === 2) { |
|
|
this.getExpectin(pageNo, pageSize, type); |
|
|
|
|
|
} else if (index == 3) { |
|
|
|
|
|
this.getExpectout(pageNo, pageSize, type); |
|
|
this.getExpectout(pageNo, pageSize, type); |
|
|
|
|
|
} else if (index == 3) { |
|
|
|
|
|
this.getTransactionByItemCode(pageNo, pageSize, type); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
//预计入 |
|
|
//预计入 |
|
|