Pārlūkot izejas kodu

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

csx 4 gadus atpakaļ
vecāks
revīzija
940ab7fc17

+ 1 - 1
src/styles/index.scss Parādīt failu

@@ -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 Parādīt failu

@@ -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">

+ 8 - 10
src/xt_pages/stock/drugs/query.vue Parādīt failu

@@ -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' }"

+ 7 - 3
src/xt_pages/stock/selfPreparedMedicine/components/addMedicine.vue Parādīt failu

@@ -84,11 +84,11 @@ export default {
84 84
         },
85 85
         handleCurrentChange(val){
86 86
            this.currentRow = val
87
-           this.getRullListByDrugName(val.drug_name)
87
+           this.getRullListByDrugName(val.id)
88 88
         },
89
-        getRullListByDrugName(drugname){
89
+        getRullListByDrugName(id){
90 90
             const params = {
91
-              drug_name:drugname,
91
+              id:id,
92 92
             }
93 93
            getRullListByDrugName(params).then(response=>{
94 94
               if(response.data.state ==  1){
@@ -102,6 +102,10 @@ export default {
102 102
         },
103 103
 
104 104
         SaveSelfMedicines(){
105
+          if(this.medicineData.length == 0){
106
+             this.$message.error("请添加药品规格")
107
+             return
108
+          }
105 109
           const params = {
106 110
              patient_id:this.patient_id,
107 111
              medicineData:this.medicineData

+ 1 - 12
src/xt_pages/stock/selfPreparedMedicine/components/warehouseOut.vue Parādīt failu

@@ -97,18 +97,7 @@ export default {
97 97
            })  
98 98
         },
99 99
 
100
-        //  getAllDrugNameList(){
101
-        //   getAllDrugNameList().then(response=>{
102
-        //      if(response.data.state == 1){
103
-        //        var rullername =  response.data.data.rullerName
104
-        //        for(let i=0;i<rullername.length;i++){
105
-        //           rullername[i].outstore_number = ""
106
-        //           rullername[i].remarks = ""
107
-        //        }
108
-        //        this.tableData = rullername
109
-        //      }
110
-        //   })
111
-        // },
100
+      
112 101
        
113 102
         saveOutStock(){
114 103
            var arr=[]

+ 1 - 12
src/xt_pages/stock/selfPreparedMedicine/components/warehousing.vue Parādīt failu

@@ -97,18 +97,7 @@ export default {
97 97
              }
98 98
           })   
99 99
         },
100
-        // getAllDrugNameList(){
101
-        //   getAllDrugNameList().then(response=>{
102
-        //      if(response.data.state == 1){
103
-        //        var rullername =  response.data.data.rullerName
104
-        //        for(let i=0;i<rullername.length;i++){
105
-        //           rullername[i].store_number = ""
106
-        //           rullername[i].remarks = ""
107
-        //        }
108
-        //        this.tableData = rullername
109
-        //      }
110
-        //   })
111
-        // },
100
+    
112 101
         saveStock(){
113 102
             var arr=[]
114 103
             for(let i=0;i<this.tableData.length;i++){

+ 5 - 5
src/xt_pages/stock/selfPreparedMedicine/index.vue Parādīt failu

@@ -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>
@@ -268,7 +268,7 @@ export default {
268 268
                 drugname:name,
269 269
                 patientid:patientid
270 270
               }
271
-            console.log("params ====",params)
271
+           
272 272
             DeleteDrugName(params).then(response => {
273 273
               if (response.data.state == 1) {
274 274
                   var msg = response.data.data.msg

+ 14 - 3
src/xt_pages/stock/selfPreparedMedicine/info.vue Parādīt failu

@@ -285,7 +285,8 @@ export default {
285 285
               drug_name_id:"",
286 286
               unit:"", 
287 287
               price:"",
288
-              drug_stock_limit:""
288
+              drug_stock_limit:"",
289
+              drug_id:"",
289 290
             },
290 291
             editform:{
291 292
               drug_name_id:"",
@@ -333,13 +334,14 @@ export default {
333 334
           getAllDrugName().then(response=>{
334 335
              if(response.data.state == 1){
335 336
                var drugName  = response.data.data.drugName
336
-               console.log("drugName====",drugName)
337
+              
337 338
                this.drugName = drugName
338 339
 
339 340
              }
340 341
           })  
341 342
         },
342 343
         handleCurrentChange(val){
344
+          this.form.drug_id = val.id
343 345
           //获取药品规格名称
344 346
           this.getRulleName(val.drug_name)
345 347
 
@@ -469,17 +471,22 @@ export default {
469 471
            const params = {
470 472
              drug_spec:drug_spec,
471 473
              drug_name_id:this.form.drug_name_id,
474
+             drug_id:this.form.drug_id,
472 475
              unit:this.form.unit,
473 476
              price:this.form.price,
474 477
              drug_stock_limit:this.form.drug_stock_limit, 
475 478
              drug_name:drug_name
476 479
            }
480
+      
477 481
          saveRulleName(params).then(response=>{
478 482
             if(response.data.state == 1){
479 483
               var standName =  response.data.data.RullerName
480 484
               this.$message.success("保存成功")
481 485
               this.getRulleName(standName.drug_name)
482 486
               this.ruleDialogVisible = false
487
+              this.form.drug_name_id = ""
488
+              this.form.unit = ""
489
+              this.form.price = ""            
483 490
             }
484 491
          })  
485 492
        },
@@ -503,13 +510,17 @@ export default {
503 510
              unit:this.form.unit,
504 511
              price:this.form.price,
505 512
              drug_stock_limit:this.form.drug_stock_limit, 
506
-             drug_name:drug_name
513
+             drug_name:drug_name,
514
+             drug_id:this.form.drug_id,
507 515
            }
508 516
          saveRulleName(params).then(response=>{
509 517
             if(response.data.state == 1){
510 518
               var RullerName =  response.data.data.RullerName
511 519
               this.getRulleName(RullerName.drug_name)
512 520
               this.$message.success("保存成功")
521
+              this.form.drug_name_id = ""
522
+              this.form.unit = ""
523
+              this.form.price = ""   
513 524
             }
514 525
          })    
515 526
        },

+ 18 - 6
src/xt_pages/stock/selfPreparedMedicine/query.vue Parādīt failu

@@ -46,7 +46,7 @@
46 46
                 value-format="yyyy-MM-dd"
47 47
                 @change="changeEndtime"
48 48
                 ></el-date-picker>
49
-                <el-select v-model="drug_name" placeholder="请选择" style="margin-right:10px;"
49
+                <el-select v-model="drug_name" placeholder="药品名称" style="margin-right:10px;"
50 50
                  @change="changeDrugName">
51 51
                     <el-option
52 52
                     v-for="item in drugName"
@@ -55,7 +55,7 @@
55 55
                     :value="item.id">
56 56
                     </el-option>
57 57
                 </el-select>
58
-                <el-select v-model="drug_spec" placeholder="请选择"
58
+                <el-select v-model="drug_spec" placeholder="规格名称"
59 59
                 @change="changeRullName">
60 60
                     <el-option
61 61
                     v-for="item in rulleName"
@@ -125,7 +125,7 @@ export default {
125 125
             // end_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
126 126
             start_time:"",
127 127
             end_time:"",
128
-            drug_name:"",
128
+            drug_name:"全部",
129 129
             drug_spec:"",
130 130
             drugName:[],
131 131
             rulleName:[]
@@ -165,9 +165,17 @@ export default {
165 165
       getAllDrugName(){
166 166
         getAllDrugName().then(response=>{
167 167
           if(response.data.state == 1){
168
-             var drugName =  response.data.data.drugName
169
-             this.drugName = drugName
170
-
168
+             var drugName =  response.data.data.drugName  
169
+             var obj = {
170
+               id:0,
171
+               drug_name:"全部"
172
+             }
173
+             var arr = []
174
+             arr.push(obj)
175
+             arr.push(...drugName)
176
+             console.log("arrr",arr)
177
+             this.drugName = arr
178
+     
171 179
              this.getlist()
172 180
           }
173 181
         })
@@ -208,6 +216,9 @@ export default {
208 216
         this.getlist()
209 217
       },
210 218
       getlist(){
219
+          if(this.drug_name == "全部"){
220
+            this.drug_name = ""
221
+          }
211 222
           const params = {
212 223
             start_time:this.start_time,
213 224
             end_time:this.end_time,
@@ -218,6 +229,7 @@ export default {
218 229
         getAllPatientStockList(params).then(response=>{
219 230
             if(response.data.state == 1){
220 231
               var stocklist = response.data.data.stocklist
232
+              console.log("stocklist3333",stocklist)
221 233
               for(let i=0;i<stocklist.length;i++){
222 234
                  stocklist[i].index = i+1
223 235
                  stocklist[i].Count = 0

+ 1 - 1
src/xt_pages/workforce/appointment.vue Parādīt failu

@@ -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 Parādīt failu

@@ -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>