Browse Source

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

csx 3 years ago
parent
commit
d20b8fe80f
48 changed files with 1653 additions and 744 deletions
  1. 3 1
      src/lang/zh.js
  2. 13 2
      src/router/modules/patient.js
  3. 1 0
      src/xt_pages/data/components/templateTable.vue
  4. 6 4
      src/xt_pages/data/druguseTemplate.vue
  5. 3 1
      src/xt_pages/data/template.vue
  6. 31 29
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue
  7. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue
  8. 2 0
      src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue
  9. 13 5
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyFive.vue
  10. 7 0
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue
  11. 1 1
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  12. 32 31
      src/xt_pages/stock/cancelStockOrder.vue
  13. 34 7
      src/xt_pages/stock/cancelStockOrderAdd.vue
  14. 47 10
      src/xt_pages/stock/cancelStockOrderEdit.vue
  15. 21 23
      src/xt_pages/stock/cancelStockOrderPrint.vue
  16. 31 30
      src/xt_pages/stock/detail/cancelStockDetail.vue
  17. 31 30
      src/xt_pages/stock/detail/stockInDetail.vue
  18. 31 30
      src/xt_pages/stock/detail/stockOutDetail.vue
  19. 186 186
      src/xt_pages/stock/drugs/cancelDrugStockOrder.vue
  20. 8 2
      src/xt_pages/stock/drugs/cancelDrugStockOrderAdd.vue
  21. 2 1
      src/xt_pages/stock/drugs/cancelDrugStockOrderEdit.vue
  22. 39 37
      src/xt_pages/stock/drugs/components/drugCancelDetail.vue
  23. 31 30
      src/xt_pages/stock/drugs/components/drugInOrder.vue
  24. 32 31
      src/xt_pages/stock/drugs/components/drugOutDetail.vue
  25. 3 2
      src/xt_pages/stock/drugs/drugBatchNumber.vue
  26. 1 1
      src/xt_pages/stock/drugs/drugCancelDetailPrint.vue
  27. 2 2
      src/xt_pages/stock/drugs/drugIndex.vue
  28. 3 1
      src/xt_pages/stock/drugs/drugStockFlow.vue
  29. 41 35
      src/xt_pages/stock/drugs/drugStockInOrder.vue
  30. 4 3
      src/xt_pages/stock/drugs/drugStockInOrderAdd.vue
  31. 3 3
      src/xt_pages/stock/drugs/drugStockInOrderEdit.vue
  32. 134 103
      src/xt_pages/stock/drugs/drugStockOutOrder.vue
  33. 2 2
      src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue
  34. 70 15
      src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue
  35. 2 2
      src/xt_pages/stock/drugs/query.vue
  36. 1 1
      src/xt_pages/stock/stockBatchNumber.vue
  37. 2 2
      src/xt_pages/stock/stockFlow.vue
  38. 31 30
      src/xt_pages/stock/stockInOrder.vue
  39. 3 3
      src/xt_pages/stock/stockInOrderAdd.vue
  40. 3 6
      src/xt_pages/stock/stockInOrderEdit.vue
  41. 49 33
      src/xt_pages/stock/stockOutOrder.vue
  42. 5 1
      src/xt_pages/stock/stockOutOrderAdd.vue
  43. 1 1
      src/xt_pages/stock/stockOutOrderEdit.vue
  44. 2 2
      src/xt_pages/stock/stockQuery.vue
  45. 4 2
      src/xt_pages/upload/fast/FastProvince.vue
  46. 7 1
      src/xt_pages/user/components/PatientDetail.vue
  47. 8 1
      src/xt_pages/user/components/PatientSidebar.vue
  48. 666 0
      src/xt_pages/user/templateSummary.vue

+ 3 - 1
src/lang/zh.js View File

355
     rescue_record: '抢救记录',
355
     rescue_record: '抢救记录',
356
     manage_ment: '设备管理',
356
     manage_ment: '设备管理',
357
     nursing_record: '透析护理记录',
357
     nursing_record: '透析护理记录',
358
-    special_record: '特殊记录'
358
+    special_record: '特殊记录',
359
+    template_summary: '治疗小结',
360
+    template_plan: '个性化方案'
359
   }
361
   }
360
 }
362
 }

+ 13 - 2
src/router/modules/patient.js View File

139
     }
139
     }
140
   },
140
   },
141
   {
141
   {
142
-    path:"/patients/patients/:id/inspectionInfectious",
142
+    path: '/patients/patients/:id/inspectionInfectious',
143
     component: () => import('@/xt_pages/user/inspectionInfectious'),
143
     component: () => import('@/xt_pages/user/inspectionInfectious'),
144
     hidden: true,
144
     hidden: true,
145
     is_menu: false,
145
     is_menu: false,
148
       title: 'inspectionInfectious',
148
       title: 'inspectionInfectious',
149
       noCache: true
149
       noCache: true
150
     }
150
     }
151
-  
151
+  },
152
+  {
153
+    path: '/patients/patients/:id/templateSummary',
154
+    component: () => import('@/xt_pages/user/templateSummary'),
155
+    hidden: true,
156
+    is_menu: false,
157
+    name: 'templateSummary',
158
+    meta: {
159
+      title: 'templateSummary',
160
+      noCache: true
161
+    }
152
   },
162
   },
153
   {
163
   {
154
     path: '/patients/course',
164
     path: '/patients/course',
193
       noCache: true
203
       noCache: true
194
     }
204
     }
195
   }
205
   }
206
+
196
   ]
207
   ]
197
 }
208
 }

+ 1 - 0
src/xt_pages/data/components/templateTable.vue View File

354
         }
354
         }
355
 
355
 
356
         if (valid) {
356
         if (valid) {
357
+           
357
           createConfig(this.temp).then(response => {
358
           createConfig(this.temp).then(response => {
358
             if (!response.data) {
359
             if (!response.data) {
359
               // 由于mockjs 不支持自定义状态码只能这样hack
360
               // 由于mockjs 不支持自定义状态码只能这样hack

+ 6 - 4
src/xt_pages/data/druguseTemplate.vue View File

1817
         })
1817
         })
1818
       },
1818
       },
1819
       handleSelect1(){
1819
       handleSelect1(){
1820
-
1820
+       this.templateForm.drug_id =  val.id
1821
       },
1821
       },
1822
-      handleSelect(){
1823
-
1822
+      handleSelect(val){
1823
+        console.log("val23232",val)
1824
+        this.templateForm.drug_id =  val.id
1824
       },
1825
       },
1825
       submitTemplate(formName) {
1826
       submitTemplate(formName) {
1826
 
1827
 
2376
           this.templateForm.week_days = this.templateForm.weekday.filter(function(s) {
2377
           this.templateForm.week_days = this.templateForm.weekday.filter(function(s) {
2377
             return s && s.trim()
2378
             return s && s.trim()
2378
           }).join(',')
2379
           }).join(',')
2380
+          this.templateForm.way = 1
2379
         }
2381
         }
2380
         console.log("编辑模板",this.templateForm)
2382
         console.log("编辑模板",this.templateForm)
2381
-
2383
+      
2382
         // 编辑创建医嘱模版
2384
         // 编辑创建医嘱模版
2383
         CreateSingleAdviceTemplate(this.templateForm).then(response => {
2385
         CreateSingleAdviceTemplate(this.templateForm).then(response => {
2384
           if (response.data.state == 0) {
2386
           if (response.data.state == 0) {

+ 3 - 1
src/xt_pages/data/template.vue View File

45
         { label: this.$t("data_config.nursing_record"), key: "nursing_record" },
45
         { label: this.$t("data_config.nursing_record"), key: "nursing_record" },
46
         { label: this.$t("data_config.special_record"), key: "special_record" },
46
         { label: this.$t("data_config.special_record"), key: "special_record" },
47
         { label: this.$t("data_config.course_disease"), key: "course_disease" },
47
         { label: this.$t("data_config.course_disease"), key: "course_disease" },
48
-        { label: this.$t("data_config.rescue_record"), key: "rescue_record" }
48
+        { label: this.$t("data_config.rescue_record"), key: "rescue_record" },
49
+        { label: this.$t("data_config.template_summary"), key: "template_summary" },
50
+        { label: this.$t("data_config.template_plan"), key: "template_plan" }
49
       ],
51
       ],
50
       activeName: "education",
52
       activeName: "education",
51
       createdTimes: 0
53
       createdTimes: 0

+ 31 - 29
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

1283
               })
1283
               })
1284
               var msg = response.data.data.msg
1284
               var msg = response.data.data.msg
1285
               if(msg == 1){
1285
               if(msg == 1){
1286
-                this.$message.error("无库存,请入库")
1287
-                return
1286
+                var exid = response.data.data.advice.id
1287
+                  if (response.data.data.advice.parent_id > 0) {
1288
+                    exid = response.data.data.advice.parent_id
1289
+                  }
1290
+                
1291
+                  this.currentRow.execution_state = 1
1292
+                  this.currentRow.execution_staff =
1293
+                    response.data.data.advice.execution_staff
1294
+                  this.currentRow.execution_time =
1295
+                    response.data.data.advice.execution_time
1296
+                  var alen = this.doctor_advices.length
1297
+
1298
+                  for (var index in this.doctor_advices) {
1299
+                    if (
1300
+                      this.doctor_advices[index].id == exid ||
1301
+                      this.doctor_advices[index].parent_id == exid
1302
+                    ) {
1303
+                      this.doctor_advices[index].execution_state = 1
1304
+                      this.doctor_advices[index].execution_staff =
1305
+                        response.data.data.advice.execution_staff
1306
+                      this.doctor_advices[index].execution_time =
1307
+                        response.data.data.advice.execution_time
1308
+                      // this.doctor_advices[index].checker = response.data.data.advice.checker;
1309
+                      break
1310
+                    }
1311
+                  }
1312
+                  this.execTimeDialogVisible = false
1313
+                  return false
1288
               }
1314
               }
1289
 
1315
 
1290
               if(msg == 2){
1316
               if(msg == 2){
1291
                 this.$message.error("库存不足,请入库")
1317
                 this.$message.error("库存不足,请入库")
1292
                 return
1318
                 return
1293
               }
1319
               }
1294
-              var exid = response.data.data.advice.id
1295
-              if (response.data.data.advice.parent_id > 0) {
1296
-                exid = response.data.data.advice.parent_id
1297
-              }
1298
-             
1299
-              this.currentRow.execution_state = 1
1300
-              this.currentRow.execution_staff =
1301
-                response.data.data.advice.execution_staff
1302
-              this.currentRow.execution_time =
1303
-                response.data.data.advice.execution_time
1304
-              var alen = this.doctor_advices.length
1305
-
1306
-              for (var index in this.doctor_advices) {
1307
-                if (
1308
-                  this.doctor_advices[index].id == exid ||
1309
-                  this.doctor_advices[index].parent_id == exid
1310
-                ) {
1311
-                  this.doctor_advices[index].execution_state = 1
1312
-                  this.doctor_advices[index].execution_staff =
1313
-                    response.data.data.advice.execution_staff
1314
-                  this.doctor_advices[index].execution_time =
1315
-                    response.data.data.advice.execution_time
1316
-                  // this.doctor_advices[index].checker = response.data.data.advice.checker;
1317
-                  break
1318
-                }
1320
+              if(msg == 3){
1321
+                this.$message.error("无库存,请入库")
1319
               }
1322
               }
1320
-              this.execTimeDialogVisible = false
1321
-              return false
1323
+              
1322
             }
1324
             }
1323
           })
1325
           })
