添加页面

This commit is contained in:
gongxh
2021-04-30 16:39:20 +08:00
parent e8dff8f15f
commit a3d1e40197
14 changed files with 1182 additions and 174 deletions

View File

@@ -0,0 +1,16 @@
<template>
<div>
首页
</div>
</template>
<script>
export default {
name:"Index"
}
</script>
<style>
</style>

View File

@@ -0,0 +1,169 @@
<template>
<div>
<h4>物料在途在制查询表</h4>
<div>
<Row :gutter="16">
<Col span="8">
<label>订单编号</label>
<Input autosize type="textarea" v-model="filter.inv_codes" />
</Col>
<Col span="4">
<Button @click="handleClick">查询</Button>
<Button @click="handelExport">导出</Button>
</Col>
</Row>
</div>
<Table style="margin-top: 20px" size="small" border :columns="columns" :data="pagedData"> </Table>
<Page
style="margin-top: 20px"
:current="pageNo"
:page-size="pageSize"
:total="total"
:page-size-opts="PageSizeOpts"
@on-change="handlePagechange"
@on-page-size-change="handlePageSize"
show-elevator
show-sizer
show-total
size="small"
/>
</div>
</template>
<script>
import { getInventorymom } from '@/api/pmc'
import { pageingData, export_col_to_excel } from '@/libs/tools'
export default {
data() {
return {
PageSizeOpts: [10, 15, 20, 30],
pageNo: 1,
strfilter: '',
multiple: false,
pageSize: 15,
datas: [],
filter: {
inv_codes: '',
inv_std: '',
so_code: ''
},
columns: [
{
title: '编号',
align: 'center',
key: 'invcode1',
width: '100'
},
{
title: '名称',
align: 'center',
key: 'cinvname1',
width: '120'
},
{
title: '规格',
align: 'center',
key: 'cinvstd1',
width: '250'
},
{
title: 'cqty',
align: 'center',
key: 'cqty'
},
{
title: 'dqty',
align: 'center',
key: 'dqty'
},
{
title: 'issqty',
align: 'center',
key: 'issqty'
},
{
title: 'momqty',
align: 'center',
key: 'momqty'
},
{
title: 'mqty',
align: 'center',
key: 'mqty'
},
{
title: 'q',
align: 'center',
key: 'q'
},
{
title: 'rqty',
align: 'center',
key: 'rqty'
},
{
title: 'rqty1',
align: 'center',
key: 'rqty1'
},
{
title: 'rqty3',
align: 'center',
key: 'rqty3'
},
{
title: 'std',
align: 'center',
key: 'std'
},
{
title: 'wqty',
align: 'center',
key: 'wqty'
}
]
}
},
computed: {
total() {
return this.datas.length
},
pagedData() {
return pageingData(this.datas, this.pageSize, this.pageNo)
}
},
mounted() {
this.loadData()
},
methods: {
handelExport() {
export_col_to_excel(this.columns, this.datas)
},
handleClick() {
this.loadData()
},
async loadData() {
try {
let _filetr = this.filter.inv_codes !== '' ? this.filter.inv_codes.split(/[,\s\n]/) : []
let resp = await getInventorymom(_filetr)
this.pageNo = 1
this.datas = resp.data.data
} catch (error) {}
},
handlePagechange(page) {
this.pageNo = page
},
handlePageSize(pageSize) {
this.pageSize = pageSize
}
}
}
</script>
<style>
</style>

View File

