|
@@ -4,7 +4,7 @@
|
4
|
4
|
<el-form ref="form" :rules="rules" :model="form" label-width="134px" class="clearfix" >
|
5
|
5
|
<div class="dataTitle">一般资料</div>
|
6
|
6
|
<el-row >
|
7
|
|
-
|
|
7
|
+
|
8
|
8
|
<el-col :span="4" align="center">
|
9
|
9
|
<el-upload style="width:100%;"
|
10
|
10
|
:data="uploadData"
|
|
@@ -22,7 +22,7 @@
|
22
|
22
|
<el-dialog :visible.sync="dialogVisible">
|
23
|
23
|
<img width="100%" :src="dialogImageUrl" alt="">
|
24
|
24
|
</el-dialog>
|
25
|
|
- <el-upload
|
|
25
|
+ <el-upload
|
26
|
26
|
:data="uploadData"
|
27
|
27
|
:multiple="false"
|
28
|
28
|
action="https://upload.qiniup.com"
|
|
@@ -47,7 +47,7 @@
|
47
|
47
|
</el-col>
|
48
|
48
|
<el-col :span="8">
|
49
|
49
|
<el-form-item label="透析号 : " class="is-required" prop="dialysisNo" >
|
50
|
|
- <el-input v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:47%;float:left;margin-right: 1%;" ></el-input>
|
|
50
|
+ <el-input v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:47%;float:left;margin-right: 1%;" ></el-input>
|
51
|
51
|
<el-button type="primary" @click="generatedialysisno">自动生成</el-button>
|
52
|
52
|
</el-form-item>
|
53
|
53
|
</el-col>
|
|
@@ -112,7 +112,7 @@
|
112
|
112
|
<el-form-item label="出生日期 : " class="is-required" prop="birth" >
|
113
|
113
|
<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>
|
114
|
114
|
</el-form-item>
|
115
|
|
- </el-col>
|
|
115
|
+ </el-col>
|
116
|
116
|
<el-col :span="8">
|
117
|
117
|
<el-form-item label="年龄 : " >
|
118
|
118
|
<el-input v-model="form.age" ></el-input>
|
|
@@ -130,7 +130,7 @@
|
130
|
130
|
</el-col>
|
131
|
131
|
<el-col :span="8">
|
132
|
132
|
<el-form-item label="医保号 : " >
|
133
|
|
- <el-input v-model="form.healthCareNo" ></el-input>
|
|
133
|
+ <el-input v-model="form.healthCareNo" ></el-input>
|
134
|
134
|
</el-form-item>
|
135
|
135
|
</el-col>
|
136
|
136
|
<el-col :span="8">
|
|
@@ -143,7 +143,7 @@
|
143
|
143
|
<el-row :gutter="10">
|
144
|
144
|
<el-col :span="8">
|
145
|
145
|
<el-form-item label="身高(cm) : " >
|
146
|
|
- <el-input maxlength="5" v-model="form.height" @change="checkHeight"></el-input>
|
|
146
|
+ <el-input maxlength="5" v-model="form.height" @change="checkHeight"></el-input>
|
147
|
147
|
</el-form-item>
|
148
|
148
|
</el-col>
|
149
|
149
|
<el-col :span="8" style="clearfix">
|
|
@@ -164,7 +164,7 @@
|
164
|
164
|
</el-form-item>
|
165
|
165
|
</el-col>
|
166
|
166
|
</el-row>
|
167
|
|
-
|
|
167
|
+
|
168
|
168
|
<el-row :gutter="10">
|
169
|
169
|
<el-col :span="8">
|
170
|
170
|
<el-form-item label="文化程度 : " >
|
|
@@ -181,10 +181,10 @@
|
181
|
181
|
</el-form-item>
|
182
|
182
|
</el-col>
|
183
|
183
|
</el-row>
|
184
|
|
-
|
|
184
|
+
|
185
|
185
|
</el-col>
|
186
|
186
|
</el-row>
|
187
|
|
-
|
|
187
|
+
|
188
|
188
|
<div class="dataTitle">联系方式</div>
|
189
|
189
|
<el-row :gutter="10">
|
190
|
190
|
<el-col :span="6">
|
|
@@ -235,7 +235,7 @@
|
235
|
235
|
</el-col>
|
236
|
236
|
</el-row>
|
237
|
237
|
|
238
|
|
-
|
|
238
|
+
|
239
|
239
|
<el-row :gutter="10">
|
240
|
240
|
<el-col :span="6">
|
241
|
241
|
<el-form-item label="初始透析次数 : " >
|
|
@@ -253,7 +253,7 @@
|
253
|
253
|
<el-checkbox v-for="item in contagionList" :label="item.id" :key="item.id" :value="item.id">{{item.name}}</el-checkbox>
|
254
|
254
|
</el-checkbox-group>
|
255
|
255
|
</el-form-item>
|
256
|
|
- </el-col>
|
|
256
|
+ </el-col>
|
257
|
257
|
</el-row>
|
258
|
258
|
|
259
|
259
|
<el-row :gutter="10">
|
|
@@ -272,13 +272,13 @@
|
272
|
272
|
</el-form-item>
|
273
|
273
|
</el-col>
|
274
|
274
|
<el-col :span="6">
|
275
|
|
- <el-form-item label="跌倒评估 : ">
|
|
275
|
+ <el-form-item label="跌倒评估 : ">
|
276
|
276
|
<el-input v-model="form.assessment"></el-input>
|
277
|
277
|
</el-form-item>
|
278
|
278
|
</el-col>
|
279
|
279
|
<el-col :span="6">
|
280
|
280
|
<el-form-item label="慢性病 : ">
|
281
|
|
- <el-checkbox-group
|
|
281
|
+ <el-checkbox-group
|
282
|
282
|
v-model="form.diseases"
|
283
|
283
|
>
|
284
|
284
|
<el-checkbox v-for="item in checkDisease" :label="item.id" :key="item.id" :value="item.id" >{{item.name}}</el-checkbox>
|
|
@@ -310,9 +310,9 @@
|
310
|
310
|
</el-form-item>
|
311
|
311
|
</el-col>
|
312
|
312
|
</el-row>
|
313
|
|
-
|
|
313
|
+
|
314
|
314
|
</el-form>
|
315
|
|
- </div>
|
|
315
|
+ </div>
|
316
|
316
|
</template>
|
317
|
317
|
|
318
|
318
|
<script>
|
|
@@ -427,7 +427,7 @@ export default {
|
427
|
427
|
],
|
428
|
428
|
birth:[
|
429
|
429
|
{ required: true, message: '请填写生日', trigger: 'blur' },
|
430
|
|
- ]
|
|
430
|
+ ]
|
431
|
431
|
}
|
432
|
432
|
};
|
433
|
433
|
},
|
|
@@ -443,7 +443,7 @@ export default {
|
443
|
443
|
this.inductionOptions = this.$store.getters.induction_options;
|
444
|
444
|
this.contagionList = this.$store.getters.contagions;
|
445
|
445
|
this.checkDisease = this.$store.getters.disease;
|
446
|
|
-
|
|
446
|
+
|
447
|
447
|
},
|
448
|
448
|
methods: {
|
449
|
449
|
onSubmit(formName) {
|
|
@@ -467,7 +467,7 @@ export default {
|
467
|
467
|
type: 'success',
|
468
|
468
|
duration: 2000
|
469
|
469
|
})
|
470
|
|
-
|
|
470
|
+
|
471
|
471
|
this.$refs[formName].resetFields();
|
472
|
472
|
this.$router.push({path:"/patients/patient"});
|
473
|
473
|
return false;
|
|
@@ -505,27 +505,27 @@ export default {
|
505
|
505
|
// const isJPG = file.type === "image/jpeg";
|
506
|
506
|
var fileType = file.type
|
507
|
507
|
const isJPG = fileType.indexOf("image")>-1;
|
508
|
|
- const isLt2M = file.size / 1024 / 1024 < 2;
|
|
508
|
+ const isLt2M = file.size / 1024 / 1024 < 6;
|
509
|
509
|
|
510
|
510
|
if (!isJPG) {
|
511
|
511
|
this.$message.error("只能上传图片");
|
512
|
512
|
return false;
|
513
|
513
|
}
|
514
|
514
|
if (!isLt2M) {
|
515
|
|
- this.$message.error("上传头像图片大小不能超过 2MB!");
|
|
515
|
+ this.$message.error("上传头像图片大小不能超过 6MB!");
|
516
|
516
|
return false;
|
517
|
517
|
}
|
518
|
518
|
|
519
|
519
|
var date = new Date();
|
520
|
520
|
var ext = getFileExtension(file.name);
|
521
|
|
- var key = date.getFullYear() + "/" + (date.getMonth() + 1) + "/" + date.getDate() + "/" + date.getHours() + "/" + date.getMinutes() + "/" + date.getSeconds() + "/" + "_s_" + file.uid + "." + ext;
|
|
521
|
+ var key = date.getFullYear() + "/" + (date.getMonth() + 1) + "/" + date.getDate() + "/" + date.getHours() + "/" + date.getMinutes() + "/" + date.getSeconds() + "/" + "_s_" + file.uid+"?imageView2/2/w/500/h/500/q/90" + "." + ext;
|
522
|
522
|
this.loading = this.$loading({
|
523
|
523
|
lock: true,
|
524
|
524
|
text: '上传中...',
|
525
|
525
|
spinner: 'el-icon-loading',
|
526
|
526
|
background: 'rgba(0, 0, 0, 0.7)'
|
527
|
527
|
});
|
528
|
|
-
|
|
528
|
+
|
529
|
529
|
const _self = this
|
530
|
530
|
return new Promise((resolve, reject) => {
|
531
|
531
|
getToken().then(response => {
|