|
@@ -547,7 +547,7 @@
|
547
|
547
|
<el-col :span="15">
|
548
|
548
|
|
549
|
549
|
<el-form-item label="药品规格 :" prop="advice_desc">
|
550
|
|
- <el-col :span="8">
|
|
550
|
+ <el-col :span="8">
|
551
|
551
|
<el-autocomplete
|
552
|
552
|
style="width:100px;"
|
553
|
553
|
class="inline-input"
|
|
@@ -1627,7 +1627,7 @@
|
1627
|
1627
|
},
|
1628
|
1628
|
onRowClick(row, event, column) {
|
1629
|
1629
|
this.table_current_index = row.index
|
1630
|
|
- },
|
|
1630
|
+ },
|
1631
|
1631
|
modifyRecordAction: function() {
|
1632
|
1632
|
if (this.table_current_index == -1) {
|
1633
|
1633
|
this.$message.error('请选择一条医嘱记录')
|
|
@@ -1657,7 +1657,7 @@
|
1657
|
1657
|
this.templateTableVisible = false
|
1658
|
1658
|
}).catch(() => {
|
1659
|
1659
|
})
|
1660
|
|
- },
|
|
1660
|
+ },
|
1661
|
1661
|
|
1662
|
1662
|
//添加医嘱模版
|
1663
|
1663
|
submitTableTemplate(formName) {
|
|
@@ -1669,10 +1669,10 @@
|
1669
|
1669
|
const params = {
|
1670
|
1670
|
'data': this.adviceTableData
|
1671
|
1671
|
}
|
1672
|
|
-
|
|
1672
|
+
|
1673
|
1673
|
let name = encodeURIComponent(this.form.name)
|
1674
|
1674
|
console.log("params",params)
|
1675
|
|
-
|
|
1675
|
+
|
1676
|
1676
|
postAdviceTemplate(params, name, this.form.advice_type).then(response => {
|
1677
|
1677
|
|
1678
|
1678
|
if (response.data.state == 0) {
|
|
@@ -1807,7 +1807,7 @@
|
1807
|
1807
|
|
1808
|
1808
|
},
|
1809
|
1809
|
submitTemplate(formName) {
|
1810
|
|
-
|
|
1810
|
+
|
1811
|
1811
|
if(this.src_type == ""){
|
1812
|
1812
|
this.templateForm.way = 0
|
1813
|
1813
|
this.templateForm.drug_id = 0
|
|
@@ -1818,7 +1818,7 @@
|
1818
|
1818
|
this.templateForm.advice_name = arr[0]
|
1819
|
1819
|
}
|
1820
|
1820
|
console.log("2222",this.templateForm)
|
1821
|
|
-
|
|
1821
|
+
|
1822
|
1822
|
this.$refs[formName].validate(valid => {
|
1823
|
1823
|
this.templateForm.single_dose = parseFloat(this.templateForm.single_dose)
|
1824
|
1824
|
this.templateForm.prescribing_number = parseFloat(this.templateForm.prescribing_number)
|
|
@@ -1829,7 +1829,7 @@
|
1829
|
1829
|
if (isNaN(this.templateForm.prescribing_number)) {
|
1830
|
1830
|
this.templateForm.prescribing_number = 0
|
1831
|
1831
|
}
|
1832
|
|
-
|
|
1832
|
+
|
1833
|
1833
|
if (valid) {
|
1834
|
1834
|
const templateFormTwo = {}
|
1835
|
1835
|
templateFormTwo.template_id = this.current_template_id
|
|
@@ -1948,7 +1948,7 @@
|
1948
|
1948
|
this.adviceTableData[i].weekdays = templateFormTwo.weekdays
|
1949
|
1949
|
this.adviceTableData[i].drug_id = templateFormTwo.drug_id
|
1950
|
1950
|
this.adviceTableData[i].way = templateFormTwo.way
|
1951
|
|
-
|
|
1951
|
+
|
1952
|
1952
|
}
|
1953
|
1953
|
}
|
1954
|
1954
|
} else {
|
|
@@ -2147,7 +2147,7 @@
|
2147
|
2147
|
object['template_id'] = response.data.data.advice_templates[i].id
|
2148
|
2148
|
this.adviceTemplates.push(object)
|
2149
|
2149
|
}
|
2150
|
|
-
|
|
2150
|
+
|
2151
|
2151
|
// 非空模版的处理
|
2152
|
2152
|
for (let y = 0; y < response.data.data.advice_templates[i].DoctorAdviceTemplate.length; y++) {
|
2153
|
2153
|
if (response.data.data.advice_templates[i].id == response.data.data.advice_templates[i].DoctorAdviceTemplate[y].template_id) {
|
|
@@ -2177,21 +2177,21 @@
|
2177
|
2177
|
}, cancelEditHandle() {
|
2178
|
2178
|
// this.templateTableVisible = true
|
2179
|
2179
|
this.templateEditFormVisible = false
|
2180
|
|
- },
|
2181
|
|
-
|
|
2180
|
+ },
|
|
2181
|
+
|
2182
|
2182
|
//编辑医嘱
|
2183
|
2183
|
submitEditTemplate(formName) {
|
2184
|
|
-
|
|
2184
|
+
|
2185
|
2185
|
var drug_id = 0
|
2186
|
2186
|
for(let i=0;i<this.all_drug.length;i++){
|
2187
|
2187
|
if(this.templateFormEdit.advice_name == this.all_drug[i].drug_name){
|
2188
|
2188
|
drug_id = this.all_drug[i].id
|
2189
|
2189
|
}
|
2190
|
|
- }
|
|
2190
|
+ }
|
2191
|
2191
|
this.templateFormEdit.drug_id = drug_id
|
2192
|
|
-
|
|
2192
|
+
|
2193
|
2193
|
console.log("编辑子药",this.templateFormEdit)
|
2194
|
|
-
|
|
2194
|
+
|
2195
|
2195
|
this.$refs[formName].validate(valid => {
|
2196
|
2196
|
|
2197
|
2197
|
this.templateFormEdit.single_dose = parseFloat(this.templateFormEdit.single_dose)
|
|
@@ -2221,7 +2221,7 @@
|
2221
|
2221
|
return s && s.trim()
|
2222
|
2222
|
}).join(',')
|
2223
|
2223
|
}
|
2224
|
|
-
|
|
2224
|
+
|
2225
|
2225
|
UpdateAdviceTemplate(this.templateFormEdit.id, this.templateFormEdit,this.templateFormEdit.drug_id).then(
|
2226
|
2226
|
response => {
|
2227
|
2227
|
if (response.data.state == 0) {
|
|
@@ -2253,7 +2253,7 @@
|
2253
|
2253
|
)
|
2254
|
2254
|
}
|
2255
|
2255
|
})
|
2256
|
|
- },
|
|
2256
|
+ },
|
2257
|
2257
|
drugDesc(row) {
|
2258
|
2258
|
if (row.isNoSub == 2) {
|
2259
|
2259
|
if (row.drug_spec.length <= 0) {
|
|
@@ -2339,13 +2339,13 @@
|
2339
|
2339
|
this.table_current_index_two = row.index
|
2340
|
2340
|
}, cancelHandleTwo() {
|
2341
|
2341
|
this.templateFormTwoVisible = false
|
2342
|
|
- },
|
|
2342
|
+ },
|
2343
|
2343
|
submitTemplateTwo(formName) {
|
2344
|
|
-
|
|
2344
|
+
|
2345
|
2345
|
this.templateForm['template_id'] = this.current_template_id
|
2346
|
2346
|
this.templateForm['advice_type'] = this.form.advice_type
|
2347
|
|
-
|
2348
|
|
-
|
|
2347
|
+
|
|
2348
|
+
|
2349
|
2349
|
if (this.templateForm.frequency_type == 1) {
|
2350
|
2350
|
this.templateForm.day_count = 0
|
2351
|
2351
|
this.templateForm.week_days = ''
|
|
@@ -2359,7 +2359,7 @@
|
2359
|
2359
|
}).join(',')
|
2360
|
2360
|
}
|
2361
|
2361
|
console.log("编辑模板",this.templateForm)
|
2362
|
|
-
|
|
2362
|
+
|
2363
|
2363
|
// 编辑创建医嘱模版
|
2364
|
2364
|
CreateSingleAdviceTemplate(this.templateForm).then(response => {
|
2365
|
2365
|
if (response.data.state == 0) {
|
|
@@ -2391,7 +2391,7 @@
|
2391
|
2391
|
this.adviceTableDataTwo = []
|
2392
|
2392
|
}, cancelEditHandleTwo() {
|
2393
|
2393
|
this.templateEditFormTwoVisible = false
|
2394
|
|
- },
|
|
2394
|
+ },
|
2395
|
2395
|
submitEditTemplateTwo(formName) {
|
2396
|
2396
|
this.$refs[formName].validate(valid => {
|
2397
|
2397
|
this.templateFormEdit.single_dose = parseFloat(this.templateFormEdit.single_dose)
|
|
@@ -2512,7 +2512,7 @@
|
2512
|
2512
|
this.editDialogTitle = '编辑医嘱'
|
2513
|
2513
|
this.edit_advice_name = '医嘱内容'
|
2514
|
2514
|
}
|
2515
|
|
- },
|
|
2515
|
+ },
|
2516
|
2516
|
openDelete(index, row) {
|
2517
|
2517
|
this.hoverOrderArr = []
|
2518
|
2518
|
|
|
@@ -2689,14 +2689,14 @@
|
2689
|
2689
|
this.adviceTableDataTwo.push(this.adviceTemplates[i])
|
2690
|
2690
|
}
|
2691
|
2691
|
}
|
2692
|
|
- },
|
|
2692
|
+ },
|
2693
|
2693
|
modifyTemplateName() {
|
2694
|
2694
|
const params = {
|
2695
|
2695
|
template_name: this.form.name,
|
2696
|
2696
|
template_id: this.current_template_id
|
2697
|
2697
|
}
|
2698
|
2698
|
console.log("params---",params)
|
2699
|
|
-
|
|
2699
|
+
|
2700
|
2700
|
updateTemplateName(params).then(response => {
|
2701
|
2701
|
if (response.data.state == 0) {
|
2702
|
2702
|
this.$message.error(response.data.msg)
|
|
@@ -2825,9 +2825,9 @@
|
2825
|
2825
|
obj.id = base_drug_list[i].id
|
2826
|
2826
|
this.all_drug.push(obj)
|
2827
|
2827
|
}
|
2828
|
|
- }
|
|
2828
|
+ }
|
2829
|
2829
|
})
|
2830
|
|
-
|
|
2830
|
+
|
2831
|
2831
|
},
|
2832
|
2832
|
|
2833
|
2833
|
|
|
@@ -2871,7 +2871,6 @@
|
2871
|
2871
|
}
|
2872
|
2872
|
}
|
2873
|
2873
|
},
|
2874
|
|
-
|
2875
|
2874
|
changeDrugDescTwo(name) {
|
2876
|
2875
|
this.current_drug_spec = name
|
2877
|
2876
|
for (let i = 0; i < this.drugSpec.length; i++) {
|
|
@@ -2887,7 +2886,7 @@
|
2887
|
2886
|
}
|
2888
|
2887
|
}
|
2889
|
2888
|
},
|
2890
|
|
-
|
|
2889
|
+
|
2891
|
2890
|
|
2892
|
2891
|
querySearch(queryString, cb) {
|
2893
|
2892
|
console.log('queryString',queryString)
|