@@ -0,0 +1,180 @@
<template>
<div>
<h4>材料出库与品种</h4>
<div>
<Row :gutter="16">
<Col span="8">
<label>物料编号</label>
<Input autosize type="textarea" v-model="filter.inv_codes" />
</Col>
<Col span="4">
<label>规格</label>
<Input v-model="filter.inv_std" />
</Col>
<Col span="4">
<label>规格</label>
<Input v-model="filter.so_code" />
</Col>
<Col span="4">
<Button @click="handleClick">查询</Button>
<Button @click="handelExport">导出</Button>
</Col>
</Row>
</div>
<Table style="margin-top: 20px" size="small" border :columns="columns" :data="pagedData"> </Table>
<Page
style="margin-top: 20px"
:current="pageNo"
:page-size="pageSize"
:total="total"
:page-size-opts="PageSizeOpts"
@on-change="handlePagechange"
@on-page-size-change="handlePageSize"
show-elevator
show-sizer
show-total
size="small"
/>
</div>
</template>
<script>
import { getInventorymonth } from '@/api/pmc'
import { pageingData, export_col_to_excel } from '@/libs/tools'
export default {
data() {
return {
PageSizeOpts: [10, 15, 20, 30],
pageNo: 1,
strfilter: '',
multiple: false,
pageSize: 15,
datas: [],
filter: {
inv_codes: '',
inv_std: '',
so_code: ''
},
columns: [
{
title: '编号',
align: 'center',
key: 'invcode1',
width: '100'
},
{
title: '名称',
align: 'center',
key: 'cinvname1',
width: '120'
},
{
title: '规格',
align: 'center',
key: 'cinvstd1',
width: '250'
},
{
title: 'cqty',
align: 'center',
key: 'cqty'
},
{
title: 'dqty',
align: 'center',
key: 'dqty'
},
{
title: 'issqty',
align: 'center',
key: 'issqty'
},
{
title: 'momqty',
align: 'center',
key: 'momqty'
},
{
title: 'mqty',
align: 'center',
key: 'mqty'
},
{
title: 'q',
align: 'center',
key: 'q'
},
{
title: 'rqty',
align: 'center',
key: 'rqty'
},
{
title: 'rqty1',
align: 'center',
key: 'rqty1'
},
{
title: 'rqty3',
align: 'center',
key: 'rqty3'
},
{
title: 'std',
align: 'center',
key: 'std'
},
{
title: 'wqty',
align: 'center',
key: 'wqty'
}
]
}
},
computed: {
total() {
return this.datas.length
},
pagedData() {
return pageingData(this.datas, this.pageSize, this.pageNo)
}
},
mounted() {
this.loadData()
},
methods: {
handelExport() {
export_col_to_excel(this.columns, this.datas)
},
handleClick() {
this.loadData()
},
async loadData() {
try {
let _filert = {
inv_codes: this.filter.inv_codes !== '' ? this.filter.inv_codes.split(/[,\s\n]/) : null,
inv_std: this.filter.inv_std,
so_code: this.filter.so_code
}
let resp = await getInventorymonth(_filert)
this.pageNo = 1
this.datas = resp.data.data
} catch (error) {}
},
handlePagechange(page) {
this.pageNo = page
},
handlePageSize(pageSize) {
this.pageSize = pageSize
}
}
}
</script>
<style>
</style>

View File

@@ -0,0 +1,179 @@
<template>
<div>
<h4>销售订单表</h4>
<div>
<Row :gutter="16">
<Col span="8">
<label>物料编号</label>
<Input autosize type="textarea" v-model="filter.inv_codes" />
</Col>
<Col span="4">
<label>规格</label>
<Input v-model="filter.inv_std" />
</Col>
<Col span="4">
<label>规格</label>
<Input v-model="filter.so_code" />
</Col>
<Col span="4">
<Button @click="handleClick">查询</Button>
<Button @click="handelExport">导出</Button>
</Col>
</Row>
</div>
<Table style="margin-top: 20px" size="small" border :columns="columns" :data="pagedData"> </Table>
<Page
style="margin-top: 20px"
:current="pageNo"
:page-size="pageSize"
:total="total"
:page-size-opts="PageSizeOpts"
@on-change="handlePagechange"
@on-page-size-change="handlePageSize"
show-elevator
show-sizer
show-total
size="small"
/>
</div>
</template>
<script>
import { getInventorysocode } from '@/api/pmc'
import { pageingData, export_col_to_excel } from '@/libs/tools'
export default {
data() {
return {
PageSizeOpts: [10, 15, 20, 30],
pageNo: 1,
strfilter: '',
multiple: false,
pageSize: 15,
datas: [],
filter: {
inv_codes: '',
inv_std: '',
so_code: ''
},
columns: [
{
title: '编号',
align: 'center',
key: 'invcode1',
width: '100'
},
{
title: '名称',
align: 'center',
key: 'cinvname1',
width: '120'
},
{
title: '规格',
align: 'center',
key: 'cinvstd1',
width: '250'
},
{
title: 'cqty',
align: 'center',
key: 'cqty'
},
{
title: 'dqty',
align: 'center',
key: 'dqty'
},
{
title: 'issqty',
align: 'center',
key: 'issqty'
},
{
title: 'momqty',
align: 'center',
key: 'momqty'
},
{
title: 'mqty',
align: 'center',
key: 'mqty'
},
{
title: 'q',
align: 'center',
key: 'q'
},
{
title: 'rqty',
align: 'center',
key: 'rqty'
},
{
title: 'rqty1',
align: 'center',
key: 'rqty1'
},
{
title: 'rqty3',
align: 'center',
key: 'rqty3'
},
{
title: 'std',
align: 'center',
key: 'std'
},
{
title: 'wqty',
align: 'center',
key: 'wqty'
}
]
}
},
computed: {
total() {
return this.datas.length
},
pagedData() {
return pageingData(this.datas, this.pageSize, this.pageNo)
}
},
mounted() {
this.loadData()
},
methods: {
handelExport() {
export_col_to_excel(this.columns, this.datas)
},
handleClick() {
this.loadData()
console.log(2)
},
async loadData() {
let _filert = {
inv_codes: this.filter.inv_codes !== '' ? this.filter.inv_codes.split(/[,\s\n]/) : null,
inv_std: this.filter.inv_std,
so_code: this.filter.so_code
}
let resp = await getInventorysocode(_filert)
this.pageNo = 1
this.datas = resp.data.data
},
handlePagechange(page) {
this.pageNo = page
},
handlePageSize(pageSize) {
this.pageSize = pageSize
}
}
}
</script>
<style>
</style>

