|
@@ -36,78 +36,78 @@
|
36
|
36
|
>搜索</el-button
|
37
|
37
|
>
|
38
|
38
|
</div>
|
39
|
|
- <div>
|
|
39
|
+ <!-- <div>
|
40
|
40
|
<el-button size="small" type="primary" @click="print">打印</el-button>
|
41
|
41
|
<el-button size="small" type="primary">导出</el-button>
|
42
|
|
- </div>
|
|
42
|
+ </div> -->
|
43
|
43
|
</div>
|
44
|
44
|
<el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
|
45
|
|
- <el-table-column prop="date" label="药品名称" width="100">
|
|
45
|
+ <el-table-column prop="date" label="药品名称" width="100" align="center">
|
46
|
46
|
<template slot-scope="scope">
|
47
|
47
|
{{scope.row.drug_name}}
|
48
|
48
|
</template>
|
49
|
49
|
</el-table-column>
|
50
|
|
- <el-table-column prop="name" label="规格" width="100">
|
|
50
|
+ <el-table-column prop="name" label="规格" width="100" align="center">
|
51
|
51
|
<template slot-scope="scope">
|
52
|
52
|
{{scope.row.specification_name}}
|
53
|
53
|
</template>
|
54
|
54
|
</el-table-column>
|
55
|
|
- <el-table-column prop="name" label="单位" width="100">
|
|
55
|
+ <el-table-column prop="name" label="单位" width="100" align="center">
|
56
|
56
|
<template slot-scope="scope">
|
57
|
|
- {{scope.row.warehouseing_unit}}
|
|
57
|
+ {{scope.row.warehousing_unit}}
|
58
|
58
|
</template>
|
59
|
59
|
</el-table-column>
|
60
|
|
- <el-table-column prop="name" label="库存数量" width="100">
|
|
60
|
+ <el-table-column prop="name" label="库存数量" width="100" align="center">
|
61
|
61
|
<template slot-scope="scope">
|
62
|
62
|
{{scope.row.total}}
|
63
|
63
|
</template>
|
64
|
64
|
</el-table-column>
|
65
|
|
- <el-table-column prop="name" label="进价" width="100">
|
|
65
|
+ <el-table-column prop="name" label="进价" width="100" align="center">
|
66
|
66
|
<template slot-scope="scope">
|
67
|
67
|
{{scope.row.last_price}}
|
68
|
68
|
</template>
|
69
|
69
|
</el-table-column>
|
70
|
|
- <el-table-column prop="name" label="零售价" width="100">
|
|
70
|
+ <el-table-column prop="name" label="零售价" width="100" align="center">
|
71
|
71
|
<template slot-scope="scope">
|
72
|
72
|
{{scope.row.retail_price}}
|
73
|
73
|
</template>
|
74
|
74
|
</el-table-column>
|
75
|
|
- <el-table-column prop="name" label="零售总价" width="100">
|
|
75
|
+ <el-table-column prop="name" label="零售总价" width="100" align="center">
|
76
|
76
|
<template slot-scope="scope">
|
77
|
77
|
{{scope.row.count * scope.row.retail_price}}
|
78
|
78
|
</template>
|
79
|
79
|
</el-table-column>
|
80
|
|
- <el-table-column prop="name" label="产地" width="100">
|
|
80
|
+ <el-table-column prop="name" label="产地" width="100" align="center">
|
81
|
81
|
<template slot-scope="scope">
|
82
|
82
|
{{scope.row.drug_origin_place}}
|
83
|
83
|
</template>
|
84
|
84
|
</el-table-column>
|
85
|
|
- <el-table-column prop="name" label="生产厂商" width="100">
|
|
85
|
+ <el-table-column prop="name" label="生产厂商" width="100" align="center">
|
86
|
86
|
<template slot-scope="scope">
|
87
|
87
|
{{scope.row.manufacturer}}
|
88
|
88
|
</template>
|
89
|
89
|
</el-table-column>
|
90
|
|
- <el-table-column prop="name" label="实盘点" width="100">
|
|
90
|
+ <el-table-column prop="name" label="实盘点" width="100" align="center">
|
91
|
91
|
<template slot-scope="scope">
|
92
|
92
|
{{scope.row.count}}
|
93
|
93
|
</template>
|
94
|
94
|
</el-table-column>
|
95
|
|
- <el-table-column prop="name" label="亏损价格" width="100">
|
|
95
|
+ <el-table-column prop="name" label="亏损价格" width="100" align="center">
|
96
|
96
|
<template slot-scope="scope">
|
97
|
97
|
|
98
|
98
|
</template>
|
99
|
99
|
</el-table-column>
|
100
|
|
- <el-table-column prop="name" label="生产日期" width="100">
|
|
100
|
+ <el-table-column prop="name" label="生产日期" width="100" align="center">
|
101
|
101
|
<template slot-scope="scope">
|
102
|
102
|
{{getTime(scope.row.product_date)}}
|
103
|
103
|
</template>
|
104
|
104
|
</el-table-column>
|
105
|
|
- <el-table-column prop="name" label="有效日期" width="100">
|
|
105
|
+ <el-table-column prop="name" label="有效日期" width="100" align="center">
|
106
|
106
|
<template slot-scope="scope">
|
107
|
107
|
{{getTime(scope.row.expiry_date)}}
|
108
|
108
|
</template>
|
109
|
109
|
</el-table-column>
|
110
|
|
- <el-table-column
|
|
110
|
+ <!-- <el-table-column
|
111
|
111
|
fixed="right"
|
112
|
112
|
width="100"
|
113
|
113
|
label="操作">
|
|
@@ -115,7 +115,7 @@
|
115
|
115
|
<el-button type="text" size="small">删除</el-button>
|
116
|
116
|
<el-button type="text" size="small">编辑</el-button>
|
117
|
117
|
</template>
|
118
|
|
- </el-table-column>
|
|
118
|
+ </el-table-column> -->
|
119
|
119
|
</el-table>
|
120
|
120
|
<el-pagination
|
121
|
121
|
@size-change="handleSizeChange"
|
|
@@ -133,6 +133,7 @@
|
133
|
133
|
</template>
|
134
|
134
|
|
135
|
135
|
<script>
|
|
136
|
+import { uParseTime } from '@/utils/tools'
|
136
|
137
|
import { getInventoryDetailList } from "@/api/drug/drug"
|
137
|
138
|
export default {
|
138
|
139
|
name: "inventory",
|
|
@@ -184,6 +185,10 @@ export default {
|
184
|
185
|
})
|
185
|
186
|
},
|
186
|
187
|
getTime(val) {
|
|
188
|
+ console.log("val3233232322323",val)
|
|
189
|
+ if(val == undefined){
|
|
190
|
+ return ""
|
|
191
|
+ }
|
187
|
192
|
if(val < 0){
|
188
|
193
|
return ""
|
189
|
194
|
}
|