Browse Source

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

See999 4 years ago
parent
commit
1a6c2d39e8

+ 3 - 3
src/api/dialysis.js View File

242
 }
242
 }
243
 
243
 
244
 export function CreateGroupAdvice(id, groupno, advices) {
244
 export function CreateGroupAdvice(id, groupno, advices) {
245
+  console.log('中国人名', advices)
245
   return request({
246
   return request({
246
     url: '/api/advice_remind/create?id=' + id + '&groupno=' + groupno,
247
     url: '/api/advice_remind/create?id=' + id + '&groupno=' + groupno,
247
     method: 'post',
248
     method: 'post',
277
   return request({
278
   return request({
278
     url: '/api/dialysisgoods/get',
279
     url: '/api/dialysisgoods/get',
279
     method: 'get',
280
     method: 'get',
280
-    params: params,
281
+    params: params
281
 
282
 
282
   })
283
   })
283
 }
284
 }
284
 
285
 
285
-
286
 export function GetDialysisGoodStatistics(params) {
286
 export function GetDialysisGoodStatistics(params) {
287
   return request({
287
   return request({
288
     url: '/api/goodstatistics/get',
288
     url: '/api/goodstatistics/get',
289
     method: 'get',
289
     method: 'get',
290
-    params: params,
290
+    params: params
291
 
291
 
292
   })
292
   })
293
 }
293
 }

+ 23 - 10
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

1920
         }
1920
         }
1921
 
1921
 
1922
         this.is_pre = 1
1922
         this.is_pre = 1
1923
+
1924
+        console.log("99999",this.prescription.id)
1925
+        console.log("open",this.is_open)
1923
         if (this.prescription.id == 0) {
1926
         if (this.prescription.id == 0) {
1924
           if (this.is_open == 0) {
1927
           if (this.is_open == 0) {
1925
             if (this.patient.id <= 0) {
1928
             if (this.patient.id <= 0) {
1935
             ParamsQuery['patient'] = this.patient.id
1938
             ParamsQuery['patient'] = this.patient.id
1936
             ParamsQuery['record_date'] = this.record_date
1939
             ParamsQuery['record_date'] = this.record_date
1937
             ParamsQuery['mode'] = '1'
1940
             ParamsQuery['mode'] = '1'
1938
-
1941
+    
1942
+            console.log("第一")
1939
             postPrescription(ParamsQuery).then(response => {
1943
             postPrescription(ParamsQuery).then(response => {
1940
               if (response.data.state == 0) {
1944
               if (response.data.state == 0) {
1941
                 this.$message.error(response.data.msg)
1945
                 this.$message.error(response.data.msg)
1957
                 this.hide()
1961
                 this.hide()
1958
               }
1962
               }
1959
             })
1963
             })
1964
+
1960
           } else if (this.is_open == 1) {
1965
           } else if (this.is_open == 1) {
1961
             if (this.targetAdvices.length > 0) {
1966
             if (this.targetAdvices.length > 0) {
1962
               // 弹框推送提醒
1967
               // 弹框推送提醒
1977
               ParamsQuery['patient'] = this.patient.id
1982
               ParamsQuery['patient'] = this.patient.id
1978
               ParamsQuery['record_date'] = this.record_date
1983
               ParamsQuery['record_date'] = this.record_date
1979
               ParamsQuery['mode'] = '1'
1984
               ParamsQuery['mode'] = '1'
1980
-
1985
+               console.log("第二")
1981
               postPrescription(ParamsQuery).then(response => {
1986
               postPrescription(ParamsQuery).then(response => {
1982
                 if (response.data.state == 0) {
1987
                 if (response.data.state == 0) {
1983
                   this.$message.error(response.data.msg)
1988
                   this.$message.error(response.data.msg)
2020
               var arr = this.dialysisPrescription
2025
               var arr = this.dialysisPrescription
2021
 
2026
 
2022
               const ParamsQuery = arr
2027
               const ParamsQuery = arr
2023
-              // console.log('paramsquerythree', ParamsQuery)
2028
+              console.log('paramsquerythree', ParamsQuery)
2024
               ParamsQuery['patient'] = this.patient.id
2029
               ParamsQuery['patient'] = this.patient.id
2025
               ParamsQuery['record_date'] = this.record_date
2030
               ParamsQuery['record_date'] = this.record_date
2026
               ParamsQuery['mode'] = '1'
2031
               ParamsQuery['mode'] = '1'
2027
-
2032
+              console.log("第三")
2033
+              
2028
               postPrescription(ParamsQuery).then(response => {
2034
               postPrescription(ParamsQuery).then(response => {
2029
                 if (response.data.state == 0) {
2035
                 if (response.data.state == 0) {
2030
                   this.$message.error(response.data.msg)
2036
                   this.$message.error(response.data.msg)
2037
                     duration: 2000
2043
                     duration: 2000
2038
                   })
2044
                   })
2039
 
2045
 
2046
+                  // for(let i=0;i<this.waitUploadAdvices.length;i++){
2047
+                  //    this.waitUploadAdvices[i].drug_spec =  this.waitUploadAdvices[i].drug_spec.toString()
2048
+                  // }
2040
                   const params = {
2049
                   const params = {
2041
                     advices: this.waitUploadAdvices,
2050
                     advices: this.waitUploadAdvices,
2042
                     advice_date: uParseTime(
2051
                     advice_date: uParseTime(
2054
 
2063
 
2055
                     remark: ''
2064
                     remark: ''
2056
                   }
2065
                   }
2066
+                   console.log("params--------",params)
2057
                   CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
2067
                   CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
2058
                     rs => {
2068
                     rs => {
2059
                       var resp = rs.data
2069
                       var resp = rs.data
2094
               ParamsQuery['patient'] = this.patient.id
2104
               ParamsQuery['patient'] = this.patient.id
2095
               ParamsQuery['record_date'] = this.record_date
2105
               ParamsQuery['record_date'] = this.record_date
2096
               // console.log(this.prescription);
2106
               // console.log(this.prescription);
2097
-
2107
+              console.log("第四")
2098
               postPrescription(ParamsQuery).then(response => {
2108
               postPrescription(ParamsQuery).then(response => {
2099
                 if (response.data.state == 0) {
2109
                 if (response.data.state == 0) {
2100
                   this.$message.error(response.data.msg)
2110
                   this.$message.error(response.data.msg)
2137
               ParamsQuery['patient'] = this.patient.id
2147
               ParamsQuery['patient'] = this.patient.id
2138
               ParamsQuery['record_date'] = this.record_date
2148
               ParamsQuery['record_date'] = this.record_date
2139
               ParamsQuery['mode'] = '1'
2149
               ParamsQuery['mode'] = '1'
2140
-
2150
+               console.log("第五")
2141
               postPrescription(ParamsQuery).then(response => {
2151
               postPrescription(ParamsQuery).then(response => {
2142
                 if (response.data.state == 0) {
2152
                 if (response.data.state == 0) {
2143
                   this.$message.error(response.data.msg)
2153
                   this.$message.error(response.data.msg)
2180
                 ParamsQuery['patient'] = this.patient.id
2190
                 ParamsQuery['patient'] = this.patient.id
2181
                 ParamsQuery['record_date'] = this.record_date
2191
                 ParamsQuery['record_date'] = this.record_date
2182
                 ParamsQuery['mode'] = '1'
2192
                 ParamsQuery['mode'] = '1'
2183
-
2193
+                console.log("第6")
2184
                 postPrescription(ParamsQuery).then(response => {
2194
                 postPrescription(ParamsQuery).then(response => {
2185
                   if (response.data.state == 0) {
2195
                   if (response.data.state == 0) {
2186
                     this.$message.error(response.data.msg)
2196
                     this.$message.error(response.data.msg)
2229
                 ParamsQuery['patient'] = this.patient.id
2239
                 ParamsQuery['patient'] = this.patient.id
2230
                 ParamsQuery['record_date'] = this.record_date
2240
                 ParamsQuery['record_date'] = this.record_date
2231
                 ParamsQuery['mode'] = '1'
2241
                 ParamsQuery['mode'] = '1'
2232
-
2242
+                 console.log("第七")
2233
                 postPrescription(ParamsQuery).then(response => {
2243
                 postPrescription(ParamsQuery).then(response => {
2234
                   if (response.data.state == 0) {
2244
                   if (response.data.state == 0) {
2235
                     this.$message.error(response.data.msg)
2245
                     this.$message.error(response.data.msg)
2251
                       advice_doctor: this.waitUploadAdvices[0].advice_doctor,
2261
                       advice_doctor: this.waitUploadAdvices[0].advice_doctor,
2252
                       advice_type: this.waitUploadAdvices[0].advice_type,
2262
                       advice_type: this.waitUploadAdvices[0].advice_type,
2253
                       parent_id: this.patient_id,
2263
                       parent_id: this.patient_id,
2264
+
2254
                       // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
2265
                       // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
2255
                       start_time:
2266
                       start_time:
2256
                         uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
2267
                         uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
2298
                 ParamsQuery['patient'] = this.patient.id
2309
                 ParamsQuery['patient'] = this.patient.id
2299
                 ParamsQuery['record_date'] = this.record_date
2310
                 ParamsQuery['record_date'] = this.record_date
2300
                 ParamsQuery['mode'] = '1'
2311
                 ParamsQuery['mode'] = '1'
2301
-
2312
+                console.log("第八")
2302
                 postPrescription(ParamsQuery).then(response => {
2313
                 postPrescription(ParamsQuery).then(response => {
2303
                   if (response.data.state == 0) {
2314
                   if (response.data.state == 0) {
2304
                     this.$message.error(response.data.msg)
2315
                     this.$message.error(response.data.msg)
2345
             ) {
2356
             ) {
2346
               ParamsQuery['mode'] = '3'
2357
               ParamsQuery['mode'] = '3'
2347
             }
2358
             }
2348
-
2359
+             console.log("第九")
2349
             postPrescription(ParamsQuery).then(response => {
2360
             postPrescription(ParamsQuery).then(response => {
2350
               if (response.data.state == 0) {
2361
               if (response.data.state == 0) {
2351
                 this.$message.error(response.data.msg)
2362
                 this.$message.error(response.data.msg)
2394
         }
2405
         }
2395
 
2406
 
2396
         this.is_pre = 2
2407
         this.is_pre = 2
2408
+
2397
         if (this.prescription.id == 0) {
2409
         if (this.prescription.id == 0) {
2398
           if (this.is_open == 0) {
2410
           if (this.is_open == 0) {
2399
             if (this.patient.id <= 0) {
2411
             if (this.patient.id <= 0) {
2746
                       duration: 2000
2758
                       duration: 2000
2747
                     })
2759
                     })
2748
                     const params = {
2760
                     const params = {
2761
+                   
2749
                       advices: this.waitUploadAdvices,
2762
                       advices: this.waitUploadAdvices,
2750
                       advice_date: uParseTime(
2763
                       advice_date: uParseTime(
2751
                         this.$route.query.date,
2764
                         this.$route.query.date,

+ 4 - 1
src/xt_pages/user/dialysisSolution.vue View File

1726
     this.blood_filters = this.$store.getters.blood_filters
1726
     this.blood_filters = this.$store.getters.blood_filters
1727
     this.perfusion_apparatus = this.$store.getters.perfusion_apparatus
1727
     this.perfusion_apparatus = this.$store.getters.perfusion_apparatus
1728
     this.hemodialysis_machines = this.$store.getters.hemodialysis_machines
1728
     this.hemodialysis_machines = this.$store.getters.hemodialysis_machines
1729
-    this.dialysate_formulation = this.$store.getters.dialysate_formulation
1729
+    this.dialysate_formulation =  getDataConfig(
1730
+          'hemodialysis',
1731
+          'dialysate_formulation'
1732
+    )
1730
     this.body_fluid_option = this.$store.getters.body_fluid
1733
     this.body_fluid_option = this.$store.getters.body_fluid
1731
     this.special_medicine_option = this.$store.getters.special_medicine
1734
     this.special_medicine_option = this.$store.getters.special_medicine
1732
 
1735