浏览代码

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

XMLWAN 4 年前
父节点
当前提交
73bbe01b91

+ 1 - 1
src/styles/index.scss 查看文件

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

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

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

+ 3 - 1
src/xt_pages/data/components/consumables.vue 查看文件

78
       </el-table-column>
78
       </el-table-column>
79
       <el-table-column label="状态" width="60" align="center">
79
       <el-table-column label="状态" width="60" align="center">
80
         <template slot-scope="scope">
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
         </template>
84
         </template>
83
 
85
 
84
       </el-table-column>
86
       </el-table-column>

+ 126 - 66
src/xt_pages/data/components/drugs.vue 查看文件

64
         </template>
64
         </template>
65
 
65
 
66
       </el-table-column>
66
       </el-table-column>
67
-      <el-table-column label="价" width="60" align="center">
67
+      <el-table-column label="零售价" width="60" align="center">
68
         <template slot-scope="scope">
68
         <template slot-scope="scope">
69
-          <!--<div>{{scope.row.drug_spec}}</div>-->
69
+          <div>{{scope.row.retail_price}}</div>
70
         </template>
70
         </template>
71
       </el-table-column>
71
       </el-table-column>
72
       <el-table-column label="状态" width="60" align="center">
72
       <el-table-column label="状态" width="60" align="center">
114
   import selfPayment from './selfPayment'
114
   import selfPayment from './selfPayment'
115
   import maintain from './maintain'
115
   import maintain from './maintain'
116
   import addDrugs from './addDrugs'
116
   import addDrugs from './addDrugs'
117
-  import {
118
-    GetAllManufacturer,
119
-  } from '@/api/stock'
117
+  import { GetAllManufacturer } from '@/api/stock'
120
 
118
 
121
   import {
119
   import {
122
     createBaseDrugLib,
120
     createBaseDrugLib,
123
-    getBaseDrugLib,
124
-    getBaseDrugLibList,
125
-    createMedicineInsurancePercent,
126
     createDrugUnitSafeguard,
121
     createDrugUnitSafeguard,
127
-    editBaseDrugLib
122
+    createMedicineInsurancePercent,
123
+    editBaseDrugLib,
124
+    getBaseDrugLib,
125
+    getBaseDrugLibList
128
   } from '@/api/data'
126
   } from '@/api/data'
129
 
127
 
