Quellcode durchsuchen

Merge branch '20201014_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201014_pc_vue_new_branch

XMLWAN vor 4 Jahren
Ursprung
Commit
73bbe01b91

+ 1 - 1
src/styles/index.scss Datei anzeigen

@@ -291,7 +291,7 @@ code {
291 291
 .el-dialog__body {
292 292
   max-height: calc(100vh - 290px) !important;
293 293
   overflow-y: scroll !important;
294
-  margin-right: 8px;
294
+  // margin-right: 8px;
295 295
   /* 针对缺省样式 (必须的) */
296 296
   &::-webkit-scrollbar {
297 297
     width: 6px;

+ 1 - 1
src/xt_pages/data/components/addDrugs.vue Datei anzeigen

@@ -201,7 +201,7 @@
201 201
             <el-form-item label="代理商 : " prop="agent">
202 202
               <el-input v-model="form.agent" style="width:160px;" placeholder="" maxlength="30"></el-input>
203 203
             </el-form-item>
204
-            <el-form-item label=""  style="visibility: hidden;">
204
+            <el-form-item label=""  style="display:none;">
205 205
               <el-input style="width:160px;" placeholder="" maxlength="30"></el-input>
206 206
             </el-form-item>
207 207
             <el-form-item label="状态 : " prop="drug_status">

+ 3 - 1
src/xt_pages/data/components/consumables.vue Datei anzeigen

@@ -78,7 +78,9 @@
78 78
       </el-table-column>
79 79
       <el-table-column label="状态" width="60" align="center">
80 80
         <template slot-scope="scope">
81
-        {{ scope.row.good_status}}
81
+        <!--{{ scope.row.good_status}}-->
82
+          <div>{{scope.row.good_status.indexOf('停用') == -1 ? '启用':'停用' }}</div>
83
+
82 84
         </template>
83 85
 
84 86
       </el-table-column>

+ 126 - 66
src/xt_pages/data/components/drugs.vue Datei anzeigen

@@ -64,9 +64,9 @@
64 64
         </template>
65 65
 
66 66
       </el-table-column>
67
-      <el-table-column label="价" width="60" align="center">
67
+      <el-table-column label="零售价" width="60" align="center">
68 68
         <template slot-scope="scope">
69
-          <!--<div>{{scope.row.drug_spec}}</div>-->
69
+          <div>{{scope.row.retail_price}}</div>
70 70
         </template>
71 71
       </el-table-column>
72 72
       <el-table-column label="状态" width="60" align="center">
@@ -114,20 +114,17 @@
114 114
   import selfPayment from './selfPayment'
115 115
   import maintain from './maintain'
116 116
   import addDrugs from './addDrugs'
117
-  import {
118
-    GetAllManufacturer,
119
-  } from '@/api/stock'
117
+  import { GetAllManufacturer } from '@/api/stock'
120 118
 
121 119
   import {
122 120
     createBaseDrugLib,
123
-    getBaseDrugLib,
124
-    getBaseDrugLibList,
125
-    createMedicineInsurancePercent,
126 121
     createDrugUnitSafeguard,
127
-    editBaseDrugLib
122
+    createMedicineInsurancePercent,
123
+    editBaseDrugLib,
124
+    getBaseDrugLib,
125
+    getBaseDrugLibList
128 126
   } from '@/api/data'
129 127
 
130
-
131 128
   export default {
132 129
     components: {
133 130
       selfPayment,
@@ -136,16 +133,16 @@
136 133
     },
137 134
     data() {
138 135
       return {
139
-        page:0,
140
-        limit:10,
141
-        keywords:"",
142
-        is_use:'',
143
-        is_charge:'',
144
-        is_inject:'',
145
-        list:[],
146
-
147
-        isCreated:1,
148
-        manufacturers:[],
136
+        page: 0,
137
+        limit: 10,
138
+        keywords: '',
139
+        is_use: '',
140
+        is_charge: '',
141
+        is_inject: '',
142
+        list: [],
143
+
144
+        isCreated: 1,
145
+        manufacturers: [],
149 146
         title: '',
150 147
         formValue: {
151 148
           drug_name: '',//药品名称
@@ -170,9 +167,9 @@
170 167
           number: '',//批准文号
171 168
           drug_classify: '',//药物分类
172 169
           drug_dose: '',//药品剂量
173
-          drug_dose_unit:'',
170
+          drug_dose_unit: '',
174 171
           medical_insurance_number: '',//医保编号
175
-          manufacturer:'', //生产产商
172
+          manufacturer: '', //生产产商
176 173
           pharmacology_category: '',//药理分类
177 174
           statistics_category: '',//统计分类
178 175
           code: '',//本位码
@@ -192,7 +189,7 @@
192 189
           is_charge_predict: '',//是否收费预估项
193 190
           is_statistics_work: '',//是否统计工作量
194 191
           is_charge_use: '',//是否收费常用项
195
-          drug_code:"",
192
+          drug_code: ''
196 193
 
197 194
         },
198 195
         tempFormValue: {
@@ -218,9 +215,9 @@
218 215
           number: '',//批准文号
219 216
           drug_classify: '',//药物分类
220 217
           drug_dose: '',//药品剂量
221
-          drug_dose_unit:'',
218
+          drug_dose_unit: '',
222 219
           medical_insurance_number: '',//医保编号
223
-          manufacturer:'', //生产产商
220
+          manufacturer: '', //生产产商
224 221
           pharmacology_category: '',//药理分类
225 222
           statistics_category: '',//统计分类
226 223
           code: '',//本位码
@@ -240,24 +237,24 @@
240 237
           is_charge_predict: '',//是否收费预估项
241 238
           is_statistics_work: '',//是否统计工作量
242 239
           is_charge_use: '',//是否收费常用项
243
-          drug_code:"",
240
+          drug_code: ''
244 241
 
245 242
         },
246 243
 
247
-        current_id:0,
244
+        current_id: 0,
248 245
 
249 246
         search_input: '',
250 247
         options: [
251 248
           {
252 249
             value: '0',
253 250
             label: '全部'
254
-          },{
255
-          value: '1',
256
-          label: '是'
257
-        }, {
258
-          value: '2',
259
-          label: '否'
260
-        }],
251
+          }, {
252
+            value: '1',
253
+            label: '是'
254
+          }, {
255
+            value: '2',
256
+            label: '否'
257
+          }],
261 258
         value: '',
262 259
         tableData: [{
263 260
           date: '2016-05-02',
@@ -288,28 +285,25 @@
288 285
         this.page = val
289 286
         this.getList()
290 287
       },
291
-      changeInject(val){
288
+      changeInject(val) {
292 289
         this.getList()
293 290
 
294 291
       },
295
-      changeCharge(val){
292
+      changeCharge(val) {
296 293
         this.getList()
297 294
 
298 295
       },
299
-      changeUser(val){
296
+      changeUser(val) {
300 297
         this.getList()
301 298
 
302
-
303 299
       },
304
-      getName(id){
305
-
306
-      for (let i =0; i < this.manufacturers.length;i++){
307
-        if(this.manufacturers[i].id == id){
308
-          return this.manufacturers[i].manufacturer_name
300
+      getName(id) {
301
+        for (let i = 0; i < this.manufacturers.length; i++) {
302
+          if (this.manufacturers[i].id == id) {
303
+            return this.manufacturers[i].manufacturer_name
304
+          }
309 305
         }
310
-        return ""
311
-      }
312
-
306
+        return ''
313 307
       },
314 308
       goodInfoDialogComfirm: function(val) {
315 309
 
@@ -362,14 +356,14 @@
362 356
         this.getList()
363 357
       },
364 358
       clickSelfPayment(drug_id) {
365
-        this.$refs.selfPayment.show(drug_id,1)
359
+        this.$refs.selfPayment.show(drug_id, 1)
366 360
       },
367 361
       clickMainTain() {
368 362
         // this.$refs.maintain.show();
369 363
       },
370 364
       openForm(id) {
371 365
         this.getAllManufacturer()
372
-        if (id > 0){
366
+        if (id > 0) {
373 367
           this.current_id = id
374 368
           let params = {
375 369
             id: this.current_id
@@ -379,34 +373,100 @@
379 373
               this.$message.error(response.data.msg)
380 374
               return false
381 375
             } else {
382
-              for(let key in response.data.data.drug){
376
+              for (let key in response.data.data.drug) {
383 377
                 this.formValue[key] = response.data.data.drug[key]
384 378
               }
385
-              this.formValue.is_special_diseases = this.formValue.is_special_diseases.toString()
386
-              this.formValue.is_record = this.formValue.is_record.toString()
387
-              this.formValue.is_use_doctor_advice = this.formValue.is_use_doctor_advice.toString()
388
-              this.formValue.is_default = this.formValue.is_default.toString()
389
-              this.formValue.is_charge_predict = this.formValue.is_charge_predict.toString()
390
-              this.formValue.is_statistics_work = this.formValue.is_statistics_work.toString()
391
-              this.formValue.is_charge_use = this.formValue.is_charge_use.toString()
392
-              this.$refs.addDrugs.show(id,this.formValue)
379
+
380
+              if(this.formValue.is_special_diseases <= 0){
381
+
382
+                this.formValue.is_special_diseases = ''
383
+              } else{
384
+
385
+                this.formValue.is_special_diseases = this.formValue.is_special_diseases.toString()
386
+
387
+
388
+              }
389
+
390
+              if(this.formValue.is_record <= 0){
391
+
392
+                this.formValue.is_record = ''
393
+              } else{
394
+
395
+                this.formValue.is_record = this.formValue.is_record.toString()
396
+
397
+
398
+              }
399
+
400
+
401
+              if(this.formValue.is_use_doctor_advice <= 0){
402
+
403
+                this.formValue.is_use_doctor_advice = ''
404
+              } else{
405
+
406
+                this.formValue.is_use_doctor_advice = this.formValue.is_use_doctor_advice.toString()
407
+
408
+
409
+              }
410
+
411
+
412
+              if(this.formValue.is_default <= 0){
413
+
414
+                this.formValue.is_default = ''
415
+              } else{
416
+
417
+                this.formValue.is_default = this.formValue.is_default.toString()
418
+
419
+
420
+              }
421
+
422
+              if(this.formValue.is_charge_predict <= 0){
423
+
424
+                this.formValue.is_charge_predict = ''
425
+              } else{
426
+
427
+                this.formValue.is_charge_predict = this.formValue.is_charge_predict.toString()
428
+
429
+
430
+              }
431
+
432
+              if(this.formValue.is_statistics_work <= 0){
433
+
434
+                this.formValue.is_statistics_work = ''
435
+              } else{
436
+
437
+                this.formValue.is_statistics_work = this.formValue.is_statistics_work.toString()
438
+
439
+
440
+              }
441
+
442
+              if(this.formValue.is_charge_use <= 0){
443
+
444
+                this.formValue.is_charge_use = ''
445
+              } else{
446
+
447
+                this.formValue.is_charge_use = this.formValue.is_charge_use.toString()
448
+
449
+
450
+              }
451
+
452
+              this.$refs.addDrugs.show(id, this.formValue)
393 453
 
394 454
             }
395 455
           })
396
-        }else{
397
-          for(let key in this.tempFormValue){
456
+        } else {
457
+          for (let key in this.tempFormValue) {
398 458
             this.formValue[key] = this.tempFormValue[key]
399 459
           }
400
-          this.$refs.addDrugs.show(0,this.formValue)
460
+          this.$refs.addDrugs.show(0, this.formValue)
401 461
         }
402
-      },  getList() {
462
+      }, getList() {
403 463
         let params = {
404 464
           page: this.page,
405 465
           limit: this.limit,
406 466
           keyword: this.keywords,
407
-          is_use:this.is_use,
408
-          is_charge:this.is_charge,
409
-          is_inject:this.is_inject
467
+          is_use: this.is_use,
468
+          is_charge: this.is_charge,
469
+          is_inject: this.is_inject
410 470
         }
411 471
         getBaseDrugLibList(params).then(response => {
412 472
           if (response.data.state == 0) {
@@ -420,9 +480,9 @@
420 480
             }
421 481
           }
422 482
         })
423
-      },
483
+      }
424 484
 
425
-    },created() {
485
+    }, created() {
426 486
       this.getList()
427 487
       this.getAllManufacturer()
428 488
     }

+ 8 - 0
src/xt_pages/stock/drugs/drugStockUserDetail.vue Datei anzeigen

@@ -46,6 +46,14 @@
46 46
               <span >{{scope.row.count}}</span>
47 47
             </template>
48 48
           </el-table-column>
49
+          <el-table-column min-width="35" align="center">
50
+            <template slot="header" slot-scope="scope">
51
+              <span>出库方式</span>
52
+            </template>
53
+            <template slot-scope="scope">
54
+              <span v-if="scope.row.is_total == 0">{{"自动出库"}}</span>
55
+            </template>
56
+          </el-table-column>
49 57
           <el-table-column min-width="35" align="center">
50 58
             <template slot="header" slot-scope="scope">
51 59
               <span>使用时间</span>

+ 8 - 10
src/xt_pages/stock/drugs/query.vue Datei anzeigen

@@ -2,6 +2,14 @@
2 2
   <div class="main-contain">
3 3
     <div class="position">
4 4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-button
6
+          size="small"
7
+          class="filter-item"
8
+          type="primary"
9
+          icon="el-icon-search"
10
+          @click="setting"
11
+        >设置</el-button
12
+        >
5 13
     </div>
6 14
     <div class="app-container ">
7 15
       <div class="cell clearfix">
@@ -22,16 +30,6 @@
22 30
         >
23 31
       </div>
24 32
 
25
-      <div class="cell clearfix">
26
-        <el-button
27
-          size="small"
28
-          class="filter-item"
29
-          type="primary"
30
-          icon="el-icon-search"
31
-          @click="setting"
32
-        >设置</el-button
33
-        >
34
-      </div>
35 33
 
36 34
       <el-table
37 35
         :row-style="{ color: '#303133' }"

+ 9 - 9
src/xt_pages/stock/index.vue Datei anzeigen

@@ -7,18 +7,18 @@
7 7
     <div class="app-container" >
8 8
       <div class="service-box">
9 9
         <el-tabs v-model="activeName">
10
-          <el-tab-pane label="厂家" name="first">
11
-            <manufacturer></manufacturer>
12
-          </el-tab-pane>
13
-          <el-tab-pane label="经销商">
14
-            <dealer></dealer>
15
-          </el-tab-pane>
10
+          <!--<el-tab-pane label="厂家" name="first">-->
11
+            <!--<manufacturer></manufacturer>-->
12
+          <!--</el-tab-pane>-->
13
+          <!--<el-tab-pane label="经销商">-->
14
+            <!--<dealer></dealer>-->
15
+          <!--</el-tab-pane>-->
16 16
           <el-tab-pane label="商品类型">
17 17
             <good-type></good-type>
18 18
           </el-tab-pane>
19
-          <el-tab-pane label="商品信息">
20
-            <good-info></good-info>
21
-          </el-tab-pane>
19
+          <!--<el-tab-pane label="商品信息">-->
20
+            <!--<good-info></good-info>-->
21
+          <!--</el-tab-pane>-->
22 22
           <el-tab-pane label="自动扣减">
23 23
             <automatic-reduce></automatic-reduce>
24 24
           </el-tab-pane>

+ 4 - 4
src/xt_pages/stock/selfPreparedMedicine/index.vue Datei anzeigen

@@ -18,7 +18,7 @@
18 18
                 v-model="start_time"
19 19
                 prefix-icon="el-icon-date"
20 20
                 :editable="false"
21
-                style="width: 196px;margin-right:10px;"
21
+                style="width: 160px;margin-right:10px;"
22 22
                 type="date"
23 23
                 placeholder="选择日期时间"
24 24
                 align="right"
@@ -54,9 +54,9 @@
54 54
                     <div style="display:flex;justify-content: space-between;align-items: center;">
55 55
                         <div class="tablesTitle">自备药列表</div>
56 56
                         <div>
57
-                            <el-button type="primary" @click="openForm(1)">添加</el-button>
58
-                            <el-button type="primary" @click="openForm(2)">入库</el-button>
59
-                            <el-button type="primary" @click="openForm(3)">出库</el-button>
57
+                            <el-button type="primary" size="mini" @click="openForm(1)">添加</el-button>
58
+                            <el-button type="primary" size="mini" @click="openForm(2)">入库</el-button>
59
+                            <el-button type="primary" size="mini" @click="openForm(3)">出库</el-button>
60 60
                         </div>
61 61
                     </div>
62 62
                     <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>

+ 1 - 1
src/xt_pages/workforce/appointment.vue Datei anzeigen

@@ -100,7 +100,7 @@
100 100
           <span slot="label"><i class="el-icon-date"></i> 下一周 ({{theWeek.nextWeek}})</span>
101 101
         </el-tab-pane>
102 102
         <el-tab-pane name="nextTwoWeek">
103
-          <span slot="label"><i class="el-icon-date"></i> 下周 ({{theWeek.nextTwoWeek}})</span>
103
+          <span slot="label"><i class="el-icon-date"></i> 下周 ({{theWeek.nextTwoWeek}})</span>
104 104
         </el-tab-pane>
105 105
       </el-tabs>
106 106
       <!-- </el-col>

+ 3 - 3
src/xt_pages/workforce/components/setup_template_dialog.vue Datei anzeigen

@@ -2,11 +2,11 @@
2 2
  <!-- top="5vh" -->
3 3
     <el-dialog title="设置模板" width="400px" :visible.sync="visible" :before-close="_close">
4 4
         <el-form :model="form" label-width="100px">
5
-            <el-form-item label="模板启用数量">
5
+            <el-form-item label="选择排班模板">
6 6
                 <el-select v-model="form.mode" placeholder="">
7 7
                     <el-option label="不启用模板" :value="0"></el-option>
8
-                    <el-option label="启用一个模板" :value="1"></el-option>
9
-                    <el-option label="启用两个模板" :value="2"></el-option>
8
+                    <el-option label="启用单周模板" :value="1"></el-option>
9
+                    <el-option label="启用双周模板" :value="2"></el-option>
10 10
                 </el-select>
11 11
             </el-form-item>
12 12
         </el-form>