|
@@ -12,7 +12,7 @@
|
|
ref="submitForm"
|
|
ref="submitForm"
|
|
></PubIndeptTag>
|
|
></PubIndeptTag>
|
|
<div class="main">
|
|
<div class="main">
|
|
- <p class="title"> <i>*</i> 标签明细:</p>
|
|
|
|
|
|
+ <p class="title" v-if="dataPub.region2==1||dataPub.region2==2||dataPub.region2==99"> <i>*</i> 标签明细:</p>
|
|
<SingleSelect v-if="dataPub.region2==1" :type="dataPub.region2" @pushValues="pushValues"></SingleSelect>
|
|
<SingleSelect v-if="dataPub.region2==1" :type="dataPub.region2" @pushValues="pushValues"></SingleSelect>
|
|
<div class="btn">
|
|
<div class="btn">
|
|
<el-button
|
|
<el-button
|
|
@@ -37,6 +37,7 @@
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
dataPub: {}, //公用组件传的值都在这
|
|
dataPub: {}, //公用组件传的值都在这
|
|
|
|
+ itemsTypes:[1,2,99], //有明细的类型
|
|
form: {
|
|
form: {
|
|
currentOrder: '0', //标签成文顺序
|
|
currentOrder: '0', //标签成文顺序
|
|
},
|
|
},
|
|
@@ -80,7 +81,7 @@
|
|
},
|
|
},
|
|
validatePass() { //验证成功回调,调取接口
|
|
validatePass() { //验证成功回调,调取接口
|
|
//仍需验证标签明细是否选择
|
|
//仍需验证标签明细是否选择
|
|
- if ([0,1,2].includes(+this.dataPub.region2)&&this.options.length==0) {
|
|
|
|
|
|
+ if (this.itemsTypes.includes(+this.dataPub.region2)&&this.options.length==0) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '至少填一个选项',
|
|
message: '至少填一个选项',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
@@ -105,6 +106,8 @@
|
|
"copyType": this.dataPub.region2 == 6 ? this.dataPub.region10 : (this.dataPub.region2 == 3 ? this.dataPub.region11 : ''), //是否复制
|
|
"copyType": this.dataPub.region2 == 6 ? this.dataPub.region10 : (this.dataPub.region2 == 3 ? this.dataPub.region11 : ''), //是否复制
|
|
"showAdd": 0, //是否显示加号血压
|
|
"showAdd": 0, //是否显示加号血压
|
|
"showInfo": 0,
|
|
"showInfo": 0,
|
|
|
|
+ "prefix":this.dataPub.prefix, //前缀
|
|
|
|
+ "suffix":this.dataPub.suffix, //后缀
|
|
"questionDetails": this.options,
|
|
"questionDetails": this.options,
|
|
"questionMappings": [] //映射关系,
|
|
"questionMappings": [] //映射关系,
|
|
}
|
|
}
|