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