beyond 5.6.3

This commit is contained in:
beyond 2020-05-06 16:40:47 +08:00
parent 70748688ae
commit f51ecb985f
3 changed files with 78 additions and 0 deletions

View file

@ -1,5 +1,79 @@
import request from '@/utils/request'
// 采购明细
export function stockOrderlist(query) {
var params = new URLSearchParams()
if (query.productCode !== '' && query.productCode !== null && query.productCode !== undefined) {
params.append('productCode', query.productCode) // 你要传给后台的参数值 key/value
}
if (query.productName !== '' && query.productName !== null && query.productName !== undefined) {
params.append('productName', query.productName) // 你要传给后台的参数值 key/value
}
if (query.orderNumber !== '' && query.orderNumber !== null && query.orderNumber !== undefined) {
params.append('orderNumber', query.orderNumber) // 你要传给后台的参数值 key/value
}
if (query.supplierId !== '' && query.supplierId !== null && query.supplierId !== undefined) {
params.append('supplierId', query.supplierId) // 你要传给后台的参数值 key/value
}
if (query.supplierId !== '' && query.supplierId !== null && query.supplierId !== undefined) {
params.append('supplierId', query.supplierId) // 你要传给后台的参数值 key/value
}
if (query.beginTime !== '' && query.beginTime !== null && query.beginTime !== undefined) {
params.append('beginTime', query.beginTime) // 你要传给后台的参数值 key/value
}
if (query.endTime !== '' && query.endTime !== null && query.endTime !== undefined) {
params.append('endTime', query.endTime) // 你要传给后台的参数值 key/value
}
if (query.pageNum !== '' && query.pageNum !== null && query.pageNum !== undefined) {
params.append('pageNum', query.pageNum) // 你要传给后台的参数值 key/value
}
if (query.pageSize !== '' && query.pageSize !== null && query.pageSize !== undefined) {
params.append('pageSize', query.pageSize) // 你要传给后台的参数值 key/value
}
return request({
url: '/stockcount/stockOrderlist',
method: 'post',
data: params
})
}
// 采购汇总
export function purchaseCount(query) {
var params = new URLSearchParams()
if (query.productCode !== '' && query.productCode !== null && query.productCode !== undefined) {
params.append('productCode', query.productCode) // 你要传给后台的参数值 key/value
}
if (query.productName !== '' && query.productName !== null && query.productName !== undefined) {
params.append('productName', query.productName) // 你要传给后台的参数值 key/value
}
if (query.orderNumber !== '' && query.orderNumber !== null && query.orderNumber !== undefined) {
params.append('orderNumber', query.orderNumber) // 你要传给后台的参数值 key/value
}
if (query.supplierId !== '' && query.supplierId !== null && query.supplierId !== undefined) {
params.append('supplierId', query.supplierId) // 你要传给后台的参数值 key/value
}
if (query.supplierId !== '' && query.supplierId !== null && query.supplierId !== undefined) {
params.append('supplierId', query.supplierId) // 你要传给后台的参数值 key/value
}
if (query.beginTime !== '' && query.beginTime !== null && query.beginTime !== undefined) {
params.append('beginTime', query.beginTime) // 你要传给后台的参数值 key/value
}
if (query.endTime !== '' && query.endTime !== null && query.endTime !== undefined) {
params.append('endTime', query.endTime) // 你要传给后台的参数值 key/value
}
if (query.pageNum !== '' && query.pageNum !== null && query.pageNum !== undefined) {
params.append('pageNum', query.pageNum) // 你要传给后台的参数值 key/value
}
if (query.pageSize !== '' && query.pageSize !== null && query.pageSize !== undefined) {
params.append('pageSize', query.pageSize) // 你要传给后台的参数值 key/value
}
return request({
url: '/stockcount/purchaseCount',
method: 'post',
data: params
})
}
// 订单查询报表
export function orderReport(query) {
var params = new URLSearchParams()

View file

@ -208,6 +208,7 @@ export default {
listLoading: true,
//
getemplist: {
isActive: 2,
judgeStat: 2,
receiptStat: 2,
pageNum: 1,

View file

@ -213,6 +213,9 @@ export default {
listLoading: true,
//
getemplist: {
isActive: 1,
judgeStat: 2,
receiptStat: 2,
pageNum: 1,
pageSize: 10,
repositoryId: this.$store.getters.repositoryId,