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

no message

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