see999 3 年前
父节点
当前提交
e800b4c797
共有 4 个文件被更改,包括 269 次插入0 次删除
  1. 1 0
      src/lang/zh.js
  2. 6 0
      src/router/modules/stock.js
  3. 2 0
      src/xt_pages/data/components/addDrugs.vue
  4. 260 0
      src/xt_pages/stock/stockModifyPrice.vue

+ 1 - 0
src/lang/zh.js 查看文件

@@ -185,6 +185,7 @@ export default {
185 185
     stockOutDetail: '出库单详情',
186 186
     cancelStockDetail: '退库单详情',
187 187
     stockDetail: '明细查询',
188
+    stockModifyPrice:'耗材调价',
188 189
 
189 190
     showconfig: '显示配置',
190 191
     user_detail: '使用明细',

+ 6 - 0
src/router/modules/stock.js 查看文件

@@ -42,6 +42,12 @@ export default {
42 42
       name: 'cancelStockOrder',
43 43
       meta: { title: 'cancelStockOrder', noCache: true }
44 44
     },
45
+    {
46
+      path: '/stock/stockModifyPrice',
47
+      component: () => import('@/xt_pages/stock/stockModifyPrice'),
48
+      name: 'stockModifyPrice',
49
+      meta: { title: 'stockModifyPrice', noCache: true }
50
+    },
45 51
     
46 52
     // {
47 53
     //   path: "/stock/",

+ 2 - 0
src/xt_pages/data/components/addDrugs.vue 查看文件

@@ -963,6 +963,8 @@
963 963
           // this.form.dose = 1
964 964
           this.form.min_number = 1
965 965
           this.dosageShow = true
966
+        }else{
967
+          this.dosageShow = false
966 968
         }
967 969
         // if(val != this.form.max_unit){
968 970
         //   this.dosageShow = false

+ 260 - 0
src/xt_pages/stock/stockModifyPrice.vue 查看文件

