(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f6ccc684"],{b8f0:function(e,t,o){"use strict";var n=function(){var e=this,t=e._self._c;return e.record.options.noFormItem?t(e.componentItem,e._b({tag:"component"},"component",e.getComponentProps,!1)):t("a-form-model-item",{attrs:{prop:"domains.".concat(e.record.model),rules:e.record.rules}},[t(e.componentItem,e._b({ref:"inputItem",tag:"component",on:{change:e.handleChange}},"component",e.getComponentProps,!1))],1)},i=[],a=o("5530"),c=o("96f9"),s=o("a6fb"),d=c["c"].getComponents(),r={name:"KFormModelItem",props:["record","domains","index","value","parentDisabled","dynamicData","config"],computed:{getComponentProps:function(){var e=this.record,t=Object(a["a"])(Object(a["a"])({record:e},this.componentOption),{},{config:this.config,disabled:this.disabled||e.options.disabled,parentDisabled:this.disabled||e.options.disabled,allowClear:e.options.clearable,mode:e.options.multiple?"multiple":"",value:this.value||e.options.defaultValue,style:e.options.width&&"width:".concat(e.options.width),height:"undefined"!==typeof e.options.height?e.options.height:"",dynamicData:this.dynamicData,options:e.options.dynamic?this.dynamicData[e.options.dynamicKey]?this.dynamicData[e.options.dynamicKey]:[]:e.options.options});return"textarea"===this.record.type&&(t.autoSize={minRows:e.options.minRows,maxRows:e.options.maxRows}),"alert"===this.record.type&&(t.message=e.label),"number"===this.record.type&&(t.min=e.options.min||0===e.options.min?e.options.min:-1/0,t.max=e.options.max||0===e.options.max?e.options.max:1/0,t.precision=e.options.precision>50||!e.options.precision&&0!==e.options.precision?null:e.options.precision),"select"===this.record.type&&(t.filterOption=!!e.options.showSearch&&function(e,t){return t.componentOptions.children[0].text.toLowerCase().indexOf(e.toLowerCase())>=0}),t},componentItem:function(){return d[this.record.type].component},componentOption:function(){return s.omit(this.record.options,["defaultValue","disabled"])}},methods:{handleChange:function(e){var t=e;e.target&&(t=e.target.value),this.$emit("input",t)}}},m=r,l=o("2877"),p=Object(l["a"])(m,n,i,!1,null,null,null);t["a"]=p.exports},c668:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e._self._c;return t("a-form-model",{ref:"dynamicValidateForm",staticClass:"select-input-list-box",attrs:{layout:"inline",model:e.dynamicValidateForm}},e._l(e.record.columns,(function(o,n){return t("div",{key:n,staticClass:"list-col"},[t("a-form-model-item",{staticClass:"w-auto"},[e.record.options.multiple?t("CheckboxItem",{attrs:{checked:e.dynamicValidateForm.domains[n].checked},on:{change:function(t){return e.onCheckboxChange(t,n)}}},[e._v(" "+e._s(o.label)+" ")]):t("RadioItem",{attrs:{checked:e.dynamicValidateForm.domains[n].checked},on:{change:function(t){return e.onRadioChange(t,n)}}},[e._v(e._s(o.label))])],1),e._l(o.list,(function(o){return t("KFormModelItem",{key:o.key+"1",attrs:{record:o,config:e.config,parentDisabled:e.disabled,domains:e.dynamicValidateForm.domains[n],dynamicData:e.dynamicData},on:{input:e.handleInput},model:{value:e.dynamicValidateForm.domains[n][o.model],callback:function(t){e.$set(e.dynamicValidateForm.domains[n],o.model,t)},expression:"dynamicValidateForm.domains[i][item.model]"}})}))],2)})),0)},i=[],a=(o("d3b7"),o("159b"),o("b8f0")),c=o("96f9"),s=c["c"].getComponent("checkboxItem").component,d=c["c"].getComponent("radioItem").component,r={name:"KSelectInputList",props:["record","value","dynamicData","config","parentDisabled"],components:{KFormModelItem:a["a"],CheckboxItem:s,RadioItem:d},watch:{value:{handler:function(e){var t=e||[];t.length||this.record.columns.forEach((function(e){var o={};e.list.forEach((function(e){return e.model&&(o[e.model]=null)})),o.checked=!1,o.value=e.value,o.label=e.label,t.push(o)})),this.dynamicValidateForm.domains=t},immediate:!0,deep:!0}},data:function(){return{dynamicValidateForm:{domains:[]}}},computed:{disabled:function(){return this.record.options.disabled||this.parentDisabled}},methods:{validationSubform:function(){var e;return this.$refs.dynamicValidateForm.validate((function(t){e=t})),e},resetForm:function(){this.$refs.dynamicValidateForm.resetFields()},onCheckboxChange:function(e,t){this.dynamicValidateForm.domains[t].checked=e.target.checked,this.handleInput()},onRadioChange:function(e,t){this.dynamicValidateForm.domains.forEach((function(e){return e.checked=!1})),this.dynamicValidateForm.domains[t].checked=e.target.checked,this.handleInput()},handleInput:function(){this.$emit("change",this.dynamicValidateForm.domains)}},mounted:function(){this.handleInput()}},m=r,l=o("2877"),p=Object(l["a"])(m,n,i,!1,null,null,null),u=p.exports;t["default"]=u}}]);