调查小问卷

This commit is contained in:
xiezhijun 2021-07-06 18:32:08 +08:00
parent 0eaaf4b0c2
commit 682a7f5477

View File

@ -39,9 +39,8 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="8、病史体征(可多选)" prop="physicalSignsIdArray" > <el-form-item label="8、病史体征(可多选)" prop="physicalSignsIdArray" >
<el-select v-model="form.physicalSignsIdArray" multiple placeholder="请选择"> <el-select v-model="form.physicalSignsIdArray" multiple placeholder="请选择" :disabled="submitFlag">
<el-option <el-option
:disabled="submitFlag"
v-for="physicalSign in physicalSignsList" v-for="physicalSign in physicalSignsList"
:key="physicalSign.id" :key="physicalSign.id"
:label="physicalSign.name" :label="physicalSign.name"
@ -51,7 +50,7 @@
</el-select> </el-select>
<div><span class="text-span">其他病史体征</span> <div><span class="text-span">其他病史体征</span>
<el-input type="textarea" <el-input type="textarea"
:disabled="submitFlag" :disabled="submitFlag"
placeholder="请输入病史体征" placeholder="请输入病史体征"
v-model="form.otherPhysicalSigns" v-model="form.otherPhysicalSigns"
maxlength="200" maxlength="200"
@ -217,19 +216,30 @@ export default {
this.form.timeTable = this.form.timeTableArray.join(","); this.form.timeTable = this.form.timeTableArray.join(",");
this.form.bloodData = this.form.bloodDataArray.join(","); this.form.bloodData = this.form.bloodDataArray.join(",");
this.form.moistureData = this.form.moistureDataArray.join(","); this.form.moistureData = this.form.moistureDataArray.join(",");
addCustomerSurvey(this.form).then((response) => { this.$refs.form.validate((valid) => {
if(response.code == 200){ if (valid){
this.$notify({ addCustomerSurvey(this.form).then((response) => {
title: "提交成功", if(response.code == 200){
message: "", this.$notify({
type: "success", title: "提交成功",
}); message: "",
this.goTop(); type: "success",
this.submitFlag = true; });
}else{ this.goTop();
this.submitFlag = false; this.submitFlag = true;
} }else{
}); this.submitFlag = false;
}
});
}else{
this.$message({
message: "数据未填写完整",
type: "warning",
});
this.submitFlag = false;
}
})
}, },
goTop() { goTop() {
window.scroll(0, 0); window.scroll(0, 0);