Browse Source

Merge branch '20200710_pc_vue_new_branch' into 20200916_pc_vue_new_branch

csx 4 years ago
parent
commit
bae860c374

+ 3 - 0
src/xt_pages/data/components/consumables.vue View File

149
         is_charge:'',
149
         is_charge:'',
150
         search_input: '',
150
         search_input: '',
151
         options: [{
151
         options: [{
152
+          value: '0',
153
+          label: '全部'
154
+        },{
152
           value: '1',
155
           value: '1',
153
           label: '是'
156
           label: '是'
154
         }, {
157
         }, {

+ 30 - 5
src/xt_pages/data/components/drugs.vue View File

39
     </div>
39
     </div>
40
     <el-table :data="list" border style="width: 100%" :row-style="{ color: '#303133' }"
40
     <el-table :data="list" border style="width: 100%" :row-style="{ color: '#303133' }"
41
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}">
41
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}">
42
-      <el-table-column prop="date" label="药品编码" width="80" align="center">
43
-        <template slot-scope="scope">
44
-          <div>{{scope.row.drug_code}}</div>
45
-        </template>
42
+      <el-table-column
43
+        type="index"
44
+        label="药品编码"
45
+        width="50">
46
       </el-table-column>
46
       </el-table-column>
47
       <el-table-column prop="date" label="药品名称" align="center">
47
       <el-table-column prop="date" label="药品名称" align="center">
48
         <template slot-scope="scope">
48
         <template slot-scope="scope">
97
 
97
 
98
     ></add-drugs>
98
     ></add-drugs>
99
     <!-- <maintain ref='maintain'></maintain> -->
99
     <!-- <maintain ref='maintain'></maintain> -->
100
+    <el-pagination
101
+      @size-change="handleSizeChange"
102
+      @current-change="handleCurrentChange"
103
+      :page-sizes="[10, 50, 100]"
104
+      :page-size="10"
105
+      background
106
+      align="right"
107
+      style="margin-top:20px;"
108
+      layout="total, sizes, prev, pager, next, jumper"
109
+      :total="total"
110
+    >
111
+    </el-pagination>
112
+
100
   </div>
113
   </div>
101
 </template>
114
 </template>
102
 
115
 
237
         current_id:0,
250
         current_id:0,
238
 
251
 
239
         search_input: '',
252
         search_input: '',
240
-        options: [{
253
+        options: [
254
+          {
255
+            value: '0',
256
+            label: '全部'
257
+          },{
241
           value: '1',
258
           value: '1',
242
           label: '是'
259
           label: '是'
243
         }, {
260
         }, {
266
       }
283
       }
267
     },
284
     },
268
     methods: {
285
     methods: {
286
+      handleSizeChange(val) {
287
+        this.limit = val
288
+        this.getList()
289
+      },
290
+      handleCurrentChange(val) {
291
+        this.page = val
292
+        this.getList()
293
+      },
269
       changeInject(val){
294
       changeInject(val){
270
         this.getList()
295
         this.getList()
271
 
296