|
@@ -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)"
|
|
@@ -966,7 +967,6 @@
|
966
|
967
|
</el-dialog>
|
967
|
968
|
|
968
|
969
|
</div>
|
969
|
|
-
|
970
|
970
|
</template>
|
971
|
971
|
|
972
|
972
|
|
|
@@ -2889,179 +2889,29 @@ export default {
|
2889
|
2889
|
}
|
2890
|
2890
|
}, openZb(index) {
|
2891
|
2891
|
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("请需要选择挂号的患者")
|
|
2892
|
+ case 1:
|
|
2893
|
+ if (this.patientInfo.id == 0) {
|
|
2894
|
+ this.$message.error("请选择需要记账的患者")
|
3036
|
2895
|
return
|
3037
|
2896
|
}
|
3038
|
|
- if(this.big_prescriptions.length == 0){
|
|
2897
|
+ if (this.prescriptions.length == 0) {
|
3039
|
2898
|
this.$message.error("处方不能为空")
|
3040
|
2899
|
return
|
3041
|
2900
|
}
|
3042
|
|
- if(this.form.diagnosis.length == 0){
|
|
2901
|
+ if (this.form.diagnosis.length == 0) {
|
3043
|
2902
|
this.$message.error("诊断不能为空")
|
3044
|
2903
|
return
|
3045
|
2904
|
}
|
|
2905
|
+ var that = this
|
3046
|
2906
|
let obj = {
|
3047
|
2907
|
patient_id: this.patientInfo.id,
|
3048
|
2908
|
diagnosis_time: this.form.diagnosis_time,
|
3049
|
2909
|
record_date: this.record_date,
|
3050
|
2910
|
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
|
|
2911
|
+ org_id: this.$store.getters.xt_user.org_id
|
|
2912
|
+
|
3062
|
2913
|
}
|
3063
|
|
- var that = this
|
3064
|
|
- axios.get("http://127.0.0.1:9532" + '/coordinate/settleAccount', {
|
|
2914
|
+ axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/settleAccount', {
|
3065
|
2915
|
params: obj
|
3066
|
2916
|
})
|
3067
|
2917
|
.then(function(response) {
|
|
@@ -3082,7 +2932,7 @@ export default {
|
3082
|
2932
|
} else {
|
3083
|
2933
|
that.radio = 1
|
3084
|
2934
|
that.changeRadioAndPatient(1)
|
3085
|
|
- that.$message({ message: '记账成功', type: 'success', duration: 5000 })
|
|
2935
|
+ that.$message({ message: '登记成功', type: 'success', duration: 5000 })
|
3086
|
2936
|
}
|
3087
|
2937
|
|
3088
|
2938
|
}
|
|
@@ -3090,9 +2940,44 @@ export default {
|
3090
|
2940
|
.catch(function(error) {
|
3091
|
2941
|
|
3092
|
2942
|
})
|
3093
|
|
-
|
3094
|
2943
|
break
|
|
2944
|
+ case 2:
|
|
2945
|
+ var that = this
|
|
2946
|
+ let obj3 = {
|
|
2947
|
+ order_id:this.order.id,
|
|
2948
|
+ admin_user_id: this.$store.getters.xt_user.user.id,
|
|
2949
|
+ }
|
|
2950
|
+ axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/settleAccount/cancel', {
|
|
2951
|
+ params: obj3
|
|
2952
|
+ })
|
|
2953
|
+ .then(function(response) {
|
|
2954
|
+ if (response.data.state == 0) {
|
|
2955
|
+ that.$message.error(response.data.msg)
|
|
2956
|
+ that.loadingtwo = false
|
|
2957
|
+ return false
|
|
2958
|
+ } else {
|
|
2959
|
+ if (response.data.data.failed_code == -10) {
|
|
2960
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
2961
|
+ confirmButtonText: '确 定',
|
|
2962
|
+ type: 'warning'
|
|
2963
|
+ }).then(() => {
|
|
2964
|
+
|
|
2965
|
+ }).catch(() => {
|
|
2966
|
+ })
|
3095
|
2967
|
|
|
2968
|
+ } else {
|
|
2969
|
+ that.radio = 1
|
|
2970
|
+ that.changeRadioAndPatient(1)
|
|
2971
|
+ that.$message({ message: '撤销记账成功', type: 'success', duration: 5000 })
|
|
2972
|
+ }
|
|
2973
|
+
|
|
2974
|
+ }
|
|
2975
|
+ })
|
|
2976
|
+ .catch(function(error) {
|
|
2977
|
+
|
|
2978
|
+ })
|
|
2979
|
+
|
|
2980
|
+ break
|
3096
|
2981
|
}
|
3097
|
2982
|
},openZF(index){
|
3098
|
2983
|
|