|
@@ -1,7 +1,185 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="main-contain">
|
3
|
3
|
<div class="app-container ">
|
4
|
|
- 库存查询喔喔喔
|
|
4
|
+ <div style="justify-content: space-between;margin: 0px 0 12px 0;display: flex;align-items: center;">
|
|
5
|
+ <div>
|
|
6
|
+ <span>仓库:</span>
|
|
7
|
+ <el-select v-model="storehouse_id" style="width:200px;margin-right:10px;" placeholder="请选择"
|
|
8
|
+ filterable
|
|
9
|
+ @change="changeStorehouseName">
|
|
10
|
+ <el-option
|
|
11
|
+ v-for="item in houseList"
|
|
12
|
+ :key="item.id"
|
|
13
|
+ :label="item.storehouse_name"
|
|
14
|
+ :value="item.id">
|
|
15
|
+ </el-option>
|
|
16
|
+ </el-select>
|
|
17
|
+ <span>库存预警:</span>
|
|
18
|
+ <el-select v-model="good_id" style="width:250px;margin-right:10px;" placeholder="请选择"
|
|
19
|
+ filterable
|
|
20
|
+ @change="changeGoodName">
|
|
21
|
+ <el-option
|
|
22
|
+ v-for="item in goodList"
|
|
23
|
+ :key="item.id"
|
|
24
|
+ :label="item.good_name"
|
|
25
|
+ :value="item.id">
|
|
26
|
+ </el-option>
|
|
27
|
+ </el-select>
|
|
28
|
+ </div>
|
|
29
|
+ </div>
|
|
30
|
+
|
|
31
|
+ <el-table
|
|
32
|
+ :row-style="{ color: '#303133' }"
|
|
33
|
+ :header-cell-style="{
|
|
34
|
+ backgroundColor: 'rgb(245, 247, 250)',
|
|
35
|
+ color: '#606266'
|
|
36
|
+ }"
|
|
37
|
+ :data="tableList"
|
|
38
|
+ :class="signAndWeighBoxPatients"
|
|
39
|
+ border
|
|
40
|
+ >
|
|
41
|
+ <el-table-column label="耗材类型" align="center">
|
|
42
|
+ <template slot-scope="scope">
|
|
43
|
+
|
|
44
|
+ </template>
|
|
45
|
+ </el-table-column>
|
|
46
|
+ <el-table-column label="耗材名称" align="center">
|
|
47
|
+ <template slot-scope="scope">
|
|
48
|
+
|
|
49
|
+ </template>
|
|
50
|
+ </el-table-column>
|
|
51
|
+ <el-table-column label="规格&单位" align="center">
|
|
52
|
+ <template slot-scope="scope">
|
|
53
|
+
|
|
54
|
+ </template>
|
|
55
|
+ </el-table-column>
|
|
56
|
+ <el-table-column label="生产厂商" align="center">
|
|
57
|
+ <template slot-scope="scope">
|
|
58
|
+
|
|
59
|
+ </template>
|
|
60
|
+ </el-table-column>
|
|
61
|
+ <el-table-column label="国家编码" align="center">
|
|
62
|
+ <template slot-scope="scope">
|
|
63
|
+
|
|
64
|
+ </template>
|
|
65
|
+ </el-table-column>
|
|
66
|
+ <el-table-column label="仓库名称" align="center">
|
|
67
|
+ <template slot-scope="scope">
|
|
68
|
+
|
|
69
|
+ </template>
|
|
70
|
+ </el-table-column>
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+ <el-table-column label="入库量" align="center">
|
|
74
|
+ <template slot-scope="scope">
|
|
75
|
+
|
|
76
|
+ </template>
|
|
77
|
+ </el-table-column>
|
|
78
|
+
|
|
79
|
+ <el-table-column label="出库量" align="center">
|
|
80
|
+ <template slot-scope="scope">
|
|
81
|
+
|
|
82
|
+ </template>
|
|
83
|
+ </el-table-column>
|
|
84
|
+
|
|
85
|
+ <el-table-column label="退库数量" align="center">
|
|
86
|
+ <template slot-scope="scope">
|
|
87
|
+
|
|
88
|
+ </template>
|
|
89
|
+ </el-table-column>
|
|
90
|
+
|
|
91
|
+ <el-table-column label="实际出库" align="center">
|
|
92
|
+ <template slot-scope="scope">
|
|
93
|
+
|
|
94
|
+ </template>
|
|
95
|
+ </el-table-column>
|
|
96
|
+
|
|
97
|
+ <el-table-column label="剩余库存" align="center">
|
|
98
|
+ <template slot-scope="scope">
|
|
99
|
+
|
|
100
|
+ </template>
|
|
101
|
+ </el-table-column>
|
|
102
|
+
|
|
103
|
+ <el-table-column label="总库存量" align="center">
|
|
104
|
+ <template slot-scope="scope">
|
|
105
|
+
|
|
106
|
+ </template>
|
|
107
|
+ </el-table-column>
|
|
108
|
+
|
|
109
|
+ <el-table-column label="操作" align="center">
|
|
110
|
+
|
|
111
|
+ <template slot-scope="scope">
|
|
112
|
+ <el-button
|
|
113
|
+ size="small"
|
|
114
|
+ type="primary"
|
|
115
|
+ @click="toClick(scope.row)"
|
|
116
|
+ >库存流水
|
|
117
|
+ </el-button>
|
|
118
|
+ <el-button
|
|
119
|
+ size="small"
|
|
120
|
+ type="primary"
|
|
121
|
+ @click="toClickOne(scope.row)"
|
|
122
|
+ >批次
|
|
123
|
+ </el-button>
|
|
124
|
+ </template>
|
|
125
|
+ </el-table-column>
|
|
126
|
+
|
|
127
|
+ </el-table>
|
5
|
128
|
</div>
|
|
129
|
+
|
6
|
130
|
</div>
|
7
|
|
-</template>
|
|
131
|
+</template>
|
|
132
|
+<script>
|
|
133
|
+export default {
|
|
134
|
+
|
|
135
|
+ data(){
|
|
136
|
+ return{
|
|
137
|
+ tableList:[],
|
|
138
|
+ goodList:[],
|
|
139
|
+ houseList:[],
|
|
140
|
+ storehouse_id:0,
|
|
141
|
+ good_id:0,
|
|
142
|
+ multipleSelection: [],
|
|
143
|
+ signAndWeighBoxPatients: "sign-and-weigh-box-patients",
|
|
144
|
+ manufacturerList:[],
|
|
145
|
+ }
|
|
146
|
+
|
|
147
|
+ },
|
|
148
|
+ methods:{
|
|
149
|
+ changeStorehouseName(){
|
|
150
|
+
|
|
151
|
+ },
|
|
152
|
+ changeGoodName(){
|
|
153
|
+
|
|
154
|
+ },
|
|
155
|
+ toClick(val){
|
|
156
|
+ var manufacturer_name = ""
|
|
157
|
+ var specification_name = ""
|
|
158
|
+ for(let i=0;i<this.manufacturerList.length;i++){
|
|
159
|
+ if(val.manufacturer == this.manufacturerList[i].id){
|
|
160
|
+ manufacturer_name = this.manufacturerList[i].manufacturer_name
|
|
161
|
+ }
|
|
162
|
+ }
|
|
163
|
+ specification_name = val.specification_name + "/" + val.packing_unit
|
|
164
|
+ var overCount = this.getOverplus(val.xt_warehouse_info)
|
|
165
|
+ // window.sessionStorage.setItem('start_time',this.start_time)
|
|
166
|
+ // window.sessionStorage.setItem('end_time',this.end_time)
|
|
167
|
+ this.$router.push({path:"/stock/in/stockflow?id="+val.id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.packing_unit+"&overCount="+overCount})
|
|
168
|
+ },
|
|
169
|
+ toClickOne(val){
|
|
170
|
+ var manufacturer_name = ""
|
|
171
|
+ for(let i=0;i<this.manufacturerList.length;i++){
|
|
172
|
+ if(val.manufacturer == this.manufacturerList[i].id){
|
|
173
|
+ manufacturer_name = this.manufacturerList[i].manufacturer_name
|
|
174
|
+ }
|
|
175
|
+ }
|
|
176
|
+ specification_name = val.specification_name + "/" + val.packing_unit
|
|
177
|
+ var overCount = this.getOverplus(val.xt_warehouse_info)
|
|
178
|
+ // window.sessionStorage.setItem('start_time',this.start_time)
|
|
179
|
+ // window.sessionStorage.setItem('end_time',this.end_time)
|
|
180
|
+ this.$router.push({path:"/stock/in/stockbatchnumber?id="+val.id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.packing_unit+"&overCount="+overCount})
|
|
181
|
+ },
|
|
182
|
+ }
|
|
183
|
+}
|
|
184
|
+</script>
|
|
185
|
+
|