提交 4b2a6969 编写于 作者: tao.wu's avatar tao.wu

no message

上级 a5ae3b93
......@@ -12,8 +12,8 @@
社区、乡镇人群随访表
</el-col>
<el-col :span="4" v-if="showBtn">
<el-button class="button-white" size="small" plain @click="formSubmit">暂存</el-button>
<el-button type="primary" size="small" @click="formSubmit">提交</el-button>
<el-button class="button-white" size="small" plain @click="formSubmit(2)">暂存</el-button>
<el-button type="primary" size="small" @click="formSubmit(1)">提交</el-button>
</el-col>
</el-row>
......@@ -32,7 +32,7 @@
<div class="form-container">
<!--脑卒中-->
<stroke v-if="resourceId=='SCALE0003'" :checkStart="checkStart" @checkEnd="checkEnd" :showBtn="showBtn" />
<stroke v-if="resourceId=='SCALE0003'" :checkStart="checkStart" @checkEnd="checkEnd" :showBtn="showBtn" :saveWay="saveWay" />
</div>
......@@ -52,6 +52,7 @@
checkStart: false,
showBtn: true,
resourceId: '',
saveWay: 1
}
},
components: {
......@@ -59,7 +60,8 @@
BreadCrumb,
},
methods: {
formSubmit(){
formSubmit(val){
this.saveWay = val
this.checkStart = true;
},
checkEnd(val){
......
......@@ -53,6 +53,9 @@
return {
canRender: true,
bmi: 0,
planPatientsTimesId: '',
scaleNo: '',
doctorId: '',
addComponents: [
{name: 'BaseInfo0',formObject: {},formName: 'stroke_001',className: 'obj-form-title',dataSource: dataSourceBaseInfo0(this), hideTitle: true, title: '一、量表脑卒中随访人员信息表'},
{name: 'BaseInfo',formObject: {},formName: 'stroke_002',className: 'obj-form-title',dataSource: dataSourceBaseInfo(this), title: '一、基本信息'},
......@@ -80,6 +83,7 @@
props: {
showBtn: Boolean,
checkStart: Boolean,
saveWay: Number
},
watch: {
checkStart(val){
......@@ -108,10 +112,10 @@
});
}
console.log(this.formData)
this.formData.doctorId = 1
this.formData.saveWay = 1
this.formData.scaleNo = 'SCALE0003'
this.formData.planPatientsTimesId = 1
this.formData.doctorId = this.doctorId
this.formData.saveWay = this.saveWay
this.formData.scaleNo = this.scaleNo
this.formData.planPatientsTimesId = this.planPatientsTimesId
console.log(JSON.stringify(this.formData))
if(this.valid){
......@@ -152,11 +156,12 @@
},
created(){
// /scale/{patientTimesId}/{scaleNo}/info
let planPatientsTimesId = this.$route.query.planPatientsTimesId
let scaleNo = this.$route.query.scaleNo
this.planPatientsTimesId = this.$route.query.planPatientsTimesId
this.scaleNo = this.$route.query.scaleNo
this.doctorId = this.$route.query.doctorId
axios({
method: 'get',
url: getFollowUpSC(`/scale/${planPatientsTimesId}/${scaleNo}/info?type=2`),
url: getFollowUpSC(`/scale/${this.planPatientsTimesId}/${this.scaleNo}/info?type=2`),
data: JSON.stringify(this.formData),
}).then(res=>{
this.formData = res.data.data
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册