View File

@@ -0,0 +1,179 @@
<template>
<div>
<h4>物料在途在制查询表</h4>
<div>
<Row :gutter="16">
<Col span="8">
<label>物料编号</label>
<Input autosize type="textarea" v-model="filter.inv_codes" />
</Col>
<Col span="4">
<label>规格</label>
<Input v-model="filter.inv_std" />
</Col>
<Col span="4">
<label>规格</label>
<Input v-model="filter.so_code" />
</Col>
<Col span="4">
<Button @click="handleClick">查询</Button>
<Button @click="handelExport">导出</Button>
</Col>
</Row>
</div>
<Table style="margin-top: 20px" size="small" border :columns="columns" :data="pagedData"> </Table>
<Page
style="margin-top: 20px"
:current="pageNo"
:page-size="pageSize"
:total="total"
:page-size-opts="PageSizeOpts"
@on-change="handlePagechange"
@on-page-size-change="handlePageSize"
show-elevator
show-sizer
show-total
size="small"
/>
</div>
</template>
<script>
import { getInventoryall } from '@/api/pmc'
import { pageingData, export_col_to_excel } from '@/libs/tools'
export default {
data() {
return {
PageSizeOpts: [10, 15, 20, 30],
pageNo: 1,
strfilter: '',
multiple: false,
pageSize: 15,
datas: [],
filter: {
inv_codes: '',
inv_std: '',
so_code: ''
},
columns: [
{
title: '编号',
align: 'center',
key: 'invcode1',
width: '100'
},
{
title: '名称',
align: 'center',
key: 'cinvname1',
width: '120'
},
{
title: '规格',
align: 'center',
key: 'cinvstd1',
width: '250'
},
{
title: 'cqty',
align: 'center',
key: 'cqty'
},
{
title: 'dqty',
align: 'center',
key: 'dqty'
},
{
title: 'issqty',
align: 'center',
key: 'issqty'
},
{
title: 'momqty',
align: 'center',
key: 'momqty'
},
{
title: 'mqty',
align: 'center',
key: 'mqty'
},
{
title: 'q',
align: 'center',
key: 'q'
},
{
title: 'rqty',
align: 'center',
key: 'rqty'
},
{
title: 'rqty1',
align: 'center',
key: 'rqty1'
},
{
title: 'rqty3',
align: 'center',
key: 'rqty3'
},
{
title: 'std',
align: 'center',
key: 'std'
},
{
title: 'wqty',
align: 'center',
key: 'wqty'
}
]
}
},
computed: {
total() {
return this.datas.length
},
pagedData() {
return pageingData(this.datas, this.pageSize, this.pageNo)
}
},
mounted() {
this.loadData()
},
methods: {
handelExport() {
export_col_to_excel(this.columns, this.datas)
},
handleClick() {
this.loadData()
console.log(2)
},
async loadData() {
let _filert = {
inv_codes: this.filter.inv_codes !== '' ? this.filter.inv_codes.split(/[,\s\n]/) : null,
inv_std: this.filter.inv_std,
so_code: this.filter.so_code
}
let resp = await getInventoryall(_filert)
this.pageNo = 1
this.datas = resp.data.data
},
handlePagechange(page) {
this.pageNo = page
},
handlePageSize(pageSize) {
this.pageSize = pageSize
}
}
}
</script>
<style>
</style>