1324
           .catch(() => {
1326
           .catch(() => {

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue View File

1465
           this.afterdialysis = afterdialysis
1465
           this.afterdialysis = afterdialysis
1466
           // eslint-disable-next-line no-unused-vars
1466
           // eslint-disable-next-line no-unused-vars
1467
           var doctoradvce = response.data.data.doctorAdvice
1467
           var doctoradvce = response.data.data.doctorAdvice
1468
-          var doctorAdevieInfo = response.data.data.doctorAdevieInfo
1468
+          var doctorAdevieInfo = JSON.parse(JSON.stringify(response.data.data.advices))
1469
           this.newTableAdvice = response.data.data.doctorAdevieInfo
1469
           this.newTableAdvice = response.data.data.doctorAdevieInfo
1470
           console.log('哈哈哈哈哈哈哈哈哈', this.newTableAdvice)
1470
           console.log('哈哈哈哈哈哈哈哈哈', this.newTableAdvice)
1471
           var tableAdvice = doctorAdevieInfo
1471
           var tableAdvice = doctorAdevieInfo

+ 2 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue View File

487
                     </tr>
487
                     </tr>
488
                     <tr>
488
                     <tr>
489
                       <td width="60">时间</td>
489
                       <td width="60">时间</td>
490
+                      <td width="50">体温<br />°C</td>
490
                       <td width="60">血压<br />(mmHg)</td>
491
                       <td width="60">血压<br />(mmHg)</td>
491
                       <td width="50">脉搏<br />(次/分)</td>
492
                       <td width="50">脉搏<br />(次/分)</td>
492
                       <td width="50">呼吸<br />(次/分)</td>
493
                       <td width="50">呼吸<br />(次/分)</td>
517
 
518
 
518
                     <tr v-for="(monitor, monindex) in monitors" :key="monindex">
519
                     <tr v-for="(monitor, monindex) in monitors" :key="monindex">
519
                       <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
520
                       <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
521
+                      <td>{{ monitor.temperature ? monitor.temperature : "" }}</td>
520
                       <td>
522
                       <td>
521
                         {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure + "/" : "" }}
523
                         {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure + "/" : "" }}
522
                         {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
524
                         {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}

+ 13 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyFive.vue View File

72
                 L
72
                 L
73
               </span>
73
               </span>
74
74
75
-              <label-box :isChecked="prescription.mode_id > 2 ? true : false" showValue="其他:"></label-box>
75
+              <label-box :isChecked="prescription.mode_id == 9 ? true : false" showValue="HFHD+HP"></label-box>&nbsp;
76
+              <label-box :isChecked="prescription.mode_id > 2 && prescription.mode_id != 9 ? true : false" showValue="其他:"></label-box>
76
               <span v-if="prescription.mode_id == 3">{{ prescription.mode_id == 3 ? "HD+HP" : "" }}</span>
77
               <span v-if="prescription.mode_id == 3">{{ prescription.mode_id == 3 ? "HD+HP" : "" }}</span>
77
               <span v-if="prescription.mode_id == 4">{{ prescription.mode_id == 4 ? "HP" : "" }}</span>
78
               <span v-if="prescription.mode_id == 4">{{ prescription.mode_id == 4 ? "HP" : "" }}</span>
78
               <span v-if="prescription.mode_id == 5">{{ prescription.mode_id == 5 ? "HF" : "" }}</span>
79
               <span v-if="prescription.mode_id == 5">{{ prescription.mode_id == 5 ? "HF" : "" }}</span>
79
               <span v-if="prescription.mode_id == 6">{{ prescription.mode_id == 6 ? "SCUF" : "" }}</span>
80
               <span v-if="prescription.mode_id == 6">{{ prescription.mode_id == 6 ? "SCUF" : "" }}</span>
80
               <span v-if="prescription.mode_id == 7">{{ prescription.mode_id == 7 ? "IUF" : "" }}</span>
81
               <span v-if="prescription.mode_id == 7">{{ prescription.mode_id == 7 ? "IUF" : "" }}</span>
81
               <span v-if="prescription.mode_id == 8">{{ prescription.mode_id == 8 ? "HFHD" : "" }}</span>
82
               <span v-if="prescription.mode_id == 8">{{ prescription.mode_id == 8 ? "HFHD" : "" }}</span>
82
-              <span v-if="prescription.mode_id == 9">{{ prescription.mode_id == 9 ? "HFHD+HP" : "" }}</span>
83
+              <!-- <span v-if="prescription.mode_id == 9">{{ prescription.mode_id == 9 ? "HFHD+HP" : "" }}</span> -->
83
               <span v-if="prescription.mode_id == 10">{{ prescription.mode_id == 10 ? "PHF" : "" }}</span>
84
               <span v-if="prescription.mode_id == 10">{{ prescription.mode_id == 10 ? "PHF" : "" }}</span>
84
               <span v-if="prescription.mode_id == 11">{{ prescription.mode_id == 11 ? "HFR" : "" }}</span>
85
               <span v-if="prescription.mode_id == 11">{{ prescription.mode_id == 11 ? "HFR" : "" }}</span>
85
               <span v-if="prescription.mode_id == 12">{{ prescription.mode_id == 12 ? "HDF+HP" : "" }}</span>
86
               <span v-if="prescription.mode_id == 12">{{ prescription.mode_id == 12 ? "HDF+HP" : "" }}</span>
681
             <td colspan="2" style="width:110px;height:40px">医生签名</td>
682
             <td colspan="2" style="width:110px;height:40px">医生签名</td>
682
 
683
 
683
             <td colspan="2" style="width:108px;height:40px">执行</td>
684
             <td colspan="2" style="width:108px;height:40px">执行</td>
685
+            <td colspan="2" style="width:108px;height:40px">核对</td>
684
             <td colspan="3" style="width:130px;height:40px">执行时间</td>
686
             <td colspan="3" style="width:130px;height:40px">执行时间</td>
685
             <!-- <td style="width:60px;height:60px">
687
             <!-- <td style="width:60px;height:60px">
686
               <p style="height:20px;line-height:20px">核对</p>
688
               <p style="height:20px;line-height:20px">核对</p>
726
               </span>
728
               </span>
727
               <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt srcset v-else />
729
               <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt srcset v-else />
728
             </td>
730
             </td>
731
+            <td colspan="2" style="height:40px">
732
+              <span v-if="setAdminUserES(advice.checker) == ''">
733
+                {{ getAdminUser(advice.checker) }}
734
+              </span>
735
+              <img style="height:30px;" :src="setAdminUserES(advice.checker)" alt srcset v-else />
736
+            </td>
729
             <td colspan="3" style="width:130px;">
737
             <td colspan="3" style="width:130px;">
730
               {{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}
738
               {{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}
731
             </td>
739
             </td>
830
             <td width="100" style="border:none;padding-left:5px;">
838
             <td width="100" style="border:none;padding-left:5px;">
831
               透析器凝血:
839
               透析器凝血:
832
             </td>
840
             </td>
833
-            <td width="100" style="text-align:left;border:none;">
841
+            <td style="text-align:left;border:none;">
834
               <div>
842
               <div>
835
                 <span style="width:100px;display:inline-block;border:none;">
843
                 <span style="width:100px;display:inline-block;border:none;">
836
                   {{ afterdialysis.cruor ? afterdialysis.cruor : "" }}
844
                   {{ afterdialysis.cruor ? afterdialysis.cruor : "" }}
839
             </td>
847
             </td>
840
             <!-- <td width="10" style="border:none;"></td> -->
848
             <!-- <td width="10" style="border:none;"></td> -->
841
 
849
 
842
-            <td width="70" style="border:none;padding-left:5px;">内瘘:</td>
850
+            <!-- <td width="70" style="border:none;padding-left:5px;">内瘘:</td>
843
             <td width="200" style="text-align:left;border:none;line-height: 30px;">
851
             <td width="200" style="text-align:left;border:none;line-height: 30px;">
844
               <div>
852
               <div>
845
                 <span style="width:200px;display:inline-block">
853
                 <span style="width:200px;display:inline-block">
854
                   {{ afterdialysis.catheter ? afterdialysis.catheter : "" }}
862
                   {{ afterdialysis.catheter ? afterdialysis.catheter : "" }}
855
                 </span>
863
                 </span>
856
               </div>
864
               </div>
857
-            </td>
865
+            </td> -->
858
           </tr>
866
           </tr>
859
         </tbody>
867
         </tbody>
860
       </table>
868
       </table>

+ 7 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue View File

506
                   </tr>
506
                   </tr>
507
                 </tbody>
507
                 </tbody>
508
               </table>
508
               </table>
509
+              <table class="table-box">
510
+                <tbody>
511
+                  <tr>
512
+                    <td style="text-align:left;padding-left:5px;">备注:{{ predialysis.remark ? predialysis.remark : '' }}</td>
513
+                  </tr>
514
+                </tbody>
515
+              </table>
509
             </td>
516
             </td>
510
           </tr>
517
           </tr>
511
         </tbody>
518
         </tbody>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

2713
                 if (obj.type == 3) {
2713
                 if (obj.type == 3) {
2714
                   obj.single_dose = 1
2714
                   obj.single_dose = 1
2715
                 }
2715
                 }
2716
-
2716
+                console.log('项目obj',temp2)
2717
                 this.prescriptions[i].project.push(obj)
2717
                 this.prescriptions[i].project.push(obj)
2718
               }
2718
               }
2719
               this.curStatus = 2
2719
               this.curStatus = 2

+ 32 - 31
src/xt_pages/stock/cancelStockOrder.vue View File

30
           @click="search"
30
           @click="search"
31
           >搜索</el-button
31
           >搜索</el-button
32
         >
32
         >
33
+        <div style="margin-left:10px;">
34
+          <label class="title"><span class="name">退库时间</span> : </label>
35
+          <el-date-picker
36
+            size="small"
37
+            v-model="start_time"
38
+            prefix-icon="el-icon-date"
39
+            :editable="false"
40
+            style="width: 196px;"
41
+            type="date"
42
+            placeholder="选择日期时间"
43
+            align="right"
44
+            format="yyyy-MM-dd"
45
+            value-format="yyyy-MM-dd"
46
+            @change="startTimeChange"
47
+          ></el-date-picker>
48
+          <span class="cellLine"> - </span>
49
+          <el-date-picker
50
+            size="small"
51
+            v-model="end_time"
52
+            prefix-icon="el-icon-date"
53
+            :editable="false"
54
+            style="width: 196px;"
55
+            type="date"
56
+            placeholder="选择日期时间"
57
+            align="right"
58
+            format="yyyy-MM-dd"
59
+            value-format="yyyy-MM-dd"
60
+            @change="endTimeChange"
61
+          ></el-date-picker>
62
+        </div>
33
       </div>
63
       </div>
34
 
64
 
35
-      <div class="cell clearfix">
36
-        <label class="title"><span class="name">退库时间</span> : </label>
37
-        <el-date-picker
38
-          size="small"
39
-          v-model="start_time"
40
-          prefix-icon="el-icon-date"
41
-          :editable="false"
42
-          style="width: 196px;"
43
-          type="date"
44
-          placeholder="选择日期时间"
45
-          align="right"
46
-          format="yyyy-MM-dd"
47
-          value-format="yyyy-MM-dd"
48
-          @change="startTimeChange"
49
-        ></el-date-picker>
50
-        <span class="cellLine"> - </span>
51
-        <el-date-picker
52
-          size="small"
53
-          v-model="end_time"
54
-          prefix-icon="el-icon-date"
55
-          :editable="false"
56
-          style="width: 196px;"
57
-          type="date"
58
-          placeholder="选择日期时间"
59
-          align="right"
60
-          format="yyyy-MM-dd"
61
-          value-format="yyyy-MM-dd"
62
-          @change="endTimeChange"
63
-        ></el-date-picker>
64
-      </div>
65
+      
65
 
66
 
66
       <div class="filter-container" style="margin-top: 10px">
67
       <div class="filter-container" style="margin-top: 10px">
67
         <el-checkbox
68
         <el-checkbox
640
       const tHeader = ['耗材名称',  '规格&单位','退库数量','退库单价','批次','品名/注册证号(备案凭证号)','生产厂家','生产日期','有效期','退库原因']
641
       const tHeader = ['耗材名称',  '规格&单位','退库数量','退库单价','批次','品名/注册证号(备案凭证号)','生产厂家','生产日期','有效期','退库原因']
641
       const filterVal = ['good_name', 'unit','count','price','number','register_account','manufacturer','product_date','expiry_date','remark']
642
       const filterVal = ['good_name', 'unit','count','price','number','register_account','manufacturer','product_date','expiry_date','remark']
642
       console.log("table",this.exportList)
643
       console.log("table",this.exportList)
643
-      
644
+     
644
       const data = this.formatJson(filterVal, this.exportList)
645
       const data = this.formatJson(filterVal, this.exportList)
645
       excel.export_json_to_excel({
646
       excel.export_json_to_excel({
646
         header: tHeader,
647
         header: tHeader,

+ 34 - 7
src/xt_pages/stock/cancelStockOrderAdd.vue View File

62
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
62
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
63
         >
63
         >
64
        
64
        
65
-          <el-table-column align="center" width="230">
65
+          <el-table-column align="center" width="230" fixed="left">
66
              <template slot="header" slot-scope="scope">
66
              <template slot="header" slot-scope="scope">
67
               <span>耗材名称</span>
67
               <span>耗材名称</span>
68
             </template>
68
             </template>
109
                 style="padding-top: 17px"
109
                 style="padding-top: 17px"
110
               >
110
               >
111
                 <el-input
111
                 <el-input
112
+                  oninput="value=value.replace(/\D|^0/g,'')"
112
                   placeholder="请输入退库数量"
113
                   placeholder="请输入退库数量"
113
                   type="number"
114
                   type="number"
114
                   v-model="scope.row.return_count"
115
                   v-model="scope.row.return_count"
128
                 style="padding-top: 17px"
129
                 style="padding-top: 17px"
129
               >
130
               >
130
                 <el-input
131
                 <el-input
131
-                 oninput="value=value.replace(/[^0-9.]/g,'')"
132
-                  placeholder="请输入退库数量"
132
+                 
133
+                  placeholder="请输入单价"
133
                   type="number"
134
                   type="number"
134
                   v-model="scope.row.price"
135
                   v-model="scope.row.price"
135
                 ></el-input>      
136
                 ></el-input>      
156
                     v-for="(item,index) in numberList"
157
                     v-for="(item,index) in numberList"
157
                     :key="index"
158
                     :key="index"
158
                     :label="item.number"
159
                     :label="item.number"
159
-                    :value="item.number">
160
+                    :value="item.id">
160
                   </el-option>
161
                   </el-option>
161
               </el-select>
162
               </el-select>
162
               </el-form-item>
163
               </el-form-item>
313
       tableRules: {
314
       tableRules: {
314
         return_count: [
315
         return_count: [
315
           { required: true, message: "数量不能为空", trigge: "blur" }
316
           { required: true, message: "数量不能为空", trigge: "blur" }
316
-        ]
317
+        
318
+        ],
319
+        // price: [
320
+        //   { required: true, message: "单价不能为空", trigge: "blur" }
321
+        // ]
317
       },
322
       },
318
       ruleForm: {
323
       ruleForm: {
319
         manufacturer: [
324
         manufacturer: [
339
       dealer: [],
344
       dealer: [],
340
       goodType: [],
345
       goodType: [],
341
       goodInfo:[],
346
       goodInfo:[],
342
-      numberList:[]
347
+      numberList:[],
348
+      dealerList:[],
349
+      manufacturerList:[]
343
     };
350
     };
344
   },
351
   },
345
   methods: {
352
   methods: {
431
       tempObj["remark"] = ""
438
       tempObj["remark"] = ""
432
       tempObj["price"] = ""
439
       tempObj["price"] = ""
433
       tempObj["total"] = ""
440
       tempObj["total"] = ""
441
+      tempObj["warehouse_info_id"] =  0
434
       this.recordInfo.recordData.push(tempObj);
442
       this.recordInfo.recordData.push(tempObj);
435
     },
443
     },
436
     handleDelete: function(index, row) {
444
     handleDelete: function(index, row) {
538
             this.$message.success("请添加退库商品");
546
             this.$message.success("请添加退库商品");
539
             return;
547
             return;
540
           }
548
           }
549
+          console.log("hhhhh2h332",this.recordInfo.recordData)
550
+          for(let i=0;i<this.recordInfo.recordData.length;i++){
551
+            if(this.recordInfo.recordData[i].good_id == 0){
552
+               this.$message.error("耗材规格不能为空")
553
+               return
554
+            }
555
+
556
+            for(let j=0;j<this.numberList.length;j++){
557
+              if(this.recordInfo.recordData[i].number == this.numberList[j].id){
558
+                this.recordInfo.recordData[i].number = this.numberList[j].number
559
+                this.recordInfo.recordData[i].warehouse_info_id = this.numberList[j].id
560
+              }
561
+            }
562
+            
563
+          }
541
 
564
 
542
           const params = {
565
           const params = {
543
             cancelStock: this.recordInfo.recordData
566
             cancelStock: this.recordInfo.recordData
544
           };
567
           };
545
           console.log("params",params)
568
           console.log("params",params)
546
- 
569
+         
547
           postCancelStock(
570
           postCancelStock(
548
             params,
571
             params,
549
             this.return_time,
572
             this.return_time,
562
              }
585
              }
563
              if(msg == 2){
586
              if(msg == 2){
564
                this.$message.error("退库数量大于出库数量")
587
                this.$message.error("退库数量大于出库数量")
588
+             }
589
+              if(msg == 4){
590
+               this.$message.error("该批次退库数量大于入库数量")
565
              }
591
              }
566
              if(msg == 3){
592
              if(msg == 3){
567
                this.$notify({
593
                this.$notify({
692
     tempObj["remark"] = ""
718
     tempObj["remark"] = ""
693
     tempObj["price"] = ""
719
     tempObj["price"] = ""
694
     tempObj["total"] = ""
720
     tempObj["total"] = ""
721
+    tempObj["warehouse_info_id"] = 0
695
     this.recordInfo.recordData.push(tempObj);
722
     this.recordInfo.recordData.push(tempObj);
696
     this.GetConfigInfo();
723
     this.GetConfigInfo();
697
     this.propForm.goodUnit = this.$store.getters.good_unit;
724
     this.propForm.goodUnit = this.$store.getters.good_unit;

+ 47 - 10
src/xt_pages/stock/cancelStockOrderEdit.vue View File

75
             <template slot-scope="scope">
75
             <template slot-scope="scope">
76
               <el-form-item :prop="'recordData.' + scope.$index + '.count'" :rules='tableRules.count'
76
               <el-form-item :prop="'recordData.' + scope.$index + '.count'" :rules='tableRules.count'
77
                             style="padding-top: 17px">
77
                             style="padding-top: 17px">
78
-                <el-input type="number" v-model="scope.row.count"  oninput="value=value.replace(/[^0-9.]/g,'')"></el-input>
78
+                <el-input type="number" v-model="scope.row.count"  oninput="value=value.replace(/\D|^0/g,'')"></el-input>
79
               </el-form-item>
79
               </el-form-item>
80
             </template>
80
             </template>
81
           </el-table-column>
81
           </el-table-column>
82
           <el-table-column width="150" align="center">
82
           <el-table-column width="150" align="center">
83
             <template slot="header" slot-scope="scope">
83
             <template slot="header" slot-scope="scope">
84
-              <span>退库单价<span style="color: red">*</span></span>
84
+              <span>单价<span style="color: red">*</span></span>
85
             </template>
85
             </template>
86
             <template slot-scope="scope">
86
             <template slot-scope="scope">
87
               <el-form-item
87
               <el-form-item
90
                 style="padding-top: 17px"
90
                 style="padding-top: 17px"
91
               >
91
               >
92
                 <el-input
92
                 <el-input
93
-                  placeholder="请输入退库数量"
93
+                  placeholder="请输入单价"
94
                   type="number"
94
                   type="number"
95
                   v-model="scope.row.price"
95
                   v-model="scope.row.price"
96
                 ></el-input>      
96
                 ></el-input>      
112
                 :prop="'recordData.' + scope.$index + '.return_count'"
112
                 :prop="'recordData.' + scope.$index + '.return_count'"
113
                 style="padding-top: 17px"
113
                 style="padding-top: 17px"
114
               >
114
               >
115
-               <el-select v-model="scope.row.number" filterable placeholder="请选择">
115
+               <el-select v-model="scope.row.number" filterable placeholder="请选择" >
116
                   <el-option
116
                   <el-option
117
                     v-for="(item,index) in numberList"
117
                     v-for="(item,index) in numberList"
118
                     :key="index"
118
                     :key="index"
119
                     :label="item.number"
119
                     :label="item.number"
120
-                    :value="item.number">
120
+                    :value="item.id">
121
                   </el-option>
121
                   </el-option>
122
               </el-select>
122
               </el-select>
123
               </el-form-item>
123
               </el-form-item>
277
         tableRules: {
277
         tableRules: {
278
           count: [
278
           count: [
279
             { required: true, message: '数量不能为空', trigge: 'blur' }
279
             { required: true, message: '数量不能为空', trigge: 'blur' }
280
-          ]
280
+          ],
281
+          // price: [
282
+          //   { required: true, message: '单价不能为空', trigge: 'blur' }
283
+          // ]
281
 
284
 
282
         },
285
         },
283
         ruleForm: {
286
         ruleForm: {
311
         goodList:[],
314
         goodList:[],
312
         manufacturerList:[],
315
         manufacturerList:[],
313
         dealerList:[],
316
         dealerList:[],
314
-        numberList:[]
317
+        numberList:[],
318
+        numberShow:true
315
       }
319
       }
316
     },
320
     },
317
     methods: {
321
     methods: {
395
         tempObj["register_account"] = ""
399
         tempObj["register_account"] = ""
396
         tempObj["remark"] = ""
400
         tempObj["remark"] = ""
397
         tempObj["price"] = ""
401
         tempObj["price"] = ""
402
+        tempObj["warehouse_info_id"] = 0
398
         this.recordInfo.recordData.push(tempObj)
403
         this.recordInfo.recordData.push(tempObj)
399
       }, handleDelete: function(index, row) {
404
       }, handleDelete: function(index, row) {
400
         if (row.id == 0) {
405
         if (row.id == 0) {
509
               array[i].price = array[i].price.toString()
514
               array[i].price = array[i].price.toString()
510
             }
515
             }
511
 
516
 
517
+            for(let i=0;i<this.recordInfo.recordData.length;i++){
518
+               if(this.recordInfo.recordData[i].good_id == 0){
519
+                  this.$message.error("耗材规格不能为空")
520
+                  return
521
+               }
522
+             for(let j=0;j<this.numberList.length;j++){
523
+                if(this.recordInfo.recordData[i].number == this.numberList[j].id){
524
+                  this.recordInfo.recordData[i].number = this.numberList[j].number
525
+                  this.recordInfo.recordData[i].warehouse_info_id = this.numberList[j].id
526
+                }
527
+             }
528
+            }
529
+
512
             const params = {
530
             const params = {
513
               'cancelStock': this.recordInfo.recordData
531
               'cancelStock': this.recordInfo.recordData
514
             }
532
             }
515
             console.log("parasm23232",params)
533
             console.log("parasm23232",params)
534
+           
516
             editCancelStockInfo(params, this.return_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer,this.form.dealer).then(response => {
535
             editCancelStockInfo(params, this.return_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer,this.form.dealer).then(response => {
517
               if (response.data.state == 0) {
536
               if (response.data.state == 0) {
518
                 this.$message.error(response.data.msg)
537
                 this.$message.error(response.data.msg)
519
                 return false
538
                 return false
520
               } else {
539
               } else {
521
-                this.$message.success('退库成功')
522
-
523
-                this.$router.back(-1)
540
+                var msg =  response.data.data.msg
541
+                if (msg == 1){
542
+                    this.$message.error("该耗材无出库记录")
543
+                    return
544
+                }
545
+                if(msg == 2){
546
+                  this.$message.error("退库数量大于出库数量")
547
+                }
548
+                  if(msg == 4){
549
+                  this.$message.error("该批次退库数量大于入库数量")
550
+                }
551
+                if(msg == 3){
552
+                  this.$notify({
553
+                    title: "成功",
554
+                    message: "退库成功",
555
+                    type: "success",
556
+                    duration: 2000
557
+                  });
558
+                  this.recordInfo.recordData = [];
559
+                  this.$router.back(-1);
560
+                }        
524
               }
561
               }
525
             })
562
             })
526
           } else {
563
           } else {

+ 21 - 23
src/xt_pages/stock/cancelStockOrderPrint.vue View File

17
           <table class="print-table" border="1">
17
           <table class="print-table" border="1">
18
             <tbody>
18
             <tbody>
19
             <tr>
19
             <tr>
20
-              <td style="line-height: 50px" width="230">耗材名称</td>
21
-              <td style="line-height: 50px" width="260">品名/注册证号(备案凭证号)</td>
22
-              <td style="line-height: 50px" width="230">规格型号</td>
23
-              <td style="line-height: 50px" width="200">生产厂商</td>
24
-              <td style="line-height: 50px" width="180">批号(序列号)</td>
25
-              <td style="line-height:50px" width="200">生产日期</td>
26
-              <td style="line-height: 50px" width="200">有效期</td>
27
-              <td style="line-height: 50px" width="200">退库数量</td>
28
-              <td style="line-height: 50px" width="80">单价</td>
29
-              <td style="line-height: 50px" width="80">总金额</td>
20
+              <td width="230">耗材名称</td>
21
+              <td width="260">品名/注册证号(备案凭证号)</td>
22
+              <td width="230">规格型号</td>
23
+              <td width="200">生产厂商</td>
24
+              <td width="180">批号(序列号)</td>
25
+              <td width="200">生产日期</td>
26
+              <td width="200">有效期</td>
27
+              <td width="200">退库数量</td>
28
+              <td width="80">单价</td>
29
+              <td width="80">总金额</td>
30
             </tr>
30
             </tr>
31
 
31
 
32
             <tr v-for="(item,i) in it.XtCancelStockInfo" :key="i">
32
             <tr v-for="(item,i) in it.XtCancelStockInfo" :key="i">
33
-              <td style="line-height: 50px">
33
+              <td>
34
                 <span>{{item.GoodInfo.good_name}}</span>
34
                 <span>{{item.GoodInfo.good_name}}</span>
35
               </td>
35
               </td>
36
-             <td style="line-height: 50px">
36
+             <td>
37
                 <span>{{item.register_account}}</span>
37
                 <span>{{item.register_account}}</span>
38
               </td>
38
               </td>
39
-              <td style="line-height: 50px">
39
+              <td>
40
                   <span>{{item.GoodInfo.specification_name}}/{{item.GoodInfo.packing_unit}}</span>
40
                   <span>{{item.GoodInfo.specification_name}}/{{item.GoodInfo.packing_unit}}</span>
41
               </td>
41
               </td>
42
-              <td style="line-height: 50px">
42
+              <td>
43
                   {{item.manufacturer}}
43
                   {{item.manufacturer}}
44
               </td>
44
               </td>
45
-              <td style="line-height: 50px">
45
+              <td>
46
                 <span>{{item.number}}</span>
46
                 <span>{{item.number}}</span>
47
               </td>
47
               </td>
48
-              <td style="line-height:50px">
48
+              <td>
49
                   {{(getTime(item.product_date))}}
49
                   {{(getTime(item.product_date))}}
50
               </td>
50
               </td>
51
              <td>{{(getTime(item.expiry_date))}}</td>
51
              <td>{{(getTime(item.expiry_date))}}</td>
52
-             <td  style="line-height:50px">
52
+             <td>
53
                {{item.count}}
53
                {{item.count}}
54
              </td>
54
              </td>
55
-              <td  style="line-height:50px">
55
+              <td>
56
                {{item.price}}
56
                {{item.price}}
57
              </td>
57
              </td>
58
              <td> {{(item.count * item.price).toFixed(2)}}</td>
58
              <td> {{(item.count * item.price).toFixed(2)}}</td>
59
             </tr>
59
             </tr>
60
              <tr>
60
              <tr>
61
-               <td style="line-height:50px">合计</td>
61
+               <td>合计</td>
62
                <td colspan="8"></td>
62
                <td colspan="8"></td>
63
                <td>{{getAllPrince(it.id).toFixed(2)}}</td>
63
                <td>{{getAllPrince(it.id).toFixed(2)}}</td>
64
              </tr>
64
              </tr>
74
             <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
74
             <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
75
           </div>
75
           </div>
76
           <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
76
           <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
77
-            <div style="width:50px;">科室:</div><div style="width:60px;"></div>
78
-            <div style="width:70px;">领料人:</div><div style="width:60px;"></div>
79
             <div style="width:80px;">审批:</div><div style="width:100px;">肖庆娥</div>
77
             <div style="width:80px;">审批:</div><div style="width:100px;">肖庆娥</div>
80
             <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
78
             <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
81
             <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
79
             <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
82
-            <div style="width:70px;">制单人:</div><div style="width:100px;">徐立琼</div>
80
+            <div style="width:70px;">制单人:</div><div style="width:100px;">肖庆娥</div>
83
           </div>
81
           </div>
84
         </div>
82
         </div>
85
 
83
 
384
     width: 100%;
382
     width: 100%;
385
     text-align: center;
383
     text-align: center;
386
     border-collapse: collapse;
384
     border-collapse: collapse;
387
-    line-height: 40px;
385
+    line-height: 20px;
388
     font-size: 14px;
386
     font-size: 14px;
389
   }
387
   }
390
 
388
 

+ 31 - 30
src/xt_pages/stock/detail/cancelStockDetail.vue View File

31
         @click="search"
31
         @click="search"
32
         >搜索</el-button
32
         >搜索</el-button
33
       >
33
       >
34
+      <div style="margin-left:10px;">
35
+        <label class="title"><span class="name">日期查询</span> : </label>
36
+        <el-date-picker
37
+          size="small"
38
+          v-model="start_time"
39
+          prefix-icon="el-icon-date"
40
+          :editable="false"
41
+          style="width: 196px;"
42
+          type="date"
43
+          placeholder="选择日期时间"
44
+          align="right"
45
+          format="yyyy-MM-dd"
46
+          value-format="yyyy-MM-dd"
47
+          @change="startTimeChange"
48
+        ></el-date-picker>
49
+        <span class="cellLine"> - </span>
50
+        <el-date-picker
51
+          size="small"
52
+          v-model="end_time"
53
+          prefix-icon="el-icon-date"
54
+          :editable="false"
55
+          style="width: 196px;"
56
+          type="date"
57
+          placeholder="选择日期时间"
58
+          align="right"
59
+          format="yyyy-MM-dd"
60
+          value-format="yyyy-MM-dd"
61
+          @change="endTimeChange"
62
+        ></el-date-picker>
63
+      </div>
34
     </div>
64
     </div>
35
 
65
 
36
-    <div class="cell clearfix">
37
-      <label class="title"><span class="name">日期查询</span> : </label>
38
-      <el-date-picker
39
-        size="small"
40
-        v-model="start_time"
41
-        prefix-icon="el-icon-date"
42
-        :editable="false"
43
-        style="width: 196px;"
44
-        type="date"
45
-        placeholder="选择日期时间"
46
-        align="right"
47
-        format="yyyy-MM-dd"
48
-        value-format="yyyy-MM-dd"
49
-        @change="startTimeChange"
50
-      ></el-date-picker>
51
-      <span class="cellLine"> - </span>
52
-      <el-date-picker
53
-        size="small"
54
-        v-model="end_time"
55
-        prefix-icon="el-icon-date"
56
-        :editable="false"
57
-        style="width: 196px;"
58
-        type="date"
59
-        placeholder="选择日期时间"
60
-        align="right"
61
-        format="yyyy-MM-dd"
62
-        value-format="yyyy-MM-dd"
63
-        @change="endTimeChange"
64
-      ></el-date-picker>
65
-    </div>
66
+    
66
 
67
 
67
     <!-- <div class="cell clearfix">
68
     <!-- <div class="cell clearfix">
68
       <label class="title"><span class="name">单据类型</span> : </label>
69
       <label class="title"><span class="name">单据类型</span> : </label>

+ 31 - 30
src/xt_pages/stock/detail/stockInDetail.vue View File

33
         @click="search"
33
         @click="search"
34
         >搜索</el-button
34
         >搜索</el-button
35
       >
35
       >
36
+      <div style="margin-left:10px;">
37
+        <label class="title"><span class="name">日期查询</span> : </label>
38
+        <el-date-picker
39
+          size="small"
40
+          v-model="start_time"
41
+          prefix-icon="el-icon-date"
42
+          :editable="false"
43
+          style="width: 196px;"
44
+          type="date"
45
+          placeholder="选择日期时间"
46
+          align="right"
47
+          format="yyyy-MM-dd"
48
+          value-format="yyyy-MM-dd"
49
+          @change="startTimeChange"
50
+        ></el-date-picker>
51
+        <span class="cellLine"> - </span>
52
+        <el-date-picker
53
+          size="small"
54
+          v-model="end_time"
55
+          prefix-icon="el-icon-date"
56
+          :editable="false"
57
+          style="width: 196px;"
58
+          type="date"
59
+          placeholder="选择日期时间"
60
+          align="right"
61
+          format="yyyy-MM-dd"
62
+          value-format="yyyy-MM-dd"
63
+          @change="endTimeChange"
64
+        ></el-date-picker>
65
+      </div>
36
     </div>
66
     </div>
37
 
67
 
38
-    <div class="cell clearfix">
39
-      <label class="title"><span class="name">日期查询</span> : </label>
40
-      <el-date-picker
41
-        size="small"
42
-        v-model="start_time"
43
-        prefix-icon="el-icon-date"
44
-        :editable="false"
45
-        style="width: 196px;"
46
-        type="date"
47
-        placeholder="选择日期时间"
48
-        align="right"
49
-        format="yyyy-MM-dd"
50
-        value-format="yyyy-MM-dd"
51
-        @change="startTimeChange"
52
-      ></el-date-picker>
53
-      <span class="cellLine"> - </span>
54
-      <el-date-picker
55
-        size="small"
56
-        v-model="end_time"
57
-        prefix-icon="el-icon-date"
58
-        :editable="false"
59
-        style="width: 196px;"
60
-        type="date"
61
-        placeholder="选择日期时间"
62
-        align="right"
63
-        format="yyyy-MM-dd"
64
-        value-format="yyyy-MM-dd"
65
-        @change="endTimeChange"
66
-      ></el-date-picker>
67
-    </div>
68
+    
68
 
69
 
69
     <!-- <div class="cell clearfix">
70
     <!-- <div class="cell clearfix">
70
       <label class="title"><span class="name">单据类型</span> : </label>
71
       <label class="title"><span class="name">单据类型</span> : </label>

+ 31 - 30
src/xt_pages/stock/detail/stockOutDetail.vue View File

31
         @click="search"
31
         @click="search"
32
         >搜索</el-button
32
         >搜索</el-button
33
       >
33
       >
34
+      <div style="margin-left:10px;">
35
+        <label class="title"><span class="name">日期查询</span> : </label>
36
+        <el-date-picker
37
+          size="small"
38
+          v-model="start_time"
39
+          prefix-icon="el-icon-date"
40
+          :editable="false"
41
+          style="width: 196px;"
42
+          type="date"
43
+          placeholder="选择日期时间"
44
+          align="right"
45
+          format="yyyy-MM-dd"
46
+          value-format="yyyy-MM-dd"
47
+          @change="startTimeChange"
48
+        ></el-date-picker>
49
+        <span class="cellLine"> - </span>
50
+        <el-date-picker
51
+          size="small"
52
+          v-model="end_time"
53
+          prefix-icon="el-icon-date"
54
+          :editable="false"
55
+          style="width: 196px;"
56
+          type="date"
57
+          placeholder="选择日期时间"
58
+          align="right"
59
+          format="yyyy-MM-dd"
60
+          value-format="yyyy-MM-dd"
61
+          @change="endTimeChange"
62
+        ></el-date-picker>
63
+      </div>
34
     </div>
64
     </div>
35
 
65
 
36
-    <div class="cell clearfix">
37
-      <label class="title"><span class="name">日期查询</span> : </label>
38
-      <el-date-picker
39
-        size="small"
40
-        v-model="start_time"
41
-        prefix-icon="el-icon-date"
42
-        :editable="false"
43
-        style="width: 196px;"
44
-        type="date"
45
-        placeholder="选择日期时间"
46
-        align="right"
47
-        format="yyyy-MM-dd"
48
-        value-format="yyyy-MM-dd"
49
-        @change="startTimeChange"
50
-      ></el-date-picker>
51
-      <span class="cellLine"> - </span>
52
-      <el-date-picker
53
-        size="small"
54
-        v-model="end_time"
55
-        prefix-icon="el-icon-date"
56
-        :editable="false"
57
-        style="width: 196px;"
58
-        type="date"
59
-        placeholder="选择日期时间"
60
-        align="right"
61
-        format="yyyy-MM-dd"
62
-        value-format="yyyy-MM-dd"
63
-        @change="endTimeChange"
64
-      ></el-date-picker>
65
-    </div>
66
+    
66
 
67
 
67
     <!-- <div class="cell clearfix">
68
     <!-- <div class="cell clearfix">
68
       <label class="title"><span class="name">单据类型</span> : </label>
69
       <label class="title"><span class="name">单据类型</span> : </label>

+ 186 - 186
src/xt_pages/stock/drugs/cancelDrugStockOrder.vue View File

30
           @click="search"
30
           @click="search"
31
           >搜索</el-button
31
           >搜索</el-button
32
         >
32
         >
33
+        <div style="margin-left:10px;">
34
+          <label class="title"><span class="name">退库时间</span> : </label>
35
+          <el-date-picker
36
+            size="small"
37
+            v-model="start_time"
38
+            prefix-icon="el-icon-date"
39
+            :editable="false"
40
+            style="width: 196px;"
41
+            type="date"
42
+            placeholder="选择日期时间"
43
+            align="right"
44
+            format="yyyy-MM-dd"
45
+            value-format="yyyy-MM-dd"
46
+            @change="startTimeChange"
47
+          ></el-date-picker>
48
+          <span class="cellLine"> - </span>
49
+          <el-date-picker
50
+            size="small"
51
+            v-model="end_time"
52
+            prefix-icon="el-icon-date"
53
+            :editable="false"
54
+            style="width: 196px;"
55
+            type="date"
56
+            placeholder="选择日期时间"
57
+            align="right"
58
+            format="yyyy-MM-dd"
59
+            value-format="yyyy-MM-dd"
60
+            @change="endTimeChange"
61
+          ></el-date-picker>
62
+        </div>
33
       </div>
63
       </div>
34
 
64
 
35
-      <div class="cell clearfix">
36
-        <label class="title"><span class="name">退库时间</span> : </label>
37
-        <el-date-picker
38
-          size="small"
39
-          v-model="start_time"
40
-          prefix-icon="el-icon-date"
41
-          :editable="false"
42
-          style="width: 196px;"
43
-          type="date"
44
-          placeholder="选择日期时间"
45
-          align="right"
46
-          format="yyyy-MM-dd"
47
-          value-format="yyyy-MM-dd"
48
-          @change="startTimeChange"
49
-        ></el-date-picker>
50
-        <span class="cellLine"> - </span>
51
-        <el-date-picker
52
-          size="small"
53
-          v-model="end_time"
54
-          prefix-icon="el-icon-date"
55
-          :editable="false"
56
-          style="width: 196px;"
57
-          type="date"
58
-          placeholder="选择日期时间"
59
-          align="right"
60
-          format="yyyy-MM-dd"
61
-          value-format="yyyy-MM-dd"
62
-          @change="endTimeChange"
63
-        ></el-date-picker>
64
-      </div>
65
+      
65
 
66
 
66
       <div class="filter-container" style="margin-top: 10px">
67
       <div class="filter-container" style="margin-top: 10px">
67
         <el-checkbox
68
         <el-checkbox
75
         <el-button size="small"  type="primary" @click="toExport">导出</el-button>
76
         <el-button size="small"  type="primary" @click="toExport">导出</el-button>
76
       </div>
77
       </div>
77
 
78
 
78
-      <el-row :gutter="12" style="margin-top: 10px">
79
-        <el-table
80
-          :data="cancelStockDate"
81
-          :class="signAndWeighBoxPatients"
82
-          border
83
-          highlight-current-row
84
-          ref="multipleTable"
85
-          @current-change="handleCurrentChangeOne"
86
-          @selection-change="select"
87
-          :row-style="{ color: '#303133' }"
88
-          :header-cell-style="{
89
-            backgroundColor: 'rgb(245, 247, 250)',
90
-            color: '#606266'
91
-          }"
92
-        >
93
-          <el-table-column type="selection" width="55"> </el-table-column>
79
+      <el-table
80
+        :data="cancelStockDate"
81
+        :class="signAndWeighBoxPatients"
82
+        border
83
+        highlight-current-row
84
+        ref="multipleTable"
85
+        @current-change="handleCurrentChangeOne"
86
+        @selection-change="select"
87
+        :row-style="{ color: '#303133' }"
88
+        :header-cell-style="{
89
+          backgroundColor: 'rgb(245, 247, 250)',
90
+          color: '#606266'
91
+        }"
92
+      >
93
+        <el-table-column type="selection" width="55"> </el-table-column>
94
 
94
 
95
-          <el-table-column label="单据日期" align="center">
96
-            <template slot-scope="scope">
97
-              {{ scope.row.return_time | parseTime("{y}-{m}-{d}") }}
98
-            </template>
99
-          </el-table-column>
95
+        <el-table-column label="单据日期" align="center">
96
+          <template slot-scope="scope">
97
+            {{ scope.row.return_time | parseTime("{y}-{m}-{d}") }}
98
+          </template>
99
+        </el-table-column>
100
 
100
 
101
-          <el-table-column label="单据编号" align="center">
102
-            <template slot-scope="scope">
103
-              {{ scope.row.order_number }}
104
-            </template>
105
-          </el-table-column>
101
+        <el-table-column label="单据编号" align="center">
102
+          <template slot-scope="scope">
103
+            {{ scope.row.order_number }}
104
+          </template>
105
+        </el-table-column>
106
 
106
 
107
-          <el-table-column label="制单人" align="center">
108
-            <template slot-scope="scope">
109
-              {{ getXuserName(scope.row.creater) }}
110
-            </template>
111
-          </el-table-column>
107
+        <el-table-column label="制单人" align="center">
108
+          <template slot-scope="scope">
109
+            {{ getXuserName(scope.row.creater) }}
110
+          </template>
111
+        </el-table-column>
112
 
112
 
113
-          <el-table-column label="操作" align="center">
114
-            <template slot-scope="scope">
115
-              <el-tooltip
116
-                class="item"
117
-                effect="dark"
118
-                content="编辑"
119
-                placement="top"
113
+        <el-table-column label="操作" align="center">
114
+          <template slot-scope="scope">
115
+            <el-tooltip
116
+              class="item"
117
+              effect="dark"
118
+              content="编辑"
119
+              placement="top"
120
+            >
121
+              <el-button
122
+                size="mini"
123
+                type="primary"
124
+                icon="el-icon-edit-outline"
125
+                @click="handleEdit(scope.$index, scope.row)"
120
               >
126
               >
121
-                <el-button
122
-                  size="mini"
123
-                  type="primary"
124
-                  icon="el-icon-edit-outline"
125
-                  @click="handleEdit(scope.$index, scope.row)"
126
-                >
127
-                </el-button>
128
-              </el-tooltip>
129
-              <el-tooltip
130
-                class="item"
131
-                effect="dark"
132
-                content="删除"
133
-                placement="top"
127
+              </el-button>
128
+            </el-tooltip>
129
+            <el-tooltip
130
+              class="item"
131
+              effect="dark"
132
+              content="删除"
133
+              placement="top"
134
+            >
135
+              <el-button
136
+                size="mini"
137
+                type="danger"
138
+                icon="el-icon-delete"
139
+                @click="handleDelete(scope.$index, scope.row)"
134
               >
140
               >
135
-                <el-button
136
-                  size="mini"
137
-                  type="danger"
138
-                  icon="el-icon-delete"
139
-                  @click="handleDelete(scope.$index, scope.row)"
140
-                >
141
-                </el-button>
142
-              </el-tooltip>
143
-            </template>
144
-          </el-table-column>
145
-        </el-table>
146
-
147
-        <el-pagination
148
-          @size-change="handleSizeChange"
149
-          @current-change="handleCurrentChange"
150
-          :page-sizes="[10, 50, 100]"
151
-          :page-size="10"
152
-          background
153
-          style="margin-top:20px;float: right"
154
-          layout="total, sizes, prev, pager, next, jumper"
155
-          :total="total"
156
-        >
157
-        </el-pagination>
158
-      </el-row>
159
-    </div>
141
+              </el-button>
142
+            </el-tooltip>
143
+          </template>
144
+        </el-table-column>
145
+      </el-table>
160
 
146
 
161
-    <div v-show ="showTable" style="margin-top:10px">
162
-       <el-table
163
-          :data="tableList"
164
-          :class="signAndWeighBoxPatients"
165
-          border
166
-          highlight-current-row
167
-          ref="multipleTableOne"
168
-          @current-change="handleCurrentChangeOne"
169
-          @selection-change="select"
170
-          :row-style="{ color: '#303133' }"
171
-          :header-cell-style="{
172
-            backgroundColor: 'rgb(245, 247, 250)',
173
-            color: '#606266'
174
-          }"
175
-        >
147
+      <el-pagination
148
+        @size-change="handleSizeChange"
149
+        @current-change="handleCurrentChange"
150
+        :page-sizes="[10, 50, 100]"
151
+        :page-size="10"
152
+        background
153
+        style="margin-top:20px;float: right;margin-bottom:10px;"
154
+        layout="total, sizes, prev, pager, next, jumper"
155
+        :total="total"
156
+      >
157
+      </el-pagination>
158
+      <div v-show ="showTable">
159
+        <el-table
160
+            :data="tableList"
161
+            :class="signAndWeighBoxPatients"
162
+            border
163
+            highlight-current-row
164
+            ref="multipleTableOne"
165
+            @current-change="handleCurrentChangeOne"
166
+            @selection-change="select"
167
+            :row-style="{ color: '#303133' }"
168
+            :header-cell-style="{
169
+              backgroundColor: 'rgb(245, 247, 250)',
170
+              color: '#606266'
171
+            }"
172
+          >
176
 
173
 
177
-          <el-table-column label="药品名称" align="center">
178
-            <template slot-scope="scope">
179
-              {{ scope.row.BaseDrugLib.drug_name}}
180
-            </template>
181
-          </el-table-column>
174
+            <el-table-column label="药品名称" align="center">
175
+              <template slot-scope="scope">
176
+                {{ scope.row.BaseDrugLib.drug_name}}
177
+              </template>
178
+            </el-table-column>
179
+            
180
+          <el-table-column label="规格&单位" align="center">
181
+              <template slot-scope="scope">
182
+                {{ scope.row.BaseDrugLib.dose}}{{scope.row.BaseDrugLib.dose_unit}} * {{scope.row.BaseDrugLib.min_number}}{{scope.row.BaseDrugLib.min_unit}} /{{scope.row.BaseDrugLib.max_unit}}
183
+              </template>
184
+            </el-table-column>
182
           
185
           
183
-         <el-table-column label="规格&单位" align="center">
184
-            <template slot-scope="scope">
185
-              {{ scope.row.BaseDrugLib.dose}}{{scope.row.BaseDrugLib.dose_unit}} * {{scope.row.BaseDrugLib.min_number}}{{scope.row.BaseDrugLib.min_unit}} /{{scope.row.BaseDrugLib.max_unit}}
186
-            </template>
187
-          </el-table-column>
188
-         
189
-          <el-table-column label="退库数量" align="center">
190
-            <template slot-scope="scope">
191
-               {{ scope.row.count}}
192
-            </template>
193
-          </el-table-column>
186
+            <el-table-column label="退库数量" align="center">
187
+              <template slot-scope="scope">
188
+                {{ scope.row.count}}
189
+              </template>
190
+            </el-table-column>
194
 
191
 
195
-          <el-table-column label="退库单位" align="center">
196
-            <template slot-scope="scope">
197
-              {{ scope.row.max_unit}}
198
-            </template>
199
-          </el-table-column>
192
+            <el-table-column label="退库单位" align="center">
193
+              <template slot-scope="scope">
194
+                {{ scope.row.max_unit}}
195
+              </template>
196
+            </el-table-column>
200
 
197
 
201
-          <el-table-column label="退库单价" align="center">
202
-            <template slot-scope="scope">
203
-              {{ scope.row.price}}
204
-            </template> 
205
-          </el-table-column>
198
+            <el-table-column label="退库单价" align="center">
199
+              <template slot-scope="scope">
200
+                {{ scope.row.price}}
201
+              </template> 
202
+            </el-table-column>
206
 
203
 
207
-           <el-table-column label="批次" align="center">
208
-            <template slot-scope="scope">
209
-              {{ scope.row.batch_number}}
210
-            </template>
211
-          </el-table-column>
204
+            <el-table-column label="批次" align="center">
205
+              <template slot-scope="scope">
206
+                {{ scope.row.batch_number}}
207
+              </template>
208
+            </el-table-column>
212
 
209
 
213
-          <el-table-column label="品名/注册证号(备案凭证号)" align="center">
214
-            <template slot-scope="scope">
215
-              {{ scope.row.register_account}}
216
-            </template>
217
-          </el-table-column>
210
+            <el-table-column label="品名/注册证号(备案凭证号)" align="center">
211
+              <template slot-scope="scope">
212
+                {{ scope.row.register_account}}
213
+              </template>
214
+            </el-table-column>
218
 
215
 
219
-          <el-table-column label="生产厂家" align="center">
220
-            <template slot-scope="scope">
221
-              {{scope.row.manufacturer}}
222
-            </template>
223
-          </el-table-column>
216
+            <el-table-column label="生产厂家" align="center">
217
+              <template slot-scope="scope">
218
+                {{scope.row.manufacturer}}
219
+              </template>
220
+            </el-table-column>
224
 
221
 
225
-          <el-table-column label="生产日期" align="center">
226
-            <template slot-scope="scope">
227
-               {{scope.row.product_date}}
228
-            </template>
229
-          </el-table-column>
222
+            <el-table-column label="生产日期" align="center">
223
+              <template slot-scope="scope">
224
+                {{scope.row.product_date}}
225
+              </template>
226
+            </el-table-column>
230
 
227
 
231
-         <el-table-column label="有效日期" align="center">
232
-            <template slot-scope="scope">
233
-              {{scope.row.expiry_date}}
234
-            </template>
235
-          </el-table-column>
236
-         
237
-          <el-table-column label="经销商" align="center">
238
-            <template slot-scope="scope">
239
-              {{scope.row.dealer}}
240
-            </template>
241
-          </el-table-column>
242
-         
243
-          <el-table-column label="退库原因" align="center">
244
-            <template slot-scope="scope">
245
-              {{scope.row.remark}}
246
-            </template>
247
-          </el-table-column>
228
+          <el-table-column label="有效日期" align="center">
229
+              <template slot-scope="scope">
230
+                {{scope.row.expiry_date}}
231
+              </template>
232
+            </el-table-column>
233
+          
234
+            <el-table-column label="经销商" align="center">
235
+              <template slot-scope="scope">
236
+                {{scope.row.dealer}}
237
+              </template>
238
+            </el-table-column>
239
+          
240
+            <el-table-column label="退库原因" align="center">
241
+              <template slot-scope="scope">
242
+                {{scope.row.remark}}
243
+              </template>
244
+            </el-table-column>
248
 
245
 
249
-        
250
-        </el-table>
246
+          
247
+          </el-table>
248
+      </div>
251
     </div>
249
     </div>
250
+
251
+    
252
   </div>
252
   </div>
253
 </template>
253
 </template>
254
 
254
 

+ 8 - 2
src/xt_pages/stock/drugs/cancelDrugStockOrderAdd.vue View File

102
           max-height="450"
102
           max-height="450"
103
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
103
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
104
         >
104
         >
105
-          <el-table-column align="center" width="200">
105
+          <el-table-column align="center" width="200" fixed="left">
106
             <template slot="header" slot-scope="scope">
106
             <template slot="header" slot-scope="scope">
107
               <span>药品名称<span style="color: red">*</span></span>
107
               <span>药品名称<span style="color: red">*</span></span>
108
             </template>
108
             </template>
155
               >
155
               >
156
               <div style="display:flex;">
156
               <div style="display:flex;">
157
                 <el-input
157
                 <el-input
158
-                  oninput="value=value.replace(/[^0-9.]/g,'')"
158
+                   oninput="value=value.replace(/\D|^0/g,'')"
159
                   style="width:100px"
159
                   style="width:100px"
160
                   placeholder="请输入退库数量"
160
                   placeholder="请输入退库数量"
161
                   type="number"
161
                   type="number"
499
       tempObj["product_date"] = ""
499
       tempObj["product_date"] = ""
500
       tempObj["expiry_date"] = ""
500
       tempObj["expiry_date"] = ""
501
       tempObj["batch_number"] = ""
501
       tempObj["batch_number"] = ""
502
+      tempObj["max_unit"] = ""
502
       tempObj["batch_number_id"] = 0
503
       tempObj["batch_number_id"] = 0
503
       this.recordInfo.recordData.push(tempObj);
504
       this.recordInfo.recordData.push(tempObj);
504
     },
505
     },
598
             return;
599
             return;
599
           }
600
           }
600
           for(let i=0;i<this.recordInfo.recordData.length;i++){
601
           for(let i=0;i<this.recordInfo.recordData.length;i++){
602
+            this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].price.toString()
601
              for(let j=0;j<this.numberList.length;j++){
603
              for(let j=0;j<this.numberList.length;j++){
602
                 if(this.recordInfo.recordData[i].batch_number == this.numberList[j].id){
604
                 if(this.recordInfo.recordData[i].batch_number == this.numberList[j].id){
603
                    this.recordInfo.recordData[i].batch_number = this.numberList[j].batch_number
605
                    this.recordInfo.recordData[i].batch_number = this.numberList[j].batch_number
604
                    this.recordInfo.recordData[i].batch_number_id = this.numberList[j].id
606
                    this.recordInfo.recordData[i].batch_number_id = this.numberList[j].id
607
+                 
605
                 }
608
                 }
606
              }
609
              }
607
           }
610
           }
691
         this.currentIndex = val
694
         this.currentIndex = val
692
       },
695
       },
