|
@@ -3109,11 +3109,42 @@ export default {
|
3109
|
3109
|
}
|
3110
|
3110
|
createHisPrescription(data, params).then(response => {
|
3111
|
3111
|
if (response.data.state == 1) {
|
|
3112
|
+ if(this.org_id == 10653){ //将数据同步到费森系统
|
|
3113
|
+ var that = this
|
|
3114
|
+ axios.get('http://127.0.0.1:9531/api/yb/syncadvice', {
|
|
3115
|
+ params: {patient_id: this.patientInfo.id}
|
|
3116
|
+ })
|
|
3117
|
+ .then(function(response) {
|
|
3118
|
+ if (response.data.state == 0) {
|
|
3119
|
+ that.$message.error(response.data.msg)
|
|
3120
|
+ return false
|
|
3121
|
+ } else {
|
|
3122
|
+ if(response.data.data.status == -1){
|
|
3123
|
+ that.$confirm(response.data.data.msg, '错误信息', {
|
|
3124
|
+ confirmButtonText: '确 定',
|
|
3125
|
+ type: 'warning'
|
|
3126
|
+ }).then(() => {
|
|
3127
|
+ }).catch(() => {
|
|
3128
|
+ })
|
|
3129
|
+ }else{
|
|
3130
|
+ that.$message.success('同步费森系统成功!')
|
|
3131
|
+ }
|
|
3132
|
+ }
|
|
3133
|
+ })
|
|
3134
|
+ .catch(function(error) {
|
|
3135
|
+
|
|
3136
|
+ })
|
|
3137
|
+ }
|
3112
|
3138
|
this.$emit('change', this.patientInfo.id)
|
3113
|
3139
|
this.$message.success('保存成功!')
|
3114
|
3140
|
this.$emit('editKeepLoad', false)
|
3115
|
3141
|
this.$parent.getInitData()
|
3116
|
3142
|
this.getlist()
|
|
3143
|
+
|
|
3144
|
+
|
|
3145
|
+
|
|
3146
|
+
|
|
3147
|
+
|
3117
|
3148
|
} else {
|
3118
|
3149
|
this.$message.error(response.data.msg)
|
3119
|
3150
|
this.$emit('editKeepLoad', false)
|