{"remainingRequest":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\basicInfo\\components\\domesticDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\basicInfo\\components\\domesticDialog.vue","mtime":1681547792208},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport \"core-js/modules/es6.regexp.split\";\nimport _defineProperty from \"D:/jenkins/workspace/cqlt-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\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 dictUtils from '@/components/dict/DictSelectUtils.js';\nimport domesticSubject from '@/api/basicInfo/domesticSubject.js';\nexport default {\n name: 'domesticDialog',\n components: {},\n data: function data() {\n var _parameter;\n\n return {\n visible: false,\n title: '新增',\n rules: {\n name: [{\n required: true,\n message: this.$t('domestic.tips') + this.$t('domestic.name'),\n trigger: 'blur'\n }],\n nameEn: [{\n required: true,\n message: this.$t('domestic.tips') + this.$t('domestic.nameEn'),\n trigger: 'blur'\n }],\n code: [{\n required: true,\n message: this.$t('domestic.tips') + this.$t('domestic.code'),\n trigger: 'blur'\n }]\n },\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n },\n typeList: [],\n parameter: (_parameter = {\n name: \"\",\n nameEn: \"\",\n type: \"\",\n code: \"\",\n parentId: ''\n }, _defineProperty(_parameter, \"type\", \"\"), _defineProperty(_parameter, \"unit\", \"\"), _defineProperty(_parameter, \"memo\", \"\"), _parameter),\n kmList: [],\n hllxList: [],\n sjdwList: []\n };\n },\n created: function created() {\n if (this.$i18n.locale === 'zh-CN') {\n this.kmList = dictUtils.getDictItemsFromCache('subjec_type');\n this.hllxList = dictUtils.getDictItemsFromCache('hllx');\n this.sjdwList = dictUtils.getDictItemsFromCache('sjdw');\n } else {\n this.kmList = dictUtils.getDictItemsFromCache('subjec_type');\n this.hllxList = dictUtils.getDictItemsFromCache('hllx_en');\n this.sjdwList = dictUtils.getDictItemsFromCache('sjdw');\n }\n },\n mounted: function mounted() {},\n methods: {\n edit: function edit(val) {\n var _this = this;\n\n this.title = this.$t('common.edit');\n this.visible = true;\n domesticSubject.detailId(val, function (res) {\n if (res) {\n _this.parameter = res;\n _this.typeList = _this.parameter.type.split(',');\n _this.parameter.rateType = _this.parameter.rateType.toString();\n }\n });\n },\n add: function add(val) {\n this.parameter.parentId = val;\n this.title = this.$t('common.add');\n this.visible = true;\n this.typeList = [];\n this.parameter.rateType = this.hllxList[0].value;\n this.parameter.unit = this.sjdwList[0].value;\n this.typeList.push(this.kmList[0].value);\n },\n // 关闭新增人员窗口\n handleClose: function handleClose() {\n var _this$parameter;\n\n this.typeList = [];\n this.visible = false;\n this.title = \"\";\n this.parameter = (_this$parameter = {\n name: \"\",\n nameEn: \"\",\n type: \"\",\n code: \"\",\n parentId: \"\"\n }, _defineProperty(_this$parameter, \"type\", \"\"), _defineProperty(_this$parameter, \"unit\", \"\"), _defineProperty(_this$parameter, \"memo\", \"\"), _this$parameter);\n },\n // 保存\n handleSave: function handleSave() {\n var _this2 = this;\n\n var str = '';\n this.typeList.forEach(function (e) {\n str += e + \",\";\n });\n\n if (str.length > 0) {\n str = str.substr(0, str.length - 1);\n }\n\n this.parameter.type = str;\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n if (_this2.title === '添加' || _this2.title === \"add\") {\n domesticSubject.addData(_this2.parameter, function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: _this2.$t('domestic.success'),\n duration: 2000\n });\n\n _this2.$emit('getData');\n\n _this2.handleClose();\n }\n });\n } else if (_this2.title === '编辑' || _this2.title === \"edit\") {\n domesticSubject.editData(_this2.parameter, function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: _this2.$t('domestic.success'),\n duration: 2000\n });\n\n _this2.$emit('getData');\n\n _this2.handleClose();\n }\n });\n }\n }\n });\n },\n //打卡关联弹框\n openCorrelation: function openCorrelation() {\n console.log(1);\n this.$refs.correlationDialog.add();\n }\n }\n};",null]}