693
       handleSelect(val){
696
       handleSelect(val){
697
+         console.log("val23232",val)
694
          this.getDrugBatchNumber(val.id)
698
          this.getDrugBatchNumber(val.id)
695
          for(let i=0;i<this.recordInfo.recordData.length;i++){
699
          for(let i=0;i<this.recordInfo.recordData.length;i++){
696
            if(i == this.currentIndex){
700
            if(i == this.currentIndex){
699
              this.recordInfo.recordData[i].drug_type = val.drug_type
703
              this.recordInfo.recordData[i].drug_type = val.drug_type
700
              this.recordInfo.recordData[i].name  = val.dose +val.dose_unit+"*"+val.min_number+ val.min_unit+"/"+val.max_unit
704
              this.recordInfo.recordData[i].name  = val.dose +val.dose_unit+"*"+val.min_number+ val.min_unit+"/"+val.max_unit
701
              this.recordInfo.recordData[i].last_price = val.last_price
705
              this.recordInfo.recordData[i].last_price = val.last_price
706
+             this.recordInfo.recordData[i].price = val.last_price
702
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer
707
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer
703
              this.recordInfo.recordData[i].number =  val.number
708
              this.recordInfo.recordData[i].number =  val.number
704
              this.recordInfo.recordData[i].max_unit = val.max_unit
709
              this.recordInfo.recordData[i].max_unit = val.max_unit
754
     tempObj["expiry_date"] = ""
759
     tempObj["expiry_date"] = ""
755
     tempObj["batch_number"] = ""
760
     tempObj["batch_number"] = ""
756
     tempObj["batch_number_id"] = 0
761
     tempObj["batch_number_id"] = 0
762
+    tempObj["max_unit"] = ""
757
     this.unitList =  getDataConfig('hemodialysis','units')
763
     this.unitList =  getDataConfig('hemodialysis','units')
758
     console.log("单位",this.unitList)
764
     console.log("单位",this.unitList)
759
     this.recordInfo.recordData.push(tempObj);
765
     this.recordInfo.recordData.push(tempObj);

+ 2 - 1
src/xt_pages/stock/drugs/cancelDrugStockOrderEdit.vue View File

81
               >
81
               >
82
               <div style="display:flex;">
82
               <div style="display:flex;">
83
                 <el-input
83
                 <el-input
84
-                 oninput="value=value.replace(/[^0-9.]/g,'')"
84
+                 oninput="value=value.replace(/\D|^0/g,'')"
85
                   style="width:100px"
85
                   style="width:100px"
86
                   placeholder="请输入退库数量"
86
                   placeholder="请输入退库数量"
87
                   type="number"
87
                   type="number"
668
              this.recordInfo.recordData[i].drug_type = val.drug_type
668
              this.recordInfo.recordData[i].drug_type = val.drug_type
669
              this.recordInfo.recordData[i].name  = val.dose +val.dose_unit+"*"+val.min_number+ val.min_unit+"/"+val.max_unit
669
              this.recordInfo.recordData[i].name  = val.dose +val.dose_unit+"*"+val.min_number+ val.min_unit+"/"+val.max_unit
670
              this.recordInfo.recordData[i].last_price = val.last_price
670
              this.recordInfo.recordData[i].last_price = val.last_price
671
+             this.recordInfo.recordData[i].price = val.price
671
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer
672
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer
672
              this.recordInfo.recordData[i].number =  val.number
673
              this.recordInfo.recordData[i].number =  val.number
673
              this.recordInfo.recordData[i].max_unit = val.max_unit
674
              this.recordInfo.recordData[i].max_unit = val.max_unit

+ 39 - 37
src/xt_pages/stock/drugs/components/drugCancelDetail.vue View File

33
         @click="search"
33
         @click="search"
34
         >搜索</el-button
34
         >搜索</el-button
35
       >
35
       >
36
+      <div style="margin-left:10px;">
37
+        <label class="title"><span class="name">日期查询</span> : </label>
38
+        <el-date-picker
39
+          size="small"
40
+          v-model="start_time"
41
+          prefix-icon="el-icon-date"
42
+          :editable="false"
43
+          style="width: 196px;"
44
+          type="date"
45
+          placeholder="选择日期时间"
46
+          align="right"
47
+          format="yyyy-MM-dd"
48
+          value-format="yyyy-MM-dd"
49
+          @change="startTimeChange"
50
+        ></el-date-picker>
51
+        <span class="cellLine"> - </span>
52
+        <el-date-picker
53
+          size="small"
54
+          v-model="end_time"
55
+          prefix-icon="el-icon-date"
56
+          :editable="false"
57
+          style="width: 196px;"
58
+          type="date"
59
+          placeholder="选择日期时间"
60
+          align="right"
61
+          format="yyyy-MM-dd"
62
+          value-format="yyyy-MM-dd"
63
+          @change="endTimeChange"
64
+        ></el-date-picker>
65
+      </div>
36
     </div>
66
     </div>
37
 
67
 
38
-    <div class="cell clearfix">
39
-      <label class="title"><span class="name">日期查询</span> : </label>
40
-      <el-date-picker
41
-        size="small"
42
-        v-model="start_time"
43
-        prefix-icon="el-icon-date"
44
-        :editable="false"
45
-        style="width: 196px;"
46
-        type="date"
47
-        placeholder="选择日期时间"
48
-        align="right"
49
-        format="yyyy-MM-dd"
50
-        value-format="yyyy-MM-dd"
51
-        @change="startTimeChange"
52
-      ></el-date-picker>
53
-      <span class="cellLine"> - </span>
54
-      <el-date-picker
55
-        size="small"
56
-        v-model="end_time"
57
-        prefix-icon="el-icon-date"
58
-        :editable="false"
59
-        style="width: 196px;"
60
-        type="date"
61
-        placeholder="选择日期时间"
62
-        align="right"
63
-        format="yyyy-MM-dd"
64
-        value-format="yyyy-MM-dd"
65
-        @change="endTimeChange"
66
-      ></el-date-picker>
67
-    </div>
68
+    
68
 
69
 
69
-    <div class="cell clearfix">
70
+    <!-- <div class="cell clearfix">
70
       <label class="title"><span class="name">单据类型</span> : </label>
71
       <label class="title"><span class="name">单据类型</span> : </label>
71
       <el-select
72
       <el-select
72
         size="small"
73
         size="small"
83
         >
84
         >
84
         </el-option>
85
         </el-option>
85
       </el-select>
86
       </el-select>
86
-    </div>
87
-
87
+    </div> -->
88
+<!-- 
88
     <div class="cell clearfix">
89
     <div class="cell clearfix">
89
       <label class="title"><span class="name">其它</span> : </label>
90
       <label class="title"><span class="name">其它</span> : </label>
90
       <el-select
91
       <el-select
102
         >
103
         >
103
         </el-option>
104
         </el-option>
104
       </el-select>
105
       </el-select>
105
-    </div>
106
+    </div> -->
106
 
107
 
107
     <el-row :gutter="12" style="margin-top: 10px">
108
     <el-row :gutter="12" style="margin-top: 10px">
108
       <el-table
109
       <el-table
140
 
141
 
141
         <el-table-column label="规格型号" align="center">
142
         <el-table-column label="规格型号" align="center">
142
           <template slot-scope="scope">
143
           <template slot-scope="scope">
143
-            <span>{{scope.row.drug_spec}}</span>
144
+            <span>{{scope.row.dose}}{{scope.row.dose_unit}}*{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}</span>
144
           </template>
145
           </template>
145
         </el-table-column>
146
         </el-table-column>
146
 
147
 
358
       getDrugCancelDetail(params).then(response=>{
359
       getDrugCancelDetail(params).then(response=>{
359
          if(response.data.state == 1){
360
          if(response.data.state == 1){
360
            var order =  response.data.data.order
361
            var order =  response.data.data.order
361
-           console.log("退库详细",order)
362
+           console.log("退库详细222222222222222222",order)
362
            this.tableData = order
363
            this.tableData = order
363
            this.tableList = order
364
            this.tableList = order
364
            var total = response.data.data.total
365
            var total = response.data.data.total
387
     exportList(){
388
     exportList(){
388
        for(let i=0;i<this.tableList.length;i++){
389
        for(let i=0;i<this.tableList.length;i++){
389
           this.tableList[i].index = i+1
390
           this.tableList[i].index = i+1
391
+          this.tableList[i].unit = this.tableList[i].dose + this.tableList[i].dose_unit + "*"+this.tableList[i].min_number + this.tableList[i].min_unit+"/"+this.tableList[i].max_unit
390
         }
392
         }
391
        import('@/vendor/Export2Excel').then(excel => {
393
        import('@/vendor/Export2Excel').then(excel => {
392
        const tHeader = ['序号','药品名称', '规格型号', '单位','数量','单价','备注']
394
        const tHeader = ['序号','药品名称', '规格型号', '单位','数量','单价','备注']
393
-       const filterVal = ['index','drug_name', 'drug_spec', 'min_unit','count','price','remark']
395
+       const filterVal = ['index','drug_name', 'unit', 'min_unit','count','price','remark']
394
        
396
        
395
        const data = this.formatJson(filterVal, this.tableList)
397
        const data = this.formatJson(filterVal, this.tableList)
396
        console.log("data",data)
398
        console.log("data",data)

+ 31 - 30
src/xt_pages/stock/drugs/components/drugInOrder.vue View File

33
         @click="search"
33
         @click="search"
34
         >搜索</el-button
34
         >搜索</el-button
35
       >
35
       >
36
+      <div style="margin-left:10px;">
37
+        <label class="title"><span class="name">日期查询</span> : </label>
38
+        <el-date-picker
39
+          size="small"
40
+          v-model="start_time"
41
+          prefix-icon="el-icon-date"
42
+          :editable="false"
43
+          style="width: 196px;"
44
+          type="date"
45
+          placeholder="选择日期时间"
46
+          align="right"
47
+          format="yyyy-MM-dd"
48
+          value-format="yyyy-MM-dd"
49
+          @change="startTimeChange"
50
+        ></el-date-picker>
51
+        <span class="cellLine"> - </span>
52
+        <el-date-picker
53
+          size="small"
54
+          v-model="end_time"
55
+          prefix-icon="el-icon-date"
56
+          :editable="false"
57
+          style="width: 196px;"
58
+          type="date"
59
+          placeholder="选择日期时间"
60
+          align="right"
61
+          format="yyyy-MM-dd"
62
+          value-format="yyyy-MM-dd"
63
+          @change="endTimeChange"
64
+        ></el-date-picker>
65
+      </div>
36
     </div>
66
     </div>
37
 
67
 
38
-    <div class="cell clearfix">
39
-      <label class="title"><span class="name">日期查询</span> : </label>
40
-      <el-date-picker
41
-        size="small"
42
-        v-model="start_time"
43
-        prefix-icon="el-icon-date"
44
-        :editable="false"
45
-        style="width: 196px;"
46
-        type="date"
47
-        placeholder="选择日期时间"
48
-        align="right"
49
-        format="yyyy-MM-dd"
50
-        value-format="yyyy-MM-dd"
51
-        @change="startTimeChange"
52
-      ></el-date-picker>
53
-      <span class="cellLine"> - </span>
54
-      <el-date-picker
55
-        size="small"
56
-        v-model="end_time"
57
-        prefix-icon="el-icon-date"
58
-        :editable="false"
59
-        style="width: 196px;"
60
-        type="date"
61
-        placeholder="选择日期时间"
62
-        align="right"
63
-        format="yyyy-MM-dd"
64
-        value-format="yyyy-MM-dd"
65
-        @change="endTimeChange"
66
-      ></el-date-picker>
67
-    </div>
68
+    
68
 
69
 
69
     <!-- <div class="cell clearfix">
70
     <!-- <div class="cell clearfix">
70
       <label class="title"><span class="name">单据类型</span> : </label>
71
       <label class="title"><span class="name">单据类型</span> : </label>

+ 32 - 31
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

31
         @click="search"
31
         @click="search"
32
         >搜索</el-button
32
         >搜索</el-button
33
       >
33
       >
34
+      <div style="margin-left:10px;">
35
+        <label class="title"><span class="name">日期查询</span> : </label>
36
+        <el-date-picker
37
+          size="small"
38
+          v-model="start_time"
39
+          prefix-icon="el-icon-date"
40
+          :editable="false"
41
+          style="width: 196px;"
42
+          type="date"
43
+          placeholder="选择日期时间"
44
+          align="right"
45
+          format="yyyy-MM-dd"
46
+          value-format="yyyy-MM-dd"
47
+          @change="startTimeChange"
48
+        ></el-date-picker>
49
+        <span class="cellLine"> - </span>
50
+        <el-date-picker
51
+          size="small"
52
+          v-model="end_time"
53
+          prefix-icon="el-icon-date"
54
+          :editable="false"
55
+          style="width: 196px;"
56
+          type="date"
57
+          placeholder="选择日期时间"
58
+          align="right"
59
+          format="yyyy-MM-dd"
60
+          value-format="yyyy-MM-dd"
61
+          @change="endTimeChange"
62
+        ></el-date-picker>
63
+      </div>
34
     </div>
64
     </div>
35
 
65
 
36
-    <div class="cell clearfix">
37
-      <label class="title"><span class="name">日期查询</span> : </label>
38
-      <el-date-picker
39
-        size="small"
40
-        v-model="start_time"
41
-        prefix-icon="el-icon-date"
42
-        :editable="false"
43
-        style="width: 196px;"
44
-        type="date"
45
-        placeholder="选择日期时间"
46
-        align="right"
47
-        format="yyyy-MM-dd"
48
-        value-format="yyyy-MM-dd"
49
-        @change="startTimeChange"
50
-      ></el-date-picker>
51
-      <span class="cellLine"> - </span>
52
-      <el-date-picker
53
-        size="small"
54
-        v-model="end_time"
55
-        prefix-icon="el-icon-date"
56
-        :editable="false"
57
-        style="width: 196px;"
58
-        type="date"
59
-        placeholder="选择日期时间"
60
-        align="right"
61
-        format="yyyy-MM-dd"
62
-        value-format="yyyy-MM-dd"
63
-        @change="endTimeChange"
64
-      ></el-date-picker>
65
-    </div>
66
+    
66
 
67
 
67
     <!-- <div class="cell clearfix">
68
     <!-- <div class="cell clearfix">
68
       <label class="title"><span class="name">单据类型</span> : </label>
69
       <label class="title"><span class="name">单据类型</span> : </label>
172
         </el-table-column>
173
         </el-table-column>
173
         <el-table-column label="总价" align="center">
174
         <el-table-column label="总价" align="center">
174
           <template slot-scope="scope">
175
           <template slot-scope="scope">
175
-            {{scope.row.total_price}}
176
+            {{scope.row.price * scope.row.count}}
176
           </template>
177
           </template>
177
         </el-table-column>
178
         </el-table-column>
178
       </el-table>
179
       </el-table>

+ 3 - 2
src/xt_pages/stock/drugs/drugBatchNumber.vue View File

66
         </el-table-column>
66
         </el-table-column>
67
          <el-table-column prop="drug_name" label="批号" align="center">
67
          <el-table-column prop="drug_name" label="批号" align="center">
68
            <template slot-scope="scope">
68
            <template slot-scope="scope">
69
-              {{scope.row.number}}
69
+              {{scope.row.batch_number}}
70
            </template>
70
            </template>
71
         </el-table-column>
71
         </el-table-column>
72
          <el-table-column prop="drug_name" label="入库数量" align="center">
72
          <el-table-column prop="drug_name" label="入库数量" align="center">
73
            <template slot-scope="scope">
73
            <template slot-scope="scope">
74
-              {{scope.row.stock_max_number}}{{scope.row.max_unit}}{{scope.row.stock_min_number}}{{scope.row.min_unit}}
74
+             {{scope.row.warehousing_count}}{{scope.row.max_unit}}
75
+              <!-- {{scope.row.stock_max_number}}{{scope.row.max_unit}}{{scope.row.stock_min_number}}{{scope.row.min_unit}} -->
75
            </template>
76
            </template>
76
         </el-table-column>
77
         </el-table-column>
77
         <el-table-column prop="drug_name" label="进货单价" align="center">
78
         <el-table-column prop="drug_name" label="进货单价" align="center">

+ 1 - 1
src/xt_pages/stock/drugs/drugCancelDetailPrint.vue View File

33
                 <span>{{item.drug_name}}</span>
33
                 <span>{{item.drug_name}}</span>
34
               </td>
34
               </td>
35
               <td style="line-height: 50px">
35
               <td style="line-height: 50px">
36
-                <span>{{item.drug_spec}}</span>
36
+                <span>{{item.dose}}{{item.dose_unit}}*{{item.min_number}}{{item.min_unit}}/{{item.max_unit}}</span>
37
               </td>
37
               </td>
38
               <td style="line-height: 50px">
38
               <td style="line-height: 50px">
39
                 <span>{{item.min_unit}}</span>
39
                 <span>{{item.min_unit}}</span>

+ 2 - 2
src/xt_pages/stock/drugs/drugIndex.vue View File

15
           <el-tab-pane label="出库明细">
15
           <el-tab-pane label="出库明细">
16
             <drug-out-detail></drug-out-detail>
16
             <drug-out-detail></drug-out-detail>
17
           </el-tab-pane>
17
           </el-tab-pane>
18
-          <!-- <el-tab-pane label="退库明细">
18
+          <el-tab-pane label="退库明细">
19
             <drug-cancel-detail></drug-cancel-detail>
19
             <drug-cancel-detail></drug-cancel-detail>
20
-          </el-tab-pane> -->
20
+          </el-tab-pane>
21
 
21
 
22
         </el-tabs>
22
         </el-tabs>
23
       </div>
23
       </div>

+ 3 - 1
src/xt_pages/stock/drugs/drugStockFlow.vue View File

170
       this.drugTypeList = getDictionaryDataConfig('system','drug_type') 
170
       this.drugTypeList = getDictionaryDataConfig('system','drug_type') 
171
       // this.getlist()
171
       // this.getlist()
172
       // this.getOutList()
172
       // this.getOutList()
173
-      // this.getDrugCountList()
173
+      this.getDrugCountList()
174
 
174
 
175
       this.getDrugFlow()
175
       this.getDrugFlow()
176
     },
176
     },
447
        if((count%min_number)!=0){
447
        if((count%min_number)!=0){
448
          str_min = count%min_number + min_unit
448
          str_min = count%min_number + min_unit
449
        }
449
        }
450
+       console.log("str2323222",str)
451
+       console.log("str22333333",str_min)
450
        return str+str_min
452
        return str+str_min
451
      },
453
      },
452
 
454
 

+ 41 - 35
src/xt_pages/stock/drugs/drugStockInOrder.vue View File

30
           @click="search"
30
           @click="search"
31
           >搜索</el-button
31
           >搜索</el-button
32
         >
32
         >
33
+        <div style="margin-left:10px;">
34
+          <label class="title"><span class="name">入库时间</span> : </label>
35
+          <el-date-picker
36
+            size="small"
37
+            v-model="start_time"
38
+            prefix-icon="el-icon-date"
39
+            :editable="false"
40
+            style="width: 196px;"
41
+            type="date"
42
+            placeholder="选择日期时间"
43
+            align="right"
44
+            format="yyyy-MM-dd"
45
+            value-format="yyyy-MM-dd"
46
+            @change="startTimeChange"
47
+          ></el-date-picker>
48
+          <span class="cellLine"> - </span>
49
+          <el-date-picker
50
+            size="small"
51
+            v-model="end_time"
52
+            prefix-icon="el-icon-date"
53
+            :editable="false"
54
+            style="width: 196px;"
55
+            type="date"
56
+            placeholder="选择日期时间"
57
+            align="right"
58
+            format="yyyy-MM-dd"
59
+            value-format="yyyy-MM-dd"
60
+            @change="endTimeChange"
61
+          ></el-date-picker>
62
+        </div>
33
       </div>
63
       </div>
34
 
64
 
35
-      <div class="cell clearfix">
36
-        <label class="title"><span class="name">入库时间</span> : </label>
37
-        <el-date-picker
38
-          size="small"
39
-          v-model="start_time"
40
-          prefix-icon="el-icon-date"
41
-          :editable="false"
42
-          style="width: 196px;"
43
-          type="date"
44
-          placeholder="选择日期时间"
45
-          align="right"
46
-          format="yyyy-MM-dd"
47
-          value-format="yyyy-MM-dd"
48
-          @change="startTimeChange"
49
-        ></el-date-picker>
50
-        <span class="cellLine"> - </span>
51
-        <el-date-picker
52
-          size="small"
53
-          v-model="end_time"
54
-          prefix-icon="el-icon-date"
55
-          :editable="false"
56
-          style="width: 196px;"
57
-          type="date"
58
-          placeholder="选择日期时间"
59
-          align="right"
60
-          format="yyyy-MM-dd"
61
-          value-format="yyyy-MM-dd"
62
-          @change="endTimeChange"
63
-        ></el-date-picker>
64
-      </div>
65
+      
65
 
66
 
66
       <div class="cell clearfix">
67
       <div class="cell clearfix">
67
         <el-checkbox
68
         <el-checkbox
832
            if(this.exportList[i].manufacturer == this.manufacturerList[j].id){
833
            if(this.exportList[i].manufacturer == this.manufacturerList[j].id){
833
              this.exportList[i].manufacturer = this.manufacturerList[j].manufacturer_name
834
              this.exportList[i].manufacturer = this.manufacturerList[j].manufacturer_name
834
            }
835
            }
836
+           if(this.exportList[i].manufacturer == 0){
837
+              this.exportList[i].manufacturer = ""
838
+           } 
835
          }
839
          }
836
 
840
 
837
          for(let z=0;z<this.dealerList.length;z++){
841
          for(let z=0;z<this.dealerList.length;z++){
838
            if(this.exportList[i].dealer == this.dealerList[z].id){
842
            if(this.exportList[i].dealer == this.dealerList[z].id){
839
               this.exportList[i].dealer = this.dealerList[z].dealer_name
843
               this.exportList[i].dealer = this.dealerList[z].dealer_name
840
            }
844
            }
845
+           if(this.exportList[i].dealer == 0){
846
+             this.exportList[i].dealer = ""
847
+           }
841
          }
848
          }
842
       }
849
       }
843
       
850
       
846
         console.log("hhh23",this.exportList)
853
         console.log("hhh23",this.exportList)
847
          for(let i=0;i<this.exportList.length;i++){
854
          for(let i=0;i<this.exportList.length;i++){
848
            for(let j=0;j<this.drugTypeList.length;j++){
855
            for(let j=0;j<this.drugTypeList.length;j++){
849
-             if(this.exportList[i].drug_type == this.drugTypeList[j].value){
856
+             if(this.exportList[i].drug_type == this.drugTypeList[j].id){
850
                this.exportList[i].drug_type = this.drugTypeList[j].name
857
                this.exportList[i].drug_type = this.drugTypeList[j].name
851
              }
858
              }
852
            }
859
            }
853
          }
860
          }
854
-       
855
-       
861
+              
856
         const tHeader = ['药品名称','药品类型','规格&单位', '批号','入库数量','进货价','总价','生产厂家','生产日期','有效日期','经销商','批注文号','备注']
862
         const tHeader = ['药品名称','药品类型','规格&单位', '批号','入库数量','进货价','总价','生产厂家','生产日期','有效日期','经销商','批注文号','备注']
857
-        const filterVal = ['drug_name', 'drug_type','unit','number','warehousing_count','price','total_price','manufacturer','product_date','expiry_date','dealer','batch_number','remark']
863
+        const filterVal = ['drug_name', 'drug_type','unit','batch_number','warehousing_count','price','total_price','manufacturer','product_date','expiry_date','dealer','number','remark']
858
          
864
          
859
      
865
      
860
         console.log("table",this.exportList)
866
         console.log("table",this.exportList)
861
-      
867
+        
862
         const data = this.formatJson(filterVal, this.exportList)
868
         const data = this.formatJson(filterVal, this.exportList)
863
         excel.export_json_to_excel({
869
         excel.export_json_to_excel({
864
           header: tHeader,
870
           header: tHeader,

+ 4 - 3
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue View File

43
           max-height="450"
43
           max-height="450"
44
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
44
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
45
         >
45
         >
46
-          <el-table-column align="center" width="200">
46
+          <el-table-column align="center" width="200" fixed="left">
47
             <template slot="header" slot-scope="scope">
47
             <template slot="header" slot-scope="scope">
48
               <span>药品名称<span style="color: red">*</span></span>
48
               <span>药品名称<span style="color: red">*</span></span>
49
             </template>
49
             </template>
124
               >
124
               >
125
               <div style="display:flex;">
125
               <div style="display:flex;">
126
                 <el-input
126
                 <el-input
127
-                  oninput="value=value.replace(/[^0-9.]/g,'')"
127
+                  oninput="value=value.replace(/\D|^0/g,'')"
128
                   placeholder="请输入入库数量"
128
                   placeholder="请输入入库数量"
129
                   type="number"
129
                   type="number"
130
                   v-model="scope.row.warehousing_count"
130
                   v-model="scope.row.warehousing_count"
546
         tempObj['dose']= ''
546
         tempObj['dose']= ''
547
         tempObj['dose_unit']=''
547
         tempObj['dose_unit']=''
548
         tempObj['dealer'] = ''
548
         tempObj['dealer'] = ''
549
+        tempObj['last_price'] = ''
549
         this.recordInfo.recordData.push(tempObj)
550
         this.recordInfo.recordData.push(tempObj)
550
       }, handleDelete: function(index, row) {
551
       }, handleDelete: function(index, row) {
551
         if (this.recordInfo.recordData.length <= 1) {
552
         if (this.recordInfo.recordData.length <= 1) {
695
               'stockIn': this.recordInfo.recordData
696
               'stockIn': this.recordInfo.recordData
696
             }
697
             }
697
             console.log("params2222222",params)
698
             console.log("params2222222",params)
698
-            
699
+             
699
             postDrugWarehouse(params, this.warehousing_time, this.form.manufacturer, this.form.dealer, this.type).then(response => {
700
             postDrugWarehouse(params, this.warehousing_time, this.form.manufacturer, this.form.dealer, this.type).then(response => {
700
               if (response.data.state == 0) {
701
               if (response.data.state == 0) {
701
                 this.$message.error(response.data.msg)
702
                 this.$message.error(response.data.msg)

+ 3 - 3
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue View File

189
               >
189
               >
190
                 <div style="display:flex;">
190
                 <div style="display:flex;">
191
                   <el-input
191
                   <el-input
192
-                    oninput="value=value.replace(/[^0-9.]/g,'')"
192
+                    oninput="value=value.replace(/\D|^0/g,'')"
193
                     placeholder="请输入入库数量"
193
                     placeholder="请输入入库数量"
194
                     type="number"
194
                     type="number"
195
                     v-model="scope.row.warehousing_count"
195
                     v-model="scope.row.warehousing_count"
657
              }
657
              }
658
 
658
 
659
              this.recordInfo.recordData[i].last_price = this.recordInfo.recordData[i].last_price.toString()
659
              this.recordInfo.recordData[i].last_price = this.recordInfo.recordData[i].last_price.toString()
660
-            //  this.recordInfo.recordData[i].manufacturer = this.recordInfo.recordData[i].drug.manufacturer
660
+             this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].last_price.toString()
661
             
661
             
662
             for(let j=0;j<this.manufacturerList.length;j++){
662
             for(let j=0;j<this.manufacturerList.length;j++){
663
               if(this.recordInfo.recordData[i].manufacturer == this.manufacturerList[j].manufacturer_name){
663
               if(this.recordInfo.recordData[i].manufacturer == this.manufacturerList[j].manufacturer_name){
676
             stockIn: this.recordInfo.recordData
676
             stockIn: this.recordInfo.recordData
677
           };
677
           };
678
           console.log("params22222222222",params)
678
           console.log("params22222222222",params)
679
-        
679
+         
680
           EditDrugWarehouse(
680
           EditDrugWarehouse(
681
             params,
681
             params,
682
             this.warehousing_time,
682
             this.warehousing_time,

+ 134 - 103
src/xt_pages/stock/drugs/drugStockOutOrder.vue View File

28
           @click="search"
28
           @click="search"
29
           >搜索</el-button
29
           >搜索</el-button
30
         >
30
         >
31
+        <div style="margin-left:10px;">
32
+          <label class="title"><span class="name">出库时间</span> : </label>
33
+          <el-date-picker
34
+            size="small"
35
+            v-model="start_time"
36
+            prefix-icon="el-icon-date"
37
+            :editable="false"
38
+            style="width: 196px;"
39
+            type="date"
40
+            placeholder="选择日期时间"
41
+            align="right"
42
+            format="yyyy-MM-dd"
43
+            value-format="yyyy-MM-dd"
44
+            @change="startTimeChange"
45
+          ></el-date-picker>
46
+          <span class="cellLine"> - </span>
47
+          <el-date-picker
48
+            size="small"
49
+            v-model="end_time"
50
+            prefix-icon="el-icon-date"
51
+            :editable="false"
52
+            style="width: 196px;"
53
+            type="date"
54
+            placeholder="选择日期时间"
55
+            align="right"
56
+            format="yyyy-MM-dd"
57
+            value-format="yyyy-MM-dd"
58
+            @change="endTimeChange"
59
+          ></el-date-picker>
60
+        </div>
31
       </div>
61
       </div>
32
 
62
 
33
-      <div class="cell clearfix">
34
-        <label class="title"><span class="name">出库时间</span> : </label>
35
-        <el-date-picker
36
-          size="small"
37
-          v-model="start_time"
38
-          prefix-icon="el-icon-date"
39
-          :editable="false"
40
-          style="width: 196px;"
41
-          type="date"
42
-          placeholder="选择日期时间"
43
-          align="right"
44
-          format="yyyy-MM-dd"
45
-          value-format="yyyy-MM-dd"
46
-          @change="startTimeChange"
47
-        ></el-date-picker>
48
-        <span class="cellLine"> - </span>
49
-        <el-date-picker
50
-          size="small"
51
-          v-model="end_time"
52
-          prefix-icon="el-icon-date"
53
-          :editable="false"
54
-          style="width: 196px;"
55
-          type="date"
56
-          placeholder="选择日期时间"
57
-          align="right"
58
-          format="yyyy-MM-dd"
59
-          value-format="yyyy-MM-dd"
60
-          @change="endTimeChange"
61
-        ></el-date-picker>
62
-      </div>
63
+      
63
 
64
 
64
       <div class="cell clearfix">
65
       <div class="cell clearfix">
65
         <el-checkbox
66
         <el-checkbox
224
               {{scope.row.dose}}&nbsp;{{scope.row.dose_unit}}*{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
225
               {{scope.row.dose}}&nbsp;{{scope.row.dose_unit}}*{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
225
             </template>
226
             </template>
226
           </el-table-column>
227
           </el-table-column>
227
-          <el-table-column label="批号" align="center">
228
+          <!-- <el-table-column label="批号" align="center">
228
             <template slot-scope="scope">
229
             <template slot-scope="scope">
229
               <span v-if="scope.row.batch_number!=''">{{scope.row.batch_number}}</span> 
230
               <span v-if="scope.row.batch_number!=''">{{scope.row.batch_number}}</span> 
230
              <span v-if="scope.row.batch_number == '0'"></span> 
231
              <span v-if="scope.row.batch_number == '0'"></span> 
231
             </template>
232
             </template>
232
-          </el-table-column>
233
+          </el-table-column> -->
233
           <el-table-column label="出库数量" align="center">
234
           <el-table-column label="出库数量" align="center">
234
             <template slot-scope="scope">
235
             <template slot-scope="scope">
235
-              {{getTotalCount(scope.row.drug_id)}}
236
+              <!-- {{getTotalCount(scope.row.drug_id)}} -->
237
+              {{getTotalCountOne(scope.row.drug_id,scope.row.min_number,scope.row.max_unit,scope.row.min_unit)}}
236
             </template>
238
             </template>
237
           </el-table-column>
239
           </el-table-column>
238
           <el-table-column label="出货单价" align="center">
240
           <el-table-column label="出货单价" align="center">
305
               <span>序号</span>
307
               <span>序号</span>
306
             </template>
308
             </template>
307
             <template slot-scope="scope">
309
             <template slot-scope="scope">
308
-              <span v-if="scope.row.is_total == 0">{{scope.$index+1}}</span>
309
-              <span v-if="scope.row.is_total == 1">{{'合计'}}</span>
310
+              <!-- <span v-if="scope.row.is_total == 0">{{scope.$index+1}}</span>
311
+              <span v-if="scope.row.is_total == 1">{{'合计'}}</span> -->
312
+              {{scope.$index+1}}
313
+            
310
             </template>
314
             </template>
311
           </el-table-column>
315
           </el-table-column>
312
 
316
 
315
               <span>使用人</span>
319
               <span>使用人</span>
316
             </template>
320
             </template>
317
             <template slot-scope="scope">
321
             <template slot-scope="scope">
318
-              <span v-if="scope.row.is_total == 0">{{scope.row.user.name}}</span>
319
-              <span  v-if="scope.row.is_total == 1"></span>
322
+              <!-- <span v-if="scope.row.is_total == 0">{{scope.row.user.name}}</span>
323
+              <span  v-if="scope.row.is_total == 1"></span> -->
324
+              {{scope.row.user.name}}
320
             </template>
325
             </template>
321
           </el-table-column>
326
           </el-table-column>
322
           <el-table-column min-width="35" align="center">
327
           <el-table-column min-width="35" align="center">
325
             </template>
330
             </template>
326
             <template slot-scope="scope">
331
             <template slot-scope="scope">
327
               <span >{{scope.row.count}}{{scope.row.count_unit}}</span>
332
               <span >{{scope.row.count}}{{scope.row.count_unit}}</span>
328
-              <span  v-if="scope.row.is_total == 1">{{scope.row.total}}</span>
333
+              <!-- <span  v-if="scope.row.is_total == 1">{{scope.row.total}}</span> -->
329
             </template>
334
             </template>
330
           </el-table-column>
335
           </el-table-column>
331
 
336
 
334
               <span>使用时间</span>
339
               <span>使用时间</span>
335
             </template>
340
             </template>
336
             <template slot-scope="scope">
341
             <template slot-scope="scope">
337
-              <span  v-if="scope.row.is_total == 0">{{scope.row.ctime | parseTime('{y}-{m}-{d} {h}:{i}')}} </span>
342
+              <span>{{scope.row.ctime | parseTime('{y}-{m}-{d} {h}:{i}')}} </span>
338
             </template>
343
             </template>
339
           </el-table-column>
344
           </el-table-column>
340
 
345
 
344
               <span>批次号</span>
349
               <span>批次号</span>
345
             </template>
350
             </template>
346
             <template slot-scope="scope">
351
             <template slot-scope="scope">
347
-              <span>{{getDrugBatchNumber(scope.row.id)}}</span>
352
+              <span>{{getDrugBatchNumber(scope.row.drug_id)}}</span>
348
             </template>
353
             </template>
349
           </el-table-column>
354
           </el-table-column>
350
-
355
+          
351
         </el-table>
356
         </el-table>
352
       </span>
357
       </span>
353
       <span slot="footer" class="dialog-footer">
358
       <span slot="footer" class="dialog-footer">
519
       drugOutList:[],
524
       drugOutList:[],
520
       outList:[],
525
       outList:[],
521
       userListOne:[],
526
       userListOne:[],
522
-      exportList:[]
527
+      exportList:[],
528
+      batchNumberList:[]
523
     };
529
     };
524
   },
530
   },
525
   methods: {
531
   methods: {
946
           this.tableShow = true
952
           this.tableShow = true
947
           this.tableList = []
953
           this.tableList = []
948
           var list =  response.data.data.list
954
           var list =  response.data.data.list
955
+          console.log("list2323232",list)
949
           var outList = response.data.data.outList
956
           var outList = response.data.data.outList
950
-          for(let i=0;i<outList.length;i++){
951
-              //如果都是最大单位,把最数量转为最小数量
952
-             if(outList[i].count_unit == outList[i].max_unit){
953
-                outList[i].count = outList[i].min_number * outList[i].count 
954
-             }
955
-          }
957
+          // for(let i=0;i<outList.length;i++){
958
+          //     //如果都是最大单位,把最数量转为最小数量
959
+          //    if(outList[i].count_unit == outList[i].max_unit){
960
+          //       outList[i].count = outList[i].min_number * outList[i].count 
961
+          //    }
962
+          // }
956
           this.outList = outList
963
           this.outList = outList
957
          console.log("outList222",outList)
964
          console.log("outList222",outList)
958
          this.manufacturerList = response.data.data.manufacturerList
965
          this.manufacturerList = response.data.data.manufacturerList
971
      })
978
      })
972
    },
979
    },
973
    toDetail(val){
980
    toDetail(val){
974
-     console.log("val",val)
981
+     this.userList = []
982
+     this.userListOne = []
975
      var params = {
983
      var params = {
976
        warehouse_out_id:val.warehouse_out_id,
984
        warehouse_out_id:val.warehouse_out_id,
977
        drug_id:val.drug_id,
985
        drug_id:val.drug_id,
978
        record_time:val.sys_record_time,
986
        record_time:val.sys_record_time,
979
      }
987
      }
980
-     this.userList = []
981
      getAutoDrugDetail(params).then(response=>{
988
      getAutoDrugDetail(params).then(response=>{
982
        if(response.data.state == 1){
989
        if(response.data.state == 1){
983
-        console.log("list23232323232",response.data.data.list)
984
-      
985
-        var total = 0
986
-        for (let i = 0; i < response.data.data.list.length; i++) {
987
-          var obj = response.data.data.list[i]
988
-          obj['is_total'] = 0
989
-          this.userList.push(obj)
990
-          var str = 0
991
-          var max_unit = ""
992
-          var min_unit = ""
993
-          var number = 0
994
-          var min_str = 0
995
-         for(let i=0;i<response.data.data.list.length;i++){
996
-             min_str = response.data.data.list[0].drug.min_str
997
-             max_unit = response.data.data.list[0].drug.max_unit
998
-             min_unit = response.data.data.list[0].drug.min_unit
999
-             number = response.data.data.list[0].drug.min_number
1000
-           if(response.data.data.list[i].count_unit == response.data.data.list[i].drug.max_unit){
1001
-              response.data.data.list[i].count = response.data.data.list[i].count * response.data.data.list[i].drug.min_number
1002
-           }
1003
-         }
1004
-         var total_count = 0
1005
-         for(let i=0;i<response.data.data.list.length;i++){
1006
-            total_count += response.data.data.list[i].count 
1007
-         }
1008
-         console.log("总规格2323232",total_count,number)
1009
-         
1010
-        if(parseInt(total_count)!=0){
1011
-          str = parseInt(total_count/number)
1012
-         }
1013
-        if(parseInt(total_count)!=0){
1014
-          min_str =  parseInt(total_count)%number
1015
-        }
1016
         
990
         
1017
-        total = str + max_unit + min_str + min_unit
1018
-        console.log("h2hh2h323",str,min_str)
1019
- 
1020
-        }
1021
-        this.userList.push({
1022
-          is_total: 1,
1023
-          total: total,
1024
-        })
991
+        this.userList = response.data.data.list
992
+        
1025
         if(val.is_sys == 1){
993
         if(val.is_sys == 1){
994
+        
1026
           this.drugDialogVisible = true
995
           this.drugDialogVisible = true
1027
         }
996
         }
1028
         if(val.is_sys == 0){
997
         if(val.is_sys == 0){
998
+         
1029
           this.drugDialogVisibleTwo = true
999
           this.drugDialogVisibleTwo = true
1030
         }
1000
         }
1031
          var userListOne = response.data.data.outList
1001
          var userListOne = response.data.data.outList
1032
          console.log("手动出库2232332",userListOne)
1002
          console.log("手动出库2232332",userListOne)
1033
          this.userListOne = userListOne
1003
          this.userListOne = userListOne
1004
+         var  batchNumber = response.data.data.batchNumber
1005
+         console.log("出库详情",batchNumber)
1006
+         this.batchNumberList = batchNumber
1034
        }
1007
        }
1035
      })
1008
      })
1036
    },
1009
    },
1107
          }
1080
          }
1108
          return str + min_str
1081
          return str + min_str
1109
       },
1082
       },
1083
+      getTotalCountOne(id,min_number,max_unit,min_unit){
1084
+       
1085
+        for(let i=0;i<this.outList.length;i++){
1086
+          if(this.outList[i].count_unit == this.outList[i].max_unit){
1087
+            this.outList[i].total_count = this.outList[i].count * this.outList[i].min_number
1088
+          }
1089
+
1090
+         if(this.outList[i].count_unit == this.outList[i].min_unit){
1091
+            this.outList[i].total_count = this.outList[i].count
1092
+          }
1093
+       
1094
+        }
1095
+        console.log("我的",this.outList)
1096
+          let dataInfo = {};
1097
+          this.outList.forEach((item, index) => {
1098
+            let { drug_id } = item;
1099
+            if (!dataInfo[drug_id]) {
1100
+              dataInfo[drug_id] = {
1101
+                drug_id,
1102
+                child: [],
1103
+                total:0,
1104
+              };
1105
+            }
1106
+          });
1107
+        let list = Object.values(dataInfo);
1108
+        console.log("drug_id22222",list)
1109
+        for(let i=0;i<list.length;i++){
1110
+          for(let j=0;j<this.outList.length;j++){
1111
+            if(list[i].drug_id == this.outList[j].drug_id){
1112
+              list[i].child.push(this.outList[j])
1113
+            }
1114
+          }
1115
+        }
1116
+       var total = 0
1117
+       for(let i=0;i<list.length;i++){
1118
+        for(let j=0;j<list[i].child.length;j++){
1119
+           if(id == list[i].child[j].drug_id){
1120
+             total+= list[i].child[j].total_count
1121
+           }
1122
+        }
1123
+       }
1124
+      
1125
+      var str = ""
1126
+      var min_str = ""
1127
+      
1128
+      str = parseInt(total/min_number)+ max_unit
1129
+      min_str =  total%min_number + min_unit
1130
+
1131
+     return str + min_str
1132
+      
1133
+       
1134
+     },
1110
       getAllPrice(drug_id,price,min_price){
1135
       getAllPrice(drug_id,price,min_price){
1111
          var strprice = 0
1136
          var strprice = 0
1112
          var minstrprice = 0
1137
          var minstrprice = 0
1130
          return  total_price
1155
          return  total_price
1131
       },
1156
       },
1132
 
1157
 
1133
-      getDrugBatchNumber(id){
1158
+      // getDrugBatchNumber(id){
1134
         
1159
         
1135
-        var arr= []
1136
-        var batchNumber =[]
1160
+      //   var arr= []
1161
+      //   var batchNumber =[]
1137
         
1162
         
1138
-        for(let i=0;i<this.userList.length;i++){
1139
-           if(id == this.userList[i].id){
1140
-            arr.push(this.userList[i].drugwarehouseoutinfo)
1141
-           }
1142
-        }
1143
-        if(batchNumber.length > 0 ){
1144
-         for(let j=0;j<arr.length;j++){
1145
-           batchNumber.push(arr[j].batch_number)
1163
+      //   for(let i=0;i<this.userList.length;i++){
1164
+      //      if(id == this.userList[i].id){
1165
+      //        for(let j=0;j<this.userList[i].drugwarehouseoutinfo.length;j++){
1166
+      //           batchNumber.push(this.userList[i].drugwarehouseoutinfo[j].batch_number)
1167
+      //        }
1168
+      //      }
1169
+      //   }
1170
+      //   return batchNumber.join(",")
1171
+      // },
1172
+      getDrugBatchNumber(drugid){
1173
+        var arr = []
1174
+        for(let i=0;i<this.batchNumberList.length;i++){
1175
+          if(drugid == this.batchNumberList[i].drug_id){
1176
+            arr.push(this.batchNumberList[i].batch_number)
1146
           }
1177
           }
1147
         }
1178
         }
1148
-        return batchNumber.join(",")
1179
+        return arr.join(",")
1149
       },
1180
       },
1150
     
1181
     
1151
       getExportOutOrderDrugList(){
1182
       getExportOutOrderDrugList(){

+ 2 - 2
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue View File

61
           max-height="450"
61
           max-height="450"
62
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
62
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
63
         >
63
         >
64
-          <el-table-column align="center" width="200">
64
+          <el-table-column align="center" width="200" fixed="left">
65
             <template slot="header" slot-scope="scope">
65
             <template slot="header" slot-scope="scope">
66
               <span>药品名称<span style="color: red">*</span></span>
66
               <span>药品名称<span style="color: red">*</span></span>
67
             </template>
67
             </template>
149
               >
149
               >
150
                 <div style="display:flex;">
150
                 <div style="display:flex;">
151
                   <el-input
151
                   <el-input
152
-                    oninput="value=value.replace(/[^0-9.]/g,'')"
152
+                     oninput="value=value.replace(/\D|^0/g,'')"
153
                     style="width:80px"
153
                     style="width:80px"
154
                     placeholder="请输入出库数量"
154
                     placeholder="请输入出库数量"
155
                     type="number"
155
                     type="number"

+ 70 - 15
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue View File

90
               </template>
90
               </template>
91
                 <template slot-scope="scope">
91
                 <template slot-scope="scope">
92
                   <el-form-item style="padding-top: 20px">
92
                   <el-form-item style="padding-top: 20px">
93
-                    <el-input
93
+                    <!-- <el-input
94
                      :disabled="drug_show"
94
                      :disabled="drug_show"
95
                       placeholder="请输入批号"
95
                       placeholder="请输入批号"
96
                       v-model="scope.row.batch_number"
96
                       v-model="scope.row.batch_number"
97
-                    ></el-input>
97
+                    ></el-input> -->
98
+                    <el-select v-model="scope.row.batch_number" filterable placeholder="请选择">
99
+                      <el-option
100
+                        v-for="(item,index) in numberList"
101
+                        :key="index"
102
+                        :label="item.batch_number"
103
+                        :value="item.batch_number">
104
+                      </el-option>
105
+                    </el-select>
98
                   </el-form-item>
106
                   </el-form-item>
99
               </template>
107
               </template>
100
           </el-table-column>
108
           </el-table-column>
110
               >
118
               >
111
                 <div style="display:flex;">
119
                 <div style="display:flex;">
112
                   <el-input
120
                   <el-input
113
-                   oninput="value=value.replace(/[^0-9.]/g,'')"
121
+                   oninput="value=value.replace(/\D|^0/g,'')"
114
                    style="width:100px"
122
                    style="width:100px"
115
                    :disabled="drug_show"
123
                    :disabled="drug_show"
116
                     placeholder="请输入出库数量"
124
                     placeholder="请输入出库数量"
258
 <script>
266
 <script>
259
   import { uParseTime } from '@/utils/tools'
267
   import { uParseTime } from '@/utils/tools'
260
 
268
 
261
-  import { deleteDrugWarehouseOutInfo, editDrugWarehouseoutInfo, getDrugSalesReturnConfig, getDrugWarehouseOutInfo,GetAllConfig,GetAllDrugInfoByID } from '@/api/drug/drug_stock'
269
+  import { deleteDrugWarehouseOutInfo, editDrugWarehouseoutInfo, getDrugSalesReturnConfig, getDrugWarehouseOutInfo,GetAllConfig,GetAllDrugInfoByID,getDrugBatchNumber } from '@/api/drug/drug_stock'
262
   import BreadCrumb from '../../components/bread-crumb'
270
   import BreadCrumb from '../../components/bread-crumb'
263
   import DrugsStockDialog from './drugsStockDialog/index'
271
   import DrugsStockDialog from './drugsStockDialog/index'
264
   import {postSearchDrugList } from "@/api/data"
272
   import {postSearchDrugList } from "@/api/data"
330
         manufacturerList:[],
338
         manufacturerList:[],
331
         drug_show:false,
339
         drug_show:false,
332
         unitList:[],
340
         unitList:[],
333
-        unitShow:true
341
+        unitShow:true,
342
+        numberList:[]
334
       }
343
       }
335
     },
344
     },
336
     methods: {
345
     methods: {
434
         tempObj['id'] = 0
443
         tempObj['id'] = 0
435
         tempObj['drug_id'] = 0
444
         tempObj['drug_id'] = 0
436
         tempObj['retail_price'] = ''
445
         tempObj['retail_price'] = ''
437
-
438
         tempObj['count'] = ''
446
         tempObj['count'] = ''
439
         tempObj['price'] = ''
447
         tempObj['price'] = ''
440
         tempObj['remark'] = ''
448
         tempObj['remark'] = ''
441
         tempObj['batch_number'] = ''
449
         tempObj['batch_number'] = ''
442
         tempObj['number'] = ''
450
         tempObj['number'] = ''
451
+        tempObj['count_unit'] = ""
452
+        tempObj['dealer'] = 0
453
+        tempObj['manufacturer'] = 0
443
         this.recordInfo.recordData.push(tempObj)
454
         this.recordInfo.recordData.push(tempObj)
444
       }, handleDelete: function(index, row) {
455
       }, handleDelete: function(index, row) {
445
         if(this.drug_show == true){
456
         if(this.drug_show == true){
470
           }).catch(() => {
481
           }).catch(() => {
471
           })
482
           })
472
         }
483
         }
473
-      }, getTime(val, temp) {
474
-        if (val != 0) {
475
-          return uParseTime(val, temp)
476
-        } else {
477
-          return ''
478
-        }
484
+      }, 
485
+      // getTime(val, temp) {
486
+      //   if (val != 0) {
487
+      //     return uParseTime(val, temp)
488
+      //   } else {
489
+      //     return ''
490
+      //   }
491
+      // },
492
+     getTime(val) {
493
+         if(val < 0){
494
+           return ""
495
+         }
496
+         if(val == ""){
497
+          return ""
498
+         }else {
499
+          return uParseTime(val, '{y}-{m}-{d}')
500
+         }
479
       },
501
       },
480
       showDialog(index, row) {
502
       showDialog(index, row) {
481
         this.currentIndex = index;
503
         this.currentIndex = index;
557
               'stockOut': this.recordInfo.recordData
579
               'stockOut': this.recordInfo.recordData
558
             }
580
             }
559
             console.log("params----",params)
581
             console.log("params----",params)
582
+           
560
             editDrugWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type, this.form.manufacturer, this.form.dealer).then(response => {
583
             editDrugWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type, this.form.manufacturer, this.form.dealer).then(response => {
561
               if (response.data.state == 0) {
584
               if (response.data.state == 0) {
562
                 this.$message.error(response.data.msg)
585
                 this.$message.error(response.data.msg)
563
                 return false
586
                 return false
564
               } else {
587
               } else {
565
-                this.$message.success('保存成功')
566
-                this.$router.back(-1)
588
+                var msg = response.data.data.msg
589
+                var drug_name =  response.data.data.drug_name
590
+                console.log("drug_name",drug_name)
591
+                var dose = response.data.data.dose
592
+                console.log("dose",dose)
593
+                var dose_unit = response.data.data.dose_unit
594
+                console.log("dose_unit",dose_unit)
595
+                var min_number = response.data.data.min_number
596
+                console.log("min_number",min_number)
597
+                var min_unit =  response.data.data.min_unit
598
+                console.log("min_unit",min_unit)
599
+                var max_unit =  response.data.data.max_unit
600
+                console.log("max_unit",max_unit)
601
+                var str = drug_name + " " + dose + dose_unit + "*" + min_number + min_unit+"/"+max_unit
602
+                console.log("str22222222",str)
603
+              if(msg == 1){
604
+                this.$message.error(str + "库存不足,请入库")
605
+              }else{
606
+                this.$message.success("出库成功");
607
+                this.recordInfo.recordData = [];
608
+                this.$router.back(-1);
609
+              }
567
               }
610
               }
568
             })
611
             })
569
           } else {
612
           } else {
693
         this.currentIndex = val
736
         this.currentIndex = val
694
       },
737
       },
695
       handleSelect(val){
738
       handleSelect(val){
739
+         this.getDrugBatchNumber(val.id)
696
          for(let i=0;i<this.recordInfo.recordData.length;i++){
740
          for(let i=0;i<this.recordInfo.recordData.length;i++){
697
            if(i == this.currentIndex){
741
            if(i == this.currentIndex){
698
              this.recordInfo.recordData[i].drug_id  = val.id
742
              this.recordInfo.recordData[i].drug_id  = val.id
704
              this.recordInfo.recordData[i].number = val.number
748
              this.recordInfo.recordData[i].number = val.number
705
              this.recordInfo.recordData[i].max_unit = val.max_unit
749
              this.recordInfo.recordData[i].max_unit = val.max_unit
706
              this.recordInfo.recordData[i].min_unit = val.min_unit
750
              this.recordInfo.recordData[i].min_unit = val.min_unit
707
-           
708
            }
751
            }
709
         }
752
         }
710
         console.log("333333",this.recordInfo.recordData)
753
         console.log("333333",this.recordInfo.recordData)
715
      getDataConfig(module, filed_name){
758
      getDataConfig(module, filed_name){
716
        return getDataConfig(module, filed_name)
759
        return getDataConfig(module, filed_name)
717
      },
760
      },
761
+     getDrugBatchNumber(id){
762
+          var params = {
763
+            id:id
764
+          }
765
+        getDrugBatchNumber(params).then(response=>{
766
+           if(response.data.state == 1){
767
+             var list = response.data.data.list
768
+             console.log("list2222",list)
769
+             this.numberList = list
770
+           }
771
+        })
772
+      }
718
     },
773
     },
719
     created() {
774
     created() {
720
       this.drugTypeList = getDictionaryDataConfig('system','drug_type') 
775
       this.drugTypeList = getDictionaryDataConfig('system','drug_type') 

+ 2 - 2
src/xt_pages/stock/drugs/query.vue View File

121
              {{getCount(scope.row.drug_id,scope.row.min_number,scope.row.max_unit,scope.row.min_unit)}}
121
              {{getCount(scope.row.drug_id,scope.row.min_number,scope.row.max_unit,scope.row.min_unit)}}
122
            </template>
122
            </template>
123
         </el-table-column>
123
         </el-table-column>
124
-        <el-table-column prop="drug_name" label="退库数量" align="center">
124
+        <!-- <el-table-column prop="drug_name" label="退库数量" align="center">
125
            <template slot-scope="scope">
125
            <template slot-scope="scope">
126
              {{getCancelCount(scope.row.drug_id)}}{{scope.row.max_unit}}
126
              {{getCancelCount(scope.row.drug_id)}}{{scope.row.max_unit}}
127
            </template>
127
            </template>
128
-        </el-table-column>
128
+        </el-table-column> -->
129
         <el-table-column prop="drug_name" label="剩余库存量" align="center">
129
         <el-table-column prop="drug_name" label="剩余库存量" align="center">
130
            <template slot-scope="scope">
130
            <template slot-scope="scope">
131
              <span v-if="getCountTwo(scope.row.drug_id,scope.row.min_number,scope.row.max_unit,scope.row.min_unit)!=''">{{getCountTwo(scope.row.drug_id,scope.row.min_number,scope.row.max_unit,scope.row.min_unit)}}</span>
131
              <span v-if="getCountTwo(scope.row.drug_id,scope.row.min_number,scope.row.max_unit,scope.row.min_unit)!=''">{{getCountTwo(scope.row.drug_id,scope.row.min_number,scope.row.max_unit,scope.row.min_unit)}}</span>

+ 1 - 1
src/xt_pages/stock/stockBatchNumber.vue View File

7
       <div class="cell clearfix">
7
       <div class="cell clearfix">
8
         耗材名称:{{this.$route.query.good_name}} &nbsp;
8
         耗材名称:{{this.$route.query.good_name}} &nbsp;
9
         <!-- 库存: {{getInCount(this.$route.query.id)- getOutCount(this.$route.query.id) - getAutoCount(this.$route.query.id) + getCancelCount(this.$route.query.id)}}{{this.$route.query.packing_unit}}&nbsp; -->
9
         <!-- 库存: {{getInCount(this.$route.query.id)- getOutCount(this.$route.query.id) - getAutoCount(this.$route.query.id) + getCancelCount(this.$route.query.id)}}{{this.$route.query.packing_unit}}&nbsp; -->
10
-         {{getStockCount(this.$route.query.id)}}
10
+        库存: {{getStockCount(this.$route.query.id)}}
11
         规格:{{this.$route.query.specification_name}} &nbsp;
11
         规格:{{this.$route.query.specification_name}} &nbsp;
12
         厂家:{{this.$route.query.manufacturer}} 
12
         厂家:{{this.$route.query.manufacturer}} 
13
       </div>
13
       </div>

+ 2 - 2
src/xt_pages/stock/stockFlow.vue View File

87
            </template>
87
            </template>
88
         </el-table-column>
88
         </el-table-column>
89
      
89
      
90
-       <el-table-column label="是否退库" align="center">
90
+       <!-- <el-table-column label="是否退库" align="center">
91
          <template slot-scope="scope">
91
          <template slot-scope="scope">
92
            <span v-if="scope.row.is_edit == 2">是</span>
92
            <span v-if="scope.row.is_edit == 2">是</span>
93
            <span v-if="scope.row.is_edit ==1">否</span>   
93
            <span v-if="scope.row.is_edit ==1">否</span>   
94
          </template>
94
          </template>
95
-       </el-table-column>
95
+       </el-table-column> -->
96
 
96
 
97
        <el-table-column label="批次" align="center">
97
        <el-table-column label="批次" align="center">
98
          <template slot-scope="scope">
98
          <template slot-scope="scope">

+ 31 - 30
src/xt_pages/stock/stockInOrder.vue View File

31
           @click="search"
31
           @click="search"
32
           >搜索</el-button
32
           >搜索</el-button
33
         >
33
         >
34
+        <div style="margin-left:10px;">
35
+          <label class="title"><span class="name">入库时间</span> : </label>
36
+          <el-date-picker
37
+            size="small"
38
+            v-model="start_time"
39
+            prefix-icon="el-icon-date"
40
+            :editable="false"
41
+            style="width: 196px;"
42
+            type="date"
43
+            placeholder="选择日期时间"
44
+            align="right"
45
+            format="yyyy-MM-dd"
46
+            value-format="yyyy-MM-dd"
47
+            @change="startTimeChange"
48
+          ></el-date-picker>
49
+          <span class="cellLine"> - </span>
50
+          <el-date-picker
51
+            size="small"
52
+            v-model="end_time"
53
+            prefix-icon="el-icon-date"
54
+            :editable="false"
55
+            style="width: 196px;"
56
+            type="date"
57
+            placeholder="选择日期时间"
58
+            align="right"
59
+            format="yyyy-MM-dd"
60
+            value-format="yyyy-MM-dd"
61
+            @change="endTimeChange"
62
+          ></el-date-picker>
63
+        </div>
34
       </div>
64
       </div>
35
 
65
 
36
-      <div class="cell clearfix">
37
-        <label class="title"><span class="name">入库时间</span> : </label>
38
-        <el-date-picker
39
-          size="small"
40
-          v-model="start_time"
41
-          prefix-icon="el-icon-date"
42
-          :editable="false"
43
-          style="width: 196px;"
44
-          type="date"
45
-          placeholder="选择日期时间"
46
-          align="right"
47
-          format="yyyy-MM-dd"
48
-          value-format="yyyy-MM-dd"
49
-          @change="startTimeChange"
50
-        ></el-date-picker>
51
-        <span class="cellLine"> - </span>
52
-        <el-date-picker
53
-          size="small"
54
-          v-model="end_time"
55
-          prefix-icon="el-icon-date"
56
-          :editable="false"
57
-          style="width: 196px;"
58
-          type="date"
59
-          placeholder="选择日期时间"
60
-          align="right"
61
-          format="yyyy-MM-dd"
62
-          value-format="yyyy-MM-dd"
63
-          @change="endTimeChange"
64
-        ></el-date-picker>
65
-      </div>
66
+      
66
 
67
 
67
       <div class="cell clearfix">
68
       <div class="cell clearfix">
68
         <el-checkbox
69
         <el-checkbox

+ 3 - 3
src/xt_pages/stock/stockInOrderAdd.vue View File

32
                   style="width: 100%"
32
                   style="width: 100%"
33
                   max-height="450" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
33
                   max-height="450" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
34
         >
34
         >
35
-          <el-table-column align="center" width="200">
35
+          <el-table-column align="center" width="200" fixed="left">
36
              <template slot="header" slot-scope="scope">
36
              <template slot="header" slot-scope="scope">
37
               <span>耗材名称</span>
37
               <span>耗材名称</span>
38
             </template>
38
             </template>
101
             <template slot-scope="scope">
101
             <template slot-scope="scope">
102
               <el-form-item :prop="'recordData.' + scope.$index + '.warehousing_count'"
102
               <el-form-item :prop="'recordData.' + scope.$index + '.warehousing_count'"
103
                             :rules='tableRules.warehousing_count' style="padding-top: 20px">
103
                             :rules='tableRules.warehousing_count' style="padding-top: 20px">
104
-                <el-input placeholder="请输入入库数量" type="number" v-model="scope.row.warehousing_count"  oninput="value=value.replace(/[^0-9.]/g,'')"></el-input>
104
+                <el-input placeholder="请输入入库数量" type="number" v-model="scope.row.warehousing_count"  oninput="value=value.replace(/\D|^0/g,'')"></el-input>
105
                   {{scope.row.min_unit}}
105
                   {{scope.row.min_unit}}
106
               </el-form-item>
106
               </el-form-item>
107
             
107
             
167
             </template>
167
             </template>
168
             <template slot-scope="scope">
168
             <template slot-scope="scope">
169
               <el-form-item style="padding-top: 20px">
169
               <el-form-item style="padding-top: 20px">
170
-                <el-input placeholder="请输入批号" v-model="scope.row.license_number" ></el-input>
170
+                <el-input placeholder="请输入批准文号" v-model="scope.row.license_number" ></el-input>
171
               </el-form-item>
171
               </el-form-item>
172
             </template>
172
             </template>
173
           </el-table-column>
173
           </el-table-column>

+ 3 - 6
src/xt_pages/stock/stockInOrderEdit.vue View File

198
                 style="padding-top: 20px"
198
                 style="padding-top: 20px"
199
               >
199
               >
200
                 <el-input
200
                 <el-input
201
-                  oninput="value=value.replace(/[^0-9.]/g,'')"
201
+                  oninput="value=value.replace(/\D|^0/g,'')"
202
                   placeholder="请输入入库数量"
202
                   placeholder="请输入入库数量"
203
                   type="number"
203
                   type="number"
204
                   v-model="scope.row.warehousing_count"
204
                   v-model="scope.row.warehousing_count"
272
             <template slot-scope="scope">
272
             <template slot-scope="scope">
273
               <el-form-item style="padding-top: 20px">
273
               <el-form-item style="padding-top: 20px">
274
                 <el-input
274
                 <el-input
275
-                  placeholder="请输入批号"
275
+                  placeholder="请输入批准文号"
276
                   v-model="scope.row.license_number"
276
                   v-model="scope.row.license_number"
277
                   
277
                   
278
                 ></el-input>
278
                 ></el-input>
525
       tempObj["remark"] = "";
525
       tempObj["remark"] = "";
526
       tempObj["dealer"] = "";
526
       tempObj["dealer"] = "";
527
       tempObj["manufacturer"] = "";
527
       tempObj["manufacturer"] = "";
528
-      tempObj["number"] = ""
529
       tempObj["license_number"] = ""
528
       tempObj["license_number"] = ""
530
       this.recordInfo.recordData.push(tempObj);
529
       this.recordInfo.recordData.push(tempObj);
531
     },
530
     },
672
             stockIn: this.recordInfo.recordData
671
             stockIn: this.recordInfo.recordData
673
           };
