{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorReformProjects\\QuaObj\\QuaObjUpdate.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorReformProjects\\QuaObj\\QuaObjUpdate.vue","mtime":1744767657573},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-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/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.split\";\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//\nimport pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport apiList from '@/api/MajorReformProjects/QuaObj';\nimport publicApi from '@/api/publicApi';\nimport QuaObjDialog from \"./components/QuaObjDialog.vue\";\nvar portal = window.context.portal;\nexport default {\n name: 'QuaObjUpdate',\n components: {\n pagination: pagination,\n QuaObjDialog: QuaObjDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n markLoading: false,\n searchForm: {\n projectName: '',\n projectField: '',\n projectRunway: '',\n leader: '',\n projectCategory: ''\n },\n // 顶部搜索对象\n tableMaxHeight: 400,\n tableLoading: false,\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n querys: []\n },\n tableData: [],\n multipleSelection: [],\n deleteIds: '' // 是否选中列表解锁删除按钮\n\n };\n },\n created: function created() {\n this.getDataList(this.params);\n },\n methods: {\n reload: function reload() {\n this.getDataList(this.params);\n },\n // 撤回\n revokeReviewQua: function revokeReviewQua(row) {\n var _this = this;\n\n this.$confirm('确认执行撤销操作吗?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'error'\n }).then(function () {\n _this.markLoading = true;\n var data = {\n flowType: row.flowType,\n id: row.id,\n status: 0,\n approvalResults: 2\n };\n apiList.verify(data, function (res) {\n if (res.state) {\n _this.$message.success('撤销操作成功');\n\n _this.handleSearch();\n } else {\n _this.$message.success('撤销操作失败');\n }\n\n _this.markLoading = false;\n });\n });\n },\n // 分页查询数据\n getDataList: function getDataList(data) {\n var _this2 = this;\n\n this.tableLoading = true;\n apiList.queryPageFillList(data, 'false', function (res) {\n if (res) {\n _this2.tableData = res.rows;\n _this2.params.pageBean = {\n page: res.page || 1,\n pageSize: res.pageSize || 20,\n total: res.total\n };\n }\n\n _this2.tableLoading = false;\n });\n },\n // 顶部搜索\n handleSearch: function handleSearch(page) {\n var _this$searchForm = this.searchForm,\n projectName = _this$searchForm.projectName,\n projectField = _this$searchForm.projectField,\n projectRunway = _this$searchForm.projectRunway,\n leader = _this$searchForm.leader,\n projectCategory = _this$searchForm.projectCategory;\n var data = [{\n group: 'main',\n operation: 'LIKE',\n property: 'projectName',\n relation: 'AND',\n value: projectName\n }, {\n group: 'main',\n operation: 'EQUAL',\n property: 'projectField',\n relation: 'AND',\n value: projectField\n }, {\n group: 'main',\n operation: 'EQUAL',\n property: 'projectRunway',\n relation: 'AND',\n value: projectRunway\n }, {\n group: 'main',\n operation: 'LIKE',\n property: 'leader',\n relation: 'AND',\n value: leader\n }, {\n group: 'main',\n operation: 'LIKE',\n property: 'project_Category_',\n relation: 'AND',\n value: projectCategory\n }];\n this.params.querys = data;\n\n if (page) {\n this.params.pageBean.page = page;\n }\n\n this.getDataList(this.params);\n },\n // 待更新\n handleDefault: function handleDefault(item) {\n this.$refs.QuaObjDialog.openForm(item, '待更新', 0, 'save');\n },\n // 上报\n handleSubmit: function handleSubmit(item) {\n var _this3 = this;\n\n this.$confirm('确认上报吗?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'error'\n }).then(function () {\n _this3.markLoading = true;\n apiList.commit(item.id, function (res) {\n if (res.state) {\n _this3.$message.success('上报成功');\n\n _this3.getDataList(_this3.params);\n } else {\n _this3.$message.warning(res.message);\n }\n\n _this3.markLoading = false;\n });\n });\n },\n // 编辑\n handleEdit: function handleEdit(item) {\n this.$refs.QuaObjDialog.openForm(item, '编辑', 3, 'save');\n },\n // 更新\n handleUpdate: function handleUpdate(item) {\n var _this4 = this;\n\n // 获取当前时间\n publicApi.getNowDate(function (res) {\n if (res) {\n var serverTime = Date.parse(res);\n var arr = res.split(' ');\n var dateArr = arr[0].split('-');\n var year = dateArr[0];\n var month = dateArr[1];\n var date = ''; // if (month === '05' || month == '10') {\n\n if (month % 2 !== 0 || month == 9 || month == 12) {\n var time = \"\".concat(year, \"-\").concat(month, \"-15 18:00:00\");\n\n if (serverTime <= Date.parse(time)) {\n var newMonth = month < 2 ? 12 : month - 1;\n\n if (newMonth < 10) {\n newMonth = '0' + newMonth;\n }\n\n date = (newMonth === 12 ? year - 1 : year) + '-' + newMonth;\n } else {\n date = year + '-' + month;\n }\n } else {\n var _time = \"\".concat(year, \"-\").concat(month, \"-10 18:00:00\");\n\n if (serverTime <= Date.parse(_time)) {\n var _newMonth = month < 2 ? 12 : month - 1;\n\n if (_newMonth < 10) {\n _newMonth = '0' + _newMonth;\n }\n\n date = year + '-' + _newMonth;\n } else {\n date = year + '-' + month;\n }\n }\n\n var data = {\n fillDate: date + '-01',\n projectId: item.projectId\n };\n apiList.isMonthApprove(data, function (res) {\n if (res) {\n _this4.$refs.QuaObjDialog.openForm(item, '更新', 3, 'save');\n } else {\n _this4.$confirm(\"\".concat(date, \"\\u6708\\u6570\\u636E\\u5DF2\\u5BA1\\u6838\\u901A\\u8FC7\\uFF0C\\u8BF7\\u52FF\\u91CD\\u590D\\u66F4\\u65B0\\u3002\"), '提示', {\n cancelButtonText: '关闭',\n showConfirmButton: false,\n type: 'error'\n }).then(function () {});\n }\n });\n }\n });\n },\n // 详情\n handleDetils: function handleDetils(item) {\n var type;\n\n if (item.status) {\n type = 3;\n } else {\n type = 0;\n }\n\n this.$refs.QuaObjDialog.openForm(item, '详情', type, 'read');\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 handleCurrentChange: function handleCurrentChange(page) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n page: page\n });\n this.getDataList(this.params);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n pageSize: pageSize\n });\n this.getDataList(this.params);\n }\n }\n};",null]}