{"remainingRequest":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ProcurementManagement\\supplementManage\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ProcurementManagement\\supplementManage\\index.vue","mtime":1720730442290},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_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 \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { mapState } from 'vuex';\nimport procurementManagement from '@/api/procurementManagement';\nimport { label } from 'three/examples/jsm/nodes/Nodes.js';\nexport default {\n name: 'DemandEntry',\n components: {\n pagination: pagination\n },\n mixins: [TableMixin],\n data: function data() {\n return _defineProperty({\n tableHeight: 1000,\n tableData: [],\n handleDeleteActive: true,\n handleDeleteId: [],\n submiting: false,\n tableLoading: false,\n visible: false,\n loading: false,\n dialogvisible: false,\n fullscreen: false,\n describe: '',\n form: {\n isVendorConfirm: ''\n },\n fileList: [],\n dataList: [],\n options: [{\n value: 1,\n label: '否'\n }, {\n vlaue: 2,\n label: '是'\n }],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n sorter: [{\n direction: 'DESC',\n property: 'create_time_'\n }]\n },\n dialogVisible: false,\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'releaseStatus',\n relation: 'AND',\n value: 2\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'projectCode',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'matIfPlat',\n relation: 'AND',\n value: ''\n }],\n rows: {},\n accessoryList: []\n }, \"handleDeleteId\", []);\n },\n mounted: function mounted() {\n //页面缩放从新计算表格的高度\n window.addEventListener('resize', this.calcTableHeight);\n },\n created: function created() {\n this.loadData();\n },\n beforeDestroy: function beforeDestroy() {\n window.removeEventListener('resize', this.calcTableHeight);\n },\n methods: {\n // 动态计算表格的高度,自适应当前容器\n calcTableHeight: function calcTableHeight() {\n this.tableHeight = this.$refs.tableContent.offsetHeight;\n },\n //获取数据\n loadData: function loadData() {\n var _this = this;\n\n this.tableLoading = true;\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 if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n } // procurementManagement\n // .bizProjectApprovalPage(this.queryParam)\n\n\n this.$http.post('${portal}/matApproval/v1/page', this.queryParam).then(function (res) {\n _this.tableLoading = false;\n\n if (res.data.state) {\n _this.tableData = res.data.value.rows;\n _this.queryParam.pageBean = {\n page: res.data.value.page,\n pageSize: res.data.value.pageSize,\n total: res.data.value.total\n };\n }\n });\n },\n getByData: function getByData(row) {\n var _this2 = this;\n\n var params = {\n pageBean: {\n page: -1,\n pageSize: -1\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'type',\n relation: 'AND',\n value: 2\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'projectApprovalType',\n relation: 'AND',\n value: 1\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'projectApprovalId',\n relation: 'AND',\n value: row.id\n }]\n };\n this.loading = true;\n this.$http.post('${portal}/tenderDocument/v1/pageAccessory', params).then(function (res) {\n if (res.data.value) {\n _this2.dataList = res.data.value.rows;\n }\n\n _this2.loading = false;\n });\n },\n //下载按钮回调\n downloadFile: function downloadFile(name, url) {\n var a = document.createElement('a');\n var event = new MouseEvent('click');\n a.download = name;\n a.target = '_blank';\n a.href = url;\n a.dispatchEvent(event);\n },\n // 删除\n deleteHandle: function deleteHandle(id, index) {\n var _this3 = this;\n\n var ids = [];\n ids.push(id);\n this.$confirm('是否确认删除该附件', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n if (id) {\n _this3.$http.post('${portal}/tenderDocument/v1/removeByIds', ids).then(function (res) {\n console.log(res, '11111111111');\n\n _this3.getByData(_this3.rows);\n });\n }\n });\n },\n handleCheck: function handleCheck(row) {\n this.visible = true;\n this.accessoryList = row.accessoryList;\n },\n // 新增补遗\n handleAdd: function handleAdd() {\n this.visible = true;\n this.form.isVendorConfirm = 1;\n },\n //下架\n shelvesTaken: function shelvesTaken() {\n var _this4 = this;\n\n var ids = this.handleDeleteId.join(',');\n this.$http.post('${portal}/tenderDocument/v1/modifyReleaseStatus?ids=' + ids + '&status=1').then(function (res) {\n if (res.data.state) {\n _this4.$message.success(res.data.message);\n }\n\n _this4.getByData(_this4.rows);\n });\n },\n // 编辑\n handleEdit: function handleEdit(rows) {\n this.parameter = rows;\n this.rows = rows;\n this.getByData(rows);\n this.dialogVisible = true;\n this.loading = true;\n },\n dialogClose: function dialogClose() {\n this.visible = false;\n },\n //重置\n clearSearchForm: function clearSearchForm() {\n this.querys[0].value = '';\n this.querys[1].value = '';\n this.querys[2].value = '';\n this.loadData();\n },\n dialogBeforeClose: function dialogBeforeClose() {\n this.dialogVisible = false;\n },\n publishBtn: function publishBtn() {\n var _this5 = this;\n\n var ids = this.handleDeleteId.join(',');\n this.submiting = true;\n this.$http.post('${portal}/tenderDocument/v1/modifyReleaseStatus?status=2' + '&ids=' + ids).then(function (res) {\n _this5.submiting = false;\n\n if (res.data.state) {\n _this5.$message.success(res.data.message);\n }\n\n _this5.getByData(_this5.rows);\n });\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n this.loadData();\n },\n handleSelectionChange: function handleSelectionChange(val) {\n if (val.length !== 0) {\n this.handleDeleteActive = false;\n this.handleDeleteId = val.map(function (item) {\n return item.id;\n });\n } else {\n this.handleDeleteActive = true;\n }\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.queryParam.pageBean = _objectSpread(_objectSpread({}, this.queryParam.pageBean), {}, {\n page: page\n });\n this.loadData(this.queryParam);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.queryParam.pageBean = _objectSpread(_objectSpread({}, this.queryParam.pageBean), {}, {\n pageSize: pageSize\n });\n this.loadData(this.queryParam);\n },\n cancelConfirm: function cancelConfirm() {\n this.$refs.upload.clearFiles();\n this.visible = false;\n this.$refs.upload.uploadFiles = [];\n },\n submitImport: function submitImport() {\n if (!this.$refs.upload.uploadFiles || this.$refs.upload.uploadFiles.length == 0) {\n this.$message.warning('请选择要导入的数据文件!');\n return false;\n }\n\n this.$refs.upload.submit();\n },\n hadleUploadResult: function hadleUploadResult(response) {\n var _this6 = this;\n\n console.log(response, 'response');\n this.fullscreenLoading = false;\n\n if (response.state) {\n this.fileList.push(response.value);\n this.fileList.forEach(function (item) {\n item['type'] = 2;\n var byDocument = {\n type: item.type,\n accessoryList: _this6.fileList,\n describe: _this6.form.describe,\n isVendorConfirm: _this6.form.isVendorConfirm,\n projectApprovalId: _this6.parameter.id,\n projectApprovalType: 1\n };\n var list = [];\n list.push(byDocument);\n\n _this6.$http.post('${portal}/tenderDocument/v1/uploadByDoc', list).then(function (res) {\n _this6.visible = false;\n\n if (res.data.state) {\n _this6.getByData(_this6.parameter);\n\n _this6.$message.success(res.data.message);\n }\n });\n });\n } else {\n this.$message.error(response.message);\n }\n },\n beforeUpload: function beforeUpload(file) {\n this.fileInfo = file;\n this.fullscreenLoading = true;\n }\n },\n computed: _objectSpread(_objectSpread({}, mapState({\n headers: function headers(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n },\n actionBz: function actionBz() {\n return window.context.portal + '/biz/universal/v1/minioUpload';\n }\n })), {}, {\n SearchPanel: function SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n };\n }\n })\n};",null]}