672
           };
674
           console.log("params2222",params)
673
           console.log("params2222",params)
675
-       
674
+        
676
           EditWarehouse(
675
           EditWarehouse(
677
             params,
676
             params,
678
             this.warehousing_time,
677
             this.warehousing_time,
831
               this.numberList.push(val.xt_warehouse_info[j])
830
               this.numberList.push(val.xt_warehouse_info[j])
832
             }
831
             }
833
             this.recordInfo.recordData[i].number = val.xt_warehouse_info[0].number
832
             this.recordInfo.recordData[i].number = val.xt_warehouse_info[0].number
834
-          }else{
835
-            this.recordInfo.recordData[i].number = ""
836
           }
833
           }
837
         }
834
         }
838
      
835
      

+ 49 - 33
src/xt_pages/stock/stockOutOrder.vue View File

29
           @click="search"
29
           @click="search"
30
           >搜索</el-button
30
           >搜索</el-button
31
         >
31
         >
32
+        <div style="margin-left:10px;">
33
+          <label class="title"><span class="name">出库时间</span> : </label>
34
+          <el-date-picker
35
+            size="small"
36
+            v-model="start_time"
37
+            prefix-icon="el-icon-date"
38
+            :editable="false"
39
+            style="width: 196px;"
40
+            type="date"
41
+            placeholder="选择日期时间"
42
+            align="right"
43
+            format="yyyy-MM-dd"
44
+            value-format="yyyy-MM-dd"
45
+            @change="startTimeChange"
46
+          ></el-date-picker>
47
+          <span class="cellLine"> - </span>
48
+          <el-date-picker
49
+            size="small"
50
+            v-model="end_time"
51
+            prefix-icon="el-icon-date"
52
+            :editable="false"
53
+            style="width: 196px;"
54
+            type="date"
55
+            placeholder="选择日期时间"
56
+            align="right"
57
+            format="yyyy-MM-dd"
58
+            value-format="yyyy-MM-dd"
59
+            @change="endTimeChange"
60
+          ></el-date-picker>
61
+        </div>
32
       </div>
