{"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\\configureInfo\\continuousImproveCompany\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\configureInfo\\continuousImproveCompany\\index.vue","mtime":1693992862301},{"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/es6.function.name\";\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//\nimport moment from 'moment';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport continuousImproveCompany from '@/api/configureInfo/continuousImproveCompany.js';\nexport default {\n name: 'continuousImproveCompany',\n components: {},\n mixins: [TableMixin],\n props: {\n compData: {\n required: true,\n type: Object,\n default: function _default() {\n return null;\n }\n }\n },\n data: function data() {\n return {\n loading: false,\n tableData: [],\n multipleSelection: [],\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'fillYear',\n relation: 'AND',\n value: moment().format('YYYY')\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'fillMonth',\n relation: 'AND',\n value: ''\n }],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20\n }\n },\n total: 0,\n bbztList: [],\n dialogVisible: false,\n model: {\n fillYear: moment().format('YYYY'),\n fillMonth: moment().format('M'),\n reportId: 1\n },\n title: '',\n dialogRules: {\n name: {\n required: true,\n message: this.$t('overseasEnterpriseInfo.input') + this.$t('overseasEnterpriseInfo.name'),\n trigger: 'blur'\n }\n },\n statementData: {}\n };\n },\n watch: {},\n created: function created() {\n this.statementData = JSON.parse(window.localStorage.getItem(\"statementData\"));\n\n if (window.localStorage.getItem('year')) {\n this.querys[0].value = window.localStorage.getItem('year');\n }\n\n this.model.reportId = this.compData.id;\n\n if (this.$i18n.locale === 'zh-CN') {\n this.bbztList = dictUtils.getDictItemsFromCache('bbzt');\n } else {\n this.bbztList = dictUtils.getDictItemsFromCache('bbzt_en');\n }\n\n this.getData();\n },\n mounted: function mounted() {},\n methods: {\n //获取数据\n getData: function getData(page) {\n var _this = this;\n\n window.localStorage.setItem(\"year\", this.querys[0].value);\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\n this.queryParam.querys = [];\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n continuousImproveCompany.pageQuery(this.queryParam, function (res) {\n if (res.rows) {\n _this.tableData = res.rows;\n\n _this.tableData.forEach(function (e) {\n console.log(_this.bbztList);\n\n _this.bbztList.forEach(function (s) {\n if (e.status == s.value) {\n e.statusName = s.name;\n }\n });\n });\n\n _this.total = res.total;\n\n _this.$set(_this.tableData);\n\n _this.loading = false;\n }\n });\n },\n //添加\n handleAdd: function handleAdd() {\n this.$refs.kplDialog.add();\n },\n //修改\n handleDbClick: function handleDbClick(data) {\n this.$refs.kplDialog.edit(data.id);\n },\n //展示数量\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.getData();\n },\n //表格页数\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.getData();\n },\n callData: function callData() {\n this.getTree();\n this.getData();\n },\n Delete: function Delete(val) {\n var _this2 = this;\n\n this.$confirm(this.$t('operationalKPI.deldata'), this.$t('common.delete'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n continuousImproveCompany.delDate(val.id, 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.getData();\n }\n });\n }).catch(function () {});\n },\n //发布\n Release: function Release(val) {\n var _this3 = this;\n\n this.$confirm(this.$t('operationalKPI.deldata'), this.$t('operationalKPI.release'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n continuousImproveCompany.editStatus({\n id: val.id\n }, function (res) {\n if (res.state) {\n _this3.$notify({\n type: 'success',\n message: _this3.$t('domestic.success'),\n duration: 2000\n });\n\n _this3.getData();\n }\n });\n }).catch(function () {});\n },\n openAdd: function openAdd() {\n this.dialogVisible = true;\n this.title = this.$t('common.add');\n },\n handleDialogClose: function handleDialogClose() {\n this.dialogVisible = false;\n },\n //保存\n saveData: function saveData() {\n var _this4 = this;\n\n continuousImproveCompany.addData(this.model, function (res) {\n if (res.state) {\n _this4.$notify({\n type: 'success',\n message: _this4.$t('domestic.success'),\n duration: 2000\n });\n\n _this4.$router.push({\n path: 'continuousImproveCompany/continuousImproveCompanyDetails',\n query: {\n fillYear: _this4.model.fillYear,\n fillMonth: _this4.model.fillMonth,\n name: '新增',\n id: res.value,\n reportId: _this4.compData.id,\n parentName: _this4.compData.name,\n parentNameEn: _this4.compData.nameEn\n }\n });\n }\n });\n },\n //编辑\n toEdit: function toEdit(val) {\n val.reportId = this.compData.id;\n this.$router.push({\n path: 'continuousImproveCompany/continuousImproveCompanyDetails',\n query: _objectSpread(_objectSpread({}, val), {}, {\n parentName: this.compData.name,\n parentNameEn: this.compData.nameEn\n })\n });\n },\n //返回上级\n goBlack: function goBlack() {\n this.$router.go(-1);\n }\n }\n};",null]}