{"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\\ProjectManagement\\projectProcurementApproval\\component\\projectApprovalAddDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ProjectManagement\\projectProcurementApproval\\component\\projectApprovalAddDialog.vue","mtime":1719607232277},{"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/es6.regexp.to-string\";\nimport \"core-js/modules/es6.reflect.construct\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport _classCallCheck from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _get from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/get\";\nimport _inherits from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _possibleConstructorReturn from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\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\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 Breadcrumb from '@/components/Breadcrumb/index.vue';\nimport { quillEditor } from 'vue-quill-editor'; //调用编辑器\n\nimport 'quill/dist/quill.core.css';\nimport 'quill/dist/quill.snow.css';\nimport { mapState } from 'vuex';\nimport 'quill/dist/quill.bubble.css';\nimport purchasingUnits from \"./purchasingUnits.vue\";\nimport expertUesrs from \"./expertUesrs.vue\";\nimport evaluationBid from \"./evaluationBid.vue\";\nimport quotationTemplateDialog from \"./quotationTemplateDialog.vue\";\nimport procurementManagement from '@/api/procurementManagement';\nimport expertPoolUnits from '@/components/dialog/expertPoolUnits.vue';\nvar toolbarOptions = [['bold', 'italic', 'underline', 'strike'], // toggled buttons\n['blockquote', 'code-block'], [{\n header: 1\n}, {\n header: 2\n}], // custom button values\n[{\n list: 'ordered'\n}, {\n list: 'bullet'\n}], [{\n script: 'sub'\n}, {\n script: 'super'\n}], // superscript/subscript\n[{\n indent: '-1'\n}, {\n indent: '+1'\n}], // outdent/indent\n[{\n direction: 'rtl'\n}], // text direction\n[{\n size: ['small', false, 'large', 'huge']\n}], // custom dropdown\n[{\n header: [1, 2, 3, 4, 5, 6, false]\n}], [{\n color: []\n}, {\n background: []\n}], // dropdown with defaults from theme\n[{\n font: []\n}], [{\n align: []\n}], ['link', 'image', 'upload'], ['clean'] // remove formatting button\n];\nimport { Quill } from 'vue-quill-editor'; // 自定义插入a链接\n\nvar Link = Quill.import('formats/link');\n\nvar FileBlot = /*#__PURE__*/function (_Link) {\n _inherits(FileBlot, _Link);\n\n var _super = _createSuper(FileBlot);\n\n function FileBlot() {\n _classCallCheck(this, FileBlot);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(FileBlot, null, [{\n key: \"create\",\n // 继承Link Blot\n value: function create(value) {\n var node = undefined;\n\n if (value && !value.href) {\n // 适应原本的Link Blot\n node = _get(_getPrototypeOf(FileBlot), \"create\", this).call(this, value);\n } else {\n // 自定义Link Blot\n node = _get(_getPrototypeOf(FileBlot), \"create\", this).call(this, value.href); // node.setAttribute('download', value.innerText); // 左键点击即下载\n\n node.innerText = value.innerText;\n node.download = value.innerText;\n }\n\n return node;\n }\n }]);\n\n return FileBlot;\n}(Link);\n\nFileBlot.blotName = 'link';\nFileBlot.tagName = 'A';\nQuill.register(FileBlot);\nexport default {\n name: 'domesticDialog',\n components: {\n Breadcrumb: Breadcrumb,\n purchasingUnits: purchasingUnits,\n expertUesrs: expertUesrs,\n evaluationBid: evaluationBid,\n quillEditor: quillEditor,\n quotationTemplateDialog: quotationTemplateDialog,\n expertPoolUnits: expertPoolUnits\n },\n props: {\n editData: Object\n },\n data: function data() {\n return {\n importData: {\n title: '明细导入',\n templateName: '明细导入模板.xls',\n downloadUrl: '/../fvue/static/excel/material.xlsx',\n importUrl: window.context.portal + '/biz/Gs/v1/importExcelData',\n showProject: true,\n header: '明细导入'\n },\n editorOption: {\n // 改变提示文字内容\n placeholder: '请输入内容......',\n modules: {\n toolbar: {\n container: toolbarOptions,\n // 工具栏\n handlers: {\n upload: function upload(value) {\n if (value) {\n document.querySelector('.uploadFile input').click();\n }\n }\n }\n }\n }\n },\n saveing: false,\n bidList: [],\n supplierList: [],\n qualificationsList: [],\n active: '1',\n centralizedData: [{\n name: '是',\n id: 1\n }, {\n name: '否',\n id: 0\n }],\n breadcrumbOpt: [{\n breadcrumbName: '采购立项'\n }, {\n breadcrumbName: '新增'\n }],\n expertList: [],\n activeName: '1',\n rules: {\n projectNumber: [{\n required: true,\n message: '请输入项目编号',\n trigger: 'blur'\n }],\n noticeTitle: [{\n required: true,\n message: '请输入公告标题',\n trigger: 'blur'\n }],\n procureOrgName: [{\n required: true,\n message: '请选择采购单位',\n trigger: 'blur'\n }],\n applicationType: [{\n required: true,\n message: '请选择项目类型',\n trigger: 'blur'\n }],\n matIfPlat: [{\n required: true,\n message: '请选择是否集中采购',\n trigger: 'blur'\n }],\n procureType: [{\n required: true,\n message: '请选择采购类型',\n trigger: 'blur'\n }],\n isTax: [{\n required: true,\n message: '请选择是否含税价',\n trigger: 'blur'\n }],\n releaseMethod: [{\n required: true,\n message: '请选择发布方式',\n trigger: 'blur'\n }],\n vendorName: [{\n required: true,\n message: '请选择供应商',\n trigger: 'blur'\n }],\n establishmentName: [{\n required: true,\n message: '请输入项目内容',\n trigger: 'blur'\n }],\n quotationMethod: [{\n required: true,\n message: '请选择付款方式',\n trigger: 'blur'\n }],\n acceptanceTime: [{\n required: true,\n message: '请选择承兑时间',\n trigger: 'blur'\n }],\n pendingTime: [{\n required: true,\n message: '请选择挂账时间',\n trigger: 'blur'\n }],\n hasQualification: [{\n required: true,\n message: '请选择资质要求',\n trigger: 'blur'\n }],\n qualificationsCoutentName: [{\n required: true,\n message: '请选择资质标签',\n trigger: 'blur'\n }],\n hasBond: [{\n required: true,\n message: '请选择有无保证金',\n trigger: 'blur'\n }],\n bond: [{\n required: true,\n message: '请输入保证金',\n trigger: 'blur'\n }],\n quotationRounds: [{\n required: true,\n message: '请输入报价轮数',\n trigger: 'blur'\n }],\n quotationTemplateName: [{\n required: true,\n message: '请选择报价模板',\n trigger: 'blur'\n }],\n evaluationMethod: [{\n required: true,\n message: '请选择评标方法',\n trigger: 'blur'\n }],\n expertList: [{\n required: true,\n message: '请选择评标人',\n trigger: 'blur'\n }],\n biddingStartTime: [{\n required: true,\n message: '请选择投标开始时间',\n trigger: 'blur'\n }],\n biddingEndTime: [{\n required: true,\n message: '请选择投标结束时间',\n trigger: 'blur'\n }],\n clarificationSupplementDeadlineTime: [{\n required: true,\n message: '请选择澄清补遗时间',\n trigger: 'blur'\n }],\n raisingQuestionsDeadlineTime: [{\n required: true,\n message: '请选择供货商提出问题的截止时间',\n trigger: 'blur'\n }],\n responseTimeDeadline: [{\n required: true,\n message: '请选择响应截止时间',\n trigger: 'blur'\n }],\n winBidValidity: [{\n required: true,\n message: '请输入中标结果有效期',\n trigger: 'blur'\n }]\n },\n useOrgListValue: '',\n dataList: [],\n fileList: [],\n methodUnitsList: [],\n parameter: {\n projectNumber: '',\n noticeTitle: '',\n establishmentName: '',\n projectApprovalType: '1',\n detailsList: [],\n bidStatus: '0',\n procureOrgName: '',\n applicationType: '',\n quotationRounds: 1,\n matIfPlat: '',\n hasQualification: '1',\n vendorName: '',\n isTax: '',\n templateDetails: [],\n procureType: '1',\n tenderDocumentList: [],\n quotationTemplate: '',\n approvalInviteVendorList: [],\n quotationTemplateName: '',\n releaseMethod: '1',\n evaluationMethod: '1',\n biddingStartTime: '',\n biddingEndTime: '',\n raisingQuestionsDeadlineTime: '',\n clarificationSupplementDeadlineTime: '',\n quotationMethod: '',\n hasBond: '0',\n responseTimeDeadline: '',\n quotationTemplateDetailApprovalList: [],\n byDocument: {\n type: '',\n accessoryList: [],\n describe: ''\n },\n zbDocument: {\n type: '',\n accessoryList: []\n }\n }\n };\n },\n created: function created() {\n this.addModifyBtn();\n this.getQualifications();\n\n var moment = require('moment');\n\n this.parameter.biddingStartTime = moment().format('yyyy-MM-DD HH:mm:ss');\n this.parameter.biddingEndTime = moment().add(2, 'hours').format('YYYY-MM-DD HH:mm:ss');\n this.parameter.clarificationSupplementDeadlineTime = moment().add(2, 'hours').format('YYYY-MM-DD HH:mm:ss');\n this.parameter.raisingQuestionsDeadlineTime = moment().add(2, 'hours').format('YYYY-MM-DD HH:mm:ss');\n this.parameter.responseTimeDeadline = moment().add(2, 'hours').format('YYYY-MM-DD HH:mm:ss');\n },\n computed: _objectSpread({}, mapState({\n headers: function headers(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n },\n action: function action() {\n return window.context.portal + '/biz/universal/v1/minioUpload';\n },\n actionBz: function actionBz() {\n return window.context.portal + '/matApproval/v1/uploadTenderDoc';\n }\n })),\n mounted: function mounted() {},\n methods: {\n // 获取资质标签内容\n getQualifications: function getQualifications() {\n var _this = this;\n\n var params = {\n querys: [],\n pageBean: {\n pageSize: -1,\n page: -1\n }\n };\n this.$http.post('${portal}/bizQualificationLabel/v1/page', params).then(function (res) {\n if (res.data.state) {\n _this.qualificationsList = res.data.value.rows;\n }\n });\n },\n changeQualifications: function changeQualifications(val) {\n console.log(val, 'val');\n this.parameter.qualificationsCoutent = val.join(',');\n },\n // 切换tab\n handleClick: function handleClick(tab, e) {},\n // 上传文件成功回调\n handleSuccess: function handleSuccess(res, fileList) {\n if (this.active == 1) {\n if (res.state) {\n this.dataList.push(res.value);\n this.dataList.forEach(function (item) {\n item['type'] = 1;\n });\n }\n\n this.parameter.zbDocument.type = 1;\n this.parameter.zbDocument.accessoryList = this.dataList;\n }\n\n if (this.active == 2) {\n if (res.state) {\n this.fileList.push(res.value);\n }\n\n this.fileList.forEach(function (item) {\n item['type'] = 2;\n });\n this.parameter.byDocument.type = 2;\n this.parameter.byDocument.accessoryList = this.fileList;\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(index) {\n var _this2 = this;\n\n this.$confirm('是否确认删除该附件', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n if (_this2.active == 1) {\n _this2.dataList.splice(index, 1);\n }\n\n if (_this2.active == 2) {\n _this2.fileList.splice(index, 1);\n }\n });\n },\n //采购单位\n purchasingUnitsBtn: function purchasingUnitsBtn() {\n this.$refs.troubleshooting.add();\n },\n openExpert: function openExpert() {\n this.$refs.expert.add();\n },\n // 选择供应商\n openVendor: function openVendor() {\n this.$refs.poolUnits.add();\n },\n // 获取供应商数据\n getSupplierList: function getSupplierList(list) {\n var _this3 = this;\n\n list.forEach(function (item) {\n _this3.parameter.approvalInviteVendorList.push({\n vendorId: item.id,\n vendorCode: item.code,\n vendorName: item.name\n });\n });\n this.supplierList = list;\n this.parameter.vendorName = list.map(function (item) {\n return item.name;\n }).join(',');\n },\n // 选择评标模板\n handleTemplate: function handleTemplate() {\n this.$refs.template.add();\n },\n // 获取评标模板数据\n openTemplate: function openTemplate(data) {\n this.parameter.templateDetails = data;\n this.parameter.quotationTemplate = data[0].id;\n this.parameter.quotationTemplateName = data[0].name;\n this.parameter.templateDetails.forEach(function (item) {\n delete item.id;\n });\n this.$forceUpdate();\n },\n evaluationBid: function evaluationBid() {\n this.$refs.evaluationBid.add();\n },\n open: function open(list) {\n console.log(list);\n this.bidList = list;\n this.expertList = list.map(function (item) {\n return item.fullname;\n }).join(',');\n },\n addDetail: function addDetail(list) {\n var _this4 = this;\n\n console.log(list);\n this.methodUnitsList = list;\n this.parameter.procureOrgCode = list[0].purchasingOrgCode;\n this.parameter.procureOrgId = list[0].purchasingOrgID;\n this.parameter.procureOrgName = list[0].purchasingOrgName;\n this.parameter.applicationType = list[0].applicationType;\n var params = {\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'projectInfoId',\n relation: 'AND',\n value: list[0].id\n }],\n pageBean: {\n pageSize: -1,\n page: -1\n }\n };\n this.$http.post('${portal}/projectInfoDetail/v1/page', params).then(function (res) {\n if (res.data.state) {\n _this4.parameter.detailsList = res.data.value.rows;\n }\n });\n this.useOrgListValue = list.map(function (item) {\n return item.preparedOrgName;\n }).join(',');\n },\n // 公告文件上传\n handleFileSuccess: function handleFileSuccess(res, file) {\n this.quillUrl = res.value.url;\n var quill = this.$refs.myQuillEditor.quill; // 插入链接\n\n var length = quill.getSelection().index;\n quill.insertEmbed(length, 'link', {\n href: this.quillUrl,\n innerText: file.name\n }, 'api');\n quill.setSelection(length + 1);\n },\n handleAdd: function handleAdd(list) {\n console.log(list, 'list');\n this.parameter.projectEvaluationExpertList = list;\n this.parameter.projectEvaluationExpertList.forEach(function (item) {\n item['expertId'] = item.id;\n delete item.id;\n });\n this.expertList = list.map(function (item) {\n return item.fullname;\n }).join(',');\n },\n //列表删除行\n addTable: function addTable() {\n this.parameter.detailsList.push({});\n },\n //列表删除行\n delTable: function delTable(index, row) {\n this.parameter.detailsList.splice(index, 1);\n\n if (row.id) {\n this.parameter.deleteDetailsId.push(row.id);\n }\n },\n //编辑\n addModifyBtn: function addModifyBtn() {\n if (this.$route.query.editRows) {\n console.log();\n this.breadcrumbOpt[1].breadcrumbName = '编辑';\n this.modifychoData(this.$route.query.editRows);\n } else {\n this.breadcrumbOpt[1].breadcrumbName = '新增';\n }\n },\n changeTab: function changeTab() {\n this.activeName = 1;\n },\n changeTab1: function changeTab1() {\n this.activeName = 2;\n },\n changeTab2: function changeTab2() {\n this.activeName = 3;\n },\n //获取修改回显数据\n modifychoData: function modifychoData(val) {\n var _this5 = this;\n\n procurementManagement.projectApprovalProDetails(val.id).then(function (res) {\n _this5.parameter = res.value;\n\n if (_this5.parameter.zbDocument != undefined) {\n delete _this5.parameter.zbDocument.id;\n _this5.dataList = _this5.parameter.zbDocument.accessoryList;\n }\n\n if (_this5.parameter.byDocument != undefined) {\n delete _this5.parameter.byDocument.id;\n _this5.fileList = _this5.parameter.byDocument.accessoryList;\n }\n\n _this5.parameter.qualificationsCoutentName = _this5.parameter.qualificationsCoutent.split(',');\n _this5.expertList = _this5.parameter.projectEvaluationExpertList.map(function (item) {\n return item.fullname;\n }).join(',');\n _this5.parameter.vendorName = _this5.parameter.approvalInviteVendorList.map(function (item) {\n return item.vendorName;\n }).join(',');\n _this5.supplierList = _this5.parameter.approvalInviteVendorList;\n });\n },\n // 关闭//面包屑点击\n handleClose: function handleClose() {\n if (this.breadcrumbOpt[1].breadcrumbName === '编辑') {\n this.$router.push({\n name: 'projectProcurementApproval',\n params: {\n pageBean: this.$route.query.pageBean\n }\n });\n } else {\n this.$router.push({\n name: 'projectProcurementApproval'\n });\n }\n\n this.parameter = {};\n },\n // 保存\n handleSave: function handleSave() {\n var _this6 = this;\n\n this.parameter.detailsList.forEach(function (item) {\n delete item.id;\n });\n this.$refs.formInfo3.validate(function (valid) {\n if (valid) {\n _this6.saveing = true;\n procurementManagement.projectApprovalProDetailsSaveOrUpdate(_this6.parameter).then(function (res) {\n _this6.saveing = false;\n\n if (res.state) {\n _this6.$message.success(res.message);\n\n if (_this6.breadcrumbOpt[1].breadcrumbName === '编辑') {\n _this6.$router.push({\n name: 'projectProcurementApproval',\n params: {\n pageBean: _this6.$route.query.pageBean\n }\n });\n } else {\n _this6.$router.push({\n name: 'projectProcurementApproval'\n });\n }\n }\n });\n }\n });\n },\n next: function next() {\n var _this7 = this;\n\n this.$refs.formInfo1.validate(function (valid) {\n if (valid) {\n _this7.activeName = 2;\n }\n });\n },\n next1: function next1() {\n var _this8 = this;\n\n this.$refs.formInfo2.validate(function (valid) {\n if (valid) {\n _this8.activeName = 3;\n }\n });\n },\n up: function up() {\n this.activeName = 1;\n },\n up1: function up1() {\n this.activeName = 2;\n }\n }\n};",null]}