ソースを参照

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

杨青 1 年間 前
コミット
92b71978ad
共有2 個のファイルを変更した104 個の追加191 個の削除を含む
  1. 53 167
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  2. 51 24
      src/xt_pages/user/Sitemap.vue

+ 53 - 167
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue ファイルの表示

@@ -80,12 +80,16 @@
80 80
 
81 81
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
82 82
 
83
-          <div v-if="org_id == 10340">
83
+          <div v-if="org_id == 10454">
84 84
             <el-button  size="small"
85
-                        @click="openZb(4)"
85
+                        @click="openZb(1)"
86 86
                         v-if=" this.order.id == 0"
87 87
                         type="primary">记账
88 88
             </el-button>
89
+            <el-button   size="small"
90
+                         @click="openZb(2)"
91
+                         type="primary">撤销记账
92
+            </el-button>
89 93
           </div>
90 94
 
91 95
           <div  v-if="org_id != 10340">
@@ -99,10 +103,7 @@
99 103
             <!--                       type="primary">记账-->
100 104
             <!--            </el-button>-->
101 105
 
102
-            <!--            <el-button   size="small"-->
103
-            <!--                       @click="openZb(3)"-->
104
-            <!--                       type="primary">撤销记账-->
105
-            <!--            </el-button>-->
106
+
106 107
 
107 108
             <el-button v-loading="loadingone" size="small"
108 109
                        @click="open(40)"
@@ -2889,179 +2890,29 @@ export default {
2889 2890
       }