@@ -0,0 +1,260 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+    </div>
6
+    <div class="app-container">
7
+      <div style="display: flex;align-items: center;justify-content: space-between;">
8
+        <div>
9
+            <el-input
10
+            size="small"
11
+            style="width: 200px;"
12
+            class="filter-item"
13
+            v-model.trim="searchKey"
14
+            placeholder=""
15
+            />
16
+            <el-button
17
+            size="small"
18
+            class="filter-item"
19
+            type="primary"
20
+            icon="el-icon-search"
21
+            @click="search"
22
+            >搜索</el-button
23
+            >
24
+            <el-date-picker
25
+            size="small"
26
+            v-model="value1"
27
+            type="date"
28
+            style="margin-left:5px;width:140px;"
29
+            placeholder="选择日期">
30
+            </el-date-picker>
31
+            <el-date-picker
32
+            size="small"
33
+            v-model="value2"
34
+            type="date"
35
+            style="margin-left:5px;width:140px;"
36
+            placeholder="选择日期">
37
+            </el-date-picker>
38
+        </div>
39
+        <div>
40
+            <el-button size="small" type="primary">新增</el-button>
41
+            <el-button size="small" type="primary">核对</el-button>
42
+            <el-button size="small" type="primary">打印</el-button>
43
+            <el-button size="small" type="primary">导出</el-button>
44
+        </div>
45
+      </div>
46
+      <div style="display: flex;justify-content: space-between;margin-top:10px">
47
+            <div style="width:541px;margin-right:10px;">
48
+                <el-table :data="tableData" border :height="tableHeight" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
49
+                    <el-table-column
50
+                    prop="date"
51
+                    label="单据编码"
52
+                    width="100">
53
+                    </el-table-column>
54
+                    <el-table-column
55
+                    prop="date"
56
+                    label="调价日期"
57
+                    width="100">
58
+                    </el-table-column>
59
+                    <el-table-column
60
+                    prop="name"
61
+                    label="操作人"
62
+                    width="80">
63
+                    </el-table-column>
64
+                    <el-table-column
65
+                    prop="name"
66
+                    label="状态"
67
+                    width="80">
68
+                    </el-table-column>
69
+                    <el-table-column
70
+                    prop="name"
71
+                    label="核对人"
72
+                    width="80">
73
+                    </el-table-column>
74
+                    <el-table-column
75
+                    width="100"
76
+                    label="操作">
77
+                        <template slot-scope="scope">
78
+                            <el-button type="text" size="small">删除</el-button>
79
+                            <el-button type="text" size="small">编辑</el-button>
80
+                        </template>
81
+                    </el-table-column>
82
+                </el-table>
83
+            </div>
84
+            <!-- <div style="flex:1;"> -->
85
+                <el-table :data="tableData" border :height="tableHeight" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
86
+                    <el-table-column
87
+                    fixed="left"
88
+                    prop="date"
89
+                    label="药品ID"
90
+                    width="80">
91
+                    </el-table-column>
92
+                    <el-table-column
93
+                    prop="date"
94
+                    label="药品名称"
95
+                    width="100">
96
+                    </el-table-column>
97
+                    <el-table-column
98
+                    prop="name"
99
+                    label="规格"
100
+                    width="100">
101
+                    </el-table-column>
102
+                    <el-table-column
103
+                    prop="name"
104
+                    label="生产厂家"
105
+                    width="100">
106
+                    </el-table-column>
107
+                    <el-table-column
108
+                    prop="name"
109
+                    label="批准文书"
110
+                    width="100">
111
+                    </el-table-column>
112
+                    <el-table-column
113
+                    prop="name"
114
+                    label="供应商"
115
+                    width="100">
116
+                    </el-table-column>
117
+                    <el-table-column
118
+                    prop="name"
119
+                    label="数量"
120
+                    width="100">
121
+                    </el-table-column>
122
+                    <el-table-column
123
+                    prop="name"
124
+                    label="原零价"
125
+                    width="100">
126
+                    </el-table-column>
127
+                    <el-table-column
128
+                    prop="name"
129
+                    label="现零价"
130
+                    width="100">
131
+                    </el-table-column>
132
+                    <el-table-column
133
+                    prop="name"
134
+                    label="进货价"
135
+                    width="100">
136
+                    </el-table-column>
137
+                    <el-table-column
138
+                    prop="name"
139
+                    label="零售总价"
140
+                    width="100">
141
+                    </el-table-column>
142
+                    <el-table-column
143
+                    prop="name"
144
+                    label="批号"
145
+                    width="100">
146
+                    </el-table-column>
147
+                    <el-table-column
148
+                    prop="name"
149
+                    label="生产日期"
150
+                    width="100">
151
+                    </el-table-column>
152
+                    <el-table-column
153
+                    prop="name"
154
+                    label="有效日期"
155
+                    width="100">
156
+                    </el-table-column>
157
+                </el-table>
158
+            <!-- </div> -->
159
+        </div>
160
+    </div>
161
+
162
+  
163
+  </div>
164
+</template>
165
+
166
+<script>
167
+import BreadCrumb from "../components/bread-crumb";
168
+
169
+export default {
170
+    name: "stockModifyPrice",
171
+    components:{
172
+        BreadCrumb
173
+    },
174
+    data() {
175
+        return{
176
+            crumbs: [
177
+                { path: false, name: "库存管理" },
178
+                { path: false, name: "耗材管理" },
179
+                { path: false, name: "耗材调价" }
180
+            ],
181
+            tableHeight: '',
182
+            fullHeight: document.documentElement.clientHeight,
183
+            searchKey:'',
184
+            value1:'',
185
+            value2:'',
186
+            tableData: [{
187
+                date: '2016-05-02',
188
+                name: '王小虎',
189
+                address: '上海市普陀区金沙江路 1518 弄'
190
+                }, {
191
+                date: '2016-05-04',
192
+                name: '王小虎',
193
+                address: '上海市普陀区金沙江路 1517 弄'
194
+                }, {
195
+                date: '2016-05-01',
196
+                name: '王小虎',
197
+                address: '上海市普陀区金沙江路 1519 弄'
198
+                }, {
199
+                date: '2016-05-03',
200
+                name: '王小虎',
201
+                address: '上海市普陀区金沙江路 1516 弄'
202
+            }]
203
+        }
204
+    },
205
+    methods:{
206
+        search(){
207
+
208
+        },
209
+    },
210
+    created(){
211
+        let tableHeight = document.body.clientHeight - 200;
212
+        this.tableHeight = tableHeight
213
+    },
214
+    mounted() {
215
+      const that = this;
216
+      window.onresize = () => {
217
+        return (() => {
218
+          window.fullHeight = document.documentElement.clientHeight;
219
+          that.fullHeight = window.fullHeight
220
+        })()
221
+      }
222
+    },
223
+    watch: {
224
+      fullHeight(val) {
225
+        if (!this.timer) {
226
+          this.fullHeight = val
227
+          let tableHeight = val - 200
228
+          this.tableHeight = tableHeight
229
+          this.timer = true
230
+          let that = this
231
+          setTimeout(function() {
232
+            that.timer = false
233
+          }, 400)
234
+        }
235
+      }
236
+
237
+    }
238
+};
239
+</script>
240
+
241
+<style rel="stylesheet/scss" lang="scss">
242
+.app-container {
243
+  // margin: 20px;
244
+  font-size: 15px;
245
+}
246
+.el-table td,
247
+.el-table th.is-leaf,
248
+.el-table--border,
249
+.el-table--group {
250
+  border-color: #d0d3da;
251
+}
252
+.el-table--border::after,
253
+.el-table--group::after,
254
+.el-table::before {
255
+  background-color: #d0d3da;
256
+}
257
+::-webkit-scrollbar{
258
+    height: 20px !important;
259
+}
260
+</style>