CompareA.vue
1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<template>
<div>
<a-card style="min-width: 500px;">
<p>当前版本:{{this.ver1}}</p>
</a-card>
<a-table
ref="table"
size="middle"
:scroll="{x:true}"
bordered
rowKey="id"
:columns="columns"
:dataSource="dataSource"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys}"
class="j-table-force-nowrap" >
</a-table>
</div>
</template>
<script>
import '@/assets/less/TableExpand.less'
import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import {queryVersionPageList} from "../../../api/api";
export default {
name: "CompareA",
props:['ver1'],
mixins:[JeecgListMixin, mixinDevice],
components:{
},
data () {
return {
dataSource:[],
columns: [
{
title:'物料名称',
align:"center",
dataIndex: 'name'
},
{
title:'物料编码',
align:"center",
dataIndex: 'cno'
},
{
title:'上级编码',
align:"center",
dataIndex: 'pno'
},
{
title:'替换编码',
align:"center",
dataIndex: 'barcode'
},
{
title:'制造方式',
align:"center",
dataIndex: 'f04'
},
{
title:'需求数量',
align:"center",
dataIndex: 'bnum'
},
{
title:'利旧数量',
align:"center",
dataIndex: 'oldnum'
}
],
}
},
created () {
},
methods: {
search1(){
let params = {
'version': this.ver1
}
queryVersionPageList(params).then((res) => {
if (res.success) {
this.dataSource = res.result.records
}
})
}
}
}
</script>
<style scoped>
</style>