{"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\\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\\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 basicData from '@/api/basicData';\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';\nimport moment from 'moment'; // 自定义插入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 quillEditor: quillEditor,\n quotationTemplateDialog: quotationTemplateDialog,\n expertPoolUnits: expertPoolUnits,\n evaluationBid: evaluationBid\n },\n props: {\n editData: Object\n },\n data: function data() {\n var _rules;\n\n return {\n importData: {\n title: '明细导入',\n templateName: '明细导入模板.xls',\n downloadUrl: '/../fvue/static/excel/采购制单明细导入.xlsx',\n importUrl: window.context.portal + '/matApprovalDetails/v1/excelToData',\n showProject: true,\n header: '明细导入'\n },\n activeName: '1',\n loading: false,\n supplierList: [],\n treeData: [],\n scoreData: [],\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 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 expertData: [],\n rules: (_rules = {\n noticeTitle: [{\n required: true,\n message: '请输入公告标题',\n trigger: 'blur'\n }],\n allocation0fShares: [{\n required: true,\n message: '请选择份额分配数量',\n trigger: 'blur'\n }],\n matNum: [{\n required: true,\n message: '请输入数量',\n trigger: 'blur'\n }],\n establishmentName: [{\n required: true,\n message: '请输入公告内容',\n trigger: 'blur'\n }],\n procureOrgName: [{\n required: true,\n message: '请选择采购单位',\n trigger: 'blur'\n }],\n vendorName: [{\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 }, _defineProperty(_rules, \"vendorName\", [{\n required: true,\n message: '请选择供应商',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"quotationMethod\", [{\n required: true,\n message: '请选择付款方式',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"acceptanceTime\", [{\n required: true,\n message: '请选择承兑时间',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"pendingTime\", [{\n required: true,\n message: '请选择挂账时间',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"hasQualification\", [{\n required: true,\n message: '请选择资质要求',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"qualificationsCoutentName\", [{\n required: true,\n message: '请选择资质标签',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"hasBond\", [{\n required: true,\n message: '请选择有无保证金',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"bond\", [{\n required: true,\n message: '请输入保证金',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"quotationRounds\", [{\n required: true,\n message: '请输入报价轮数',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"quotationTemplateName\", [{\n required: true,\n message: '请选择报价模板',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"evaluationMethodName\", [{\n required: true,\n message: '请选择评标方法',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"expertList\", [{\n required: true,\n message: '请选择评标人',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"biddingStartTime\", [{\n required: true,\n message: '请选择投标开始时间',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"biddingEndTime\", [{\n required: true,\n message: '请选择投标结束时间',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"clarificationSupplementDeadlineTime\", [{\n required: true,\n message: '请选择澄清补遗时间',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"raisingQuestionsDeadlineTime\", [{\n required: true,\n message: '请选择供货商提出问题的截止时间',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"responseTimeDeadline\", [{\n required: true,\n message: '请选择响应截止时间',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"winBidValidity\", [{\n required: true,\n message: '请输入中标结果有效期',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"evaluationMode\", [{\n required: true,\n message: '请选择评标方式',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"allocationRate1\", [{\n required: true,\n message: '请输入第一分配率(%)',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"allocationRate2\", [{\n required: true,\n message: '请输入第二分配率(%)',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"allocationRate3\", [{\n required: true,\n message: '请输入第三分配率(%)',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"allocationRate4\", [{\n required: true,\n message: '请输入第四分配率(%)',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"allocationRate5\", [{\n required: true,\n message: '请输入第五分配率(%)',\n trigger: 'blur'\n }]), _defineProperty(_rules, \"isBidDocumentsUpload\", [{\n required: true,\n message: '请选择投标文件是否必传',\n trigger: 'blur'\n }]), _rules),\n addressList: [],\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 evaTemplate: {\n descriptionList: []\n },\n procureOrgName: '',\n applicationType: '',\n allocation0fShares: 1,\n evaluationMode: 1,\n evaluationMethodName: '',\n quotationRounds: 2,\n allocationRate1: 100,\n allocationRate2: '',\n allocationRate3: '',\n allocationRate4: '',\n allocationRate5: '',\n acceptanceTime: 6,\n isBidDocumentsUpload: 1,\n matIfPlat: '',\n hasQualification: '1',\n pendingTime: 1,\n vendorName: '',\n isTax: '',\n templateDetails: [],\n expertList: '',\n procureType: '6',\n tenderDocumentList: [],\n quotationTemplate: '',\n approvalInviteVendorList: [],\n quotationTemplateName: '',\n releaseMethod: '1',\n evaluationMethod: '1',\n releaseStatus: 0,\n biddingStartTime: '',\n biddingEndTime: '',\n projectEvaluationExpertList: [],\n raisingQuestionsDeadlineTime: '',\n clarificationSupplementDeadlineTime: '',\n matApprovalQualificationList: [],\n quotationMethod: '',\n hasBond: '0',\n bond: 0,\n responseTimeDeadline: '',\n quotationTemplateDetailApprovalList: [],\n zbDocument: {\n type: 1,\n accessoryList: []\n }\n }\n };\n },\n created: function created() {\n this.getAddress();\n this.selectTree();\n this.addModifyBtn();\n this.parameter.matIfPlat = this.$route.query.type;\n\n if (this.parameter.matIfPlat == 0) {\n this.currentUser = JSON.parse(sessionStorage.getItem('currentUserDetail'));\n this.parameter.procureOrgCode = this.currentUser.org[0].orgCode;\n this.parameter.procureOrgId = this.currentUser.org[0].orgId;\n this.parameter.procureOrgName = this.currentUser.org[0].orgName;\n }\n\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.evaluationStartTime = this.parameter.biddingEndTime;\n this.parameter.evaluationEndTime = moment(this.parameter.evaluationStartTime).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 if (this.parameter.procureType == 6) {\n this.parameter.procureTypeName = '比选(多轮竞价)';\n }\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 watch: {\n scoreData: {\n handler: function handler(newVal, oldVal) {\n console.log('Address changed:', newVal, oldVal); // let sum = 0\n // newVal.forEach(item=>{\n // console.log(item);\n // item.evaluationScore += item.evaluationScore ==100\n // })\n },\n deep: true\n }\n },\n methods: {\n // 获取送货地址分页\n getAddress: function getAddress() {\n var _this = this;\n\n var params = {\n pageBean: {\n pageSize: -1,\n page: -1\n }\n };\n this.$http.post('${portal}/bizDeliveryAddress/v1/query', params).then(function (res) {\n _this.addressList = res.data.rows;\n });\n },\n changeShares: function changeShares(val) {\n if (val == 1) {\n this.parameter.allocationRate1 = 100;\n }\n\n if (val == 2) {\n this.parameter.allocationRate1 = 50;\n this.parameter.allocationRate2 = 50;\n }\n\n if (val == 3) {\n this.parameter.allocationRate1 = 30;\n this.parameter.allocationRate2 = 30;\n this.parameter.allocationRate3 = 40;\n }\n\n if (val == 4) {\n this.parameter.allocationRate1 = 25;\n this.parameter.allocationRate2 = 25;\n this.parameter.allocationRate3 = 25;\n this.parameter.allocationRate4 = 25;\n }\n\n if (val == 5) {\n this.parameter.allocationRate1 = 20;\n this.parameter.allocationRate2 = 20;\n this.parameter.allocationRate3 = 20;\n this.parameter.allocationRate4 = 20;\n this.parameter.allocationRate5 = 20;\n }\n },\n //查询评标分类树结构\n selectTree: function selectTree() {\n var _this2 = this;\n\n basicData.bizEvaluationItemSelectTree().then(function (res) {\n _this2.scoreData = res.value[0].children;\n\n _this2.scoreData.forEach(function (item) {\n item.evaluationItemPname = item.subjectName;\n item.evaluationScore = 0;\n });\n });\n },\n // 获取资质标签内容\n getQualifications: function getQualifications() {\n var _this3 = this;\n\n var params = {\n querys: [],\n pageBean: {\n pageSize: -1,\n page: -1\n }\n };\n this.$http.post('${portal}/bizQualificationCategory/v1/page', params).then(function (res) {\n if (res.data.state) {\n _this3.qualificationsList = res.data.value.rows;\n }\n });\n },\n changeQualifications: function changeQualifications(val) {\n this.parameter.qualificationsCoutent = val.join(',');\n\n if (this.parameter.qualificationsCoutent == '' || this.parameter.qualificationsCoutentName == '') {\n this.parameter.matApprovalQualificationList = [];\n }\n\n this.$forceUpdate();\n },\n clickQua: function clickQua(val) {\n if (this.parameter.qualificationsCoutent == '' || this.parameter.qualificationsCoutentName == '') {\n this.parameter.matApprovalQualificationList = [];\n } else {\n this.parameter.matApprovalQualificationList.push(val);\n }\n },\n // 综合评标法添加子级\n LowerBtn: function LowerBtn(row) {\n row.children.push({\n evaluationItemCode: '',\n evaluationStandard: '',\n evaluationScore: 0,\n evaluationItemPid: row.id,\n evaluationItemPname: '',\n id: Math.random() + ''\n });\n\n if (row.subjectName == '商务部分') {\n row.children[0].evaluationItemCode = '价格得分';\n }\n },\n deleteLevel: function deleteLevel(row, index) {\n this.scoreData = this.delFlatten(this.scoreData, row.id);\n },\n // 子节点删除\n delFlatten: function delFlatten(arr, id) {\n var _this4 = this;\n\n arr.map(function (item) {\n if (item.children !== undefined) {\n for (var i = 0; i < item.children.length; i++) {\n if (item.children[i].id === id) {\n item.children = item.children.filter(function (items) {\n return items.id !== id;\n });\n }\n }\n }\n\n if (Array.isArray(item.children)) {\n _this4.delFlatten(item.children, id);\n }\n });\n return arr;\n },\n handleInput: function handleInput(val) {\n console.log(val);\n this.scoreData.forEach(function (item) {\n if (item.id == val.id) {\n return;\n } else {\n 100 - item.evaluationScore;\n return item.evaluationScore;\n }\n\n console.log(item);\n });\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 evaluationBid: function evaluationBid() {\n this.$refs.evaluationBid.add(this.currentUser.org[0].orgId);\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 _this5 = this;\n\n this.$confirm('是否确认删除该附件', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n if (_this5.active == 1) {\n _this5.dataList.splice(index, 1);\n }\n\n if (_this5.active == 2) {\n _this5.fileList.splice(index, 1);\n }\n });\n },\n //采购单位\n purchasingUnitsBtn: function purchasingUnitsBtn() {\n this.$refs.troubleshooting.add(this.parameter.matIfPlat);\n },\n // 选择供应商\n openVendor: function openVendor() {\n this.$refs.poolUnits.add();\n },\n // 获取供应商数据\n getSupplierList: function getSupplierList(list) {\n var _this6 = this;\n\n list.forEach(function (item) {\n _this6.parameter.approvalInviteVendorList.push({\n vendorId: item.id,\n vendorCode: item.code,\n vendorName: item.name,\n projectApprovalType: 1\n });\n });\n this.supplierList = list;\n this.parameter.vendorName = list.map(function (item) {\n return item.name;\n }).join(',');\n },\n openExpert: function openExpert() {\n this.$refs.expert.add();\n },\n // 选择评标模板\n handleTemplate: function handleTemplate() {\n this.$refs.template.add(this.parameter);\n },\n // 获取评标模板数据\n openTemplate: function openTemplate(data) {\n console.log(data, 'data');\n this.parameter.quotationTemplateDetailApprovalList = data;\n this.parameter.quotationTemplate = data[0].id;\n this.parameter.quotationTemplateName = data[0].name;\n this.$forceUpdate();\n },\n open: function open(list) {\n console.log(list);\n this.bidList = list;\n this.parameter.evaluationTemplateId = list.id;\n this.parameter.evaluationMethodName = list.name;\n\n if (list.evaluatingMethods == 1) {\n this.parameter.evaluationMethod = 2;\n }\n\n if (list.evaluatingMethods == 2) {\n this.parameter.evaluationMethod = 1;\n } // this.expertList = list\n // .map(item => {\n // return item.fullname\n // })\n // .join(',')\n\n },\n addDetail: function addDetail(list) {\n var _this7 = this;\n\n console.log(list);\n this.methodUnitsList = list;\n var ids = list.map(function (item) {\n return item.id;\n });\n this.parameter.procureOrgCode = list[0].preparedOrgCode;\n this.parameter.procureOrgId = list[0].preparedOrgId;\n this.parameter.procureOrgName = list[0].preparedOrgName;\n this.parameter.applicationType = list[0].applicationType;\n this.parameter.matIfPlat = list[0].matIfPlat;\n this.parameter.isTax = list[0].isTax;\n this.parameter.quotationMethod = list[0].payMethod;\n this.parameter.pendingTime = list[0].pendingTime;\n this.parameter.acceptanceTime = list[0].acceptanceTime;\n this.parameter.procureType = list[0].procurementMethod;\n\n if (this.parameter.procureType == 7) {\n this.parameter.releaseMethod = 2;\n } else {\n this.parameter.releaseMethod = 1;\n }\n\n if (list[0].accessoryList.length != 0 && list[0].accessoryList != undefined) {\n this.dataList = list[0].accessoryList;\n this.dataList.forEach(function (item) {\n delete item.id;\n });\n }\n\n var params = {\n querys: [{\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 'purchasingApplicationId',\n relation: 'AND',\n value: ids\n }],\n pageBean: {\n pageSize: -1,\n page: -1\n }\n };\n this.$http.post('${portal}/bizPurchasingApplicationDetails/v1/page', params).then(function (res) {\n if (res.data.state) {\n _this7.parameter.detailsList = res.data.value.rows;\n\n _this7.parameter.detailsList.forEach(function (item) {\n item['matCompanyName'] = _this7.parameter.procureOrgName;\n });\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 this.expertData = [];\n this.expertData = list;\n this.parameter.projectEvaluationExpertList = list;\n this.parameter.expertList = list.map(function (item) {\n return item.fullname;\n }).join(',');\n },\n //列表删除行\n addTable: function addTable() {\n var _this8 = this;\n\n this.parameter.detailsList.push({\n matNum: '',\n matCompanyName: ''\n });\n this.parameter.detailsList.forEach(function (item) {\n item.matCompanyName = _this8.parameter.procureOrgName;\n\n if (_this8.parameter.applicationType == 2) {\n item['matNum'] = 1;\n }\n });\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 //获取修改回显数据\n modifychoData: function modifychoData(val) {\n var _this9 = this;\n\n this.loading = true;\n procurementManagement.bizProjectApprovalSelectOne(val.id).then(function (res) {\n _this9.loading = false;\n _this9.parameter = res.value;\n\n if (_this9.parameter.evaluationMethod == 2) {\n _this9.parameter.evaluationMethodName = '综合评标法';\n }\n\n if (_this9.parameter.evaluationMethod == 1) {\n _this9.parameter.evaluationMethodName = '最低评标法';\n }\n\n if (_this9.parameter.zbDocument != undefined) {\n delete _this9.parameter.zbDocument.id;\n _this9.dataList = _this9.parameter.zbDocument.accessoryList;\n }\n\n if (_this9.parameter.byDocument != undefined) {\n delete _this9.parameter.byDocument.id;\n _this9.fileList = _this9.parameter.byDocument.accessoryList;\n }\n\n if (_this9.parameter.qualificationsCoutent) {\n _this9.parameter.qualificationsCoutentName = _this9.parameter.qualificationsCoutent.split(',');\n }\n\n if (_this9.parameter.projectEvaluationExpertList) {\n _this9.parameter.expertList = _this9.parameter.projectEvaluationExpertList.map(function (item) {\n return item.fullname;\n }).join(',');\n }\n\n if (_this9.parameter.procureType == 6) {\n _this9.parameter.procureTypeName = '比选(多轮竞价)';\n }\n\n _this9.parameter.vendorName = _this9.parameter.approvalInviteVendorList.map(function (item) {\n return item.vendorName;\n }).join(',');\n _this9.supplierList = _this9.parameter.approvalInviteVendorList;\n });\n },\n changeType: function changeType(val) {\n if (val == 4) {\n this.parameter.allocation0fShares = 2;\n this.parameter.allocationRate1 = 50;\n this.parameter.allocationRate2 = 50;\n }\n },\n load: function load(data) {\n var _this10 = this;\n\n console.log(data);\n\n if (this.parameter.detailsList.length == 0) {\n this.parameter.detailsList = data;\n this.parameter.detailsList.forEach(function (item) {\n item.acceptanceTime = _this10.parameter.acceptanceTime;\n item.pendingTime = _this10.parameter.pendingTime;\n item.matIfPlat = _this10.parameter.matIfPlat;\n });\n } else {\n data.forEach(function (item) {\n var _this10$parameter$det;\n\n _this10.parameter.detailsList.push((_this10$parameter$det = {\n matName: item.matName,\n matCode: item.matCode\n }, _defineProperty(_this10$parameter$det, \"matCode\", item.matCode), _defineProperty(_this10$parameter$det, \"matMaterial\", item.matMaterial), _defineProperty(_this10$parameter$det, \"matSpec\", item.matSpec), _defineProperty(_this10$parameter$det, \"matNum\", item.matNum), _defineProperty(_this10$parameter$det, \"matUnit\", item.matUnit), _defineProperty(_this10$parameter$det, \"procurementMethod\", item.procurementMethod), _defineProperty(_this10$parameter$det, \"matBrand\", item.matBrand), _defineProperty(_this10$parameter$det, \"preparedDate\", item.demandDateValue), _defineProperty(_this10$parameter$det, \"demandDate\", item.demandDate), _defineProperty(_this10$parameter$det, \"matBaseExt\", item.matBaseExt), _defineProperty(_this10$parameter$det, \"matOtherExt\", item.matOtherExt), _defineProperty(_this10$parameter$det, \"id\", item.id), _defineProperty(_this10$parameter$det, \"matCompanyName\", item.matCompanyName), _defineProperty(_this10$parameter$det, \"matPlatcode\", item.matPlatcode), _defineProperty(_this10$parameter$det, \"remarks\", item.remarks), _defineProperty(_this10$parameter$det, \"acceptanceTime\", _this10.parameter.acceptanceTime), _defineProperty(_this10$parameter$det, \"taxRate\", item.taxRate), _defineProperty(_this10$parameter$det, \"matId\", item.matId), _defineProperty(_this10$parameter$det, \"matIfPlat\", _this10.parameter.matIfPlat), _defineProperty(_this10$parameter$det, \"maximumPriceLimit\", item.maximumPriceLimit), _defineProperty(_this10$parameter$det, \"unloadAddress\", item.unloadAddress), _defineProperty(_this10$parameter$det, \"pendingTime\", _this10.parameter.pendingTime), _defineProperty(_this10$parameter$det, \"key\", new Date()), _this10$parameter$det));\n });\n }\n\n this.addressList.forEach(function (item) {\n _this10.parameter.detailsList.forEach(function (val) {\n if (item.code == val.unloadAddress) {\n val.unloadAddress = item.enterpriseContactAddress;\n }\n });\n });\n },\n // 关闭//面包屑点击\n handleClose: function handleClose() {\n if (this.$route.query.type == 1) {\n this.$router.push({\n name: 'multipleRoundsApproval',\n params: {\n tabsActiveName: 'multiRoundProcurement'\n }\n });\n }\n\n if (this.$route.query.type == 0) {\n this.$router.push({\n name: 'multipleRoundsApproval',\n params: {\n tabsActiveName: 'multiRoundSelf'\n }\n });\n }\n\n this.parameter = {};\n },\n // 保存\n handleSave: function handleSave() {\n var _this11 = this;\n\n this.parameter.evaTemplate.descriptionList = [];\n this.scoreData.forEach(function (item) {\n if (item.children) {\n item.children.forEach(function (val) {\n if (val.id) {\n delete val.id;\n }\n\n _this11.parameter.evaTemplate.descriptionList.push(val);\n });\n }\n });\n this.parameter.quotationTemplateDetailApprovalList.forEach(function (item) {\n delete item.id;\n });\n this.parameter.detailsList.forEach(function (item) {\n delete item.id;\n });\n\n if (this.parameter.projectEvaluationExpertList.length != 0) {\n this.parameter.projectEvaluationExpertList.forEach(function (item) {\n item['expertId'] = item.id;\n delete item.id;\n });\n }\n\n if (this.parameter.matApprovalQualificationList.length != 0) {\n this.parameter.matApprovalQualificationList.forEach(function (item) {\n item['qualificationTypeName'] = item.name;\n item['qualificationTypeValue'] = item.code;\n\n if (item.id) {\n delete item.id;\n }\n });\n }\n\n this.parameter.procureType = 6;\n this.parameter.zbDocument.accessoryList = this.dataList;\n this.$refs.formInfo3.validate(function (valid) {\n if (valid) {\n _this11.saveing = true;\n procurementManagement.bizProjectApprovalSaveOrUpdate(_this11.parameter).then(function (res) {\n _this11.saveing = false;\n\n if (res.state) {\n _this11.$message.success(res.message);\n\n _this11.handleClose();\n }\n });\n }\n });\n },\n next: function next() {\n var _this12 = this;\n\n if (this.activeName == 1) {\n this.$refs.formInfo1.validate(function (valid) {\n if (valid) {\n _this12.activeName = 2;\n }\n });\n }\n },\n next1: function next1() {\n var _this13 = this;\n\n this.$refs.formInfo2.validate(function (valid) {\n if (valid) {\n _this13.activeName = 3;\n }\n });\n },\n next2: function next2() {\n this.activeName = 4;\n },\n up: function up() {\n if (this.activeName == 2) {\n this.activeName = 1;\n }\n },\n up1: function up1() {\n if (this.activeName == 3) {\n this.activeName = 2;\n }\n },\n up2: function up2() {\n if (this.activeName == 4) {\n this.activeName = 3;\n }\n }\n }\n};",null]}