130
-
131
   export default {
128
   export default {
132
     components: {
129
     components: {
133
       selfPayment,
130
       selfPayment,
136
     },
133
     },
137
     data() {
134
     data() {
138
       return {
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
         title: '',
146
         title: '',
150
         formValue: {
147
         formValue: {
151
           drug_name: '',//药品名称
148
           drug_name: '',//药品名称
170
           number: '',//批准文号
167
           number: '',//批准文号
171
           drug_classify: '',//药物分类
168
           drug_classify: '',//药物分类
172
           drug_dose: '',//药品剂量
169
           drug_dose: '',//药品剂量
173
-          drug_dose_unit:'',
170
+          drug_dose_unit: '',
174
           medical_insurance_number: '',//医保编号
171
           medical_insurance_number: '',//医保编号
175
-          manufacturer:'', //生产产商
172
+          manufacturer: '', //生产产商
176
           pharmacology_category: '',//药理分类
173
           pharmacology_category: '',//药理分类
177
           statistics_category: '',//统计分类
174
           statistics_category: '',//统计分类
178
           code: '',//本位码
175
           code: '',//本位码
192
           is_charge_predict: '',//是否收费预估项
189
           is_charge_predict: '',//是否收费预估项
193
           is_statistics_work: '',//是否统计工作量
190
           is_statistics_work: '',//是否统计工作量
194
           is_charge_use: '',//是否收费常用项
191
           is_charge_use: '',//是否收费常用项
195
-          drug_code:"",
192
+          drug_code: ''
196
 
193
 
197
         },
194
         },
198
         tempFormValue: {
195
         tempFormValue: {
218
           number: '',//批准文号
215
           number: '',//批准文号
219
           drug_classify: '',//药物分类
216
           drug_classify: '',//药物分类
220
           drug_dose: '',//药品剂量
217
           drug_dose: '',//药品剂量
221
-          drug_dose_unit:'',
218
+          drug_dose_unit: '',
222
           medical_insurance_number: '',//医保编号
219
           medical_insurance_number: '',//医保编号
223
-          manufacturer:'', //生产产商
220
+          manufacturer: '', //生产产商
224
           pharmacology_category: '',//药理分类
221
           pharmacology_category: '',//药理分类
225
           statistics_category: '',//统计分类
222
           statistics_category: '',//统计分类
226
           code: '',//本位码
223
           code: '',//本位码
240
           is_charge_predict: '',//是否收费预估项
237
           is_charge_predict: '',//是否收费预估项
241
           is_statistics_work: '',//是否统计工作量
238
           is_statistics_work: '',//是否统计工作量
242
           is_charge_use: '',//是否收费常用项
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
         search_input: '',
246
         search_input: '',
250
         options: [
247
         options: [
251
           {
248
           {
252
             value: '0',
249
             value: '0',
253
             label: '全部'
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
         value: '',
258
         value: '',
262
         tableData: [{
259
         tableData: [{
263
           date: '2016-05-02',
260
           date: '2016-05-02',
288
         this.page = val
285
         this.page = val
289
         this.getList()
286
         this.getList()
290
       },
287
       },
291
-      changeInject(val){
288
+      changeInject(val) {
292
         this.getList()
289
         this.getList()
293
 
290
 
294
       },
291
       },
295
-      changeCharge(val){
292
+      changeCharge(val) {
296
         this.getList()
293
         this.getList()
297
 
294
 
298
       },
295
       },
299
-      changeUser(val){
296
+      changeUser(val) {
300
         this.getList()
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
       goodInfoDialogComfirm: function(val) {
308
       goodInfoDialogComfirm: function(val) {
315
 
309
 
362
         this.getList()
356
         this.getList()
363
       },
357
       },
364
       clickSelfPayment(drug_id) {
358
       clickSelfPayment(drug_id) {
365
-        this.$refs.selfPayment.show(drug_id,1)
359
+        this.$refs.selfPayment.show(drug_id, 1)
366
       },
360
       },
367
       clickMainTain() {
361
       clickMainTain() {
368
         // this.$refs.maintain.show();
362
         // this.$refs.maintain.show();
369
       },
363
       },
370
       openForm(id) {
364
       openForm(id) {
371
         this.getAllManufacturer()
365
         this.getAllManufacturer()
372
-        if (id > 0){
366
+        if (id > 0) {
373
           this.current_id = id
367
           this.current_id = id
374
           let params = {
368
           let params = {
375
             id: this.current_id
369
             id: this.current_id
379
               this.$message.error(response.data.msg)
373
               this.$message.error(response.data.msg)
380
               return false
374
               return false
381
             } else {
375
             } else {
382
-              for(let key in response.data.data.drug){
376
+              for (let key in response.data.data.drug) {
383
                 this.formValue[key] = response.data.data.drug[key]
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
             this.formValue[key] = this.tempFormValue[key]
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
         let params = {
463
         let params = {
404
           page: this.page,
464
           page: this.page,
405
           limit: this.limit,
465
           limit: this.limit,
406
           keyword: this.keywords,
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
         getBaseDrugLibList(params).then(response => {
471
         getBaseDrugLibList(params).then(response => {
412
           if (response.data.state == 0) {
472
           if (response.data.state == 0) {
420
             }
480
             }
421
           }
481
           }
422
         })
482
         })
423
-      },
483
+      }
424
 
484
 
425
-    },created() {
485
+    }, created() {
426
       this.getList()
486
       this.getList()
427
       this.getAllManufacturer()
487
       this.getAllManufacturer()
428
     }
488
     }

+ 8 - 0
src/xt_pages/stock/drugs/drugStockUserDetail.vue 查看文件

46
               <span >{{scope.row.count}}</span>
46
               <span >{{scope.row.count}}</span>
47
             </template>
47
             </template>
48
           </el-table-column>
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
           <el-table-column min-width="35" align="center">
57
           <el-table-column min-width="35" align="center">
50
             <template slot="header" slot-scope="scope">
58
             <template slot="header" slot-scope="scope">
51
               <span>使用时间</span>
59
               <span>使用时间</span>

+ 8 - 10
src/xt_pages/stock/drugs/query.vue 查看文件

2
   <div class="main-contain">
2
   <div class="main-contain">
3
     <div class="position">
3
     <div class="position">
4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
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
     </div>
13
     </div>
6
     <div class="app-container ">
14
     <div class="app-container ">
7
       <div class="cell clearfix">
15
       <div class="cell clearfix">
22
         >
30
         >
23
       </div>
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
       <el-table
34
       <el-table
37
         :row-style="{ color: '#303133' }"
35
         :row-style="{ color: '#303133' }"

+ 9 - 9
src/xt_pages/stock/index.vue 查看文件

7
     <div class="app-container" >
7
     <div class="app-container" >
8
       <div class="service-box">
8
       <div class="service-box">
9
         <el-tabs v-model="activeName">
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
           <el-tab-pane label="商品类型">
16
           <el-tab-pane label="商品类型">
17
             <good-type></good-type>
17
             <good-type></good-type>
18
           </el-tab-pane>
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
           <el-tab-pane label="自动扣减">
22
           <el-tab-pane label="自动扣减">
23
             <automatic-reduce></automatic-reduce>
23
             <automatic-reduce></automatic-reduce>
24
           </el-tab-pane>
24
           </el-tab-pane>

+ 4 - 4
src/xt_pages/stock/selfPreparedMedicine/index.vue 查看文件

18
                 v-model="start_time"
18
                 v-model="start_time"
19
                 prefix-icon="el-icon-date"
19
                 prefix-icon="el-icon-date"
20
                 :editable="false"
20
                 :editable="false"
21
-                style="width: 196px;margin-right:10px;"
21
+                style="width: 160px;margin-right:10px;"
22
                 type="date"
22
                 type="date"
23
                 placeholder="选择日期时间"
23
                 placeholder="选择日期时间"
24
                 align="right"
24
                 align="right"
54
                     <div style="display:flex;justify-content: space-between;align-items: center;">
54
                     <div style="display:flex;justify-content: space-between;align-items: center;">
55
                         <div class="tablesTitle">自备药列表</div>
55
                         <div class="tablesTitle">自备药列表</div>
56
                         <div>
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
                         </div>
60
                         </div>
61
                     </div>
61
                     </div>
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>
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 查看文件

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

+ 3 - 3
src/xt_pages/workforce/components/setup_template_dialog.vue 查看文件

2
  <!-- top="5vh" -->
2
  <!-- top="5vh" -->
3
     <el-dialog title="设置模板" width="400px" :visible.sync="visible" :before-close="_close">
3
     <el-dialog title="设置模板" width="400px" :visible.sync="visible" :before-close="_close">
4
         <el-form :model="form" label-width="100px">
4
         <el-form :model="form" label-width="100px">
5
-            <el-form-item label="模板启用数量">
5
+            <el-form-item label="选择排班模板">
6
                 <el-select v-model="form.mode" placeholder="">
6
                 <el-select v-model="form.mode" placeholder="">
7
                     <el-option label="不启用模板" :value="0"></el-option>
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
                 </el-select>
10
                 </el-select>
11
             </el-form-item>
11
             </el-form-item>
12
         </el-form>
12
         </el-form>