|
@@ -83,9 +83,21 @@
|
|
|
let isNull = false;
|
|
|
let options2 = [];
|
|
|
const opts = this.options;
|
|
|
+ let pureName='',pureDesc = '';
|
|
|
for (let i = 0; i < this.options.length; i++) {
|
|
|
+ pureName=this.options[i].name.replace(/(\$\{number_\S*?\})|(\$\{input_\S*?\})/g,'');
|
|
|
+ pureDesc = this.options[i].description.replace(/(\$\{number_\S*?\})|(\$\{input_\S*?\})/g,'');
|
|
|
+ if(pureName.length>30){
|
|
|
+ this.warning('医生界面展示内容不能超过30个字');
|
|
|
+ return ;
|
|
|
+ }
|
|
|
+ if(pureDesc.length>30){
|
|
|
+ this.warning('患者界面展示内容不能超过30个字');
|
|
|
+ return ;
|
|
|
+ }
|
|
|
+
|
|
|
if(this.options[i].name.trim() != '') {
|
|
|
- options2.push(this.options[i])
|
|
|
+ options2.push(this.options[i]);
|
|
|
}else if(this.options[i].description.trim() != ''){ //患者填了,医生没填,提示医生必填
|
|
|
isNull = true;
|
|
|
}
|