{"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\\OverseasEnterpriseInfo.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\basicInfo\\OverseasEnterpriseInfo.vue","mtime":1693992862285},{"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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/cqlt-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\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//\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//\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 tree from '@/components/tree';\nimport pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport EnterpriseTree from \"./components/EnterpriseTree.vue\";\nimport req from '@/request.js';\nimport utils from '@/utils.js';\nvar portal = window.context.portal;\nexport default {\n name: 'OverseasEnterpriseInfo',\n mixins: [TableMixin],\n components: {\n tree: tree,\n pagination: pagination,\n EnterpriseTree: EnterpriseTree\n },\n data: function data() {\n return {\n loading: false,\n tableMaxHeight: 400,\n treeData: [],\n searchForm: {\n name: ''\n },\n tableData: [],\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n },\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n deleteIds: '',\n dialog: {\n visible: false,\n title: this.$t('common.add')\n },\n dialogForm: {\n parentId: 0,\n runStatus: 1,\n economyType: 1,\n country: 0,\n continent: 0,\n businessType: 1,\n type: 1\n },\n dialogRules: {\n name: {\n required: true,\n message: this.$t('overseasEnterpriseInfo.input') + this.$t('overseasEnterpriseInfo.name'),\n trigger: 'blur'\n },\n code: {\n required: true,\n message: this.$t('overseasEnterpriseInfo.input') + this.$t('overseasEnterpriseInfo.code'),\n trigger: 'blur'\n },\n nameEn: {\n required: true,\n message: this.$t('overseasEnterpriseInfo.input') + this.$t('overseasEnterpriseInfo.nameEn'),\n trigger: 'blur'\n },\n shortName: {\n required: true,\n message: this.$t('overseasEnterpriseInfo.input') + this.$t('overseasEnterpriseInfo.shortName'),\n trigger: 'blur'\n },\n city: {\n required: true,\n message: this.$t('overseasEnterpriseInfo.input') + this.$t('overseasEnterpriseInfo.city'),\n trigger: 'blur'\n },\n country: {\n required: true,\n message: this.$t('overseasEnterpriseInfo.input') + this.$t('overseasEnterpriseInfo.country'),\n trigger: 'blur'\n },\n continent: {\n required: true,\n message: this.$t('overseasEnterpriseInfo.input') + this.$t('overseasEnterpriseInfo.continent'),\n trigger: 'blur'\n },\n runStatus: {\n required: true,\n message: this.$t('overseasEnterpriseInfo.select') + this.$t('overseasEnterpriseInfo.runStatus'),\n trigger: 'blur'\n },\n economyType: {\n required: true,\n message: this.$t('overseasEnterpriseInfo.select') + this.$t('overseasEnterpriseInfo.economyType'),\n trigger: 'blur'\n },\n businessType: {\n required: true,\n message: this.$t('overseasEnterpriseInfo.select') + this.$t('overseasEnterpriseInfo.businessType'),\n trigger: 'blur'\n },\n type: {\n required: true,\n message: this.$t('overseasEnterpriseInfo.select') + this.$t('overseasEnterpriseInfo.type'),\n trigger: 'blur'\n }\n },\n dialogRules2: {\n name: {\n required: true,\n message: this.$t('overseasEnterpriseInfo.input') + this.$t('overseasEnterpriseInfo.name')\n },\n code: {\n required: true,\n message: this.$t('overseasEnterpriseInfo.input') + this.$t('overseasEnterpriseInfo.code')\n },\n nameEn: {\n required: true,\n message: this.$t('overseasEnterpriseInfo.input') + this.$t('overseasEnterpriseInfo.nameEn')\n },\n type: {\n required: true,\n message: this.$t('overseasEnterpriseInfo.select') + this.$t('overseasEnterpriseInfo.type')\n }\n },\n sortList: {},\n jylxList: [],\n zbList: [],\n gjList: []\n };\n },\n created: function created() {\n if (this.$i18n.locale === 'zh-CN') {\n this.jylxList = dictUtils.getDictItemsFromCache('jylx');\n this.zbList = dictUtils.getDictItemsFromCache('zb');\n this.gjList = dictUtils.getDictItemsFromCache('gj');\n } else {\n this.jylxList = dictUtils.getDictItemsFromCache('jylx_en');\n this.zbList = dictUtils.getDictItemsFromCache('zb_en');\n this.gjList = dictUtils.getDictItemsFromCache('gj_en');\n }\n\n this.loadData(this.params);\n this.loadDataTree();\n },\n methods: {\n //修改树\n editTree: function editTree() {\n this.$refs.enterpriseTree.add();\n },\n //排序\n insort: function insort(val) {\n var id = val.id;\n var value = val.sn;\n this.sortList[id] = value;\n },\n // 保存排序\n savePropertyf: function savePropertyf() {\n var _this = this;\n\n this.$confirm(this.$t('common.sureSort'), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n _this.$http.post('${portal}/qfEnterpriseInfo/v1/updateSequence', _this.sortList).then(function (res) {\n if (res.data.state) {\n _this.$notify({\n type: 'success',\n message: res.data.message,\n duration: 2000\n });\n\n _this.loadData();\n } else {\n _this.$message.warning(res.message);\n }\n });\n }).catch(function () {});\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n handleNodeClick: function handleNodeClick(data) {\n this.dialogForm.parentId = data.id;\n this.searchForm.parentId = data.id;\n this.handleSearch();\n },\n submit: function submit() {\n var _this2 = this;\n\n var api;\n\n if (this.dialog.title == this.$t('common.add')) {\n api = '/qfEnterpriseInfo/v1/insertInfo';\n } else {\n api = '/qfEnterpriseInfo/v1/updateById';\n }\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n req.post(portal + api, _this2.dialogForm).then(function (res) {\n if (!res.data.state) return;\n\n _this2.$notify({\n type: 'success',\n message: res.data.message,\n duration: 2000\n });\n\n _this2.dialog.visible = false;\n\n _this2.loadData(_this2.params);\n\n _this2.loadDataTree();\n });\n }\n });\n },\n handleAdd: function handleAdd() {\n if (!this.dialogForm.parentId) {\n this.$message.warning(this.$t('common.noParentId'));\n return;\n }\n\n this.dialogForm = {\n parentId: this.dialogForm.parentId,\n runStatus: 1,\n economyType: 1,\n country: 0,\n continent: 0,\n businessType: 1,\n type: 1\n };\n this.dialog = {\n title: this.$t('common.add'),\n visible: true\n };\n },\n handleDbClick: function handleDbClick(row) {\n this.dialog = {\n title: this.$t('common.modify'),\n visible: true\n };\n this.dialogForm = row;\n },\n handleDialogClose: function handleDialogClose() {\n this.dialog.visible = false;\n },\n handleSelectionChange: function handleSelectionChange(currentData) {\n if (currentData.length === 0) return this.deleteIds = '';\n var ids = [];\n currentData.forEach(function (item) {\n ids.push(item.id);\n });\n this.deleteIds = ids.join(',');\n },\n handleDelete: function handleDelete() {\n var _this3 = this;\n\n this.$confirm(this.$t('common.sureDelete'), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n req.remove(portal + '/qfEnterpriseInfo/v1/?ids=' + _this3.deleteIds).then(function (res) {\n _this3.loadData(_this3.params);\n\n _this3.loadDataTree();\n });\n });\n },\n handleSearch: function handleSearch() {\n var obj = this.searchForm;\n var querys = [];\n\n for (var i in obj) {\n if (obj[i]) {\n querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n\n this.params.querys = querys;\n this.loadData(this.params);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n pageSize: pageSize\n });\n this.loadData(this.params);\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n page: page\n });\n this.loadData(this.params);\n },\n loadDataTree: function loadDataTree() {\n var _this4 = this;\n\n req.post(portal + '/qfEnterpriseInfo/v1/getTree').then(function (res) {\n _this4.treeData = res && res.data && res.data.value || [];\n _this4.dialogForm.parentId = '';\n });\n },\n loadData: function loadData(params) {\n var _this5 = this;\n\n req.post(portal + '/qfEnterpriseInfo/v1/getList', params).then(function (res) {\n _this5.tableData = res && res.data && res.data.value && res.data.value.rows || [];\n _this5.params.pageBean = {\n page: res && res.data && res.data.value && res.data.value.page || 1,\n pageSize: res && res.data && res.data.value && res.data.value.pageSize || 20,\n total: res && res.data && res.data.value && res.data.value.total || 0\n };\n });\n },\n callData: function callData() {\n this.loadDataTree();\n this.loadData();\n }\n }\n};",null]}