陈少旭 11 months ago
parent
commit
8873885d36

+ 31 - 0
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

3109
               }
3109
               }
3110
               createHisPrescription(data, params).then(response => {
3110
               createHisPrescription(data, params).then(response => {
3111
                 if (response.data.state == 1) {
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
                   this.$emit('change', this.patientInfo.id)
3138
                   this.$emit('change', this.patientInfo.id)
3113
                   this.$message.success('保存成功!')
3139
                   this.$message.success('保存成功!')
3114
                   this.$emit('editKeepLoad', false)
3140
                   this.$emit('editKeepLoad', false)
3115
                   this.$parent.getInitData()
3141
                   this.$parent.getInitData()
3116
                   this.getlist()
3142
                   this.getlist()
3143
+
3144
+
3145
+
3146
+
3147
+
3117
                 } else {
3148
                 } else {
3118
                   this.$message.error(response.data.msg)
3149
                   this.$message.error(response.data.msg)
3119
                   this.$emit('editKeepLoad', false)
3150
                   this.$emit('editKeepLoad', false)