62
       </div>
33
 
63
 
34
-      <div class="cell clearfix">
35
-        <label class="title"><span class="name">出库时间</span> : </label>
36
-        <el-date-picker
37
-          size="small"
38
-          v-model="start_time"
39
-          prefix-icon="el-icon-date"
40
-          :editable="false"
41
-          style="width: 196px;"
42
-          type="date"
43
-          placeholder="选择日期时间"
44
-          align="right"
45
-          format="yyyy-MM-dd"
46
-          value-format="yyyy-MM-dd"
47
-          @change="startTimeChange"
48
-        ></el-date-picker>
49
-        <span class="cellLine"> - </span>
50
-        <el-date-picker
51
-          size="small"
52
-          v-model="end_time"
53
-          prefix-icon="el-icon-date"
54
-          :editable="false"
55
-          style="width: 196px;"
56
-          type="date"
57
-          placeholder="选择日期时间"
58
-          align="right"
59
-          format="yyyy-MM-dd"
60
-          value-format="yyyy-MM-dd"
61
-          @change="endTimeChange"
62
-        ></el-date-picker>
63
-      </div>
64
+      
64
 
65
 
65
       <div class="cell clearfix">
66
       <div class="cell clearfix">
66
         <el-checkbox
67
         <el-checkbox
418
               <span>批次号</span>
