浏览代码

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

XMLWAN 4 年前
父节点
当前提交
64ec0116f5

+ 1 - 1
src/router/index_路由未分离前.js 查看文件

@@ -886,7 +886,7 @@ export const xt_asyncRouterMap = [
886 886
         component: () => import('@/xt_pages/stock/index'),
887 887
         name: 'config',
888 888
         meta: { title: 'config' }
889
-      },   
889
+      }
890 890
     ]
891 891
   },
892 892
   {

+ 25 - 0
src/utils/tools.js 查看文件

@@ -175,3 +175,28 @@ export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
175 175
   // console.log((shouji + (shichang - t) * weichi).toFixed(1))
176 176
   return (shouji + (shichang - t) * weichi).toFixed(1)
177 177
 }
178
+
179
+
180
+export function formatDate (date, format) {
181
+  if (/(y+)/.test(format)) {
182
+      format= format.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
183
+  }
184
+  let o = {
185
+      'M+': date.getMonth() + 1,
186
+      'd+': date.getDate(),
187
+      'h+': date.getHours(),
188
+      'm+': date.getMinutes(),
189
+      's+': date.getSeconds()
190
+  };
191
+  for (let k in o) {
192
+      if (new RegExp(`(${k})`).test(format)) {
193
+          let str = o[k] + '';
194
+          format= format.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : padLeftZero(str));
195
+      }
196
+  }
197
+  return format;
198
+};
199
+
200
+function padLeftZero (str) {
201
+  return ('00' + str).substr(str.length);
202
+};

+ 0 - 4
src/xt_pages/data/components/additionDialog.vue 查看文件

@@ -66,10 +66,6 @@
66 66
           name: [
67 67
             { required: true, message: '请输入费用名称', trigger: 'blur' }
68 68
           ],
69
-          code: [
70
-            { required: true, message: '请输入国家编码', trigger: 'blur' }
71
-          ]
72
-
73 69
         }
74 70
       }
75 71
     },

+ 2 - 2
src/xt_pages/data/components/addtion.vue 查看文件

@@ -184,9 +184,9 @@
184 184
             this.$message.error(response.data.msg)
185 185
             return false
186 186
           } else {
187
-            this.Dialog.formValue.class_name =
187
+            this.Dialog.formValue.name =
188 188
               response.data.data.addition.name
189
-            this.Dialog.formValue.content_code =
189
+            this.Dialog.formValue.code =
190 190
               response.data.data.addition.code
191 191
             this.Dialog.formValue.price =
192 192
               response.data.data.addition.price

+ 8 - 5
src/xt_pages/data/specialDictionary.vue 查看文件

@@ -25,12 +25,10 @@
25 25
           <!--<supplier></supplier>-->
26 26
           <dealer></dealer>
27 27
         </el-tab-pane>
28
-
29 28
         <el-tab-pane label="疾病类型" name="7">
30
-          <!--<manufacturer></manufacturer>-->
31
-          <diagnosis></diagnosis>
32
-        </el-tab-pane>
33
-
29
+        <!--<manufacturer></manufacturer>-->
30
+        <diagnosis></diagnosis>
31
+      </el-tab-pane>
34 32
         <!--<el-tab-pane label="医疗类别" name="8">-->
35 33
           <!--&lt;!&ndash;<manufacturer></manufacturer>&ndash;&gt;-->
36 34
           <!--<diagnosis></diagnosis>-->
@@ -42,6 +40,11 @@
42 40
         <el-tab-pane label="配置项字典" name="9">
43 41
           <configure></configure>
44 42
         </el-tab-pane>
43
+
44
+        <el-tab-pane label="诊断信息" name="10">
45
+          <diagnosis></diagnosis>
46
+        </el-tab-pane>
47
+
45 48
       </el-tabs>
46 49
     </div>
47 50
   </div>

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

@@ -67,7 +67,7 @@
67 67
               <div style="display:flex;height:100%;">
68 68
                 <div class="centerLeft">
69 69
                   <div class="tabsBox">
70
-                    <el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>
70
+                    <!--<el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>-->
71 71
                     <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card" @tab-click="tabclickEvent">
72 72
                       <el-tab-pane
73 73
                         v-for="(item, index) in prescriptions"

+ 8 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

@@ -674,10 +674,16 @@
674 674
           this.order_status = '已退费'
675 675
         }
