|
@@ -1,9 +1,10 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="main-contain">
|
3
|
3
|
<div class="position">
|
4
|
|
- <bread-crumb></bread-crumb>
|
|
4
|
+ <bread-crumb :crumbs="crumbs"></bread-crumb>
|
|
5
|
+
|
5
|
6
|
<div class="" style="float:right;">
|
6
|
|
- <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
|
|
7
|
+ <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
|
7
|
8
|
<el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" type="primary" v-if="this.isEdit==false" @click="resetForm('form')" icon="el-icon-circle-plus-outline" size="small">新增</el-button>
|
8
|
9
|
<el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" @click="onSubmit('form')" size="small" type="success" icon="el-icon-setting" >保存</el-button>
|
9
|
10
|
<el-button v-if="this.isEdit==false" @click="onReSubmit('form')" :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" icon="el-icon-document-add" size="small" type="warning" >保存并继续新增</el-button>
|
|
@@ -25,7 +26,7 @@
|
25
|
26
|
<el-input v-model="form.idCardNo" @blur="checkIdCardNo" ></el-input>
|
26
|
27
|
</el-form-item>
|
27
|
28
|
</el-col>
|
28
|
|
-
|
|
29
|
+
|
29
|
30
|
<template v-if="this.isEdit">
|
30
|
31
|
<!-- <el-col :span="8" :style="isEdit?'width:360px':''">
|
31
|
32
|
<el-form-item label="患者类型 : " class="is-required" >
|
|
@@ -36,7 +37,7 @@
|
36
|
37
|
</el-col> -->
|
37
|
38
|
<el-col :span="8" :style="isEdit?'width:360px':''">
|
38
|
39
|
<el-form-item label="透析号 : " class="is-required">
|
39
|
|
- <el-input disabled v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:62%;float:left;margin-right: 1%;" ></el-input>
|
|
40
|
+ <el-input disabled v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:62%;float:left;margin-right: 1%;" ></el-input>
|
40
|
41
|
<el-button style="width:70px;padding:10px 0;" disabled type="primary">自动生成</el-button>
|
41
|
42
|
</el-form-item>
|
42
|
43
|
</el-col>
|
|
@@ -51,7 +52,7 @@
|
51
|
52
|
</el-col> -->
|
52
|
53
|
<el-col :span="8" >
|
53
|
54
|
<el-form-item label="透析号 : " class="is-required" prop="dialysisNo" >
|
54
|
|
- <el-input v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:62%;float:left;margin-right: 1%;" ></el-input>
|
|
55
|
+ <el-input v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:62%;float:left;margin-right: 1%;" ></el-input>
|
55
|
56
|
<el-button style="width:70px;padding:10px 0;" :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" type="primary" @click="generatedialysisno">自动生成</el-button>
|
56
|
57
|
</el-form-item>
|
57
|
58
|
</el-col>
|
|
@@ -67,7 +68,7 @@
|
67
|
68
|
<el-form-item label="出生日期 : " class="is-required" prop="birth" >
|
68
|
69
|
<el-date-picker v-model="form.birth" type="date" placeholder="选择日期" :suffix-icon="'el-icon-menu'" @change="hadSelectBirth" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
|
69
|
70
|
</el-form-item>
|
70
|
|
- </el-col>
|
|
71
|
+ </el-col>
|
71
|
72
|
<el-col :span="8" :style="isEdit?'width:360px':''">
|
72
|
73
|
<el-form-item label="本人电话 : " class="is-required" prop="phone">
|
73
|
74
|
<el-input v-model="form.phone" maxlength="20"></el-input>
|
|
@@ -90,7 +91,7 @@
|
90
|
91
|
<el-input v-model="form.nation" maxlength="30"></el-input>
|
91
|
92
|
</el-form-item>
|
92
|
93
|
</el-col>
|
93
|
|
-
|
|
94
|
+
|
94
|
95
|
<el-col :span="8" :style="isEdit?'width:360px':''">
|
95
|
96
|
<el-form-item label="籍贯 : " prop="native_place">
|
96
|
97
|
<el-input v-model="form.native_place" maxlength="30"></el-input>
|
|
@@ -111,7 +112,7 @@
|
111
|
112
|
</el-col>
|
112
|
113
|
<el-col :span="8" :style="isEdit?'width:360px':''">
|
113
|
114
|
<el-form-item label="身高(cm) : " prop="height">
|
114
|
|
- <el-input maxlength="5" v-model="form.height" @change="checkHeight"></el-input>
|
|
115
|
+ <el-input maxlength="5" v-model="form.height" @change="checkHeight"></el-input>
|
115
|
116
|
</el-form-item>
|
116
|
117
|
</el-col>
|
117
|
118
|
<el-col :span="8" :style="isEdit?'width:360px':''">
|
|
@@ -123,7 +124,7 @@
|
123
|
124
|
</el-col>
|
124
|
125
|
<el-col :span="8" style="clearfix" :style="isEdit?'width:360px':''">
|
125
|
126
|
<el-form-item label="子女情况 : " style="width:90%;float:left;" prop="children">
|
126
|
|
- <el-input maxlength="5" v-model="form.children" ></el-input>
|
|
127
|
+ <el-input maxlength="5" v-model="form.children" ></el-input>
|
127
|
128
|
</el-form-item>
|
128
|
129
|
<el-form-item label="孩 " style="float:left;" label-width="30px">
|
129
|
130
|
</el-form-item>
|
|
@@ -142,7 +143,7 @@
|
142
|
143
|
</el-col>
|
143
|
144
|
<el-col :span="8" :style="isEdit?'width:360px':''">
|
144
|
145
|
<el-form-item label="医保号 : " prop="healthCareNo">
|
145
|
|
- <el-input v-model="form.healthCareNo" ></el-input>
|
|
146
|
+ <el-input v-model="form.healthCareNo" ></el-input>
|
146
|
147
|
</el-form-item>
|
147
|
148
|
</el-col>
|
148
|
149
|
<el-col :span="8" :style="isEdit?'width:360px':''">
|
|
@@ -205,7 +206,7 @@
|
205
|
206
|
<el-dialog :visible.sync="dialogVisible">
|
206
|
207
|
<img width="100%" :src="dialogImageUrl" alt="">
|
207
|
208
|
</el-dialog>
|
208
|
|
- <el-upload
|
|
209
|
+ <el-upload
|
209
|
210
|
:disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
|
210
|
211
|
:data="uploadData"
|
211
|
212
|
:multiple="false"
|
|
@@ -221,7 +222,7 @@
|
221
|
222
|
</el-form-item>
|
222
|
223
|
</el-col>
|
223
|
224
|
</el-row>
|
224
|
|
-
|
|
225
|
+
|
225
|
226
|
|
226
|
227
|
<div class="dataTitle">治疗信息</div>
|
227
|
228
|
<el-row :span="24">
|
|
@@ -269,7 +270,7 @@
|
269
|
270
|
</el-form-item>
|
270
|
271
|
</el-col>
|
271
|
272
|
<el-col>
|
272
|
|
-
|
|
273
|
+
|
273
|
274
|
</el-col>
|
274
|
275
|
<el-col :span="24">
|
275
|
276
|
<el-form-item label="" prop="remark">
|
|
@@ -282,7 +283,7 @@
|
282
|
283
|
<el-checkbox v-for="item in contagionList" v-if="item.type==2" :label="item.id" :key="item.id" :value="item.id">{{item.name}}</el-checkbox>
|
283
|
284
|
</el-checkbox-group>
|
284
|
285
|
</el-form-item>
|
285
|
|
- </el-col>
|
|
286
|
+ </el-col>
|
286
|
287
|
<el-col :span="24" >
|
287
|
288
|
<el-form-item label="慢性病 : " prop="diseases">
|
288
|
289
|
<el-checkbox-group v-model="form.diseases" >
|
|
@@ -328,7 +329,7 @@
|
328
|
329
|
<el-checkbox v-for="item in predialysisConditionOptions" :label="item.label" :key="item.value" :value="item.label">{{item.label}}</el-checkbox>
|
329
|
330
|
</el-checkbox-group>
|
330
|
331
|
</el-form-item>
|
331
|
|
- </el-col>
|
|
332
|
+ </el-col>
|
332
|
333
|
<el-col :span="6" :style="isEdit?'width:360px':''">
|
333
|
334
|
<el-form-item label="本院前透析频率 : " prop="pre_hospital_dialysis_frequency">
|
334
|
335
|
<el-input v-model="form.pre_hospital_dialysis_frequency"></el-input>
|
|
@@ -359,14 +360,14 @@
|
359
|
360
|
|
360
|
361
|
<el-col :span="24" align="center">
|
361
|
362
|
<el-form-item>
|
362
|
|
-
|
|
363
|
+
|
363
|
364
|
</el-form-item>
|
364
|
365
|
</el-col>
|
365
|
366
|
</el-row>
|
366
|
|
-
|
|
367
|
+
|
367
|
368
|
</el-form>
|
368
|
|
- </div>
|
369
|
|
- </div>
|
|
369
|
+ </div>
|
|
370
|
+ </div>
|
370
|
371
|
|
371
|
372
|
</template>
|
372
|
373
|
|
|
@@ -459,6 +460,7 @@ const defaultForm = {
|
459
|
460
|
export default {
|
460
|
461
|
name: 'patientForm',
|
461
|
462
|
props: {
|
|
463
|
+
|
462
|
464
|
isEdit: {
|
463
|
465
|
type: Boolean,
|
464
|
466
|
default: false
|
|
@@ -485,6 +487,10 @@ export default {
|
485
|
487
|
}
|
486
|
488
|
|
487
|
489
|
return {
|
|
490
|
+ crumbs: [
|
|
491
|
+ { path: false, name: '病人管理' },
|
|
492
|
+ { path: '/patients/create', name: '新增病人' },
|
|
493
|
+ ],
|
488
|
494
|
generic_info_fold: true,
|
489
|
495
|
treat_info_fold: true,
|
490
|
496
|
|