419
               <span>批次号</span>
419
             </template>
420
             </template>
420
             <template slot-scope="scope">
421
             <template slot-scope="scope">
421
-               {{scope.row.number}}
422
+               <!-- {{scope.row.number}} -->
423
+               {{getBatchNumber(scope.row.patient_id,scope.row.good_id)}}
422
             </template>
424
             </template>
423
           </el-table-column>
425
           </el-table-column>
424
           <el-table-column min-width="35" align="center">
426
           <el-table-column min-width="35" align="center">
632
               <span>批次号</span>
634
               <span>批次号</span>
633
             </template>
635
             </template>
634
             <template slot-scope="scope">
636
             <template slot-scope="scope">
635
-              <span v-if="scope.row.is_total == 0">{{getNumber(scope.row.id)}}</span>
637
+              <!-- <span v-if="scope.row.is_total == 0">{{getNumber(scope.row.id)}}</span> -->
638
+               <span v-if="scope.row.is_total ==0">{{getBatchNumber(scope.row.patient_id,scope.row.good_id)}}</span>
636
             </template>
639
             </template>
637
           </el-table-column>
640
           </el-table-column>
638
 <!-- 
641
 <!-- 
805
       warehouse_out_time:"",
808
       warehouse_out_time:"",
806
       exportList:[],