676 676
 
677
+        console.log(info)
678
+
679
+
677 680
         if(info.id > 0){
681
+          console.log("!Q!!!!")
682
+
678 683
           this.doctorValue = info.doctor_id
679 684
           this.departmentValue = info.department
680 685
         }else{
686
+          console.log("------")
681 687
           this.doctorValue = ''
682 688
           this.departmentValue = ''
683 689
 
@@ -714,7 +720,7 @@
714 720
           return false
715 721
         }
716 722
       },
717
-      open(index) {
723
+      open(index,isLoading) {
718 724
         if (this.curPrescriptions.order_status == 2) {
719 725
           this.$message.error('当前处方已经结算,无法保存')
720 726
           return
@@ -773,6 +779,7 @@
773 779
           let data = {
774 780
             'prescriptions': this.prescriptions
775 781
           }
782
+          isLoading = true
776 783
           createHisPrescription(data, params).then(response => {
777 784
             if (response.data.state == 1) {
778 785
               this.$emit("change")

+ 12 - 7
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

@@ -45,7 +45,7 @@
45 45
             <el-tab-pane label="电子病历" name="电子病历"></el-tab-pane>
46 46
           </el-tabs>
47 47
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子处方'">
48
-            <el-button size="small" ref="button_one" @click="open(1)" type="primary">保存</el-button>
48
+            <el-button size="small" ref="button_one" @click="open(1)" type="primary" v-loading="saveLoading">保存</el-button>
49 49
             <el-popover
50 50
               placement="bottom"
51 51
               width="200"
@@ -142,6 +142,7 @@
142 142
     data() {
143 143
       return {
144 144
         tableHeight:'',
145
+        saveloading:false,
145 146
         fullHeight: document.documentElement.clientHeight,
146 147
         prescriptions: [
147 148
           {
@@ -182,7 +183,8 @@
182 183
         selecting_schs: [],
183 184
         index:0,
184 185
         admin_info:{},
185
-        
186
+        saveLoading:false,
187
+
186 188
       }
187 189
     },
188 190
     methods: {
@@ -210,6 +212,8 @@
210 212
 
211 213
 
212 214
       },changeTab(){
215
+        this.saveLoading = false
216
+
213 217
         this.radio = 2
214 218
         let params = {
215 219
           'record_date': this.record_date,
@@ -229,9 +233,12 @@
229 233
            for (let i = 0; i< this.patientTableData.length; i++){
230 234
              if(this.patientTableData[i].patients.id == this.patientid){
231 235
                this.$refs.tab.setCurrentRow(this.patientTableData[i])
236
+               this.getPatientInfo(this.patientTableData[i])
237
+
232 238
              }
233 239
            }
234 240
 
241
+
235 242
           }
236 243
         })
237 244
 
@@ -265,7 +272,7 @@
265 272
             }
266 273
 
267 274
             this.prescriptionList = response.data.data.list.prescription
268
-           
275
+
269 276
             this.patientid = this.patientTableData[0].patient_id
270 277
 
271 278
           }
@@ -588,14 +595,13 @@
588 595
 
589 596
       },
590 597
       open(index) {
591
-        console.log("index0999999",this.prescriptions)
592 598
          if(this.prescriptions[0].advices.length == 0 && this.prescriptions[0].project.length == 0){
593 599
            this.$message.error("请先开处方")
594 600
            return
595 601
           }
596 602
         this.index = index
597 603
         if (index == 1) {
598
-          this.$refs.prescriptions.open(1)
604
+          this.$refs.prescriptions.open(1,this.saveLoading)
599 605
         } else if (index == 2) {
600 606
 
601 607
           this.getPrescriptionList(this.patientid)
@@ -614,7 +620,6 @@
614 620
       },
615 621
 
616 622
       opentwo(index) {
617
-        console.log("index",index)
618 623
         if (index == 1) {
619 624
           if(this.patientInfo.id == undefined){
620 625
             this.$message.error("请先选择病人")
@@ -732,7 +737,7 @@
732 737
           },400)
733 738
         }
734 739
       },
735
-    
740
+
736 741
     }
737 742
   }
738 743
 </script>