(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-364b2012"],{"0e152":function(e,t,a){"use strict";a("cd88")},cd88:function(e,t,a){},f0c0:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("div",[t("el-card",[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("span",[e._v(e._s(e.$t("attrSpecManage.queryCondition")))]),t("div",[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e._moreCondition()}}},[e._v(" "+e._s(e.attrSpecManageInfo.moreCondition?e.$t("attrSpecManage.hide"):e.$t("attrSpecManage.more"))+" ")])],1)]),t("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:e.attrSpecManageInfo.conditions}},[t("el-form-item",[t("el-form-item",[t("el-input",{attrs:{placeholder:e.$t("attrSpecManage.specNamePlaceholder"),clearable:""},model:{value:e.attrSpecManageInfo.conditions.specName,callback:function(t){e.$set(e.attrSpecManageInfo.conditions,"specName",t)},expression:"attrSpecManageInfo.conditions.specName"}})],1),t("el-form-item",[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("attrSpecManage.tableNamePlaceholder")},model:{value:e.attrSpecManageInfo.conditions.tableName,callback:function(t){e.$set(e.attrSpecManageInfo.conditions,"tableName",t)},expression:"attrSpecManageInfo.conditions.tableName"}},e._l(e.tableOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),t("el-form-item",[t("el-input",{attrs:{placeholder:e.$t("attrSpecManage.specPlaceholder"),clearable:""},model:{value:e.attrSpecManageInfo.conditions.specCd,callback:function(t){e.$set(e.attrSpecManageInfo.conditions,"specCd",t)},expression:"attrSpecManageInfo.conditions.specCd"}})],1),t("el-form-item",[t("el-input",{attrs:{placeholder:e.$t("attrSpecManage.domainPlaceholder"),clearable:""},model:{value:e.attrSpecManageInfo.conditions.domain,callback:function(t){e.$set(e.attrSpecManageInfo.conditions,"domain",t)},expression:"attrSpecManageInfo.conditions.domain"}})],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e._queryAttrSpecMethod()}}},[t("i",{staticClass:"el-icon-search"}),e._v(" "+e._s(e.$t("attrSpecManage.query"))+" ")]),t("el-button",{on:{click:function(t){return e._resetAttrSpecMethod()}}},[t("i",{staticClass:"el-icon-refresh"}),e._v(" "+e._s(e.$t("attrSpecManage.reset"))+" ")])],1)],1)],1)],1),t("el-card",{staticClass:"margin-top-sm"},[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("span",[e._v(e._s(e.$t("attrSpecManage.attrConfig")))]),t("div",[t("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e._openAddAttrSpecModal()}}},[t("i",{staticClass:"el-icon-plus"}),e._v(" "+e._s(e.$t("attrSpecManage.add"))+" ")])],1)]),t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.attrSpecManageInfo.attrSpecs,border:""}},[t("el-table-column",{attrs:{prop:"domain",label:e.$t("attrSpecManage.domain"),align:"center"}}),t("el-table-column",{attrs:{prop:"specName",label:e.$t("attrSpecManage.specName"),align:"center"}}),t("el-table-column",{attrs:{prop:"specCd",label:e.$t("attrSpecManage.spec"),align:"center"}}),t("el-table-column",{attrs:{prop:"tableName",label:e.$t("attrSpecManage.attrTable"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.getTableName(t.row.tableName))+" ")]}}])}),t("el-table-column",{attrs:{prop:"required",label:e.$t("attrSpecManage.required"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s("Y"===t.row.required?e.$t("attrSpecManage.yes"):e.$t("attrSpecManage.no"))+" ")]}}])}),t("el-table-column",{attrs:{prop:"specShow",label:e.$t("attrSpecManage.show"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s("Y"===t.row.specShow?e.$t("attrSpecManage.yes"):e.$t("attrSpecManage.no"))+" ")]}}])}),t("el-table-column",{attrs:{prop:"specValueType",label:e.$t("attrSpecManage.valueType"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._getSpecValueTypeName(t.row.specValueType))+" ")]}}])}),t("el-table-column",{attrs:{prop:"specType",label:e.$t("attrSpecManage.specType"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._getSpecTypeName(t.row.specType))+" ")]}}])}),t("el-table-column",{attrs:{prop:"listShow",label:e.$t("attrSpecManage.queryShow"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s("Y"===t.row.listShow?e.$t("attrSpecManage.yes"):e.$t("attrSpecManage.no"))+" ")]}}])}),t("el-table-column",{attrs:{label:e.$t("attrSpecManage.operation"),align:"center",width:"300"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-button-group",[t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e._openAttrSpecValue(a.row)}}},[e._v(" "+e._s(e.$t("attrSpecManage.discreteValue"))+" ")]),t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e._openEditAttrSpecModel(a.row)}}},[e._v(" "+e._s(e.$t("attrSpecManage.edit"))+" ")]),t("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e._openDeleteAttrSpecModel(a.row)}}},[e._v(" "+e._s(e.$t("attrSpecManage.delete"))+" ")])],1)]}}])})],1),t("el-pagination",{staticStyle:{"margin-top":"20px","text-align":"right"},attrs:{"current-page":e.attrSpecManageInfo.conditions.page,"page-size":e.attrSpecManageInfo.conditions.row,layout:"total, prev, pager, next",total:e.attrSpecManageInfo.total},on:{"current-change":e.handleCurrentChange}})],1),t("add-attr-spec",{ref:"addAttrSpec",on:{success:e.queryAttrSpec}}),t("edit-attr-spec",{ref:"editAttrSpec",on:{success:e.queryAttrSpec}}),t("delete-attr-spec",{ref:"deleteAttrSpec",on:{success:e.queryAttrSpec}})],1)},l=[],i=a("b775");function c(e){return new Promise((t,a)=>{Object(i["a"])({url:"/attrSpec.listAttrSpec",method:"get",params:e}).then(e=>{const a=e.data;t(a)}).catch(e=>{a(e)})})}function s(e){return new Promise((t,a)=>{Object(i["a"])({url:"/attrSpec.saveAttrSpec",method:"post",data:e}).then(e=>{const a=e.data;t(a)}).catch(e=>{a(e)})})}function o(e){return new Promise((t,a)=>{Object(i["a"])({url:"/attrSpec.updateAttrSpec",method:"post",data:e}).then(e=>{const a=e.data;t(a)}).catch(e=>{a(e)})})}function n(e){return new Promise((t,a)=>{Object(i["a"])({url:"/attrSpec.deleteAttrSpec",method:"post",data:e}).then(e=>{const a=e.data;t(a)}).catch(e=>{a(e)})})}var p=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:e.$t("addAttrSpec.add"),visible:e.dialogVisible,width:"70%"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.handleClose}},[t("el-form",{ref:"addForm",attrs:{model:e.addAttrSpecInfo,rules:e.rules,"label-width":"120px"}},[t("el-form-item",{attrs:{label:e.$t("addAttrSpec.attrTable"),prop:"tableName"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("addAttrSpec.tableNamePlaceholder")},model:{value:e.addAttrSpecInfo.tableName,callback:function(t){e.$set(e.addAttrSpecInfo,"tableName",t)},expression:"addAttrSpecInfo.tableName"}},e._l(e.tableOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),t("el-form-item",{attrs:{label:e.$t("addAttrSpec.domain"),prop:"domain"}},[t("el-input",{attrs:{placeholder:e.$t("addAttrSpec.domainPlaceholder")},model:{value:e.addAttrSpecInfo.domain,callback:function(t){e.$set(e.addAttrSpecInfo,"domain",t)},expression:"addAttrSpecInfo.domain"}})],1),t("el-form-item",{attrs:{label:e.$t("addAttrSpec.specName"),prop:"specName"}},[t("el-input",{attrs:{placeholder:e.$t("addAttrSpec.specNamePlaceholder"),maxlength:"64","show-word-limit":""},model:{value:e.addAttrSpecInfo.specName,callback:function(t){e.$set(e.addAttrSpecInfo,"specName",t)},expression:"addAttrSpecInfo.specName"}})],1),t("el-form-item",{attrs:{label:e.$t("addAttrSpec.specCd"),prop:"specCd"}},[t("el-input",{attrs:{placeholder:e.$t("addAttrSpec.specCdPlaceholder")},model:{value:e.addAttrSpecInfo.specCd,callback:function(t){e.$set(e.addAttrSpecInfo,"specCd",t)},expression:"addAttrSpecInfo.specCd"}})],1),t("el-form-item",{attrs:{label:e.$t("addAttrSpec.description"),prop:"specHoldplace"}},[t("el-input",{attrs:{placeholder:e.$t("addAttrSpec.descriptionPlaceholder"),maxlength:"200","show-word-limit":"",type:"textarea"},model:{value:e.addAttrSpecInfo.specHoldplace,callback:function(t){e.$set(e.addAttrSpecInfo,"specHoldplace",t)},expression:"addAttrSpecInfo.specHoldplace"}})],1),t("el-form-item",{attrs:{label:e.$t("addAttrSpec.required"),prop:"required"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("addAttrSpec.requiredPlaceholder")},model:{value:e.addAttrSpecInfo.required,callback:function(t){e.$set(e.addAttrSpecInfo,"required",t)},expression:"addAttrSpecInfo.required"}},[t("el-option",{attrs:{label:"是",value:"Y"}}),t("el-option",{attrs:{label:"否",value:"N"}})],1)],1),t("el-form-item",{attrs:{label:e.$t("addAttrSpec.show"),prop:"specShow"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("addAttrSpec.showPlaceholder")},model:{value:e.addAttrSpecInfo.specShow,callback:function(t){e.$set(e.addAttrSpecInfo,"specShow",t)},expression:"addAttrSpecInfo.specShow"}},[t("el-option",{attrs:{label:"是",value:"Y"}}),t("el-option",{attrs:{label:"否",value:"N"}})],1)],1),t("el-form-item",{attrs:{label:e.$t("addAttrSpec.valueType"),prop:"specValueType"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("addAttrSpec.valueTypePlaceholder")},model:{value:e.addAttrSpecInfo.specValueType,callback:function(t){e.$set(e.addAttrSpecInfo,"specValueType",t)},expression:"addAttrSpecInfo.specValueType"}},e._l(e.valueTypeOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),t("el-form-item",{attrs:{label:e.$t("addAttrSpec.specType"),prop:"specType"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("addAttrSpec.specTypePlaceholder")},model:{value:e.addAttrSpecInfo.specType,callback:function(t){e.$set(e.addAttrSpecInfo,"specType",t)},expression:"addAttrSpecInfo.specType"}},[t("el-option",{attrs:{label:"input",value:"2233"}}),t("el-option",{attrs:{label:"select",value:"3344"}})],1)],1),t("el-form-item",{attrs:{label:e.$t("addAttrSpec.queryShow"),prop:"listShow"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("addAttrSpec.queryShowPlaceholder")},model:{value:e.addAttrSpecInfo.listShow,callback:function(t){e.$set(e.addAttrSpecInfo,"listShow",t)},expression:"addAttrSpecInfo.listShow"}},[t("el-option",{attrs:{label:"是",value:"Y"}}),t("el-option",{attrs:{label:"否",value:"N"}})],1)],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v(e._s(e.$t("common.cancel")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.saveAttrSpecInfo}},[e._v(e._s(e.$t("common.save")))])],1)],1)},d=[],u=a("7323"),S={name:"AddAttrSpec",data(){return{dialogVisible:!1,addAttrSpecInfo:{specCd:"",tableName:"",specName:"",specHoldplace:"",required:"",specShow:"",specValueType:"",specType:"",listShow:"",domain:"COMMON"},tableOptions:[{value:"building_room_attr",label:this.$t("addAttrSpec.buildingRoomAttr")},{value:"building_owner_attr",label:this.$t("addAttrSpec.buildingOwnerAttr")},{value:"building_community_attr",label:this.$t("addAttrSpec.buildingCommunityAttr")},{value:"machine_attr",label:this.$t("addAttrSpec.machineAttr")},{value:"parking_area_attr",label:this.$t("addAttrSpec.parkingAreaAttr")},{value:"owner_car_attr",label:this.$t("addAttrSpec.ownerCarAttr")}],valueTypeOptions:[{value:"1001",label:this.$t("addAttrSpec.string")},{value:"2002",label:this.$t("addAttrSpec.integer")},{value:"3003",label:this.$t("addAttrSpec.amount")}],rules:{tableName:[{required:!0,message:this.$t("addAttrSpec.tableNameRequired"),trigger:"blur"}],domain:[{required:!0,message:this.$t("addAttrSpec.domainRequired"),trigger:"blur"}],specName:[{required:!0,message:this.$t("addAttrSpec.specNameRequired"),trigger:"blur"},{max:64,message:this.$t("addAttrSpec.specNameMaxLength"),trigger:"blur"}],specCd:[{required:!0,message:this.$t("addAttrSpec.specCdRequired"),trigger:"blur"}],specHoldplace:[{required:!0,message:this.$t("addAttrSpec.descriptionRequired"),trigger:"blur"},{max:200,message:this.$t("addAttrSpec.descriptionMaxLength"),trigger:"blur"}],required:[{required:!0,message:this.$t("addAttrSpec.requiredRequired"),trigger:"change"}],specShow:[{required:!0,message:this.$t("addAttrSpec.showRequired"),trigger:"change"}],specValueType:[{required:!0,message:this.$t("addAttrSpec.valueTypeRequired"),trigger:"change"}],specType:[{required:!0,message:this.$t("addAttrSpec.specTypeRequired"),trigger:"change"}],listShow:[{required:!0,message:this.$t("addAttrSpec.queryShowRequired"),trigger:"change"}]}}},methods:{open(){this.dialogVisible=!0},handleClose(){this.$refs.addForm.resetFields(),this.addAttrSpecInfo={specCd:"",tableName:"",specName:"",specHoldplace:"",required:"",specShow:"",specValueType:"",specType:"",listShow:"",domain:"COMMON"}},saveAttrSpecInfo(){this.$refs.addForm.validate(e=>{if(e){const e={...this.addAttrSpecInfo,shopId:Object(u["f"])()};s(e).then(e=>{console.log(e),this.$message.success(this.$t("addAttrSpec.saveSuccess")),this.dialogVisible=!1,this.$emit("success")}).catch(e=>{console.error("保存失败:",e),this.$message.error(e.message||this.$t("addAttrSpec.saveFailed"))})}})}}},m=S,h=a("2877"),g=Object(h["a"])(m,p,d,!1,null,null,null),b=g.exports,f=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:e.$t("editAttrSpec.editTitle"),visible:e.dialogVisible,width:"70%"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.handleClose}},[t("el-form",{ref:"editForm",attrs:{model:e.editAttrSpecInfo,rules:e.rules,"label-width":"120px"}},[t("el-form-item",{attrs:{label:e.$t("editAttrSpec.attrTable"),prop:"tableName"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("editAttrSpec.tableNamePlaceholder")},model:{value:e.editAttrSpecInfo.tableName,callback:function(t){e.$set(e.editAttrSpecInfo,"tableName",t)},expression:"editAttrSpecInfo.tableName"}},e._l(e.tableOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),t("el-form-item",{attrs:{label:e.$t("editAttrSpec.domain"),prop:"domain"}},[t("el-input",{attrs:{placeholder:e.$t("editAttrSpec.domainPlaceholder")},model:{value:e.editAttrSpecInfo.domain,callback:function(t){e.$set(e.editAttrSpecInfo,"domain",t)},expression:"editAttrSpecInfo.domain"}})],1),t("el-form-item",{attrs:{label:e.$t("editAttrSpec.specName"),prop:"specName"}},[t("el-input",{attrs:{placeholder:e.$t("editAttrSpec.specNamePlaceholder"),maxlength:"64","show-word-limit":""},model:{value:e.editAttrSpecInfo.specName,callback:function(t){e.$set(e.editAttrSpecInfo,"specName",t)},expression:"editAttrSpecInfo.specName"}})],1),t("el-form-item",{attrs:{label:e.$t("editAttrSpec.specCd"),prop:"specCd"}},[t("el-input",{attrs:{placeholder:e.$t("editAttrSpec.specCdPlaceholder"),disabled:""},model:{value:e.editAttrSpecInfo.specCd,callback:function(t){e.$set(e.editAttrSpecInfo,"specCd",t)},expression:"editAttrSpecInfo.specCd"}})],1),t("el-form-item",{attrs:{label:e.$t("editAttrSpec.description"),prop:"specHoldplace"}},[t("el-input",{attrs:{placeholder:e.$t("editAttrSpec.descriptionPlaceholder"),maxlength:"200","show-word-limit":"",type:"textarea"},model:{value:e.editAttrSpecInfo.specHoldplace,callback:function(t){e.$set(e.editAttrSpecInfo,"specHoldplace",t)},expression:"editAttrSpecInfo.specHoldplace"}})],1),t("el-form-item",{attrs:{label:e.$t("editAttrSpec.required"),prop:"required"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("editAttrSpec.requiredPlaceholder")},model:{value:e.editAttrSpecInfo.required,callback:function(t){e.$set(e.editAttrSpecInfo,"required",t)},expression:"editAttrSpecInfo.required"}},[t("el-option",{attrs:{label:"是",value:"Y"}}),t("el-option",{attrs:{label:"否",value:"N"}})],1)],1),t("el-form-item",{attrs:{label:e.$t("editAttrSpec.show"),prop:"specShow"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("editAttrSpec.showPlaceholder")},model:{value:e.editAttrSpecInfo.specShow,callback:function(t){e.$set(e.editAttrSpecInfo,"specShow",t)},expression:"editAttrSpecInfo.specShow"}},[t("el-option",{attrs:{label:"是",value:"Y"}}),t("el-option",{attrs:{label:"否",value:"N"}})],1)],1),t("el-form-item",{attrs:{label:e.$t("editAttrSpec.valueType"),prop:"specValueType"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("editAttrSpec.valueTypePlaceholder")},model:{value:e.editAttrSpecInfo.specValueType,callback:function(t){e.$set(e.editAttrSpecInfo,"specValueType",t)},expression:"editAttrSpecInfo.specValueType"}},e._l(e.valueTypeOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),t("el-form-item",{attrs:{label:e.$t("editAttrSpec.specType"),prop:"specType"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("editAttrSpec.specTypePlaceholder")},model:{value:e.editAttrSpecInfo.specType,callback:function(t){e.$set(e.editAttrSpecInfo,"specType",t)},expression:"editAttrSpecInfo.specType"}},[t("el-option",{attrs:{label:"input",value:"2233"}}),t("el-option",{attrs:{label:"select",value:"3344"}})],1)],1),t("el-form-item",{attrs:{label:e.$t("editAttrSpec.queryShow"),prop:"listShow"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("editAttrSpec.queryShowPlaceholder")},model:{value:e.editAttrSpecInfo.listShow,callback:function(t){e.$set(e.editAttrSpecInfo,"listShow",t)},expression:"editAttrSpecInfo.listShow"}},[t("el-option",{attrs:{label:"是",value:"Y"}}),t("el-option",{attrs:{label:"否",value:"N"}})],1)],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v(e._s(e.$t("common.cancel")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.editAttrSpec}},[e._v(e._s(e.$t("common.save")))])],1)],1)},A=[],$={name:"EditAttrSpec",data(){return{dialogVisible:!1,editAttrSpecInfo:{specCd:"",specId:"",tableName:"",specName:"",specHoldplace:"",required:"",specShow:"",specValueType:"",specType:"",listShow:"",domain:""},tableOptions:[{value:"building_room_attr",label:this.$t("editAttrSpec.buildingRoomAttr")},{value:"building_owner_attr",label:this.$t("editAttrSpec.buildingOwnerAttr")},{value:"building_community_attr",label:this.$t("editAttrSpec.buildingCommunityAttr")},{value:"machine_attr",label:this.$t("editAttrSpec.machineAttr")},{value:"parking_area_attr",label:this.$t("editAttrSpec.parkingAreaAttr")},{value:"owner_car_attr",label:this.$t("editAttrSpec.ownerCarAttr")}],valueTypeOptions:[{value:"1001",label:this.$t("editAttrSpec.string")},{value:"2002",label:this.$t("editAttrSpec.integer")},{value:"3003",label:this.$t("editAttrSpec.amount")}],rules:{tableName:[{required:!0,message:this.$t("editAttrSpec.tableNameRequired"),trigger:"blur"}],domain:[{required:!0,message:this.$t("editAttrSpec.domainRequired"),trigger:"blur"}],specName:[{required:!0,message:this.$t("editAttrSpec.specNameRequired"),trigger:"blur"},{max:64,message:this.$t("editAttrSpec.specNameMaxLength"),trigger:"blur"}],specCd:[{required:!0,message:this.$t("editAttrSpec.specCdRequired"),trigger:"blur"}],specHoldplace:[{required:!0,message:this.$t("editAttrSpec.descriptionRequired"),trigger:"blur"},{max:200,message:this.$t("editAttrSpec.descriptionMaxLength"),trigger:"blur"}],required:[{required:!0,message:this.$t("editAttrSpec.requiredRequired"),trigger:"change"}],specShow:[{required:!0,message:this.$t("editAttrSpec.showRequired"),trigger:"change"}],specValueType:[{required:!0,message:this.$t("editAttrSpec.valueTypeRequired"),trigger:"change"}],specType:[{required:!0,message:this.$t("editAttrSpec.specTypeRequired"),trigger:"change"}],listShow:[{required:!0,message:this.$t("editAttrSpec.queryShowRequired"),trigger:"change"}]}}},methods:{open(e){this.editAttrSpecInfo={...e},this.dialogVisible=!0},handleClose(){this.$refs.editForm.resetFields(),this.editAttrSpecInfo={specCd:"",specId:"",tableName:"",specName:"",specHoldplace:"",required:"",specShow:"",specValueType:"",specType:"",listShow:"",domain:""}},editAttrSpec(){this.$refs.editForm.validate(e=>{if(e){const e={...this.editAttrSpecInfo,shopId:Object(u["f"])()};o(e).then(e=>{this.$message.success(this.$t("editAttrSpec.saveSuccess")),this.dialogVisible=!1,this.$emit("success")}).catch(e=>{console.error("更新失败:",e),this.$message.error(e.message||this.$t("editAttrSpec.saveFailed"))})}})}}},v=$,_=Object(h["a"])(v,f,A,!1,null,null,null),y=_.exports,w=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:e.$t("deleteAttrSpec.confirmTitle"),visible:e.dialogVisible,width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.handleClose}},[t("div",{staticStyle:{"text-align":"center"}},[t("p",[e._v(e._s(e.$t("deleteAttrSpec.confirmContent")))])]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v(e._s(e.$t("deleteAttrSpec.cancel")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.deleteAttrSpec}},[e._v(e._s(e.$t("deleteAttrSpec.confirm")))])],1)])},I=[],M={name:"DeleteAttrSpec",data(){return{dialogVisible:!1,deleteAttrSpecInfo:{}}},methods:{open(e){this.deleteAttrSpecInfo={...e},this.dialogVisible=!0},handleClose(){this.deleteAttrSpecInfo={}},deleteAttrSpec(){n(this.deleteAttrSpecInfo).then(e=>{console.log(e),this.$message.success(this.$t("deleteAttrSpec.deleteSuccess")),this.dialogVisible=!1,this.$emit("success")}).catch(e=>{console.error("删除失败:",e),this.$message.error(e.message||this.$t("deleteAttrSpec.deleteFailed"))})}}},q=M,N=Object(h["a"])(q,w,I,!1,null,null,null),C=N.exports,k={name:"AttrSpecManage",components:{AddAttrSpec:b,EditAttrSpec:y,DeleteAttrSpec:C},data(){return{attrSpecManageInfo:{attrSpecs:[],total:0,records:1,moreCondition:!1,conditions:{page:1,row:10,specName:"",tableName:"",specCd:"",domain:""}},tableOptions:[{value:"building_room_attr",label:this.$t("attrSpecManage.buildingRoomAttr")},{value:"building_owner_attr",label:this.$t("attrSpecManage.buildingOwnerAttr")},{value:"building_community_attr",label:this.$t("attrSpecManage.buildingCommunityAttr")},{value:"machine_attr",label:this.$t("attrSpecManage.machineAttr")},{value:"parking_area_attr",label:this.$t("attrSpecManage.parkingAreaAttr")},{value:"owner_car_attr",label:this.$t("attrSpecManage.ownerCarAttr")}]}},created(){this._listAttrSpecs(1,10)},methods:{queryAttrSpec(){this._listAttrSpecs(1,10)},_listAttrSpecs(e,t){this.attrSpecManageInfo.conditions.page=e,this.attrSpecManageInfo.conditions.row=t;const a={...this.attrSpecManageInfo.conditions,shopId:Object(u["f"])()};c(a).then(e=>{this.attrSpecManageInfo.total=e.total,this.attrSpecManageInfo.records=e.records,this.attrSpecManageInfo.attrSpecs=e.data}).catch(e=>{console.error("请求失败:",e)})},_openAddAttrSpecModal(){this.$refs.addAttrSpec.open()},_openEditAttrSpecModel(e){this.$refs.editAttrSpec.open(e)},_openDeleteAttrSpecModel(e){this.$refs.deleteAttrSpec.open(e)},_queryAttrSpecMethod(){this._listAttrSpecs(1,10)},_resetAttrSpecMethod(){this.attrSpecManageInfo.conditions={page:1,row:10,specName:"",tableName:"",specCd:"",domain:""},this._listAttrSpecs(1,10)},_moreCondition(){this.attrSpecManageInfo.moreCondition=!this.attrSpecManageInfo.moreCondition},_getSpecValueTypeName(e){const t={1001:this.$t("attrSpecManage.string"),2002:this.$t("attrSpecManage.integer"),3003:this.$t("attrSpecManage.amount"),4004:this.$t("attrSpecManage.date"),5005:this.$t("attrSpecManage.time")};return t[e]||this.$t("attrSpecManage.unknown")},_getSpecTypeName(e){const t={2233:"input",3344:"select",4455:this.$t("attrSpecManage.date")};return t[e]||this.$t("attrSpecManage.unknown")},getTableName(e){const t={building_room_attr:this.$t("attrSpecManage.buildingRoomAttr"),building_owner_attr:this.$t("attrSpecManage.buildingOwnerAttr"),building_community_attr:this.$t("attrSpecManage.buildingCommunityAttr"),machine_attr:this.$t("attrSpecManage.machineAttr"),parking_area_attr:this.$t("attrSpecManage.parkingAreaAttr"),owner_car_attr:this.$t("attrSpecManage.ownerCarAttr")};return t[e]||this.$t("attrSpecManage.unknown")},_openAttrSpecValue(e){this.$router.push({path:"/pages/dev/attrValueManage",query:{specId:e.specId,specName:e.specName,domain:e.domain}})},handleCurrentChange(e){this._listAttrSpecs(e,this.attrSpecManageInfo.conditions.row)}}},T=k,x=(a("0e152"),Object(h["a"])(T,r,l,!1,null,"4559fd4a",null));t["default"]=x.exports}}]); //# sourceMappingURL=chunk-364b2012.cc9ca8d5.js.map