rcgy_xmf_qrcode/js/chunk-2d0e9b65.7244605c.js.map

1 line
35 KiB

{"version":3,"sources":["webpack:///./src/views/basic/page/vehicleFile.vue","webpack:///src/views/basic/page/vehicleFile.vue","webpack:///./src/views/basic/page/vehicleFile.vue?59dd","webpack:///./src/views/basic/page/vehicleFile.vue?dd56"],"names":["render","_vm","this","_c","_self","staticClass","_m","attrs","on","$event","add","_v","ref","config","tableCheck","slot","revises","table_row","del","drawerTitle","drawer_vrisible","drawerClose","staticStyle","addEidtForm","addRuleSuccess","scopedSlots","_u","key","fn","model","value","buildValue","callback","$$v","expression","_l","buildOptions","item","label","unitValue","unitOptions","buildingUnitEstateId","hoursOptions","proxy","remoteMethod","loading","change","sefocus","ruleForm","parkingSpaceId","$set","parkOptions","id","code","onSubmit","staticRenderFns","data","userName","owner","tel","idType","idNumber","status","cpmParkingSpaceList","type","brand","color","hours","form_item","placeholder","width","prop","slotName","options","rules","required","message","trigger","search_item","thead","url","pageNum","size","mounted","cpmBuildingUnitFindAll","findUserCarStatus","console","computed","sHours","methods","getUserList","uri","resData","userCarFindById","handleClose","getData","arr","confirmButtonText","cancelButtonText","confirmButtonClass","cancelButtonClass","then","catch","action","unitData","findByBuildingId","hoursData","findByBuildingUnitId","watch","handler","deep","hoursValue","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACJ,EAAIK,GAAG,GAAGH,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,YAAY,CAACE,YAAY,cAAcE,MAAM,CAAC,KAAO,gBAAgBC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOR,EAAIS,SAAS,CAACT,EAAIU,GAAG,WAAW,GAAGR,EAAG,WAAW,CAACS,IAAI,QAAQL,MAAM,CAAC,OAASN,EAAIY,QAAQL,GAAG,CA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,WACAR,UAGAwC,YACAC,aAEA,CACAP,aACA1B,aACA+B,kBACAC,YACAC,cAEA,CACAP,aACA1B,aACA+B,kBACAC,YACAC,cAEA,CACAP,cACA1B,aACA+B,kBACAI,UACAnC,UACAR,SAEA,CACAQ,UACAR,SAEA,CACAQ,UACAR,SAEA,CACAQ,UACAR,SAEA,CACAQ,UACAR,SAEA,CACAQ,UACAR,SAEA,CACAQ,UACAR,SAEA,CACAQ,UACAR,SAEA,CACAQ,UACAR,SAEA,CACAQ,UACAR,UAEA,CACAQ,UACAR,UAEA,CACAQ,WACAR,UAEA,CACAQ,WACAR,WAGAwC,YACAC,eAGAG,OACArB,OACAsB,YACAC,iBACAC,iBAEA5B,iBACA0B,YACAC,iBACAC,iBAEAnB,QACAiB,YACAC,iBACAC,iBAEAlB,MACAgB,YACAC,iBACAC,iBAEAjB,SACAe,YACAC,kBACAC,iBAEAhB,WACAc,YACAC,iBACAC,iBAEAf,SACAa,YACAC,gBACAC,iBAEAV,QACAQ,YACAC,kBACAC,mBAIAhE,QAEAiE,cACAd,aACA1B,cACA+B,uBACAE,YAEA,CACAP,aACA1B,YACA+B,qBACAE,aAEA,CACAP,aACA1B,YACA+B,qBACAE,0BAGAQ,QACAzC,WACA0B,aACAM,YAEA,CACAhC,YACAiC,YACAD,cAEA,CACAhC,WACAiC,aACAD,cAEA,CACAhC,YACAiC,WACAD,cAEA,CACAhC,WACAiC,cACAD,aACAN,gBACAhC,cACA,iBACA,OACA,aAEA,OACA,WAEA,OACA,WAEA,OACA,cAMA,CACAM,aACAiC,wBACAD,cAEA,CACAhC,YACAiC,wBACAD,cAEA,CACAhC,aACAiC,gBACAD,cAEA,CACAhC,aACAiC,cACAD,aACAN,gBACAhC,cACA,iBACA,OACA,YAEA,OACA,gBAMA,CACAM,aACAiC,gBACAD,cAEA,CACAhC,aACAiC,YACAD,aACAN,gBACAhC,iBACA,eACA,OACA,YAEA,OACA,WAEA,OACA,WAEA,OACA,aAEA,OACA,WAEA,QACA,SAIA,CACAM,aACAiC,aACAD,cAEA,CACAhC,aACAiC,aACAD,cAEA,CACAhC,aACAiC,aACAD,aACAN,gBACAhC,iBACA,gBACA,OACA,UAEA,OACA,UAEA,OACA,UAEA,OACA,UAEA,OACA,UAEA,OACA,UAEA,OACA,UAEA,OACA,UAEA,OACA,UAEA,QACA,UAEA,QACA,UAEA,QACA,WAEA,QACA,WAEA,QACA,UAMAgD,kBACAxB,MACAyB,UACAC,UAGAT,WACAhC,4BAGA0C,UAEAC,0BACA,sBAEAC,0BACAC,eACA,iBACAhD,iBACAR,qBAEAwD,eACA,2CAGAC,UACAC,SACA,OAAAzD,2BAAAQ,yBAAAE,kDAGAgD,SACAC,eACA,OACAT,UACAC,SAGA,gBACAnB,2BACAuB,eACA,6BACA,mBAGA1C,gBACA,qBAEAG,UACA,oBAEAD,UACAwC,gBAGAhC,WACAgC,iCACAA,oBACA,mCAEA9D,kBACA,OACA4B,MACAX,+CACAY,oCACAJ,wDACAe,OACAN,sCACAC,kCACAC,wCACAC,4CACAC,wCACAE,oCACAC,sCACApC,sCAEAqC,uCAEA,OACA,6BACA,kEAEA,YADA,6BAIAyB,cAEAC,kCACAD,SAEAA,cACA,WACA,eACAf,kBACAZ,iBAEA,mBACA,gCAKA3C,cACA,wBACA,6BACA,qBACA,oBACA,gCAEAL,WAEA,GADAsE,mBACA,SAOA,YADA,kCALA,cAEA,YADA,gCAOA,gDACA,OACAlC,YAEAyC,2BACAP,eACA,qCACA,sCACA,0DACA,wCACA,oCACA,0CACA,8CACA,6CAEA,sCACA,wCACA,wCACA,wCAEA,6BAEA,gCAEA,oDAMA5E,MACA,wBACA,yBAGAoF,cACA,yBAEAhF,cACAwE,eACA,kBAEAS,UAEA,6BAGA7E,OACA,aACA,SACA,wCACA8E,6BAEA,oCACAC,uBACAC,sBACAC,mCACAC,mCAEAC,KAAA,KACA,kCAEAC,MAAAC,YAEA,mCAIAC,YACA,OACApD,MAEAqD,2BAEA,sBAGAC,aACA,OACAtD,MAEAuD,2BACArB,eACA,wBAIAsB,OACA7E,YACA8E,WACA,kBAEAC,SAEAvE,WACAsE,WACA,mBAEAC,SAEAtB,QACAqB,WACA,uBACA,kCAEA,mCAIAC,SAEAC,YACAF,WACA,8BACAvB,0CAEAwB,WCzwBmX,I,YCO/WE,EAAY,eACd,EACAhH,EACAuD,GACA,EACA,KACA,WACA,MAIa,aAAAyD,E","file":"js/chunk-2d0e9b65.7244605c.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"main-content\"},[_vm._m(0),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"content-btn\"},[_c('el-button',{staticClass:\"init-button\",attrs:{\"icon\":\"el-icon-plus\"},on:{\"click\":function($event){return _vm.add()}}},[_vm._v(\"新增车辆\")])],1),_c('VueTable',{ref:\"table\",attrs:{\"config\":_vm.config},on:{\"tableCheck\":_vm.tableCheck}},[_c('template',{slot:\"footer\"},[_c('div',{staticClass:\"table-footer\"},[_c('button',{on:{\"click\":function($event){return _vm.revises(_vm.table_row)}}},[_vm._v(\"修改\")]),_c('button',{on:{\"click\":function($event){return _vm.del(_vm.table_row)}}},[_vm._v(\"删除\")])])])],2)],1),_c('Drawer',{attrs:{\"drawerTitle\":_vm.drawerTitle,\"drawerVrisible\":_vm.drawer_vrisible},on:{\"drawerClose\":_vm.drawerClose}},[_c('div',{staticStyle:{\"padding\":\"30px\"}},[_c('FromCard',[_c('template',{slot:\"title\"},[_vm._v(\"基本信息\")]),[_c('VueForm',{ref:\"childFrom\",attrs:{\"formObj\":_vm.addEidtForm},on:{\"ruleSuccess\":_vm.addRuleSuccess},scopedSlots:_vm._u([{key:\"hours\",fn:function(){return [_c('el-select',{staticStyle:{\"width\":\"30%\",\"margin-right\":\"16px\"},attrs:{\"filterable\":\"\",\"placeholder\":\"幢\"},model:{value:(_vm.buildValue),callback:function ($$v) {_vm.buildValue=$$v},expression:\"buildValue\"}},_vm._l((_vm.buildOptions),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1),_c('el-select',{staticStyle:{\"width\":\"30%\",\"margin-right\":\"16px\"},attrs:{\"filterable\":\"\",\"placeholder\":\"单元\"},model:{value:(_vm.unitValue),callback:function ($$v) {_vm.unitValue=$$v},expression:\"unitValue\"}},_vm._l((_vm.unitOptions),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1),_c('el-select',{staticStyle:{\"width\":\"30%\"},attrs:{\"filterable\":\"\",\"placeholder\":\"房间号\"},model:{value:(_vm.buildingUnitEstateId),callback:function ($$v) {_vm.buildingUnitEstateId=$$v},expression:\"buildingUnitEstateId\"}},_vm._l((_vm.hoursOptions),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)]},proxy:true},{key:\"cpmParkingSpaceList\",fn:function(){return [_c('el-select',{staticStyle:{\"width\":\"240px\"},attrs:{\"remote-method\":_vm.remoteMethod,\"loading\":_vm.loading,\"remote\":\"\",\"filterable\":\"\",\"placeholder\":\"请选择\"},on:{\"change\":_vm.change,\"focus\":_vm.sefocus},model:{value:(_vm.addEidtForm.ruleForm.parkingSpaceId),callback:function ($$v) {_vm.$set(_vm.addEidtForm.ruleForm, \"parkingSpaceId\", $$v)},expression:\"addEidtForm.ruleForm.parkingSpaceId\"}},_vm._l((_vm.parkOptions),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.code,\"value\":item.id}})}),1)]},proxy:true}])})]],2)],1),_c('div',{attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('button',{staticClass:\"btn-orange\",on:{\"click\":function($event){return _vm.onSubmit()}}},[_c('span',[_c('i',{staticClass:\"el-icon-circle-check\"}),_vm._v(\"提交\")])]),_c('button',{staticClass:\"btn-gray\",on:{\"click\":_vm.drawerClose}},[_c('span',[_vm._v(\"取消\")])])])])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"main-titel\"},[_c('span',[_vm._v(\"车辆档案\")])])\n}]\n\nexport { render, staticRenderFns }","<template>\n <div class=\"main-content\">\n <div class=\"main-titel\">\n <span>车辆档案</span>\n </div>\n <div class=\"content\">\n <div class=\"content-btn\">\n <el-button class=\"init-button\" @click=\"add()\" icon=\"el-icon-plus\">新增车辆</el-button>\n <!-- <el-button type=\"init-button2\"\n icon=\"el-icon-folder-add\"\n plain>批量导入</el-button>\n <el-button class=\"init-text\"\n type=\"text\">模板下载</el-button> -->\n </div>\n <VueTable ref=\"table\" :config=\"config\" @tableCheck=\"tableCheck\">\n <template slot=\"footer\">\n <div class=\"table-footer\">\n <button @click=\"revises(table_row)\">修改</button>\n <button @click=\"del(table_row)\">删除</button>\n\n </div>\n </template>\n </VueTable>\n </div>\n <Drawer :drawerTitle=\"drawerTitle\" @drawerClose=\"drawerClose\" :drawerVrisible=\"drawer_vrisible\">\n <div style=\"padding: 30px\">\n <FromCard>\n <template slot=\"title\">基本信息</template>\n <template>\n <VueForm ref=\"childFrom\" @ruleSuccess=\"addRuleSuccess\" :formObj=\"addEidtForm\">\n <template #hours>\n <el-select v-model=\"buildValue\" filterable style=\"width: 30%; margin-right: 16px\" placeholder=\"幢\">\n <el-option v-for=\"item in buildOptions\" :key=\"item.value\" :label=\"item.label\" :value=\"item.value\">\n </el-option>\n </el-select>\n <el-select v-model=\"unitValue\" filterable style=\"width: 30%; margin-right: 16px\" placeholder=\"单元\">\n <el-option v-for=\"item in unitOptions\" :key=\"item.value\" :label=\"item.label\" :value=\"item.value\">\n </el-option>\n </el-select>\n <el-select v-model=\"buildingUnitEstateId\" filterable style=\"width: 30%\" placeholder=\"房间号\">\n <el-option v-for=\"item in hoursOptions\" :key=\"item.value\" :label=\"item.label\" :value=\"item.value\">\n </el-option>\n </el-select>\n </template>\n <!-- chewei -->\n <template v-slot:cpmParkingSpaceList>\n <el-select v-model=\"addEidtForm.ruleForm.parkingSpaceId\" :remote-method=\"remoteMethod\" @change=\"change\"\n @focus=\"sefocus\" :loading=\"loading\" remote style=\"width: 240px\" filterable placeholder=\"请选择\">\n <el-option v-for=\"item in parkOptions\" :key=\"item.id\" :label=\"item.code\" :value=\"item.id\">\n </el-option>\n </el-select>\n </template>\n </VueForm>\n </template>\n </FromCard>\n </div>\n <div slot=\"footer\">\n <button class=\"btn-orange\" @click=\"onSubmit()\">\n <span> <i class=\"el-icon-circle-check\"></i>提交</span>\n </button>\n <button class=\"btn-gray\" @click=\"drawerClose\">\n <span>取消</span>\n </button>\n </div>\n </Drawer>\n </div>\n</template>\n\n<script>\n import {\n userCarFindById,\n cpmBuildingUnitFindAll,\n findByBuildingUnitId,\n findByBuildingId,\n findUserCarStatus,\n userCarInsert,\n userCarUpdate,\n cpmParkingSpaceList\n } from '@/api/basic'\n\n export default {\n data() {\n return {\n // 楼栋\n buildValue: null,\n buildOptions: [],\n // 单元\n unitValue: null,\n unitOptions: [],\n // 房屋\n hoursOptions: [],\n parkOptions: [],\n loading: false,\n // 业主\n userName: '',\n // 抽屉标题\n drawerTitle: '',\n // 是否通过校验\n // 抽屉显示隐藏\n drawer_vrisible: false,\n table_row: [],\n addEidtForm: {\n ruleForm: {\n id: null,\n code: null,\n parkingSpaceId: null,\n owner: null,\n tel: null,\n idType: null,\n idNumber: null,\n status: null,\n cpmParkingSpaceList: null,\n type: null,\n brand: null,\n model: null,\n color: null,\n hours: null,\n },\n form_item: [{\n type: 'Input',\n label: '车牌号',\n placeholder: '请输入车牌号',\n width: '50%',\n prop: 'code'\n },\n {\n type: 'Slot',\n label: '车位号',\n placeholder: '请输入车位号',\n width: '50%',\n prop: 'parkingSpaceId',\n slotName: 'cpmParkingSpaceList'\n },\n {\n type: 'Input',\n label: '所属人',\n placeholder: '请输入',\n width: '50%',\n prop: 'owner'\n },\n {\n type: 'Input',\n label: '手机号',\n placeholder: '请输入',\n width: '50%',\n prop: 'tel'\n },\n {\n type: 'Select',\n label: '证件类型',\n placeholder: '请输入',\n options: [{\n value: 1,\n label: '身份证'\n },\n {\n value: 2,\n label: '营业执照'\n }\n ],\n width: '50%',\n prop: 'idType'\n },\n {\n type: 'Input',\n label: '证件号码\t',\n placeholder: '请输入',\n width: '50%',\n prop: 'idNumber'\n },\n {\n type: 'Select',\n label: '状态',\n placeholder: '请输入',\n options: [],\n options: [\n {\n value: 1,\n label: '产权车位'\n },\n {\n value: 2,\n label: '包年'\n },\n {\n value: 3,\n label: '包月'\n },\n {\n value: 4,\n label: '临时'\n }\n ],\n width: '50%',\n prop: 'status'\n },\n {\n type: 'Slot',\n label: '房屋信息',\n placeholder: '请输入',\n width: '70%',\n slotName: 'hours',\n prop: 'hours',\n \n },\n {\n type: 'Select',\n label: '车辆类型',\n placeholder: '请输入',\n options: [{\n label: '私家车',\n value: 1\n },\n {\n label: '货车',\n value: 2\n },\n {\n label: '大巴',\n value: 3\n },\n {\n label: '牵引汽车',\n value: 4\n },\n {\n label: '其他',\n value: 5\n },\n ],\n width: '50%',\n prop: 'type'\n },\n {\n type: 'Input',\n label: '车辆品牌',\n placeholder: '请输入',\n width: '50%',\n prop: 'brand'\n },\n {\n type: 'Input',\n label: '车辆型号',\n placeholder: '请输入',\n width: '50%',\n prop: 'model'\n },\n {\n type: 'Select',\n label: '车辆颜色',\n placeholder: '请输入',\n options: [{\n label: '红',\n value: 1\n },\n {\n label: '橙',\n value: 2\n },\n {\n label: '黄',\n value: 3\n },\n {\n label: '绿',\n value: 4\n },\n {\n label: '青',\n value: 5\n },\n {\n label: '蓝',\n value: 6\n },\n {\n label: '紫',\n value: 7\n },\n {\n label: '黑',\n value: 8\n },\n {\n label: '白',\n value: 9\n },\n {\n label: '灰',\n value: 10\n },\n {\n label: '金',\n value: 11\n },\n {\n label: '磨砂',\n value: 12\n },\n {\n label: '其他',\n value: 13\n },\n ],\n width: '50%',\n prop: 'color'\n },\n ],\n rules: {\n code: [{\n required: true,\n message: '请输入车牌号',\n trigger: 'blur'\n }],\n parkingSpaceId: [{\n required: true,\n message: '请输入车位号',\n trigger: 'blur'\n }],\n owner: [{\n required: true,\n message: '请输入所属人',\n trigger: 'blur'\n }],\n tel: [{\n required: true,\n message: '请输入手机号',\n trigger: 'blur'\n }],\n idType: [{\n required: true,\n message: '请选择证件类型',\n trigger: 'blur'\n }],\n idNumber: [{\n required: true,\n message: '请输入证件号',\n trigger: 'blur'\n }],\n status: [{\n required: true,\n message: '请选择状态',\n trigger: 'blur'\n }],\n hours: [{\n required: true,\n message: '请填写房屋信息',\n trigger: 'blur'\n }]\n }\n },\n config: {\n // 搜索\n search_item: [{\n type: 'Input',\n label: '所属手机号',\n placeholder: '请输入所属手机号',\n prop: 'tel'\n },\n {\n type: 'Input',\n label: '车牌号',\n placeholder: '请输入车牌号',\n prop: 'code'\n },\n {\n type: 'Input',\n label: '车位号',\n placeholder: '请输入车位号',\n prop: 'parkingSpaceCode'\n }\n ],\n thead: [{\n label: '序号',\n type: 'index',\n width: '80'\n },\n {\n label: '车牌号',\n prop: 'code',\n width: 'auto'\n },\n {\n label: '姓名',\n prop: 'owner',\n width: 'auto'\n },\n {\n label: '手机号',\n prop: 'tel',\n width: 'auto'\n },\n {\n label: '状态',\n prop: 'status',\n width: 'auto',\n type: 'function',\n callback(row, prop) {\n switch (row.status) {\n case 1:\n return '产权车位'\n break;\n case 2:\n return '包年'\n break;\n case 3:\n return '包月'\n break;\n case 4:\n return '临时'\n break;\n\n }\n }\n },\n {\n label: '截止时间',\n prop: 'effectiveTimeEnd',\n width: 'auto'\n },\n {\n label: '车位号',\n prop: 'parkingSpaceCode',\n width: 'auto'\n },\n {\n label: '房屋信息',\n prop: 'roomName',\n width: 'auto'\n },\n {\n label: '证件类型',\n prop: 'idType',\n width: 'auto',\n type: 'function',\n callback(row, prop) {\n switch (row.status) {\n case 1:\n return '身份证'\n break;\n case 2:\n return '营业执照'\n break;\n\n }\n }\n },\n {\n label: '证件号码',\n prop: 'idNumber',\n width: 'auto'\n },\n {\n label: '车辆类型',\n prop: 'type',\n width: 'auto',\n type: 'function',\n callback: (row, prop) => {\n switch (row.type) {\n case 1:\n return '私家车'\n break;\n case 2:\n return '货车'\n break;\n case 3:\n return '大巴'\n break;\n case 4:\n return '牵引汽车'\n break;\n case 5:\n return '其他'\n break;\n default:\n break;\n }\n }\n },\n {\n label: '车辆品牌',\n prop: 'brand',\n width: 'auto'\n },\n {\n label: '车辆型号',\n prop: 'model',\n width: 'auto'\n },\n {\n label: '车辆颜色',\n prop: 'color',\n width: 'auto',\n type: 'function',\n callback: (row, prop) => {\n switch (row.color) {\n case 1:\n return '红'\n break;\n case 2:\n return '橙'\n break;\n case 3:\n return '黄'\n break;\n case 4:\n return '绿'\n break;\n case 5:\n return '青'\n break;\n case 6:\n return '蓝'\n break;\n case 7:\n return '紫'\n break;\n case 8:\n return '黑'\n break;\n case 9:\n return '白'\n break;\n case 10:\n return '灰'\n break;\n case 11:\n return '金'\n break;\n case 12:\n return '磨砂'\n break;\n case 13:\n return '其他'\n break;\n default:\n break;\n }\n }\n },\n\n ],\n url: 'vehicleList',\n data: {\n pageNum: 1,\n size: 10\n }\n },\n options: [],\n buildingUnitEstateId: null\n }\n },\n mounted() {\n // 弹窗内下拉框\n cpmBuildingUnitFindAll().then((res) => {\n this.buildOptions = res\n })\n findUserCarStatus().then((res) => {\n console.log(res)\n let arr = res.map((item) => ({\n label: item.showName,\n value: item.showValue\n }))\n console.log(arr)\n this.addEidtForm.form_item[6].options = arr\n })\n },\n computed: {\n sHours() {\n return {buildValue: this.buildValue, unitValue: this.unitValue, buildingUnitEstateId: this.buildingUnitEstateId}\n }\n },\n methods: {\n getUserList(val) {\n let reeData = {\n pageNum: 1,\n size: 20\n }\n\n this.loading = true\n cpmParkingSpaceList(reeData).then((res) => {\n console.log(res)\n this.parkOptions = res.tableList\n this.loading = false\n })\n },\n remoteMethod(val) {\n this.getUserList(val)\n },\n sefocus() {\n this.getUserList()\n },\n change(value) {\n console.log(value)\n },\n\n onSubmit() {\n console.log(\"-----------------\")\n console.log(\"增加车辆\")\n this.$refs.childFrom.submitForm()\n },\n addRuleSuccess(val) {\n let resData = {\n id: '',\n buildingUnitEstateId: this.buildingUnitEstateId,\n code: this.addEidtForm.ruleForm.code,\n parkingSpaceId: this.addEidtForm.ruleForm.parkingSpaceId,\n type: 1,\n owner: this.addEidtForm.ruleForm.owner,\n tel: this.addEidtForm.ruleForm.tel,\n idType: this.addEidtForm.ruleForm.idType,\n idNumber: this.addEidtForm.ruleForm.idNumber,\n status: this.addEidtForm.ruleForm.status,\n type: this.addEidtForm.ruleForm.type,\n brand: this.addEidtForm.ruleForm.brand,\n model: this.addEidtForm.ruleForm.model,\n // color: this.addEidtForm.ruleForm.status,\n color: this.addEidtForm.ruleForm.color,\n }\n let uri = null;\n if (this.drawerTitle == '新增车辆') {\n if(this.buildingUnitEstateId==null||this.buildingUnitEstateId==''){\n this.$message.error('请选择房产')\n return\n }\n\n uri = userCarInsert;\n } else {\n resData.id = this.addEidtForm.ruleForm.id;\n uri = userCarUpdate;\n }\n uri(resData).then(res => {\n if (res.status) {\n this.$message({\n message: res.message,\n type: 'success'\n })\n this.drawerClose()\n this.$refs.table.loadData()\n }\n })\n },\n // 弹窗关闭\n drawerClose() {\n this.drawer_vrisible = false\n this.$refs.childFrom.reset()\n this.buildValue = null\n this.unitValue = null\n this.buildingUnitEstateId = null\n },\n revises(data) {\n console.log(data[0])\n if (data.length) {\n if (data.length > 1) {\n this.$message.error('只能单条数据修改')\n return\n }\n } else {\n this.$message.error('请选中需要修改的数据')\n return\n };\n (this.drawerTitle = '修改车辆'), (this.drawer_vrisible = true)\n let resData = {\n id: data[0].id\n }\n userCarFindById(resData).then((res) => {\n console.log(resData)\n this.addEidtForm.ruleForm.id = data[0].id\n this.addEidtForm.ruleForm.code = res.code\n this.addEidtForm.ruleForm.parkingSpaceId = res.parkingSpaceId\n this.addEidtForm.ruleForm.owner = res.owner\n this.addEidtForm.ruleForm.tel = res.tel\n this.addEidtForm.ruleForm.idType = res.idType\n this.addEidtForm.ruleForm.idNumber = res.idNumber\n this.addEidtForm.ruleForm.status = res.carStatus\n // this.addEidtForm.ruleForm.cpmParkingSpaceList= res.cpmParkingSpaceList\n this.addEidtForm.ruleForm.type = res.type\n this.addEidtForm.ruleForm.brand = res.brand\n this.addEidtForm.ruleForm.model = res.model\n this.addEidtForm.ruleForm.color = res.color\n\n this.buildValue = res.buildingId\n \n this.unitValue = res.buildingUnitId\n \n this.buildingUnitEstateId = res.buildingUnitEstateId\n \n // console.log(res);\n // console.log(this);\n })\n },\n add() {\n ((this.drawerTitle = '新增车辆')),\n (this.drawer_vrisible = true)\n \n },\n handleClose() {\n this.drawer_vrisible = false\n },\n tableCheck(arr) {\n console.log(arr)\n this.table_row = arr\n },\n getData() {\n // 调用子组件的方法\n this.$refs.table.loadData()\n },\n // 删除\n del(data) {\n if (data.length) {\n let arr = []\n for (let i = 0; i < this.table_row.length; i++) {\n arr.push(this.table_row[i].id)\n }\n this.$confirm('是否确认删除?删除不可恢复', '删除', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n confirmButtonClass: 'confirmButton',\n cancelButtonClass: 'cancelButton'\n })\n .then(() => {\n this.$refs.table.tableDelete(arr)\n })\n .catch((action) => {})\n } else {\n this.$message.error('请选中需要删除的数据')\n }\n },\n // 单元楼栋\n unitData(value) {\n let resData = {\n id: value\n }\n findByBuildingId(resData).then((res) => {\n // 给单元号赋值\n this.unitOptions = res\n })\n },\n hoursData(value) {\n let resData = {\n id: value\n }\n findByBuildingUnitId(resData).then((res) => {\n console.log(res)\n this.hoursOptions = res\n })\n }\n },\n watch: {\n buildValue: {\n handler(newValue) {\n this.unitData(newValue)\n },\n deep: true\n },\n unitValue: {\n handler(newValue) {\n this.hoursData(newValue)\n },\n deep: true\n },\n sHours: {\n handler(newVal) {\n if(newVal.buildingUnitEstateId) {\n this.addEidtForm.ruleForm.hours = 1\n } else {\n this.addEidtForm.ruleForm.hours = 0\n }\n \n },\n deep: true\n },\n hoursValue: {\n handler(newValue) {\n this.addForm.ruleForm.hours = newValue\n console.log(this.addForm.ruleForm.hours)\n },\n deep: true\n },\n },\n }\n\n</script>\n<style scoped lang='scss'>\n</style>\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./vehicleFile.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./vehicleFile.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./vehicleFile.vue?vue&type=template&id=78117f74&scoped=true&\"\nimport script from \"./vehicleFile.vue?vue&type=script&lang=js&\"\nexport * from \"./vehicleFile.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"78117f74\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}