Browse Source

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

csx 4 years ago
parent
commit
e3b061b6e6

+ 25 - 0
src/utils/tools.js View File

175
   // console.log((shouji + (shichang - t) * weichi).toFixed(1))
175
   // console.log((shouji + (shichang - t) * weichi).toFixed(1))
176
   return (shouji + (shichang - t) * weichi).toFixed(1)
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 View File

66
           name: [
66
           name: [
67
             { required: true, message: '请输入费用名称', trigger: 'blur' }
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 View File

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

+ 8 - 5
src/xt_pages/data/specialDictionary.vue View File

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

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

67
               <div style="display:flex;height:100%;">
67
               <div style="display:flex;height:100%;">
68
                 <div class="centerLeft">
68
                 <div class="centerLeft">
69
                   <div class="tabsBox">
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
                     <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card" @tab-click="tabclickEvent">
71
                     <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card" @tab-click="tabclickEvent">
72
                       <el-tab-pane
72
                       <el-tab-pane
73
                         v-for="(item, index) in prescriptions"
73
                         v-for="(item, index) in prescriptions"

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

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

+ 9 - 4
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

45
             <el-tab-pane label="电子病历" name="电子病历"></el-tab-pane>
45
             <el-tab-pane label="电子病历" name="电子病历"></el-tab-pane>
46
           </el-tabs>
46
           </el-tabs>
47
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子处方'">
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
             <el-popover
49
             <el-popover
50
               placement="bottom"
50
               placement="bottom"
51
               width="200"
51
               width="200"
142
     data() {
142
     data() {
143
       return {
143
       return {
144
         tableHeight:'',
144
         tableHeight:'',
145
+        saveloading:false,
145
         fullHeight: document.documentElement.clientHeight,
146
         fullHeight: document.documentElement.clientHeight,
146
         prescriptions: [
147
         prescriptions: [
147
           {
148
           {
182
         selecting_schs: [],
183
         selecting_schs: [],
183
         index:0,
184
         index:0,
184
         admin_info:{},
185
         admin_info:{},
186
+        saveLoading:false,
185
       }
187
       }
186
     },
188
     },
187
     methods: {
189
     methods: {
209
 
211
 
210
 
212
 
211
       },changeTab(){
213
       },changeTab(){
214
+        this.saveLoading = false
215
+
212
         this.radio = 2
216
         this.radio = 2
213
         let params = {
217
         let params = {
214
           'record_date': this.record_date,
218
           'record_date': this.record_date,
228
            for (let i = 0; i< this.patientTableData.length; i++){
232
            for (let i = 0; i< this.patientTableData.length; i++){
229
              if(this.patientTableData[i].patients.id == this.patientid){
233
              if(this.patientTableData[i].patients.id == this.patientid){
230
                this.$refs.tab.setCurrentRow(this.patientTableData[i])
234
                this.$refs.tab.setCurrentRow(this.patientTableData[i])
235
+               this.getPatientInfo(this.patientTableData[i])
236
+
231
              }
237
              }
232
            }
238
            }
233
 
239
 
240
+
234
           }
241
           }
235
         })
242
         })
236
 
243
 
586
 
593
 
587
       },
594
       },
588
       open(index) {
595
       open(index) {
589
-        console.log("index0999999",this.prescriptions)
590
          if(this.prescriptions[0].advices.length == 0 && this.prescriptions[0].project.length == 0){
596
          if(this.prescriptions[0].advices.length == 0 && this.prescriptions[0].project.length == 0){
591
            this.$message.error("请先开处方")
597
            this.$message.error("请先开处方")
592
            return
598
            return
593
           }
599
           }
594
         this.index = index
600
         this.index = index
595
         if (index == 1) {
601
         if (index == 1) {
596
-          this.$refs.prescriptions.open(1)
602
+          this.$refs.prescriptions.open(1,this.saveLoading)
597
         } else if (index == 2) {
603
         } else if (index == 2) {
598
 
604
 
599
           this.getPrescriptionList(this.patientid)
605
           this.getPrescriptionList(this.patientid)
612
       },
618
       },
613
 
619
 
614
       opentwo(index) {
620
       opentwo(index) {
615
-        console.log("index",index)
616
         if (index == 1) {
621
         if (index == 1) {
617
           if(this.patientInfo.id == undefined){
622
           if(this.patientInfo.id == undefined){
618
             this.$message.error("请先选择病人")
623
             this.$message.error("请先选择病人")