|
|
@ -17,7 +17,7 @@ |
|
|
|
<el-select v-model.trim="form[itemj.id][itemk.formName]" :placeholder="`请选择${itemk.label}`" |
|
|
|
size="small" :multiple="itemk.multiple" :collapse-tags="itemk.collapseTags" clearable |
|
|
|
:style="{ 'width': itemk.formName == 'specialCategoryCode' ? '183px' : '' }" |
|
|
|
class="list_item_width_1"> |
|
|
|
class="list_item_width_1" @change="handelChangeSelsect(itemj.id,itemk.formName)"> |
|
|
|
<el-option v-for="items in itemk.opction" :key="items.value" :label="items.label" |
|
|
|
:value="items.value"> |
|
|
|
</el-option> |
|
|
@ -206,6 +206,15 @@ export default { |
|
|
|
mounted() { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handelChangeSelsect(pname,cname){ |
|
|
|
if(pname === 'specialSupportDto' && cname === 'specialSupportType'){ |
|
|
|
if(this.form.specialSupportDto.specialSupportType === '2'){ |
|
|
|
this.formList[0].children[4].check = 'sixFont' |
|
|
|
}else{ |
|
|
|
this.formList[0].children[4].check = null; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
checkNumberInput(itemj, itemk) { |
|
|
|
if (this.form[itemj][itemk]) { |
|
|
|
if (isNaN(this.form[itemj][itemk])) { |
|
|
@ -260,7 +269,7 @@ export default { |
|
|
|
console.log(this.form); |
|
|
|
this.formList.forEach((group) => { |
|
|
|
group.children.forEach((item) => { |
|
|
|
if (item.check && !this.form[group.id][item.formName] ||this.form[group.id][item.formName].length === 0) { |
|
|
|
if (item.check && !this.form[group.id][item.formName]) { |
|
|
|
this.$message.error(`${item.label}不能为空`); |
|
|
|
throw new Error(`${item.label}不能为空`); |
|
|
|
} |
|
|
|