809
       exportList:[],
807
       is_sys:0,
810
       is_sys:0,
808
-      infoList:[]
811
+      infoList:[],
812
+      stockFlowList:[]
809
     };
813
     };
810
   },
814
   },
811
   methods: {
815
   methods: {
1532
               var info = response.data.data.info
1536
               var info = response.data.data.info
1533
               this.infoList = info
1537
               this.infoList = info
1534
               console.log("info列表22222222",info)
1538
               console.log("info列表22222222",info)
1539
+              var stockflowlist = response.data.data.stockFlowList
1540
+              console.log("stockflowlist",stockflowlist)
1541
+              this.stockFlowList = stockflowlist
1535
               for (let i = 0; i < arrList.length; i++) {
1542
               for (let i = 0; i < arrList.length; i++) {
1536
                 var obj = arrList[i]
1543
                 var obj = arrList[i]
1537
                 obj['is_total'] = 0
1544
                 obj['is_total'] = 0
1656
     formatJson(filterVal, jsonData) {
1663
     formatJson(filterVal, jsonData) {
1657
     return jsonData.map(v => filterVal.map(j => v[j]));
1664
     return jsonData.map(v => filterVal.map(j => v[j]));
1658
    },
1665
    },
1666
+   getBatchNumber(patient_id,good_id){
1667
+     var arr = []
1668
+     for(let i=0;i<this.stockFlowList.length;i++){
1669
+        if(patient_id == this.stockFlowList[i].patient_id && good_id == this.stockFlowList[i].good_id){
1670
+           arr.push(this.stockFlowList[i].number)
1671
+        }
1672
+     }
1673
+     return arr.join(',')
1674
+   }
1659
   }
1675
   }
1660
 };
1676
 };
1661
 </script>
1677
 </script>

+ 5 - 1
src/xt_pages/stock/stockOutOrderAdd.vue View File

62
           max-height="450"
62
           max-height="450"
63
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
63
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
64
         >
64
         >
65
-         <el-table-column width="200" align="center">
65
+         <el-table-column width="200" align="center" fixed="left">
66
             <template slot="header" slot-scope="scope">
66
             <template slot="header" slot-scope="scope">
67
               <span>耗材名称</span>
67
               <span>耗材名称</span>
68
             </template>
68
             </template>
146
                 style="padding-top: 17px"
146
                 style="padding-top: 17px"
147
               >
147
               >
148
                 <el-input
148
                 <el-input
149
+                 oninput="value=value.replace(/\D|^0/g,'')"
149
                   placeholder="请输入出库数量"
150
                   placeholder="请输入出库数量"
150
                   type="number"
151
                   type="number"
151
                   v-model="scope.row.count"
152
                   v-model="scope.row.count"
792
 .el-autocomplete-suggestion{
793
 .el-autocomplete-suggestion{
793
   width: 400px !important;
794
   width: 400px !important;
794
 }
795
 }
796
+::-webkit-scrollbar{
797
+  height: 20px;
798
+}
795
 </style>
799
 </style>

+ 1 - 1
src/xt_pages/stock/stockOutOrderEdit.vue View File

139
             <template slot-scope="scope">
139
             <template slot-scope="scope">
140
               <el-form-item :prop="'recordData.' + scope.$index + '.count'" :rules='tableRules.count'
140
               <el-form-item :prop="'recordData.' + scope.$index + '.count'" :rules='tableRules.count'
141
                             style="padding-top: 17px">
141
                             style="padding-top: 17px">
142
-                <el-input type="number" v-model="scope.row.count"  :disabled="stockShow"></el-input>
142
+                <el-input type="number" v-model="scope.row.count"  :disabled="stockShow"   oninput="value=value.replace(/\D|^0/g,'')"></el-input>
143
               </el-form-item>
143
               </el-form-item>
144
             </template>
144
             </template>
145
           </el-table-column>
145
           </el-table-column>

+ 2 - 2
src/xt_pages/stock/stockQuery.vue View File

114
          </template>
114
          </template>
115
        </el-table-column>
115
        </el-table-column>
116
 
116
 
117
-       <el-table-column label="退库数量" align="center">
117
+       <!-- <el-table-column label="退库数量" align="center">
118
          <template slot-scope="scope">
118
          <template slot-scope="scope">
119
            <span>{{getCancelCount(scope.row.good_id)}}{{scope.row.packing_unit}}</span>
119
            <span>{{getCancelCount(scope.row.good_id)}}{{scope.row.packing_unit}}</span>
120
 
120
 
121
          </template>
121
          </template>
122
        </el-table-column>
122
        </el-table-column>
123
-      
123
+       -->
124
        <el-table-column label="剩余库存量" align="center">
124
        <el-table-column label="剩余库存量" align="center">
125
          <template slot-scope="scope">
125
          <template slot-scope="scope">
126
            <!-- {{getInCount(scope.row.good_id)- getOutCount(scope.row.good_id) - getAutoCount(scope.row.good_id) + getCancelCount(scope.row.good_id)}} {{scope.row.packing_unit}} -->
126
            <!-- {{getInCount(scope.row.good_id)- getOutCount(scope.row.good_id) - getAutoCount(scope.row.good_id) + getCancelCount(scope.row.good_id)}} {{scope.row.packing_unit}} -->

+ 4 - 2
src/xt_pages/upload/fast/FastProvince.vue View File

143
             <el-tab-pane label="抢救记录">
143
             <el-tab-pane label="抢救记录">
144
               <rescue-record :doctor_advices='doctor_advices' :patient='patient' :prescription='prescription'></rescue-record>
144
               <rescue-record :doctor_advices='doctor_advices' :patient='patient' :prescription='prescription'></rescue-record>
145
             </el-tab-pane>
145
             </el-tab-pane>
146
+             
146
           </el-tabs>
147
           </el-tabs>
147
         </div>
148
         </div>
148
       </div>
149
       </div>
160
   import dialysisParams from "../fast/dialysisParams"
161
   import dialysisParams from "../fast/dialysisParams"
161
   import dialysisSummary from "../fast/dialysisSummary"
162
   import dialysisSummary from "../fast/dialysisSummary"
162
   import rescueRecord from "../fast/rescueRecord"
163
   import rescueRecord from "../fast/rescueRecord"
163
-
164
+  
164
   import {
165
   import {
165
   getDialysisRecordInitData,
166
   getDialysisRecordInitData,
166
   getDialysisSchedules,
167
   getDialysisSchedules,
175
       treatInfo,
176
       treatInfo,
176
       dialysisParams,
177
       dialysisParams,
177
       dialysisSummary,
178
       dialysisSummary,
178
-      rescueRecord
179
+      rescueRecord,
180
+     
179
     },
181
     },
