{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web-prod\\src\\views\\BiddingInformation\\BiddingManagement.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\src\\views\\BiddingInformation\\BiddingManagement.vue","mtime":1667333351009},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\babel.config.js","mtime":1667333346259},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\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 \"core-js/modules/es6.string.iterator\";\nimport _toConsumableArray from \"D:/jenkins/workspace/xypm-web-prod/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\";\nimport _defineProperty from \"D:/jenkins/workspace/xypm-web-prod/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport \"core-js/modules/es6.function.name\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); 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 = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : 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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 ProjectInfoDialog from '@/components/dialog/ProjectInfoDialog.vue';\nimport req from '@/request.js';\nimport ImgDialog from '@/components/dialog/ImgDialog.vue';\nimport { duration } from 'moment';\nimport utils from '@/utils.js';\nexport default {\n name: 'BiddingManagement',\n components: {\n ProjectInfoDialog: ProjectInfoDialog,\n ImgDialog: ImgDialog\n },\n props: {\n pid: {\n type: String,\n default: ''\n },\n isShow: {\n type: Boolean,\n default: true\n }\n },\n data: function data() {\n return {\n options: [{\n value: 0,\n label: '否'\n }, {\n value: 1,\n label: '是'\n }],\n importData: {\n title: '招标管理导入',\n templateName: '招标管理模板.xls',\n downloadUrl: '/../fvue/static/excel/ExportBiddingManagement.xlsx',\n importUrl: window.context.cqxy + '/biz/bidManagement/biddingManagement/v1/importExcelData',\n showProject: true,\n projectId: ''\n },\n projectObj: [],\n //获取当前项目\n searchForm: {\n documentNumber: '',\n projectId: '',\n name: '',\n biddingChargeType: ''\n },\n data: [],\n //表格数据\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n form: {\n projectId: '',\n projectInfo: {\n projectName: '',\n projectCode: ''\n }\n },\n //基本信息表单\n dialogVisible: false,\n dialogTitle: '添加',\n active: 0,\n loading: false,\n tableDataWinning: [],\n tableDataBidding: [],\n // imgSrc: '',\n complaintsName: '',\n regulationsName: '',\n paymentTypeName: '',\n isPaymentDis: true,\n paramsData: {\n pageBean: {\n page: 1,\n pageSize: 1,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'bbpe.PROJECT_ID_',\n relation: 'AND',\n value: ''\n }]\n },\n isDownload: false,\n rules: {\n 'projectInfo.projectName': {\n required: true,\n message: '请选择项目名称',\n trigger: 'blur'\n },\n 'projectInfo.projectCode': {\n required: true,\n message: '请输入项目代码',\n trigger: 'blur'\n },\n 'contractInfo.name': {\n required: true,\n message: '请选择合同名称',\n trigger: 'blur'\n },\n registerPersonName: {\n required: true,\n message: '请选择登记人员',\n trigger: 'blur'\n }\n },\n tableData: this.tableDataWinning,\n imgArrSrc: []\n };\n },\n computed: {\n deleteUrl: function deleteUrl() {\n return window.context.cqxy + '/biz/bidManagement/biddingManagement/v1/delete';\n }\n },\n watch: {\n 'form.bidSecurityPaymentType': function formBidSecurityPaymentType(newVlaue, oldValue) {\n if (newVlaue == 2) {\n this.isPaymentDis = false;\n } else {\n this.isPaymentDis = true;\n this.form.implementationPersonnelPhoneUrl = '';\n this.paymentTypeName = '';\n }\n },\n 'form.projectId': function formProjectId(newValue, oldValue) {\n var _this2 = this;\n\n this.paramsData.querys[0].value = newValue;\n\n if (newValue !== oldValue) {\n this.$http.post('${cqxy}/biz/bidManagement/biddingPriceExamine/v1/page', this.paramsData).then(function (res) {\n var data = res.data.value.rows.length !== 0 && res.data.value.rows[0];\n\n if (!_this2.form.bidAmountExamine) {\n _this2.form.bidAmountExamine = data && data.priceCeiling ? data.priceCeiling : '';\n }\n });\n }\n },\n tableData: function tableData() {\n return this.tableData = this.file;\n }\n },\n mounted: function mounted() {\n var _this3 = this;\n\n this.initProjectAll(); // 文件上传成功的回调\n\n this.$bus.$on('fileSuccess', function (file) {\n console.log(file, '上传的文件数据');\n\n if (file.key_ == 'complaints') {\n _this3.form.hasComplaintUrl = file.url;\n _this3.complaintsName = file.name;\n _this3.form.anyComplaints = 0; //0表示有,1表示无\n } else if (file.key_ == 'regulations') {\n _this3.form.fundsSourceUrl = file.url;\n _this3.regulationsName = file.name;\n _this3.form.anyInvestigateLawsRegulations = 0; //0表示是,1表示否\n } else if (file.key_ == 'paymentType') {\n _this3.form.implementationPersonnelPhoneUrl = file.url;\n _this3.paymentTypeName = file.name;\n } else if (file.key_ == 'winning') {\n file.group = 'winning';\n var length = _this3.tableDataWinning.length;\n\n _this3.tableDataWinning.push(_objectSpread({\n key: length + 1\n }, file));\n\n _this3.tableDataWinning = _toConsumableArray(_this3.tableDataWinning);\n } else if (file.key_ == 'bidding') {\n file.group = 'bidding';\n var _length = _this3.tableDataBidding.length;\n\n _this3.tableDataBidding.push(_objectSpread({\n key: _length + 1\n }, file));\n\n _this3.tableDataBidding = _toConsumableArray(_this3.tableDataBidding);\n }\n });\n },\n methods: {\n handleReset: function handleReset() {\n var _this4 = this;\n\n this.searchForm.projectId = '';\n this.searchForm.documentNumber = '';\n this.searchForm.name = '';\n this.searchForm.biddingChargeType = '';\n this.$refs['searchForm'].resetFields();\n this.pageResult = {\n page: 1,\n pageSize: 20,\n total: 0\n };\n this.$refs['searchForm'].resetFields();\n this.$nextTick(function () {\n _this4.$refs.AtTable.load();\n });\n },\n initProjectAll: function initProjectAll() {\n var _this5 = this;\n\n //初始获取单个项目数据\n this.$http.post('${cqxy}/biz/projectManagement/pm/v1/detail/' + this.pid).then(function (res) {\n _this5.projectObj = res.data.value;\n }, function (error) {\n reject(error);\n }); // if (this.isShow) {\n // this.$http.post('${cqxy}/biz/projectManagement/pm/v1/All').then(\n // res => {\n // this.projectObj = res.data.value\n // },\n // error => {\n // reject(error)\n // }\n // )\n // } else {\n // let params = {\n // pageBean: {\n // page: 1,\n // pageSize: 500,\n // total: 0\n // },\n // querys: [\n // {\n // group: 'main',\n // operation: 'EQUAL',\n // property: 'id',\n // relation: 'AND',\n // value: this.pid\n // }\n // ]\n // }\n // this.$http\n // .post('${cqxy}/biz/projectManagement/pm/v1/page', params)\n // .then(res => {\n // if (res.data.state) {\n // let resp = res.data.value\n // this.projectObj = resp.rows\n // }\n // })\n // }\n },\n filterHandler: function filterHandler(value, row, column) {\n var property = column['property'];\n return row[property] === value;\n },\n //导入后重新加载数据\n load: function load() {\n this.$refs.AtTable.load();\n },\n //导出\n handleExport: function handleExport() {\n var _this6 = this;\n\n var query = [];\n var search = {\n 'pm.ID_': this.searchForm.projectId,\n document_number_: this.searchForm.documentNumber,\n bidding_charge_type_: this.searchForm.biddingChargeType,\n name: this.searchForm.name\n };\n\n if (!this.isShow) {\n search['pm.ID_'] = this.pid;\n }\n\n for (var i in search) {\n if (search[i]) {\n query.push({\n group: 'advance',\n operation: i == 'bidding_charge_type_' ? 'EQUAL' : 'LIKE',\n property: i,\n relation: 'AND',\n value: search[i]\n });\n }\n }\n\n var param = {\n pageBean: {\n page: 1,\n pageSize: -1,\n showTotal: true\n },\n querys: query,\n sorter: []\n };\n req.downloadPostCopy('${cqxy}/biz/bidManagement/biddingManagement/v1/exportDataToExcel', param).then(function (res) {\n if (res.status === 200) {\n _this6.$message.success('导出成功');\n } else {\n _this6.$message.error('导出失败');\n }\n });\n },\n handleSteps: function handleSteps(step) {\n this.active = step;\n },\n //上一步\n prevSteps: function prevSteps() {\n this.active--;\n this.active = this.active;\n },\n //下一步\n nextSteps: function nextSteps() {\n var _this7 = this;\n\n if (this.active == 0) {\n var _this = this;\n\n var vaitalArr = ['projectInfo.projectName'];\n Promise.all(vaitalArr.map(function (item) {\n var p = new Promise(function (resolve, reject) {\n _this.$refs.form.validateField(item, function (vaild) {\n resolve(vaild);\n });\n });\n return p;\n })).then(function (result) {\n result = result.filter(function (item) {\n return item;\n });\n\n if (!result.length) {\n _this7.active++;\n _this7.active = _this7.active;\n\n _this7.$refs['form'].clearValidate();\n }\n });\n } else {\n this.active++;\n this.active = this.active;\n this.$refs['form'].clearValidate();\n }\n },\n handleAdd: function handleAdd() {\n this.dialogTitle = '添加';\n this.form = {\n bidEvaluationMethod: 1,\n bidSecurityPaymentType: 1,\n performanceBondPaymentType: 2,\n riskMarginPaymentType: 1,\n biddingAgency: '重庆招标采购(集团)有限责任公司',\n ownerUnit: '建设单位:重庆西永微电子产业园区开发有限公司',\n biddingChargeType: 1,\n saveMoney: '',\n //节约资金(字段在页面上不展示,保存或修改时后台计算,计算公式:招标限价-中标金额)\n saveMoneyRate: '',\n //资金节约率(字段在页面上不展示,保存或修改时后台计算,计算公式:节约资金/招标限价*100%,保留两位小数))\n projectId: '',\n anyComplaints: 1,\n anyInvestigateLawsRegulations: 1,\n bidAmountExamine: '',\n bidWinnerType: '',\n projectInfo: {\n projectName: '',\n projectCode: ''\n },\n accessoryInfo: []\n };\n this.tableDataWinning = [];\n this.tableDataBidding = [];\n this.regulationsName = '';\n this.complaintsName = '';\n this.paymentTypeName = ''; // if (this.isShow) {\n // let selectedProject = this.projectObj.find(item => {\n // if (item.currentProject && item.currentProject == 1) {\n // return item.currentProject == 1\n // }\n // })\n // this.form.projectInfo.projectName = selectedProject.projectName\n // this.form.projectInfo.projectCode = selectedProject.projectCode\n // this.form.projectId = selectedProject.id\n // } else {\n //根据项目id查询\n\n this.form.projectInfo.projectName = this.projectObj.projectName;\n this.form.projectInfo.projectCode = this.projectObj.projectCode;\n this.form.projectId = this.projectObj.id; // }\n\n this.dialogVisible = true;\n },\n handleRowDBClick: function handleRowDBClick(data) {\n var _this8 = this;\n\n this.dialogTitle = '修改';\n this.$http.post('${cqxy}/biz/bidManagement/biddingManagement/v1/detail/' + data.id).then(function (res) {\n _this8.dialogVisible = true;\n var response = res.data.value;\n _this8.form = response;\n _this8.tableDataBidding = [];\n _this8.tableDataWinning = [];\n\n if (_this8.form.implementationPersonnelPhoneUrl) {\n _this8.form = _objectSpread(_objectSpread({}, _this8.form), {}, {\n bidSecurityPaymentType: 2\n });\n } else {\n _this8.form = _objectSpread(_objectSpread({}, _this8.form), {}, {\n bidSecurityPaymentType: 1\n });\n }\n\n if (_this8.form.hasComplaintUrl) {\n _this8.form.anyComplaints = 0;\n } else {\n _this8.form.anyComplaints = 1;\n }\n\n if (_this8.form.fundsSourceUrl) {\n _this8.form.anyInvestigateLawsRegulations = 0;\n } else {\n _this8.form.anyInvestigateLawsRegulations = 1;\n }\n\n _this8.form.accessoryInfo.forEach(function (item) {\n item.isDownload = false;\n\n if (item.group == 'bidding') {\n _this8.tableDataBidding.push(item);\n } else {\n _this8.tableDataWinning.push(item);\n }\n });\n });\n },\n handleFocusProject: function handleFocusProject() {\n this.$refs.project.open();\n },\n handleSelectProject: function handleSelectProject(data) {\n this.form.projectId = data.id;\n this.form.projectInfo.projectCode = data.projectCode;\n this.form.projectInfo.projectName = data.projectName;\n this.$refs.form.clearValidate();\n },\n handleSelect: function handleSelect(selection) {},\n handleDialogCancel: function handleDialogCancel() {\n this.dialogVisible = false;\n this.active = 0;\n this.form = {\n projectId: '',\n projectInfo: {},\n accessoryInfo: []\n };\n /* 发送一个事件用于侧边栏按钮监听是否显示 */\n\n this.$bus.$emit('handleAsideBtn', true);\n },\n handleDialogClose: function handleDialogClose() {\n this.dialogVisible = false;\n this.active = 0;\n this.form = {\n projectId: '',\n projectInfo: {},\n accessoryInfo: []\n };\n },\n // handleFile(file) {\n // this.form.accessoryInfo = file\n // },\n afterSaveData: function afterSaveData() {\n var _this9 = this;\n\n setTimeout(function () {\n _this9.form = {\n projectInfo: {\n projectName: '',\n proejctCode: ''\n },\n accessoryInfo: []\n };\n _this9.dialogVisible = false;\n\n _this9.$refs.AtTable.load();\n }, 500);\n },\n //保存\n handleDialogSubmit: function handleDialogSubmit() {\n var _this10 = this;\n\n this.loading = true;\n this.form.accessoryInfo = [].concat(_toConsumableArray(this.tableDataWinning), _toConsumableArray(this.tableDataBidding));\n\n if (this.form.accessoryInfo && this.form.accessoryInfo.length > 0) {\n this.form.accessoryInfo.forEach(function (item) {\n if (item.id) {\n delete item.id;\n }\n });\n }\n\n this.$http.post('${cqxy}/biz/bidManagement/biddingManagement/v1/save', this.form).then(function (res) {\n if (res.data.state) {\n _this10.$refs.form.resetFields();\n\n _this10.$message.success(res.data.message);\n\n _this10.handleDialogClose();\n\n _this10.$refs.AtTable.load();\n } else {\n _this10.$message.error(res.data.message);\n }\n\n _this10.loading = false;\n }).catch(function () {\n _this10.loading = false;\n });\n },\n //查询\n handleSearch: function handleSearch() {\n this.$refs.AtTable.load();\n },\n loadData: function loadData(param, cb) {\n var _this11 = this;\n\n var query = [];\n var search = {\n 'pm.ID_': this.searchForm.projectId,\n document_number_: this.searchForm.documentNumber,\n bidding_charge_type_: this.searchForm.biddingChargeType,\n name: this.searchForm.name\n };\n this.searchObj = search;\n\n if (!this.isShow) {\n search['pm.ID_'] = this.pid;\n this.importData.projectId = this.pid;\n }\n\n for (var i in search) {\n if (search[i]) {\n query.push({\n group: 'advance',\n operation: i == 'bidding_charge_type_' ? 'EQUAL' : 'LIKE',\n property: i,\n relation: 'AND',\n value: search[i]\n });\n }\n }\n\n if (param.querys && param.querys.length) {\n var _param$querys;\n\n (_param$querys = param.querys).push.apply(_param$querys, query);\n } else {\n param.querys = query;\n }\n\n this.$http.post('${cqxy}/biz/bidManagement/biddingManagement/v1/page', param).then(function (resp) {\n var response = resp.data.value;\n _this11.data = response.rows;\n _this11.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }, function (error) {\n reject(error);\n }).finally(function () {\n return cb();\n });\n },\n //上传发送事件\n handleUpload: function handleUpload(key) {\n this.$bus.$emit('openUploader', key);\n },\n //查看\n preview: function preview(row) {\n if (row.type == 1) {\n // console.log(tableDataWinning)\n this.imgArrSrc = [].concat(_toConsumableArray(this.tableDataWinning), _toConsumableArray(this.tableDataBidding));\n this.$refs.img.open();\n } else {\n this.$http.get('${cqxy}/wps/oauth/olinePreview?_w_fileid=' + row.id).then(function (res) {\n var url = window.context.cqxy + res.data.value;\n window.open(url, '_blank');\n });\n }\n },\n //下载\n download: function download(row) {\n var _this12 = this;\n\n if (!row.id) {\n this.$message.warning('请保存后再下载!');\n } else {\n var ids = row.id;\n var bizPath = 'default';\n var formData = new FormData();\n formData.append('bizPath', bizPath);\n formData.append('ids', ids);\n this.$set(row, 'isDownload', true);\n this.$message.info('附件下载中');\n req.downloadPostCopy('${cqxy}/biz/universal/accessory/v1/minIoAllDownFile', formData).then(function (res) {\n _this12.$set(row, 'isDownload', false);\n\n _this12.$message.success('附件下载成功');\n }).catch(function () {\n _this12.$set(row, 'isDownload', false);\n\n _this12.$message.error('附件下载失败');\n });\n }\n },\n deleteTableData: function deleteTableData(index, rows) {\n rows.splice(index, 1);\n },\n handleTagClose: function handleTagClose(key) {\n if (key == 'complaints') {\n this.form.hasComplaintUrl = '';\n this.complaintsName = '';\n this.form.anyComplaints = 1; //0表示有,1表示无\n } else if (key == 'regulations') {\n this.form.fundsSourceUrl = '';\n this.regulationsName = '';\n this.form.anyInvestigateLawsRegulations = 1; //0表示是,1表示否\n } else if (key == 'paymentType') {\n this.form.implementationPersonnelPhoneUrl = '';\n this.paymentTypeName = '';\n }\n }\n },\n destroyed: function destroyed() {\n this.$bus.$off('fileAdded');\n this.$bus.$off('fileSuccess');\n }\n};",null]}