|
@@ -255,7 +255,7 @@ import Vue from "vue";
|
|
const initRow = { orderNo: 0, name: "", description: "", exclusion: 0 };
|
|
const initRow = { orderNo: 0, name: "", description: "", exclusion: 0 };
|
|
const initRows = utils.getInitRow(initRow, 4);
|
|
const initRows = utils.getInitRow(initRow, 4);
|
|
export default {
|
|
export default {
|
|
- props: ["type", "options", "ascription", "sexType"],
|
|
|
|
|
|
+ props: ["type", "options", "ascription", "sexType","hasId"],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
rows: [...initRows],
|
|
rows: [...initRows],
|
|
@@ -380,12 +380,15 @@ export default {
|
|
ids=ids.concat(it.subQuestion.split(','))
|
|
ids=ids.concat(it.subQuestion.split(','))
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ if(this.hasId!=''){
|
|
|
|
+ ids.push(this.hasId)
|
|
|
|
+ }
|
|
let param = {
|
|
let param = {
|
|
tagName: this.searchVal.trim(),
|
|
tagName: this.searchVal.trim(),
|
|
type: this.ascription,
|
|
type: this.ascription,
|
|
notIds: ids,
|
|
notIds: ids,
|
|
noSubQuestion:1,
|
|
noSubQuestion:1,
|
|
- notControlType: ['8'], //组合填写单或非诊疗情况模版不能添加图片上传
|
|
|
|
|
|
+ notControlType: ['8','4'], //组合填写单或非诊疗情况模版不能添加图片上传
|
|
sexType: this.sexType,
|
|
sexType: this.sexType,
|
|
tagType: ["1"] //qaType=2:组合填写单,qaType=3模板
|
|
tagType: ["1"] //qaType=2:组合填写单,qaType=3模板
|
|
};
|
|
};
|
|
@@ -401,6 +404,16 @@ export default {
|
|
this.rows = [...utils.getInitRow(initRow, 4)];
|
|
this.rows = [...utils.getInitRow(initRow, 4)];
|
|
},
|
|
},
|
|
addRow() {
|
|
addRow() {
|
|
|
|
+ if(this.type == 3){
|
|
|
|
+ if(this.rows.length>5){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: "多列填写类型最多添加6个选项",
|
|
|
|
+ type: "warning",
|
|
|
|
+ showClose: true
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.rows.push(Object.assign({}, initRow, { orderNo: this.rows.length }));
|
|
this.rows.push(Object.assign({}, initRow, { orderNo: this.rows.length }));
|
|
},
|
|
},
|
|
selectRow(index, name) {
|
|
selectRow(index, name) {
|