180
     data() {
182
     data() {
181
       return {
183
       return {

+ 7 - 1
src/xt_pages/user/components/PatientDetail.vue View File

955
               <div class="proj">
955
               <div class="proj">
956
                 <span class="proj_title">日期:</span>
956
                 <span class="proj_title">日期:</span>
957
                 <!-- {{ getTime(patientPrint.created_time) }} -->
957
                 <!-- {{ getTime(patientPrint.created_time) }} -->
958
+                {{printDate}}
958
               </div>
959
               </div>
959
               <div class="proj"><span class="proj_title">医生签名:</span></div>
960
               <div class="proj"><span class="proj_title">医生签名:</span></div>
960
             </div>
961
             </div>
1134
       patientID: 0,
1135
       patientID: 0,
1135
       patientPrint: {},
1136
       patientPrint: {},
1136
       print_time: "",
1137
       print_time: "",
1137
-
1138
+      printDate:"",
1138
       rules: {
1139
       rules: {
1139
         contagions: [{ type: "array", required: false, trigger: "change" }],
1140
         contagions: [{ type: "array", required: false, trigger: "change" }],
1140
         avatar: [{ required: true, message: "请上传头像", trigger: "blur" }],
1141
         avatar: [{ required: true, message: "请上传头像", trigger: "blur" }],
1203
     this.getZones();
1204
     this.getZones();
1204
     var ptime = Math.round(new Date().getTime() / 1000);
1205
     var ptime = Math.round(new Date().getTime() / 1000);
1205
     // this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}');
1206
     // this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}');
1207
+
1208
+    var data = new Date();
1209
+    var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
1210
+    var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
1211
+    this.printDate = data.getFullYear() + "-" + month + "-" + date;
1206
   },
1212
   },
1207
   methods: {
1213
   methods: {
1208
     getTime(val) {
1214
     getTime(val) {

+ 8 - 1
src/xt_pages/user/components/PatientSidebar.vue View File

102
               name: '1-2',
102
               name: '1-2',
103
               label: '病程管理'
103
               label: '病程管理'
104
             },
104
             },
105
+            // {
106
+            //   name: '1-9',
107
+            //   label: '阶段小结'
108
+            // },
105
             {
109
             {
106
               name: '1-3',
110
               name: '1-3',
107
               label: '检验检查'
111
               label: '检验检查'
183
         this.$router.push({path:'/patients/patient/'+this.id+'/vascularAccess'})
187
         this.$router.push({path:'/patients/patient/'+this.id+'/vascularAccess'})
184
       }else if (name == '1-8'){
188
       }else if (name == '1-8'){
185
         this.$router.push({path:'/patients/patients/'+this.id+'/inspectionInfectious'})
189
         this.$router.push({path:'/patients/patients/'+this.id+'/inspectionInfectious'})
186
-
190
+      }else if (name == '1-9'){
191
+        this.$router.push({path:'/patients/patients/'+6092+'/templateSummary'})
187
       }
192
       }
188
     },
193
     },
189
     changePatient(value) {
194
     changePatient(value) {
328
         this.$router.push({
333
         this.$router.push({
329
           path: '/patients/patient/' + this.id + '/proeducation'
334
           path: '/patients/patient/' + this.id + '/proeducation'
330
         })
335
         })
336
+      }else if (patientKey == '1-9'){
337
+        this.$router.push({path:'/patients/patients/'+this.id+'/templateSummary'})
331
       }
338
       }
332
     
339
     
333
      }else{
340
      }else{

+ 666 - 0
src/xt_pages/user/templateSummary.vue View File

1
+<template>
2
+  <div class="patient-container">
3
+    <patient-sidebar :id="patient_id" defaultActive="1-9"></patient-sidebar>
4
+    <div v-loading="loading">
5
+      <div class="patient-app-container advice-container app-container">
6
+
7
+        <div>
8
+                    <span style="margin-left: 10px;float:right;">
9
+                        <el-button type="primary" icon="el-icon-circle-plus-outline" size="small"
10
+                                   @click="show_dialog = true">新增</el-button>
11
+
12
+                        <el-button type="primary" icon="el-icon-edit-outline" size="small"
13
+                                   @click="showEdit">修改</el-button>
14
+                      <el-button type="primary" icon="el-icon-printer" size="small"
15
+                                 @click="print">打印</el-button>
16
+                        <el-button size="small" v-show="selectingRows.length > 0" type="danger"
17
+                                   @click="deleteAction">删除</el-button>
18
+                    </span>
19
+        </div>
20
+        <!--<div></div>-->
21
+        <div class="cell clearfix">
22
+          <label class="title"><span class="name">日期查询</span> : </label>
23
+          <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
24
+                          type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
25
+                          value-format="yyyy-MM-dd" @change="startTimeChange"></el-date-picker>
26
+          <span class="">-</span>
27
+          <el-date-picker v-model="end_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
28
+                          type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
29
+                          value-format="yyyy-MM-dd" @change="endTimeChange"></el-date-picker>
30
+        </div>
31
+        <div class="record">
32
+          <el-row :gutter="15">
33
+            <el-col :span="10">
34
+              <el-table :header-cell-style="{
35
+                  backgroundColor: 'rgb(245, 247, 250)',
36
+                  color: '#606266'
37
+                }"
38
+                :row-style="{ color: '#303133' }" ref="record_table" :data="records"
39
+                        border highlight-current-row @current-change="didChangeCurrentRecord"
40
+                        @selection-change="didSelectionChange"
41
+                        :row-class-name="tableRow"
42
+                        @row-click="onRowClick"
43
+              >
44
+                <el-table-column type="selection" width="40" align="center"></el-table-column>
45
+                <el-table-column label="阶段小结名称" align="center">
46
+                  <template slot-scope="scope">
47
+                    {{ scope.row.title}}
48
+                  </template>
49
+                </el-table-column>
50
+                <el-table-column label="记录时间" align="center">
51
+                  <template slot-scope="scope">
52
+                    {{ recordTime(scope.row.record_time) }}
53
+                  </template>
54
+                </el-table-column>
55
+                <el-table-column label="记录医生" align="center">
56
+                  <template slot-scope="scope">
57
+                    {{ doctorName(scope.row.recorder) }}
58
+                  </template>
59
+                </el-table-column>
60
+              </el-table>
61
+            </el-col>
62
+            <el-col :span="14">
63
+              <div class="record_content_panel">
64
+                <div style="background-color:rgb(245, 247, 250)" class="title">病程内容</div>
65
+                <div class="content">
66
+                  <span v-if="current_select_record" v-html="current_select_record.content">{{current_select_record.content }}</span>
67
+                  <span v-else></span>
68
+                </div>
69
+              </div>
70
+            </el-col>
71
+          </el-row>
72
+        </div>
73
+      </div>
74
+     
75
+      <el-dialog title="新增阶段小结" width="80%" top="5vh" :visible.sync="show_dialog">
76
+        <div>
77
+          <div class="new_record_form">
78
+            <div class="cell clearfix">
79
+              <label class="title"><span class="name">阶段小结时间</span> : </label>
80
+              <el-form>
81
+                 <el-row :gutter="24">
82
+                  <el-col :span="8">
83
+                    <el-form-item>
84
+                        <el-date-picker
85
+                            v-model="value"
86
+                            type="year"
87
+                            placeholder="选择年">
88
+                        </el-date-picker>
89
+                    </el-form-item> 
90
+                  </el-col>
91
+                  <el-col :span="8">
92
+                    <el-form-item>
93
+                      <el-radio-group v-model="radio">
94
+                        <el-radio :label="1" >月份</el-radio>
95
+                        <el-radio :label="2" >季度</el-radio>
96
+                     </el-radio-group>
97
+                    </el-form-item> 
98
+                  </el-col>
99
+                  <el-col :span="8">
100
+                    <el-form-item>
101
+                      <el-date-picker
102
+                        v-model="value"
103
+                        type="month"
104
+                        placeholder="选择月">
105
+                      </el-date-picker>
106
+                    </el-form-item> 
107
+                  </el-col>
108
+                   
109
+                 </el-row>  
110
+                
111
+              </el-form>
112
+            </div>
113
+
114
+            <div class="cell clearfix" style="margin-top: 10px">
115
+              <label class="title"><span class="name">阶段小结摘要</span> : </label>
116
+              <el-form>
117
+                  <el-row :gutter="24">
118
+                    <el-col :span="8">
119
+                     <el-form-item label="干体重">
120
+                      <el-input></el-input>
121
+                     </el-form-item>  
122
+                    </el-col>
123
+                    <el-col :span="8">
124
+                     <el-form-item label="共透析(次)">
125
+                      <el-input></el-input>
126
+                     </el-form-item>  
127
+                    </el-col>
128
+                    <el-col :span="8">
129
+                     <el-form-item label="HD(次)">
130
+                      <el-input></el-input>
131
+                     </el-form-item>  
132
+                    </el-col>
133
+                  </el-row>
134
+                  <el-row :gutter="24">
135
+                    <el-col :span="8">
136
+                     <el-form-item label="HDF(次)">
137
+                      <el-input></el-input>
138
+                     </el-form-item>  
139
+                    </el-col>
140
+                    <el-col :span="8">
141
+                     <el-form-item label="HP(次)">
142
+                      <el-input></el-input>
143
+                     </el-form-item>  
144
+                    </el-col>
145
+                    <el-col :span="8">
146
+                     <el-form-item label="其他(次)">
147
+                      <el-input></el-input>
148
+                     </el-form-item>  
149
+                    </el-col>
150
+                  </el-row>
151
+                   <el-row :gutter="24">
152
+                    <el-col :span="8">
153
+                     <el-form-item label="透析器">
154
+                      <el-input></el-input>
155
+                     </el-form-item>  
156
+                    </el-col>
157
+                    <el-col :span="8">
158
+                     <el-form-item label="抗凝剂">
159
+                      <el-input></el-input>
160
+                     </el-form-item>  
161
+                    </el-col>
162
+                  </el-row>
163
+                   <div>透析液</div>
164
+                   <el-row :gutter="24">
165
+                    <el-col :span="8">
166
+                     <el-form-item label="钾">
167
+                      <el-input></el-input>
168
+                     </el-form-item>  
169
+                    </el-col>
170
+                    <el-col :span="8">
171
+                     <el-form-item label="钙">
172
+                      <el-input></el-input>
173
+                     </el-form-item>  
174
+                    </el-col>
175
+                    <el-col :span="8">
176
+                     <el-form-item label="钠">
177
+                      <el-input></el-input>
178
+                     </el-form-item>  
179
+                    </el-col>
180
+                  </el-row>
181
+                   <div>透析时长</div>
182
+                   <el-row :gutter="24">
183
+                    <el-col :span="8">
184
+                     <el-form-item label="时">
185
+                      <el-input></el-input>
186
+                     </el-form-item>  
187
+                    </el-col>
188
+                    <el-col :span="8">
189
+                     <el-form-item label="分">
190
+                      <el-input></el-input>
191
+                     </el-form-item>  
192
+                    </el-col>
193
+                  </el-row>
194
+                  <el-row :gutter="24">
195
+                    <el-col :span="8">
196
+                     <el-form-item label="透前体重(kg)">
197
+                      <el-input></el-input>
198
+                     </el-form-item>  
199
+                    </el-col>
200
+                    <el-col :span="8">
201
+                     <el-form-item label="透后体重(kg)">
202
+                      <el-input></el-input>
203
+                     </el-form-item>  
204
+                    </el-col>
205
+                  </el-row>
206
+                   <el-row :gutter="24">
207
+                    <el-col :span="8">
208
+                     <el-form-item label="透前血压(mmHg)">
209
+                      <el-input></el-input>
210
+                     </el-form-item>  
211
+                    </el-col>
212
+                    <el-col :span="8">
213
+                     <el-form-item label="透后血压(mmHg)">
214
+                      <el-input></el-input>
215
+                     </el-form-item>  
216
+                    </el-col>
217
+                  </el-row>
218
+                 
219
+                  <el-row>
220
+                    <label class="title"><span class="name">阶段小结总结</span> : </label>
221
+                     <el-select v-model="value" placeholder="请选择">
222
+                        <el-option
223
+                        v-for="item in options"
224
+                        :key="item.value"
225
+                        :label="item.label"
226
+                        :value="item.value">
227
+                        </el-option>
228
+                     </el-select>
229
+                     <el-input tyep="text"></el-input>
230
+                  </el-row>
231
+                  <el-row>
232
+                    <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
233
+                     <el-select v-model="value" placeholder="请选择">
234
+                        <el-option
235
+                        v-for="item in options"
236
+                        :key="item.value"
237
+                        :label="item.label"
238
+                        :value="item.value">
239
+                        </el-option>
240
+                     </el-select>
241
+                     <el-input tyep="text"></el-input>
242
+                  </el-row>
243
+                  <el-row>
244
+                    <label class="title"><span class="name">阶段小结化验结果</span> : </label>
245
+                     <el-select v-model="value" placeholder="请选择">
246
+                        <el-option
247
+                        v-for="item in options"
248
+                        :key="item.value"
249
+                        :label="item.label"
250
+                        :value="item.value">
251
+                        </el-option>
252
+                     </el-select>
253
+                     <el-input tyep="text"></el-input>
254
+                  </el-row>
255
+                  <el-row>
256
+                    <el-col :span="8">
257
+                      <el-form-item label="记录医生">
258
+                        <el-select v-model="value" placeholder="请选择">
259
+                            <el-option
260
+                            v-for="item in options"
261
+                            :key="item.value"
262
+                            :label="item.label"
263
+                            :value="item.value">
264
+                            </el-option>
265
+                        </el-select>
266
+                      </el-form-item>
267
+                    </el-col>
268
+                    <el-col :span="8">
269
+                      <el-form-item label="记录时间">
270
+                         <el-date-picker
271
+                            v-model="value1"
272
+                            type="datetime"
273
+                            placeholder="选择日期时间">
274
+                        </el-date-picker>
275
+                      </el-form-item>
276
+                    </el-col>
277
+                  </el-row>
278
+              </el-form>
279
+            </div>
280
+
281
+
282
+          
283
+            <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
284
+              <el-button @click="show_dialog = false">取消</el-button>
285
+              <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary"
286
+                         @click="createAction" :loading="uploading_new_record">保存
287
+              </el-button>
288
+            </div>
289
+          </div>
290
+        </div>
291
+      </el-dialog>
292
+
293
+
294
+      <el-dialog title="修改病程记录" width="50%" top="5vh" :visible.sync="show_edit_dialog">
295
+        <div>
296
+          <div class="new_record_form">
297
+            <div class="cell clearfix">
298
+              <label class="title"><span class="name">病程日期</span> : </label>
299
+              <el-date-picker v-model="edit_course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
300
+                              style="width: 200px;"
301
+                              type="datetime"
302
+                              placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm"
303
+                              value-format="yyyy-MM-dd HH:mm"></el-date-picker>
304
+
305
+              <label class="title"><span class="name">日常病程</span> : </label>
306
+              <el-select v-model="select_template" placeholder="可选择病程模板" @change="didEditSelectTemplate">
307
+                <el-option v-for="(option, index) in templates" :key="index" :label="option.title"
308
+                           :value="option.content"></el-option>
309
+              </el-select>
310
+            </div>
311
+
312
+
313
+            <div class="cell clearfix" style="margin-top: 10px">
314
+              <label class="title"><span class="name">病程标题</span> : </label>
315
+              <el-input v-model="edit_title" style="width: 420px"></el-input>
316
+            </div>
317
+
318
+            <div class="textarea_panel">
319
+              <!--<el-input v-model="edit_new_content" type="textarea" rows="6" resize="none"></el-input>-->
320
+              <keep-alive>
321
+                <editor ref="edit_neditor"
322
+                        id="edit_editor"
323
+                        style="width: 600px"
324
+                        v-bind:r_content="edit_new_content">
325
+                </editor>
326
+              </keep-alive>
327
+            </div>
328
+
329
+            <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
330
+              <el-button @click="show_edit_dialog = false">取消</el-button>
331
+              <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary"
332
+                         @click="modifyAction" :loading="uploading_new_record">保存
333
+              </el-button>
334
+            </div>
335
+          </div>
336
+        </div>
337
+      </el-dialog>
338
+    </div>
339
+  </div>
340
+
341
+  <!-- </div> -->
342
+</template>
343
+
344
+<script>
345
+  import PatientSidebar from './components/PatientSidebar'
346
+  import Editor from '@/components/Editor'
347
+
348
+  import {
349
+    createCourseOfDiseaseRecord,
350
+    deleteCourseOfDiseaseRecords,
351
+    getCourseOfDiseaseRecords,
352
+    modifyCourseOfDiseaseRecord,
353
+    GetCoursePrintData
354
+  } from '@/api/patient'
355
+  import { parseTime } from '@/utils'
356
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
357
+
358
+  export default {
359
+    name: 'templateSummary',
360
+    components: {
361
+      PatientSidebar,
362
+      BreadCrumb,
363
+      Editor
364
+    },
365
+    data() {
366
+      return {
367
+        loading: false,
368
+        title: '',
369
+        patient_id: 0,
370
+        date: [],
371
+        start_time: '',
372
+        end_time: '',
373
+        course_of_disease_time: '',
374
+        records: [],
375
+        doctors: [],
376
+        current_select_record: null,
377
+        show_dialog: false,
378
+        show_edit_dialog: false,
379
+        uploading_new_record: false,
380
+        templates: this.$store.getters.configlist.course_disease,
381
+        select_template: '',
382
+        new_content: '',
383
+        edit_new_content: '',
384
+        edit_course_of_disease_time: '',
385
+        selectingRows: [],
386
+        table_current_index: -1,
387
+        edit_current_id: 0,
388
+        edit_title: '',
389
+        radio:1,
390
+        value:''
391
+      }
392
+    },
393
+    created() {
394
+    //   this.patient_id = parseInt(this.$route.query.id)
395
+    //   if (isNaN(this.patient_id) || this.patient_id <= 0) {
396
+    //     this.$notify.error({
397
+    //       title: '错误',
398
+    //       message: '无效的id'
399
+    //     })
400
+    //     this.$router.push('/patients/patients')
401
+    //     return
402
+    //   }
403
+      var now = new Date()
404
+      this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
405
+
406
+      var nowDate = new Date()
407
+      var nowYear = nowDate.getFullYear()
408
+      var nowMonth = nowDate.getMonth() + 1
409
+      var nowDay = nowDate.getDate()
410
+      this.end_time =
411
+        nowYear +
412
+        '-' +
413
+        (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
414
+        '-' +
415
+        (nowDay < 10 ? '0' + nowDay : nowDay)
416
+      nowDate.setMonth(nowDate.getMonth() - 1)
417
+      nowYear = nowDate.getFullYear()
418
+      nowMonth = nowDate.getMonth() + 1
419
+      nowDay = nowDate.getDate()
420
+      this.start_time =
421
+        nowYear +
422
+        '-' +
423
+        (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
424
+        '-' +
425
+        (nowDay < 10 ? '0' + nowDay : nowDay)
426
+
427
+      this.requestCourseRecords()
428
+
429
+    },
430
+    methods: {
431
+      requestCourseRecords: function() {
432
+        this.loading = true
433
+        getCourseOfDiseaseRecords(this.patient_id, this.start_time, this.end_time).then(rs => {
434
+          this.loading = false
435
+          var resp = rs.data
436
+          if (resp.state == 1) {
437
+            this.current_select_record = null
438
+            this.records = resp.data.records
439
+            this.doctors = resp.data.doctors
440
+
441
+          } else {
442
+            this.$message.error(resp.msg)
443
+          }
444
+        }).catch(error => {
445
+          this.loading = false
446
+          this.$message.error(error)
447
+        })
448
+      },
449
+
450
+      didChangeCurrentRecord: function(record) {
451
+        this.current_select_record = record
452
+      },
453
+      recordTime: function(timestamp) {
454
+        var time = new Date(timestamp * 1000)
455
+        return parseTime(time, '{y}-{m}-{d} {h}:{m}')
456
+      },
457
+      doctorName: function(doctor_id) {
458
+        for (let index = 0; index < this.doctors.length; index++) {
459
+          const doctor = this.doctors[index]
460
+          if (doctor.id == doctor_id) {
461
+            return doctor.name
462
+          }
463
+        }
464
+        return ''
465
+      },
466
+      modifyAction: function() {
467
+
468
+        this.edit_new_content = this.$refs.edit_neditor.content
469
+        if (this.edit_new_content.length == 0) {
470
+          this.$message.error('请填写病程内容')
471
+          return
472
+        }
473
+        this.uploading_new_record = true
474
+        modifyCourseOfDiseaseRecord(this.patient_id, this.edit_new_content, this.edit_course_of_disease_time, this.edit_current_id, this.edit_title).then(rs => {
475
+          this.uploading_new_record = false
476
+          var resp = rs.data
477
+          if (resp.state == 1) {
478
+            this.records[this.table_current_index].content = resp.data.record.content
479
+            this.records[this.table_current_index].record_time = resp.data.record.record_time
480
+            this.records[this.table_current_index].recorder = resp.data.record.recorder
481
+            this.records[this.table_current_index].title = resp.data.record.title
482
+
483
+            this.show_edit_dialog = false
484
+            this.edit_new_content = ''
485
+            this.table_current_index = -1
486
+
487
+          } else {
488
+            this.table_current_index = -1
489
+            this.$message.error(resp.msg)
490
+          }
491
+
492
+        }).catch(error => {
493
+          this.table_current_index = -1
494
+          this.uploading_new_record = false
495
+          this.$message.error(error)
496
+        })
497
+
498
+      },
499
+
500
+      createAction: function() {
501
+        this.new_content = this.$refs.editor.content
502
+        if (this.new_content.length == 0) {
503
+          this.$message.error('请填写病程内容')
504
+          return
505
+        }
506
+        this.uploading_new_record = true
507
+        
508
+        createCourseOfDiseaseRecord(this.patient_id, this.new_content, this.course_of_disease_time, this.title).then(rs => {
509
+          this.uploading_new_record = false
510
+          var resp = rs.data
511
+          if (resp.state == 1) {
512
+            this.records.unshift(resp.data.record)
513
+            // this.$refs.record_table.setCurrentRow()
514
+            // this.$refs.record_table.setCurrentRow(this.records[0])
515
+            // this.current_select_record = this.records[0]
516
+            this.show_dialog = false
517
+            this.new_content = ''
518
+            this.title = ''
519
+
520
+          } else {
521
+            this.$message.error(resp.msg)
522
+          }
523
+
524
+        }).catch(error => {
525
+          this.uploading_new_record = false
526
+          this.$message.error(error)
527
+        })
528
+      },
529
+      didSelectTemplate: function(templateContent) {
530
+        this.new_content = this.new_content.length > 0 ? (this.new_content + templateContent) : templateContent
531
+
532
+      }, didEditSelectTemplate: function(templateContent) {
533
+        this.edit_new_content = this.edit_new_content.length > 0 ? (this.edit_new_content + templateContent) : templateContent
534
+      },
535
+
536
+      didSelectionChange: function(selectRows) {
537
+        this.selectingRows = selectRows
538
+      },
539
+      deleteAction: function() {
540
+        if (this.selectingRows.length == 0) {
541
+          return
542
+        }
543
+        var ids = []
544
+        for (let index = 0; index < this.selectingRows.length; index++) {
545
+          const row = this.selectingRows[index]
546
+          ids.push(row.id)
547
+        }
548
+        var ids_str = ids.join(',')
549
+        this.loading = true
550
+        deleteCourseOfDiseaseRecords(this.patient_id, ids_str).then(rs => {
551
+          var resp = rs.data
552
+          if (resp.state == 1) {
553
+            for (let id_index = 0; id_index < ids.length; id_index++) {
554
+              for (let record_index = 0; record_index < this.records.length; record_index++) {
555
+                if (ids[id_index] == this.records[record_index].id) {
556
+                  this.records.splice(record_index, 1)
557
+                  break
558
+                }
559
+              }
560
+            }
561
+            this.selectingRows = []
562
+            this.$message.success('已删除')
563
+
564
+          } else {
565
+            this.$message.error(resp.msg)
566
+          }
567
+          this.loading = false
568
+        }).catch(err => {
569
+          this.loading = false
570
+          this.$message.error(err)
571
+        })
572
+      }, startTimeChange(val) {
573
+        this.requestCourseRecords()
574
+      }, endTimeChange(val) {
575
+        this.requestCourseRecords()
576
+      }, showEdit() {
577
+        if (this.table_current_index == -1) {
578
+          this.$message.error('请选择要修改的病程内容')
579
+          return
580
+        }
581
+        this.show_edit_dialog = true
582
+        this.edit_course_of_disease_time = this.recordTime(this.records[this.table_current_index].record_time)
583
+        this.edit_new_content = this.records[this.table_current_index].content
584
+        this.edit_current_id = this.records[this.table_current_index].id
585
+        this.edit_title = this.records[this.table_current_index].title
586
+        this.$refs.record_table.setCurrentRow(null)
587
+
588
+      }, tableRow({ row, rowIndex }) {
589
+        // 把每一行的索引放进row
590
+        row.index = rowIndex
591
+      }, onRowClick(row, event, column) {
592
+        this.table_current_index = row.index
593
+      },print(){
594
+        if (this.table_current_index == -1) {
595
+          this.$message.error('请选择要打印的病程')
596
+          return
597
+        }
598
+        this.$router.push({ path: "/course/print?id="+this.records[this.table_current_index].id});
599
+      }
600
+    }
601
+  }
602
+</script>
603
+
604
+<style rel="stylesheet/css" lang="scss" scoped>
605
+  .container {
606
+    margin-left: 180px;
607
+    padding: 20px;
608
+    background: #fff;
609
+    min-height: calc(100vh - 173px);
610
+    margin-bottom: 15px;
611
+
612
+  .record {
613
+    padding-top: 20px;
614
+  }
615
+
616
+  }
617
+  .record_content_panel {
618
+    border-width: 1px;
619
+    border-style: solid;
620
+    border-color: #ebeef5;
621
+    min-height: 200px;
622
+
623
+  .title {
624
+    font-size: 14px;
625
+    font-weight: 500;
626
+    color: #909399;
627
+    line-height: 44px;
628
+    height: 44px;
629
+    text-align: center;
630
+    border-bottom-width: 1px;
631
+    border-bottom-style: solid;
632
+    border-bottom-color: #ebeef5;
633
+  }
634
+
635
+  .content {
636
+    padding: 12px 15px;
637
+    font-size: 15px;
638
+    color: gray;
639
+    line-height: 22px;
640
+  }
641
+
642
+  }
643
+
644
+  .new_record_form {
645
+
646
+  /*/ / padding: 10 px, 25 px;*/
647
+
648
+  .textarea_panel {
649
+    margin-top: 10px;
650
+  }
651
+
652
+  }
653
+</style>
654
+<style>
655
+.el-table td,
656
+.el-table th.is-leaf,
657
+.el-table--border,
658
+.el-table--group {
659
+  border-color: #d0d3da;
660
+}
661
+.el-table--border::after,
662
+.el-table--group::after,
663
+.el-table::before {
664
+  background-color: #d0d3da;
665
+}
666
+</style>