{"remainingRequest":"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\\multipleRoundsApproval\\component\\multApprovalAddDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ProcurementManagement\\multipleRoundsApproval\\component\\multApprovalAddDialog.vue","mtime":1720730442290},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport Breadcrumb from '@/components/Breadcrumb/index.vue'\r\nimport {quillEditor} from 'vue-quill-editor' //调用编辑器\r\nimport 'quill/dist/quill.core.css'\r\nimport 'quill/dist/quill.snow.css'\r\nimport {mapState} from 'vuex'\r\nimport 'quill/dist/quill.bubble.css'\r\nimport purchasingUnits from './purchasingUnits.vue'\r\nimport basicData from '@/api/basicData'\r\nimport expertUesrs from './expertUesrs.vue'\r\nimport evaluationBid from './evaluationBid.vue'\r\nimport quotationTemplateDialog from './quotationTemplateDialog.vue'\r\nimport procurementManagement from '@/api/procurementManagement'\r\nimport expertPoolUnits from '@/components/dialog/expertPoolUnits.vue'\r\n\r\nconst toolbarOptions = [\r\n ['bold', 'italic', 'underline', 'strike'], // toggled buttons\r\n ['blockquote', 'code-block'],\r\n\r\n [{header: 1}, {header: 2}], // custom button values\r\n [{list: 'ordered'}, {list: 'bullet'}],\r\n [{script: 'sub'}, {script: 'super'}], // superscript/subscript\r\n [{indent: '-1'}, {indent: '+1'}], // outdent/indent\r\n [{direction: 'rtl'}], // text direction\r\n\r\n [{size: ['small', false, 'large', 'huge']}], // custom dropdown\r\n [{header: [1, 2, 3, 4, 5, 6, false]}],\r\n\r\n [{color: []}, {background: []}], // dropdown with defaults from theme\r\n [{font: []}],\r\n [{align: []}],\r\n ['link', 'image', 'upload'],\r\n ['clean'], // remove formatting button\r\n]\r\nimport {Quill} from 'vue-quill-editor'\r\nimport moment from 'moment'\r\n// 自定义插入a链接\r\nvar Link = Quill.import('formats/link')\r\nclass FileBlot extends Link {\r\n // 继承Link Blot\r\n static create(value) {\r\n let node = undefined\r\n if (value && !value.href) {\r\n // 适应原本的Link Blot\r\n node = super.create(value)\r\n } else {\r\n // 自定义Link Blot\r\n node = super.create(value.href)\r\n // node.setAttribute('download', value.innerText); // 左键点击即下载\r\n node.innerText = value.innerText\r\n node.download = value.innerText\r\n }\r\n return node\r\n }\r\n}\r\nFileBlot.blotName = 'link'\r\nFileBlot.tagName = 'A'\r\nQuill.register(FileBlot)\r\nexport default {\r\n name: 'domesticDialog',\r\n components: {\r\n Breadcrumb,\r\n purchasingUnits,\r\n expertUesrs,\r\n quillEditor,\r\n quotationTemplateDialog,\r\n expertPoolUnits,\r\n evaluationBid,\r\n },\r\n props: {\r\n editData: Object,\r\n },\r\n data() {\r\n return {\r\n importData: {\r\n title: '明细导入',\r\n templateName: '明细导入模板.xls',\r\n downloadUrl: '/../fvue/static/excel/采购制单明细导入.xlsx',\r\n importUrl: window.context.portal + '/matApprovalDetails/v1/excelToData',\r\n showProject: true,\r\n header: '明细导入',\r\n },\r\n activeName: '1',\r\n loading: false,\r\n supplierList: [],\r\n treeData: [],\r\n scoreData: [],\r\n editorOption: {\r\n // 改变提示文字内容\r\n placeholder: '请输入内容......',\r\n modules: {\r\n toolbar: {\r\n container: toolbarOptions, // 工具栏\r\n handlers: {\r\n upload: (value) => {\r\n if (value) {\r\n document.querySelector('.uploadFile input').click()\r\n }\r\n },\r\n },\r\n },\r\n },\r\n },\r\n saveing: false,\r\n bidList: [],\r\n qualificationsList: [],\r\n active: '1',\r\n centralizedData: [\r\n {name: '是', id: 1},\r\n {name: '否', id: 0},\r\n ],\r\n breadcrumbOpt: [{breadcrumbName: '采购立项'}, {breadcrumbName: '新增'}],\r\n expertData: [],\r\n rules: {\r\n noticeTitle: [\r\n {\r\n required: true,\r\n message: '请输入公告标题',\r\n trigger: 'blur',\r\n },\r\n ],\r\n allocation0fShares: [\r\n {\r\n required: true,\r\n message: '请选择份额分配数量',\r\n trigger: 'blur',\r\n },\r\n ],\r\n matNum: [\r\n {\r\n required: true,\r\n message: '请输入数量',\r\n trigger: 'blur',\r\n },\r\n ],\r\n establishmentName: [\r\n {\r\n required: true,\r\n message: '请输入公告内容',\r\n trigger: 'blur',\r\n },\r\n ],\r\n procureOrgName: [\r\n {\r\n required: true,\r\n message: '请选择采购单位',\r\n trigger: 'blur',\r\n },\r\n ],\r\n vendorName: [\r\n {\r\n required: true,\r\n message: '请选择供应商',\r\n trigger: 'blur',\r\n },\r\n ],\r\n applicationType: [\r\n {\r\n required: true,\r\n message: '请选择项目类型',\r\n trigger: 'blur',\r\n },\r\n ],\r\n matIfPlat: [\r\n {\r\n required: true,\r\n message: '请选择是否集中采购',\r\n trigger: 'blur',\r\n },\r\n ],\r\n procureType: [\r\n {\r\n required: true,\r\n message: '请选择采购类型',\r\n trigger: 'blur',\r\n },\r\n ],\r\n isTax: [\r\n {\r\n required: true,\r\n message: '请选择是否含税价',\r\n trigger: 'blur',\r\n },\r\n ],\r\n releaseMethod: [\r\n {\r\n required: true,\r\n message: '请选择发布方式',\r\n trigger: 'blur',\r\n },\r\n ],\r\n vendorName: [\r\n {\r\n required: true,\r\n message: '请选择供应商',\r\n trigger: 'blur',\r\n },\r\n ],\r\n quotationMethod: [\r\n {\r\n required: true,\r\n message: '请选择付款方式',\r\n trigger: 'blur',\r\n },\r\n ],\r\n acceptanceTime: [\r\n {\r\n required: true,\r\n message: '请选择承兑时间',\r\n trigger: 'blur',\r\n },\r\n ],\r\n pendingTime: [\r\n {\r\n required: true,\r\n message: '请选择挂账时间',\r\n trigger: 'blur',\r\n },\r\n ],\r\n hasQualification: [\r\n {\r\n required: true,\r\n message: '请选择资质要求',\r\n trigger: 'blur',\r\n },\r\n ],\r\n qualificationsCoutentName: [\r\n {\r\n required: true,\r\n message: '请选择资质标签',\r\n trigger: 'blur',\r\n },\r\n ],\r\n hasBond: [\r\n {\r\n required: true,\r\n message: '请选择有无保证金',\r\n trigger: 'blur',\r\n },\r\n ],\r\n bond: [\r\n {\r\n required: true,\r\n message: '请输入保证金',\r\n trigger: 'blur',\r\n },\r\n ],\r\n quotationRounds: [\r\n {\r\n required: true,\r\n message: '请输入报价轮数',\r\n trigger: 'blur',\r\n },\r\n ],\r\n quotationTemplateName: [\r\n {\r\n required: true,\r\n message: '请选择报价模板',\r\n trigger: 'blur',\r\n },\r\n ],\r\n evaluationMethodName: [\r\n {\r\n required: true,\r\n message: '请选择评标方法',\r\n trigger: 'blur',\r\n },\r\n ],\r\n expertList: [\r\n {\r\n required: true,\r\n message: '请选择评标人',\r\n trigger: 'blur',\r\n },\r\n ],\r\n biddingStartTime: [\r\n {\r\n required: true,\r\n message: '请选择投标开始时间',\r\n trigger: 'blur',\r\n },\r\n ],\r\n biddingEndTime: [\r\n {\r\n required: true,\r\n message: '请选择投标结束时间',\r\n trigger: 'blur',\r\n },\r\n ],\r\n clarificationSupplementDeadlineTime: [\r\n {\r\n required: true,\r\n message: '请选择澄清补遗时间',\r\n trigger: 'blur',\r\n },\r\n ],\r\n raisingQuestionsDeadlineTime: [\r\n {\r\n required: true,\r\n message: '请选择供货商提出问题的截止时间',\r\n trigger: 'blur',\r\n },\r\n ],\r\n responseTimeDeadline: [\r\n {\r\n required: true,\r\n message: '请选择响应截止时间',\r\n trigger: 'blur',\r\n },\r\n ],\r\n winBidValidity: [\r\n {\r\n required: true,\r\n message: '请输入中标结果有效期',\r\n trigger: 'blur',\r\n },\r\n ],\r\n evaluationMode: [\r\n {\r\n required: true,\r\n message: '请选择评标方式',\r\n trigger: 'blur',\r\n },\r\n ],\r\n allocationRate1: [\r\n {\r\n required: true,\r\n message: '请输入第一分配率(%)',\r\n trigger: 'blur',\r\n },\r\n ],\r\n allocationRate2: [\r\n {\r\n required: true,\r\n message: '请输入第二分配率(%)',\r\n trigger: 'blur',\r\n },\r\n ],\r\n allocationRate3: [\r\n {\r\n required: true,\r\n message: '请输入第三分配率(%)',\r\n trigger: 'blur',\r\n },\r\n ],\r\n allocationRate4: [\r\n {\r\n required: true,\r\n message: '请输入第四分配率(%)',\r\n trigger: 'blur',\r\n },\r\n ],\r\n allocationRate5: [\r\n {\r\n required: true,\r\n message: '请输入第五分配率(%)',\r\n trigger: 'blur',\r\n },\r\n ],\r\n isBidDocumentsUpload: [\r\n {\r\n required: true,\r\n message: '请选择投标文件是否必传',\r\n trigger: 'blur',\r\n },\r\n ],\r\n },\r\n addressList: [],\r\n useOrgListValue: '',\r\n dataList: [],\r\n fileList: [],\r\n methodUnitsList: [],\r\n parameter: {\r\n projectNumber: '',\r\n noticeTitle: '',\r\n establishmentName: '',\r\n projectApprovalType: '1',\r\n detailsList: [],\r\n bidStatus: '0',\r\n evaTemplate: {\r\n descriptionList: [],\r\n },\r\n procureOrgName: '',\r\n applicationType: '',\r\n allocation0fShares: 1,\r\n evaluationMode: 1,\r\n evaluationMethodName: '',\r\n quotationRounds: 2,\r\n allocationRate1: 100,\r\n allocationRate2: '',\r\n allocationRate3: '',\r\n allocationRate4: '',\r\n allocationRate5: '',\r\n acceptanceTime: 6,\r\n isBidDocumentsUpload: 1,\r\n matIfPlat: '',\r\n hasQualification: '1',\r\n pendingTime: 1,\r\n vendorName: '',\r\n isTax: '',\r\n templateDetails: [],\r\n expertList: '',\r\n procureType: '6',\r\n tenderDocumentList: [],\r\n quotationTemplate: '',\r\n approvalInviteVendorList: [],\r\n quotationTemplateName: '',\r\n releaseMethod: '1',\r\n evaluationMethod: '1',\r\n releaseStatus:0,\r\n biddingStartTime: '',\r\n biddingEndTime: '',\r\n projectEvaluationExpertList:[],\r\n raisingQuestionsDeadlineTime: '',\r\n clarificationSupplementDeadlineTime: '',\r\n matApprovalQualificationList: [],\r\n quotationMethod: '',\r\n hasBond: '0',\r\n bond: 0,\r\n responseTimeDeadline: '',\r\n quotationTemplateDetailApprovalList: [],\r\n zbDocument: {\r\n type: 1,\r\n accessoryList: [],\r\n },\r\n },\r\n }\r\n },\r\n created() {\r\n this.getAddress()\r\n this.selectTree()\r\n this.addModifyBtn()\r\n this.parameter.matIfPlat = this.$route.query.type\r\n if (this.parameter.matIfPlat == 0) {\r\n this.currentUser = JSON.parse(sessionStorage.getItem('currentUserDetail'))\r\n this.parameter.procureOrgCode = this.currentUser.org[0].orgCode\r\n this.parameter.procureOrgId = this.currentUser.org[0].orgId\r\n this.parameter.procureOrgName = this.currentUser.org[0].orgName\r\n }\r\n this.getQualifications()\r\n let moment = require('moment')\r\n this.parameter.biddingStartTime = moment().format('YYYY-MM-DD HH:mm:ss')\r\n this.parameter.biddingEndTime = moment()\r\n .add(2, 'hours')\r\n .format('YYYY-MM-DD HH:mm:ss')\r\n this.parameter.evaluationStartTime = this.parameter.biddingEndTime\r\n this.parameter.evaluationEndTime = moment(\r\n this.parameter.evaluationStartTime\r\n )\r\n .add(2, 'hours')\r\n .format('YYYY-MM-DD HH:mm:ss')\r\n this.parameter.clarificationSupplementDeadlineTime = moment()\r\n .add(2, 'hours')\r\n .format('YYYY-MM-DD HH:mm:ss')\r\n this.parameter.raisingQuestionsDeadlineTime = moment()\r\n .add(2, 'hours')\r\n .format('YYYY-MM-DD HH:mm:ss')\r\n this.parameter.responseTimeDeadline = moment()\r\n .add(2, 'hours')\r\n .format('YYYY-MM-DD HH:mm:ss')\r\n if (this.parameter.procureType == 6) {\r\n this.parameter.procureTypeName = '比选(多轮竞价)'\r\n }\r\n },\r\n computed: {\r\n ...mapState({\r\n headers: (state) => {\r\n return {Authorization: `Bearer ${state.login.currentUser.token}`}\r\n },\r\n action: function () {\r\n return window.context.portal + '/biz/universal/v1/minioUpload'\r\n },\r\n actionBz: function () {\r\n return window.context.portal + '/matApproval/v1/uploadTenderDoc'\r\n },\r\n }),\r\n },\r\n mounted() {},\r\n watch: {\r\n scoreData: {\r\n handler: function (newVal, oldVal) {\r\n console.log('Address changed:', newVal, oldVal)\r\n // let sum = 0\r\n // newVal.forEach(item=>{\r\n // console.log(item);\r\n // item.evaluationScore += item.evaluationScore ==100\r\n // })\r\n },\r\n deep: true,\r\n },\r\n },\r\n methods: {\r\n // 获取送货地址分页\r\n getAddress() {\r\n let params = {\r\n pageBean: {\r\n pageSize: -1,\r\n page: -1,\r\n },\r\n }\r\n this.$http\r\n .post('${portal}/bizDeliveryAddress/v1/query', params)\r\n .then((res) => {\r\n this.addressList = res.data.rows\r\n })\r\n },\r\n changeShares(val) {\r\n if (val == 1) {\r\n this.parameter.allocationRate1 = 100\r\n }\r\n if (val == 2) {\r\n this.parameter.allocationRate1 = 50\r\n this.parameter.allocationRate2 = 50\r\n }\r\n if (val == 3) {\r\n this.parameter.allocationRate1 = 30\r\n this.parameter.allocationRate2 = 30\r\n this.parameter.allocationRate3 = 40\r\n }\r\n if (val == 4) {\r\n this.parameter.allocationRate1 = 25\r\n this.parameter.allocationRate2 = 25\r\n this.parameter.allocationRate3 = 25\r\n this.parameter.allocationRate4 = 25\r\n }\r\n if (val == 5) {\r\n this.parameter.allocationRate1 = 20\r\n this.parameter.allocationRate2 = 20\r\n this.parameter.allocationRate3 = 20\r\n this.parameter.allocationRate4 = 20\r\n this.parameter.allocationRate5 = 20\r\n }\r\n },\r\n //查询评标分类树结构\r\n selectTree() {\r\n basicData.bizEvaluationItemSelectTree().then((res) => {\r\n this.scoreData = res.value[0].children\r\n this.scoreData.forEach((item) => {\r\n item.evaluationItemPname = item.subjectName\r\n item.evaluationScore = 0\r\n })\r\n })\r\n },\r\n // 获取资质标签内容\r\n getQualifications() {\r\n let params = {\r\n querys: [],\r\n pageBean: {\r\n pageSize: -1,\r\n page: -1,\r\n },\r\n }\r\n this.$http\r\n .post('${portal}/bizQualificationCategory/v1/page', params)\r\n .then((res) => {\r\n if (res.data.state) {\r\n this.qualificationsList = res.data.value.rows\r\n }\r\n })\r\n },\r\n changeQualifications(val) {\r\n this.parameter.qualificationsCoutent = val.join(',')\r\n if (\r\n this.parameter.qualificationsCoutent == '' ||\r\n this.parameter.qualificationsCoutentName == ''\r\n ) {\r\n this.parameter.matApprovalQualificationList = []\r\n }\r\n this.$forceUpdate()\r\n },\r\n clickQua(val) {\r\n if (\r\n this.parameter.qualificationsCoutent == '' ||\r\n this.parameter.qualificationsCoutentName == ''\r\n ) {\r\n this.parameter.matApprovalQualificationList = []\r\n } else {\r\n this.parameter.matApprovalQualificationList.push(val)\r\n }\r\n },\r\n // 综合评标法添加子级\r\n LowerBtn(row) {\r\n row.children.push({\r\n evaluationItemCode: '',\r\n evaluationStandard: '',\r\n evaluationScore: 0,\r\n evaluationItemPid: row.id,\r\n evaluationItemPname: '',\r\n id: Math.random() + '',\r\n })\r\n if(row.subjectName=='商务部分'){\r\n row.children[0].evaluationItemCode = '价格得分'\r\n }\r\n },\r\n deleteLevel(row, index) {\r\n this.scoreData = this.delFlatten(this.scoreData, row.id)\r\n },\r\n // 子节点删除\r\n delFlatten(arr, id) {\r\n arr.map((item) => {\r\n if (item.children !== undefined) {\r\n for (let i = 0; i < item.children.length; i++) {\r\n if (item.children[i].id === id) {\r\n item.children = item.children.filter((items) => {\r\n return items.id !== id\r\n })\r\n }\r\n }\r\n }\r\n if (Array.isArray(item.children)) {\r\n this.delFlatten(item.children, id)\r\n }\r\n })\r\n return arr\r\n },\r\n handleInput(val) {\r\n console.log(val)\r\n this.scoreData.forEach((item) => {\r\n if (item.id == val.id) {\r\n return\r\n } else {\r\n 100 - item.evaluationScore\r\n return item.evaluationScore\r\n }\r\n console.log(item)\r\n })\r\n },\r\n // 切换tab\r\n handleClick(tab, e) {},\r\n // 上传文件成功回调\r\n handleSuccess(res, fileList) {\r\n if (this.active == 1) {\r\n if (res.state) {\r\n this.dataList.push(res.value)\r\n this.dataList.forEach((item) => {\r\n item['type'] = 1\r\n })\r\n }\r\n this.parameter.zbDocument.type = 1\r\n this.parameter.zbDocument.accessoryList = this.dataList\r\n }\r\n if (this.active == 2) {\r\n if (res.state) {\r\n this.fileList.push(res.value)\r\n }\r\n this.fileList.forEach((item) => {\r\n item['type'] = 2\r\n })\r\n this.parameter.byDocument.type = 2\r\n this.parameter.byDocument.accessoryList = this.fileList\r\n }\r\n },\r\n evaluationBid() {\r\n this.$refs.evaluationBid.add(this.currentUser.org[0].orgId)\r\n },\r\n //下载按钮回调\r\n downloadFile(name, url) {\r\n var a = document.createElement('a')\r\n var event = new MouseEvent('click')\r\n a.download = name\r\n a.target = '_blank'\r\n a.href = url\r\n a.dispatchEvent(event)\r\n },\r\n // 删除\r\n deleteHandle(index) {\r\n this.$confirm('是否确认删除该附件', '提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning',\r\n }).then(() => {\r\n if (this.active == 1) {\r\n this.dataList.splice(index, 1)\r\n }\r\n if (this.active == 2) {\r\n this.fileList.splice(index, 1)\r\n }\r\n })\r\n },\r\n //采购单位\r\n purchasingUnitsBtn() {\r\n this.$refs.troubleshooting.add(this.parameter.matIfPlat)\r\n },\r\n // 选择供应商\r\n openVendor() {\r\n this.$refs.poolUnits.add()\r\n },\r\n // 获取供应商数据\r\n getSupplierList(list) {\r\n list.forEach((item) => {\r\n this.parameter.approvalInviteVendorList.push({\r\n vendorId: item.id,\r\n vendorCode: item.code,\r\n vendorName: item.name,\r\n projectApprovalType: 1,\r\n })\r\n })\r\n this.supplierList = list\r\n this.parameter.vendorName = list\r\n .map((item) => {\r\n return item.name\r\n })\r\n .join(',')\r\n },\r\n openExpert() {\r\n this.$refs.expert.add()\r\n },\r\n // 选择评标模板\r\n handleTemplate() {\r\n this.$refs.template.add(this.parameter)\r\n },\r\n // 获取评标模板数据\r\n openTemplate(data) {\r\n console.log(data, 'data')\r\n this.parameter.quotationTemplateDetailApprovalList = data\r\n this.parameter.quotationTemplate = data[0].id\r\n this.parameter.quotationTemplateName = data[0].name\r\n this.$forceUpdate()\r\n },\r\n open(list) {\r\n console.log(list)\r\n this.bidList = list\r\n this.parameter.evaluationTemplateId = list.id\r\n this.parameter.evaluationMethodName = list.name\r\n if (list.evaluatingMethods == 1) {\r\n this.parameter.evaluationMethod = 2\r\n }\r\n if (list.evaluatingMethods == 2) {\r\n this.parameter.evaluationMethod = 1\r\n }\r\n // this.expertList = list\r\n // .map(item => {\r\n // return item.fullname\r\n // })\r\n // .join(',')\r\n },\r\n addDetail(list) {\r\n console.log(list)\r\n this.methodUnitsList = list\r\n let ids = list.map((item) => {\r\n return item.id\r\n })\r\n this.parameter.procureOrgCode = list[0].preparedOrgCode\r\n this.parameter.procureOrgId = list[0].preparedOrgId\r\n this.parameter.procureOrgName = list[0].preparedOrgName\r\n this.parameter.applicationType = list[0].applicationType\r\n this.parameter.matIfPlat = list[0].matIfPlat\r\n this.parameter.isTax = list[0].isTax\r\n this.parameter.quotationMethod = list[0].payMethod\r\n this.parameter.pendingTime = list[0].pendingTime\r\n this.parameter.acceptanceTime = list[0].acceptanceTime\r\n this.parameter.procureType = list[0].procurementMethod\r\n if (this.parameter.procureType == 7) {\r\n this.parameter.releaseMethod = 2\r\n } else {\r\n this.parameter.releaseMethod = 1\r\n }\r\n if (\r\n list[0].accessoryList.length != 0 &&\r\n list[0].accessoryList != undefined\r\n ) {\r\n this.dataList = list[0].accessoryList\r\n this.dataList.forEach((item) => {\r\n delete item.id\r\n })\r\n }\r\n let params = {\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'IN',\r\n parentGroup: '',\r\n property: 'purchasingApplicationId',\r\n relation: 'AND',\r\n value: ids,\r\n },\r\n ],\r\n pageBean: {\r\n pageSize: -1,\r\n page: -1,\r\n },\r\n }\r\n this.$http\r\n .post('${portal}/bizPurchasingApplicationDetails/v1/page', params)\r\n .then((res) => {\r\n if (res.data.state) {\r\n this.parameter.detailsList = res.data.value.rows\r\n this.parameter.detailsList.forEach((item) => {\r\n item['matCompanyName'] = this.parameter.procureOrgName\r\n })\r\n }\r\n })\r\n this.useOrgListValue = list\r\n .map((item) => {\r\n return item.preparedOrgName\r\n })\r\n .join(',')\r\n },\r\n // 公告文件上传\r\n handleFileSuccess(res, file) {\r\n this.quillUrl = res.value.url\r\n let quill = this.$refs.myQuillEditor.quill\r\n // 插入链接\r\n let length = quill.getSelection().index\r\n quill.insertEmbed(\r\n length,\r\n 'link',\r\n {href: this.quillUrl, innerText: file.name},\r\n 'api'\r\n )\r\n quill.setSelection(length + 1)\r\n },\r\n handleAdd(list) {\r\n this.expertData = []\r\n this.expertData = list\r\n this.parameter.projectEvaluationExpertList = list\r\n this.parameter.expertList = list\r\n .map((item) => {\r\n return item.fullname\r\n })\r\n .join(',')\r\n },\r\n //列表删除行\r\n addTable() {\r\n this.parameter.detailsList.push({\r\n matNum: '',\r\n matCompanyName: '',\r\n })\r\n this.parameter.detailsList.forEach((item) => {\r\n item.matCompanyName = this.parameter.procureOrgName\r\n if (this.parameter.applicationType == 2) {\r\n item['matNum'] = 1\r\n }\r\n })\r\n },\r\n //列表删除行\r\n delTable(index, row) {\r\n this.parameter.detailsList.splice(index, 1)\r\n if (row.id) {\r\n this.parameter.deleteDetailsId.push(row.id)\r\n }\r\n },\r\n //编辑\r\n addModifyBtn() {\r\n if (this.$route.query.editRows) {\r\n console.log()\r\n this.breadcrumbOpt[1].breadcrumbName = '编辑'\r\n this.modifychoData(this.$route.query.editRows)\r\n } else {\r\n this.breadcrumbOpt[1].breadcrumbName = '新增'\r\n }\r\n },\r\n //获取修改回显数据\r\n modifychoData(val) {\r\n this.loading = true\r\n procurementManagement.bizProjectApprovalSelectOne(val.id).then((res) => {\r\n this.loading = false\r\n this.parameter = res.value\r\n if (this.parameter.evaluationMethod == 2) {\r\n this.parameter.evaluationMethodName = '综合评标法'\r\n }\r\n if (this.parameter.evaluationMethod == 1) {\r\n this.parameter.evaluationMethodName = '最低评标法'\r\n }\r\n if (this.parameter.zbDocument != undefined) {\r\n delete this.parameter.zbDocument.id\r\n this.dataList = this.parameter.zbDocument.accessoryList\r\n }\r\n if (this.parameter.byDocument != undefined) {\r\n delete this.parameter.byDocument.id\r\n this.fileList = this.parameter.byDocument.accessoryList\r\n }\r\n\r\n if (this.parameter.qualificationsCoutent) {\r\n this.parameter.qualificationsCoutentName =\r\n this.parameter.qualificationsCoutent.split(',')\r\n }\r\n if (this.parameter.projectEvaluationExpertList) {\r\n this.parameter.expertList = this.parameter.projectEvaluationExpertList\r\n .map((item) => {\r\n return item.fullname\r\n })\r\n .join(',')\r\n }\r\n if (this.parameter.procureType == 6) {\r\n this.parameter.procureTypeName = '比选(多轮竞价)'\r\n }\r\n this.parameter.vendorName = this.parameter.approvalInviteVendorList\r\n .map((item) => {\r\n return item.vendorName\r\n })\r\n .join(',')\r\n this.supplierList = this.parameter.approvalInviteVendorList\r\n })\r\n },\r\n changeType(val) {\r\n if (val == 4) {\r\n this.parameter.allocation0fShares = 2\r\n this.parameter.allocationRate1 = 50\r\n this.parameter.allocationRate2 = 50\r\n }\r\n },\r\n load(data) {\r\n console.log(data)\r\n if (this.parameter.detailsList.length == 0) {\r\n this.parameter.detailsList = data\r\n this.parameter.detailsList.forEach((item) => {\r\n item.acceptanceTime = this.parameter.acceptanceTime\r\n item.pendingTime = this.parameter.pendingTime\r\n item.matIfPlat = this.parameter.matIfPlat\r\n })\r\n } else {\r\n data.forEach((item) => {\r\n this.parameter.detailsList.push({\r\n matName: item.matName,\r\n matCode: item.matCode,\r\n matCode: item.matCode,\r\n matMaterial: item.matMaterial,\r\n matSpec: item.matSpec,\r\n matNum: item.matNum,\r\n matUnit: item.matUnit,\r\n procurementMethod: item.procurementMethod,\r\n matBrand: item.matBrand,\r\n preparedDate: item.demandDateValue,\r\n demandDate: item.demandDate,\r\n matBaseExt: item.matBaseExt,\r\n matOtherExt: item.matOtherExt,\r\n id: item.id,\r\n matCompanyName: item.matCompanyName,\r\n matPlatcode: item.matPlatcode,\r\n remarks: item.remarks,\r\n acceptanceTime: this.parameter.acceptanceTime,\r\n taxRate: item.taxRate,\r\n matId: item.matId,\r\n matIfPlat: this.parameter.matIfPlat,\r\n maximumPriceLimit: item.maximumPriceLimit,\r\n unloadAddress: item.unloadAddress,\r\n pendingTime: this.parameter.pendingTime,\r\n key: new Date(),\r\n })\r\n })\r\n }\r\n this.addressList.forEach((item) => {\r\n this.parameter.detailsList.forEach((val) => {\r\n if (item.code == val.unloadAddress) {\r\n val.unloadAddress = item.enterpriseContactAddress\r\n }\r\n })\r\n })\r\n },\r\n // 关闭//面包屑点击\r\n handleClose() {\r\n if (this.$route.query.type == 1) {\r\n this.$router.push({\r\n name: 'multipleRoundsApproval',\r\n params: {\r\n tabsActiveName: 'multiRoundProcurement',\r\n },\r\n })\r\n }\r\n if (this.$route.query.type == 0) {\r\n this.$router.push({\r\n name: 'multipleRoundsApproval',\r\n params: {\r\n tabsActiveName: 'multiRoundSelf',\r\n },\r\n })\r\n }\r\n this.parameter = {}\r\n },\r\n // 保存\r\n handleSave() {\r\n this.parameter.evaTemplate.descriptionList = []\r\n this.scoreData.forEach((item) => {\r\n if (item.children) {\r\n item.children.forEach((val) => {\r\n if (val.id) {\r\n delete val.id\r\n }\r\n this.parameter.evaTemplate.descriptionList.push(val)\r\n })\r\n }\r\n })\r\n this.parameter.quotationTemplateDetailApprovalList.forEach((item) => {\r\n delete item.id\r\n })\r\n this.parameter.detailsList.forEach((item) => {\r\n delete item.id\r\n })\r\n if (this.parameter.projectEvaluationExpertList.length != 0) {\r\n this.parameter.projectEvaluationExpertList.forEach((item) => {\r\n item['expertId'] = item.id\r\n delete item.id\r\n })\r\n }\r\n if (this.parameter.matApprovalQualificationList.length != 0) {\r\n this.parameter.matApprovalQualificationList.forEach((item) => {\r\n item['qualificationTypeName'] = item.name\r\n item['qualificationTypeValue'] = item.code\r\n if (item.id) {\r\n delete item.id\r\n }\r\n })\r\n }\r\n this.parameter.procureType = 6\r\n this.parameter.zbDocument.accessoryList = this.dataList\r\n this.$refs.formInfo3.validate((valid) => {\r\n if (valid) {\r\n this.saveing = true\r\n procurementManagement\r\n .bizProjectApprovalSaveOrUpdate(this.parameter)\r\n .then((res) => {\r\n this.saveing = false\r\n if (res.state) {\r\n this.$message.success(res.message)\r\n this.handleClose()\r\n }\r\n })\r\n }\r\n })\r\n },\r\n next() {\r\n if (this.activeName == 1) {\r\n this.$refs.formInfo1.validate((valid) => {\r\n if (valid) {\r\n this.activeName = 2\r\n }\r\n })\r\n }\r\n },\r\n next1() {\r\n this.$refs.formInfo2.validate((valid) => {\r\n if (valid) {\r\n this.activeName = 3\r\n }\r\n })\r\n },\r\n next2() {\r\n this.activeName = 4\r\n },\r\n up() {\r\n if (this.activeName == 2) {\r\n this.activeName = 1\r\n }\r\n },\r\n up1() {\r\n if (this.activeName == 3) {\r\n this.activeName = 2\r\n }\r\n },\r\n up2() {\r\n if (this.activeName == 4) {\r\n this.activeName = 3\r\n }\r\n },\r\n },\r\n}\r\n",null]}