2890 2891
     }, openZb(index) {
2891 2892
       switch (index) {
2892
-        // case 1:
2893
-        //   if(this.patientInfo.id == 0){
2894
-        //     this.$message.error("请需要选择挂号的患者")
2895
-        //     return
2896
-        //   }
2897
-        //   if(this.big_prescriptions.length == 0){
2898
-        //     this.$message.error("处方不能为空")
2899
-        //     return
2900
-        //   }
2901
-        //   if(this.form.diagnosis.length == 0){
2902
-        //     this.$message.error("诊断不能为空")
2903
-        //     return
2904
-        //   }
2905
-        //   var that = this
2906
-        //   let obj = {
2907
-        //     patient_id: this.patientInfo.id,
2908
-        //     diagnosis_time: this.form.diagnosis_time,
2909
-        //     record_date: this.record_date,
2910
-        //     admin_user_id: this.$store.getters.xt_user.user.id,
2911
-        //     org_id: this.$store.getters.xt_user.org_id
2912
-        //
2913
-        //   }
2914
-        //   axios.get(process.env.BASE_API +'/coordinate/register', {
2915
-        //     params: obj
2916
-        //   })
2917
-        //       .then(function(response) {
2918
-        //         if (response.data.state == 0) {
2919
-        //           that.$message.error(response.data.msg)
2920
-        //           that.loadingtwo = false
2921
-        //           return false
2922
-        //         } else {
2923
-        //           if (response.data.data.failed_code == -10) {
2924
-        //             that.$confirm(response.data.data.msg, '医保错误信息', {
2925
-        //               confirmButtonText: '确 定',
2926
-        //               type: 'warning'
2927
-        //             }).then(() => {
2928
-        //
2929
-        //             }).catch(() => {
2930
-        //             })
2931
-        //
2932
-        //           } else {
2933
-        //             that.radio = 1
2934
-        //             that.changeRadioAndPatient(1)
2935
-        //             that.$message({ message: '登记成功', type: 'success', duration: 5000 })
2936
-        //           }
2937
-        //
2938
-        //         }
2939
-        //       })
2940
-        //       .catch(function(error) {
2941
-        //
2942
-        //       })
2943
-        //
2944
-        //   break
2945
-        // case 2:
2946
-        //   var that = this
2947
-        //   var obj2 = {
2948
-        //     id: this.patientInfo.id,
2949
-        //     record_time: this.record_date,
2950
-        //     his_patient_id: this.hisPatientInfo.id,
2951
-        //     org_id: this.$store.getters.xt_user.org_id,
2952
-        //     p_type:14,
2953
-        //
2954
-        //   }
2955
-        //   obj2['diagnosis'] = this.form.diagnosis.join(',')
2956
-        //   obj2['sick_type'] = this.form.sick_type
2957
-        //   if (this.activeName == 'first') {
2958
-        //     obj2['settle_accounts_type'] = 1
2959
-        //   } else if (this.activeName == 'second') {
2960
-        //     obj2['start_time'] = this.other_start_time
2961
-        //     obj2['end_time'] = this.other_end_time
2962
-        //     obj2['settle_accounts_type'] = 2
2963
-        //   }
2964
-        //   axios.get(process.env.BASE_API  + '/coordinate/opKeepAccounts', {
2965
-        //     params: obj2
2966
-        //   })
2967
-        //       .then(function(response) {
2968
-        //         if (response.data.state == 0) {
2969
-        //           that.$message.error(response.data.msg)
2970
-        //           that.loadingtwo = false
2971
-        //           return false
2972
-        //         } else {
2973
-        //           if (response.data.data.failed_code == -10) {
2974
-        //             that.$confirm(response.data.data.msg, '医保错误信息', {
2975
-        //               confirmButtonText: '确 定',
2976
-        //               type: 'warning'
2977
-        //             }).then(() => {
2978
-        //
2979
-        //             }).catch(() => {
2980
-        //             })
2981
-        //
2982
-        //           } else {
2983
-        //             that.radio = 1
2984
-        //             that.changeRadioAndPatient(1)
2985
-        //             that.$message({ message: '记账成功', type: 'success', duration: 5000 })
2986
-        //           }
2987
-        //
2988
-        //         }
2989
-        //       })
2990
-        //       .catch(function(error) {
2991
-        //
2992
-        //       })
2993
-        //
2994
-        //   break
2995
-        // case 3:
2996
-        //   var that = this
2997
-        //   let obj3 = {
2998
-        //     order_id:this.order.id,
2999
-        //     admin_user_id: this.$store.getters.xt_user.user.id,
3000
-        //     org_id: this.$store.getters.xt_user.org_id
3001
-        //   }
3002
-        //   axios.get(process.env.BASE_API + '/coordinate/opCancelKeepAccounts', {
3003
-        //     params: obj3
3004
-        //   })
3005
-        //       .then(function(response) {
3006
-        //         if (response.data.state == 0) {
3007
-        //           that.$message.error(response.data.msg)
3008
-        //           that.loadingtwo = false
3009
-        //           return false
3010
-        //         } else {
3011
-        //           if (response.data.data.failed_code == -10) {
3012
-        //             that.$confirm(response.data.data.msg, '医保错误信息', {
3013
-        //               confirmButtonText: '确 定',
3014
-        //               type: 'warning'
3015
-        //             }).then(() => {
3016
-        //
3017
-        //             }).catch(() => {
3018
-        //             })
3019
-        //
3020
-        //           } else {
3021
-        //             that.radio = 1
3022
-        //             that.changeRadioAndPatient(1)
3023
-        //             that.$message({ message: '撤销记账成功', type: 'success', duration: 5000 })
3024
-        //           }
3025
-        //
3026
-        //         }
3027
-        //       })
3028
-        //       .catch(function(error) {
3029
-        //
3030
-        //       })
3031
-        //
3032
-        //   break
3033
-        case 4:
3034
-          if(this.patientInfo.id == 0){
3035
-            this.$message.error("请需要选择挂号的患者")
2893
+        case 1:
2894
+          if (this.patientInfo.id == 0) {
2895
+            this.$message.error("请选择需要记账的患者")
3036 2896
             return
3037 2897
           }
3038
-          if(this.big_prescriptions.length == 0){
2898
+          if (this.prescriptions.length == 0) {
3039 2899
             this.$message.error("处方不能为空")
3040 2900
             return
3041 2901
           }
3042
-          if(this.form.diagnosis.length == 0){
2902
+          if (this.form.diagnosis.length == 0) {
3043 2903
             this.$message.error("诊断不能为空")
3044 2904
             return
3045 2905
           }
2906
+          var that = this
3046 2907
           let obj = {
3047 2908
             patient_id: this.patientInfo.id,
3048 2909
             diagnosis_time: this.form.diagnosis_time,
3049 2910
             record_date: this.record_date,
3050 2911
             admin_user_id: this.$store.getters.xt_user.user.id,
3051
-            his_patient_id: this.hisPatientInfo.id,
3052
-            p_type:14
3053
-          }
3054
-          obj['diagnosis'] = this.form.diagnosis.join(',')
3055
-          obj['sick_type'] = this.form.sick_type
3056
-          if (this.activeName == 'first') {
3057
-            obj['settle_accounts_type'] = 1
3058
-          } else if (this.activeName == 'second') {
3059
-            obj['start_time'] = this.other_start_time
3060
-            obj['end_time'] = this.other_end_time
3061
-            obj['settle_accounts_type'] = 2
2912
+            org_id: this.$store.getters.xt_user.org_id
2913
+
3062 2914
           }
3063
-          var that = this
3064
-          axios.get("http://127.0.0.1:9532"  + '/coordinate/settleAccount', {
2915
+          axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/settleAccount', {
3065 2916
             params: obj
3066 2917
           })
3067 2918
             .then(function(response) {
@@ -3082,7 +2933,7 @@ export default {
3082 2933
                 } else {
3083 2934
                   that.radio = 1
3084 2935
                   that.changeRadioAndPatient(1)
3085
-                  that.$message({ message: '记成功', type: 'success', duration: 5000 })
2936
+                  that.$message({ message: '记成功', type: 'success', duration: 5000 })
3086 2937
                 }
3087 2938
 
3088 2939
               }
@@ -3090,9 +2941,44 @@ export default {
3090 2941
             .catch(function(error) {
3091 2942
 
3092 2943
             })
3093
-
3094 2944
           break
2945
+        case 2:
2946
+          var that = this
2947
+          let obj3 = {
2948
+            order_id:this.order.id,
2949
+            admin_user_id: this.$store.getters.xt_user.user.id,
2950
+          }
2951
+          axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/settleAccount/cancel', {
2952
+            params: obj3
2953
+          })
2954
+            .then(function(response) {
2955
+              if (response.data.state == 0) {
2956
+                that.$message.error(response.data.msg)
2957
+                that.loadingtwo = false
2958
+                return false
2959
+              } else {
2960
+                if (response.data.data.failed_code == -10) {
2961
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
2962
+                    confirmButtonText: '确 定',
2963
+                    type: 'warning'
2964
+                  }).then(() => {
2965
+
2966
+                  }).catch(() => {
2967
+                  })
3095 2968
 
2969
+                } else {
2970
+                  that.radio = 1
2971
+                  that.changeRadioAndPatient(1)
2972
+                  that.$message({ message: '撤销记账成功', type: 'success', duration: 5000 })
2973
+                }
2974
+
2975
+              }
2976
+            })
2977
+            .catch(function(error) {
2978
+
2979
+            })
2980
+
2981
+          break
3096 2982
       }
3097 2983
     },openZF(index){
3098 2984
 

+ 51 - 24
src/xt_pages/user/Sitemap.vue ファイルの表示

@@ -1127,65 +1127,92 @@ export default{
1127 1127
             // this.V_left = sitemap.v_left
1128 1128
             this.A_right = []
1129 1129
             
1130
-            for(let i=0;i<sitemap.DeviceValsualALeft.length;i++){
1130
+            if(sitemap.DeviceValsualALeft!=null && sitemap.DeviceValsualALeft.length>0){
1131
+              for(let i=0;i<sitemap.DeviceValsualALeft.length;i++){
1131 1132
              
1132
-              sitemap.DeviceValsualALeft[i].markNum =  sitemap.DeviceValsualALeft[i].mark_num
1133
+                sitemap.DeviceValsualALeft[i].markNum =  sitemap.DeviceValsualALeft[i].mark_num
1133 1134
 
1134
-              this.A_right.push(sitemap.DeviceValsualALeft[i])
1135
+                this.A_right.push(sitemap.DeviceValsualALeft[i])
1136
+             }
1135 1137
             }
1138
+          
1136 1139
 
1137 1140
             this.V_right = []
1138 1141
             
1139
-            for(let i=0;i<sitemap.DeviceValsualALeft.length;i++){
1142
+            if(sitemap.DeviceValsualALeft!=null && sitemap.DeviceValsualALeft.length>0){
1143
+              for(let i=0;i<sitemap.DeviceValsualALeft.length;i++){
1140 1144
              
1141
-              sitemap.XtDeviceValsualVLeft[i].markNum =  sitemap.XtDeviceValsualVLeft[i].mark_num
1145
+                sitemap.XtDeviceValsualVLeft[i].markNum =  sitemap.XtDeviceValsualVLeft[i].mark_num
1142 1146
 
1143
-              this.V_right.push(sitemap.XtDeviceValsualVLeft[i])
1147
+                this.V_right.push(sitemap.XtDeviceValsualVLeft[i])
1148
+              }
1144 1149
             }
1145 1150
            
1151
+           
1146 1152
             this.fuzhuA = []
1147
-            for(let i=0;i<sitemap.DeviceValsualFuzhuA.length;i++){
1153
+            if(sitemap.DeviceValsualFuzhuA!=null && sitemap.DeviceValsualFuzhuA.length>0){
1154
+              for(let i=0;i<sitemap.DeviceValsualFuzhuA.length;i++){
1148 1155
                sitemap.DeviceValsualFuzhuA[i].a_markNum = sitemap.DeviceValsualFuzhuA[i].a_mark_num
1149 1156
               this.fuzhuA.push( sitemap.DeviceValsualFuzhuA[i])
1150 1157
             }
1158
+            }
1159
+           
1151 1160
            
1152 1161
             this.fuzhuV = []
1153
-           for(let i=0;i<sitemap.DeviceValsualFuzhuV.length;i++){
1154
-             sitemap.DeviceValsualFuzhuV[i].v_markNum = sitemap.DeviceValsualFuzhuV[i].a_mark_num
1155
-             this.fuzhuV.push( sitemap.DeviceValsualFuzhuV[i])
1156
-           }
1162
+            if(sitemap.DeviceValsualFuzhuV!=null && sitemap.DeviceValsualFuzhuV.length>0){
1163
+              for(let i=0;i<sitemap.DeviceValsualFuzhuV.length;i++){
1164
+              sitemap.DeviceValsualFuzhuV[i].v_markNum = sitemap.DeviceValsualFuzhuV[i].a_mark_num
1165
+              this.fuzhuV.push( sitemap.DeviceValsualFuzhuV[i])
1166
+             }
1167
+            }
1168
+         
1157 1169
          
1158 1170
              this.fangxiangA = []
1159
-             for(let i=0;i<sitemap.DeviceValsualMapFangxiangA.length;i++){
1160
-               sitemap.DeviceValsualMapFangxiangA[i].markNum = sitemap.DeviceValsualMapFangxiangA[i].mark_n
1161
-               this.fangxiangA.push(sitemap.DeviceValsualMapFangxiangA[i])
1171
+             if(sitemap.DeviceValsualMapFangxiangA!=null && sitemap.DeviceValsualMapFangxiangA.length>0){
1172
+               for(let i=0;i<sitemap.DeviceValsualMapFangxiangA.length;i++){
1173
+                sitemap.DeviceValsualMapFangxiangA[i].markNum = sitemap.DeviceValsualMapFangxiangA[i].mark_n
1174
+                this.fangxiangA.push(sitemap.DeviceValsualMapFangxiangA[i])
1175
+               }
1162 1176
              }
1177
+           
1163 1178
              
1164 1179
              
1165 1180
              this.fangxiangV = []
1166
-             for(let i=0;i<sitemap.DeviceValsualMapFangxiangV.length;i++){
1167
-               sitemap.DeviceValsualMapFangxiangV[i].markNum = sitemap.DeviceValsualMapFangxiangV[i].mark_num
1168
-               this.fangxiangV.push(sitemap.DeviceValsualMapFangxiangV[i])
1169
-             }
1181
+             if(sitemap.DeviceValsualMapFangxiangV!=null && sitemap.DeviceValsualMapFangxiangV.length>0){
1182
+                for(let i=0;i<sitemap.DeviceValsualMapFangxiangV.length;i++){
1183
+                sitemap.DeviceValsualMapFangxiangV[i].markNum = sitemap.DeviceValsualMapFangxiangV[i].mark_num
1184
+                this.fangxiangV.push(sitemap.DeviceValsualMapFangxiangV[i])
1185
+              }
1186
+             } 
1187
+            
1170 1188
              
1171 1189
              this.text_arr = []
1172
-             for(let i=0;i<sitemap.DeviceValsualTextArr.length;i++){
1190
+             if(sitemap.DeviceValsualTextArr!=null && sitemap.DeviceValsualTextArr.length>0){
1191
+              for(let i=0;i<sitemap.DeviceValsualTextArr.length;i++){
1173 1192
                this.text_arr.push(sitemap.DeviceValsualTextArr[i])
1193
+              }
1174 1194
              }
1195
+            
1175 1196
 
1176 1197
              this.Aarr = []
1177
-             for(let i=0;i<sitemap.DeviceValusalMapArr.length;i++){
1178
-               sitemap.DeviceValusalMapArr[i].markNum = sitemap.DeviceValusalMapArr[i].mark_num
1179
-               sitemap.DeviceValusalMapArr[i].is_status = sitemap.DeviceValusalMapArr[i].is_status
1180
-               this.Aarr.push(sitemap.DeviceValusalMapArr[i])
1198
+             if(sitemap.DeviceValusalMapArr!=null && sitemap.DeviceValusalMapArr.length>0){
1199
+              for(let i=0;i<sitemap.DeviceValusalMapArr.length;i++){
1200
+                sitemap.DeviceValusalMapArr[i].markNum = sitemap.DeviceValusalMapArr[i].mark_num
1201
+                sitemap.DeviceValusalMapArr[i].is_status = sitemap.DeviceValusalMapArr[i].is_status
1202
+                this.Aarr.push(sitemap.DeviceValusalMapArr[i])
1203
+              }
1181 1204
              }
1205
+             
1182 1206
 
1183 1207
              this.Varr = []
1184
-             for(let i=0;i<sitemap.DeviceValusalMapVrr.length;i++){
1208
+             if(sitemap.DeviceValusalMapVrr!=null && sitemap.DeviceValusalMapVrr.length>0){
1209
+              for(let i=0;i<sitemap.DeviceValusalMapVrr.length;i++){
1185 1210
                sitemap.DeviceValusalMapVrr[i].markNum = sitemap.DeviceValusalMapVrr[i].mark_num
1186 1211
                sitemap.DeviceValusalMapVrr[i].is_status = sitemap.DeviceValusalMapVrr[i].is_status
1187 1212
                this.Varr.push(sitemap.DeviceValusalMapVrr[i])
1188 1213
              }
1214
+             }
1215
+          
1189 1216
              
1190 1217
             }
1191 1218