{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\duty\\components\\VechicleManageDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\duty\\components\\VechicleManageDialog.vue","mtime":1688615807641},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport VehicleManage from '@/api/manager/duty/vehicleManage.js';\nimport dictContracts from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'VehicleManageDiglog',\n components: {},\n props: {},\n data: function data() {\n return {\n title: '新增',\n showFormDia: false,\n fuelTypes: [],\n vehicleTypes: [],\n params: {\n code: '',\n name: '',\n memo: '',\n id: null,\n purchaseDate: '',\n fuelType: '',\n description: '',\n color: '',\n brand: '',\n vehicleType: '',\n pkVal: '',\n sn: 0,\n version: 0\n },\n rules: {\n code: [{\n required: true,\n message: '请输入车牌号码',\n trigger: 'blur'\n }],\n name: [{\n required: true,\n message: '请输入标识名称',\n trigger: 'blur'\n }],\n purchaseDate: [{\n required: true,\n message: '请选择购买日期',\n trigger: 'blur'\n }]\n }\n };\n },\n created: function created() {\n console.log('----------created-----------');\n this.fuelTypes = dictContracts.getDictItemsFromCache('cmgt_rylx');\n this.vehicleTypes = dictContracts.getDictItemsFromCache('cmgt_cllx');\n },\n methods: {\n add: function add() {\n this.showFormDia = true;\n },\n handleClose: function handleClose() {\n this.params = {\n code: '',\n name: '',\n memo: '',\n purchaseDate: '',\n fuelType: '',\n description: '',\n color: '',\n brand: '',\n vehicleType: ''\n };\n this.title = '新增';\n this.showFormDia = false;\n },\n handleSave: function handleSave() {\n var _this = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n var method;\n\n if (!_this.params.id) {\n // 新增\n method = VehicleManage.addVehicle;\n }\n\n if (_this.params.id) {\n // 修改\n method = VehicleManage.editVehicle;\n }\n\n method(_this.params, function (res) {\n if (res.state) {\n _this.$notify({\n type: 'success',\n message: _this.title + '成功',\n duration: 2000\n }); // this.$emit('loadData')\n\n\n _this.$parent.loadData();\n\n _this.handleClose();\n } else {\n _this.$message.warning(response.message);\n }\n });\n }\n });\n },\n Update: function Update(row) {\n console.log(row);\n this.title = '修改';\n this.showFormDia = true;\n this.params.memo = row.memo;\n this.params.name = row.name;\n this.params.code = row.code;\n this.params.id = row.id;\n this.params.purchaseDate = row.purchaseDate;\n this.params.fuelType = row.fuelType;\n this.params.description = row.description;\n this.params.color = row.color;\n this.params.brand = row.brand;\n this.params.vehicleType = row.vehicleType;\n }\n }\n};",null]}