{"remainingRequest":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\yhxt-web\\src\\views\\specialProjectManagement\\HandoverInfo.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\specialProjectManagement\\HandoverInfo.vue","mtime":1679681639256},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\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.string.iterator\";\nimport \"core-js/modules/es6.map\";\nimport \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { mapState } from 'vuex';\nimport req from '@/request.js';\nimport basicData from '@/api/basicData.js';\nimport projectInfoSelector from '@/components/selector/projectInfoSelector.vue';\nimport fileUpload from '@/components/upload/fileUploadProject.vue';\nimport CascaderCompany from '@/components/selector/CascaderCompany.vue';\nexport default {\n components: {\n ProjectInfoDialog: ProjectInfoDialog,\n // projectInfoSelector,\n fileUpload: fileUpload,\n CascaderCompany: CascaderCompany\n },\n computed: mapState({\n // submitUrl: function () {\n // return `${window.context.portal}/portal/commonBasic/v1/`\n // },\n downLoad: function downLoad() {\n return \"\".concat(window.context.portal, \"/projectAcceptance/v1/minioAcceptanceUpload?sourceId=\").concat(this.sourceId);\n },\n deleteUrl: function deleteUrl() {\n return window.context.yhxt + '/projectAcceptance/v1/removesAcceptance';\n },\n headers: function headers(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n }\n }),\n data: function data() {\n return {\n accessories: [],\n dadToSon: {\n bizPath: 'specialproject',\n fileList: []\n },\n fullscreenLoading: false,\n //全屏加载控件\n searchForm: {},\n exacar: false,\n exadialog: false,\n exaform: {\n confirmStatus: this.exacar == true ? 5 : 1 //默认为通过\n\n },\n dataBaseOptions: {\n dataBaseId: '',\n tableName: 'biz_project_over_apply_for',\n // 必填\n tableSchema: ''\n },\n originAPIOptions: {\n url: '/projectOverApplyFor/v1/getJson',\n // 列表请求接口地址\n method: 'post',\n // 列表请求方法\n moduleRoot: 'yhxt' // 微服务根路径\n\n },\n exportQuery: {},\n //附件数据\n enclosureData: [],\n //附件管理所需id\n sourceId: '',\n //删除附件管理ids\n ids: [],\n cbkm: [],\n loading: false,\n //上传附件加载控制\n disabled: false,\n //按钮禁用控制\n downLoading: false,\n //文件导出加载控制\n accept: '.jpg,.jpeg,.png,.bmp,.pdf,.JPG,.JPEG,.PBG,.BMP,.PDF,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.rtf,.txt,.zip,.rar,.vsd,.dwg,',\n dialogVisibleEnclosure: false,\n files: [],\n data: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n title: '',\n dialogVisible: false,\n form: {\n projectName: '',\n projectId: ''\n },\n roadSegmentOptions: [],\n //路段下拉框数据\n projectOptions: [],\n //项目下拉列表\n projectParams: {\n pageBean: {\n pageSize: -1,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'roadSegmentId',\n relation: 'AND',\n value: ''\n }]\n },\n rules: {\n roadSegmentId: {\n required: true,\n message: '请选择路段',\n trigger: 'change'\n },\n projectId: {\n required: true,\n message: '请选择项目名称',\n trigger: 'change'\n },\n expectedCompleteTime: {\n required: true,\n message: '请选择计划交工时间',\n trigger: 'blur'\n },\n actualCompleteTime: {\n required: true,\n message: '请选择实际交工时间',\n trigger: 'blur'\n },\n startupDescription: {\n required: true,\n message: '请输入滞后/提前原因 ',\n trigger: 'blur'\n }\n },\n groupCodeArr: [],\n //角色编码\n currentUserName: '' //当前登录人名称\n\n };\n },\n mounted: function mounted() {\n var orgAccount = JSON.parse(window.sessionStorage.getItem('currentUser')).account;\n this.getOrgInfo(orgAccount); // 获取当前登录用户名\n\n var currentUser = JSON.parse(window.sessionStorage.getItem('currentUser'));\n this.currentUserName = currentUser.username;\n },\n created: function created() {\n this.getRoadSegmentData(); //获取路段数据\n },\n methods: {\n handleProjectChanged: function handleProjectChanged(id) {\n var _this = this;\n\n this.projectOptions.forEach(function (item) {\n if (item.id === id) {\n _this.form.projectName = item.projectName;\n }\n });\n },\n getProjectInfo: function getProjectInfo(roadSegmentId) {\n var _this2 = this;\n\n this.projectParams.querys[0].value = roadSegmentId;\n this.$http.post('${yhxt}/bizEngineeringProject/v1/getJson', this.projectParams).then(function (res) {\n _this2.projectOptions = res.data.rows;\n });\n },\n getRoadSegmentData: function getRoadSegmentData() {\n var _this3 = this;\n\n basicData.getRoadManagement().then(function (res) {\n if (res.rows.length !== 0) {\n _this3.roadSegmentOptions = res.rows;\n }\n });\n },\n handleRoadSegmentChanged: function handleRoadSegmentChanged(id) {\n var _this4 = this;\n\n this.roadSegmentOptions.forEach(function (item) {\n if (item.id == id) {\n _this4.form = _objectSpread({\n companyName: item.companyName,\n companyId: item.companyId,\n roadSegmentName: item.name,\n roadSegmentId: id,\n projectId: '',\n projectName: ''\n }, _this4.form);\n _this4.projectOptions = [];\n\n _this4.getProjectInfo(id);\n }\n });\n },\n sonToDad: function sonToDad(data) {\n // console.log(data)\n var arr = [];\n data.forEach(function (item) {\n arr.push({\n isDele: item.isDele,\n attachmentName: item.name,\n attachmentPath: item.url,\n attachmentSuffix: item.suffix,\n attachmentType: item.type,\n type: 0\n });\n });\n this.accessories = arr;\n },\n //获取级角色信息\n getOrgInfo: function getOrgInfo(orgAccount) {\n var _this5 = this;\n\n this.$http.get('${yhxt}/api/role/v1/role/getRolesByUser?account=' + orgAccount).then(function (res) {\n if (res.data.length != 0) {\n // this.groupCode = res.data[0].groupCode\n res.data.forEach(function (item) {\n _this5.groupCodeArr.push(item.groupCode);\n });\n }\n });\n },\n uniqueFunc: function uniqueFunc(arr, uniId) {\n var res = new Map();\n return arr.filter(function (item) {\n return !res.has(item[uniId]) && res.set(item[uniId], 1);\n });\n },\n findinfo: function findinfo() {\n var _this6 = this;\n\n typeof this.$refs.filterTable !== 'undefined' && this.$refs.filterTable.clearFilter();\n var query = [];\n var search = {\n company_id_: this.searchForm.companyIds,\n expectedCompleteTime: this.searchForm.expectedCompleteTime,\n projectName: this.searchForm.projectName,\n portType: this.searchForm.portType\n };\n\n for (var i in search) {\n if (search[i]) {\n if (i == 'company_id_') {\n query.push({\n group: 'companyIds',\n operation: 'IN',\n parentGroup: '',\n property: 'companyId',\n relation: 'AND',\n value: search[i]\n });\n } else {\n query.push({\n group: 'advance',\n operation: 'LIKE',\n property: i,\n relation: 'AND',\n value: search[i]\n });\n }\n }\n }\n\n query = this.uniqueFunc(query, 'property');\n var data = {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n querys: query\n };\n this.topQuery = query;\n this.$http.post('${form}/projectOverApplyFor/v1/getJson', data).then(function (res) {\n console.log(res, '11');\n _this6.data = res.data.rows;\n _this6.pageResult = {\n page: res.data.page,\n pageSize: res.data.pageSize,\n total: res.data.total\n };\n });\n },\n loadData: function loadData(param, cb, tree) {\n var _this7 = this;\n\n if (typeof this.topQuery !== 'undefined' && this.topQuery.length !== 0) {\n param.querys = typeof param.querys !== 'undefined' ? param.querys : [];\n this.topQuery.forEach(function (item) {\n param.querys.push(item);\n });\n param.querys = this.uniqueFunc(param.querys, 'property');\n }\n\n this.exportQuery = param;\n this.$http.post('${form}/projectOverApplyFor/v1/getJson', param).then(function (resp) {\n var response = resp.data;\n _this7.data = response.rows;\n console.log(_this7.data); // for (let i in this.data) {\n // let lastM = new Date(\n // new Date().setMonth(new Date().getMonth() + 1)\n // )\n // lastM = this.formTime(lastM)\n // lastM = new Date(lastM.replace(/-/g, '/'))\n // let dayM = new Date(this.data[i].checkDate)\n // let days = lastM.getTime() - dayM.getTime()\n // days = parseInt(days / (1000 * 60 * 60 * 24))\n // this.data[i].cardDay = days\n // }\n\n _this7.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }, function (error) {\n reject(error);\n }).finally(function () {\n if (cb) {\n cb();\n }\n });\n },\n handleCancel: function handleCancel() {\n //取消弹窗\n //清空表单\n this.form = {\n projectName: '',\n projectId: ''\n };\n this.exaform = {};\n this.dadToSon = {\n fileList: []\n };\n this.dialogVisible = false;\n this.exadialog = false;\n },\n handleEdit: function handleEdit(data) {\n var _this8 = this;\n\n this.getProjectInfo(data.roadSegmentId); //打开修改对话框\n\n this.title = '【修改交工申请】';\n this.$http.get('${form}/projectOverApplyFor/v1/getVo/' + data.id).then(function (res) {\n console.log(res);\n _this8.dialogVisible = true;\n _this8.form = res.data.projectOverApplyFor;\n res.data.bizEngineeringAccessoriesList.forEach(function (item) {\n item.url = item.attachmentPath;\n item.name = item.attachmentName;\n });\n _this8.dadToSon.fileList = res.data.bizEngineeringAccessoriesList;\n }); // this.dialogVisible = true\n // this.form = {...data}\n // this.sourceId = data.id\n },\n showDialog: function showDialog() {\n this.projectOptions = [];\n this.dadToSon.fileList = []; //打开添加对话框\n\n this.title = '【添加交工申请】';\n this.dialogVisible = true;\n /* 添加时默认填写项目管理选中数据的第一条 */\n\n var obj = JSON.parse(sessionStorage.getItem('projectRow'));\n if (!obj) return;\n this.form = _objectSpread(_objectSpread({}, this.form), obj);\n this.handleRoadSegmentChanged(this.form.roadSegmentId);\n },\n afterDelete: function afterDelete() {\n //删除后重新加载\n this.$refs.htTable.load();\n },\n handleClose: function handleClose(done) {\n //清空表单\n this.form = {};\n this.exaform = {};\n this.dadToSon = {\n fileList: []\n };\n this.dialogVisible = false;\n done();\n },\n openProject: function openProject() {\n //选择工程\n this.$refs.project.open();\n },\n handleFocusProject: function handleFocusProject() {\n this.$refs.project.open();\n },\n handleSelectProject: function handleSelectProject(data) {\n console.log(data);\n this.form.projectName = data.projectName;\n this.form.projectId = data.projectId;\n this.$refs.projectName.focus();\n this.$refs.projectName.blur();\n },\n //提交保存或者修改\n handleSubmit: function handleSubmit() {\n var _this9 = this;\n\n //验证表单是否填写完\n this.$refs.form.validate(function (bool) {\n if (bool) {\n _this9.dialogVisible = false;\n _this9.fullscreenLoading = true; //请求保存提交\n\n var data = {\n bizEngineeringAccessoriesList: _this9.accessories,\n projectOverApplyFor: _this9.form\n };\n\n _this9.$http.post('${yhxt}/projectOverApplyFor/v1/saveVo', data).then(function (res) {\n if (res.data.state) {\n _this9.$message.success(res.data.message);\n\n _this9.dialogVisible = false;\n _this9.fullscreenLoading = false;\n\n _this9.$refs.htTable.load();\n } else {\n _this9.$message.error(res.data.message);\n } // console.log(res)\n // this.$message.success(res.data.message)\n // this.form = {\n // projectName: '',\n // projectId: ''\n // }\n //清空表单\n // if (this.type === 'add') {\n // this.dialogVisible = true\n // this.handleEdit(res.value)\n // } else {\n // this.dialogVisible = false\n // }\n // this.$refs.htTable.load() //重新获取数据\n\n });\n }\n });\n },\n //信息赋值\n changedProject: function changedProject(obj) {\n this.form.projectName = obj.projectName;\n this.form.projectId = obj.id;\n },\n valueProject: function valueProject(obj) {\n console.log(obj);\n this.form.projectName = obj.projectName;\n this.form.projectId = obj.id;\n },\n handleEnclosure: function handleEnclosure() {\n //附件管理\n console.log(1);\n this.dialogVisibleEnclosure = true;\n this.getEnclosureData(this.sourceId);\n },\n handleSelectionChangeEnclosure: function handleSelectionChangeEnclosure(rows) {\n var _this10 = this;\n\n rows.forEach(function (item) {\n _this10.ids.push(item.id);\n });\n },\n handleSelectRoute: function handleSelectRoute(data) {\n // console.log(data, '路线信息')\n this.form.roadName = data.name;\n this.form.roadId = data.id; // console.log(this.form.roadSegmentName, '进来了')\n\n this.$refs.routeName.blur(); // console.log(this.form.routeName)\n },\n //去重\n unique: function unique(arr) {\n for (var i = 0; i < arr.length; i++) {\n for (var j = i + 1; j < arr.length; j++) {\n if (arr[i] == arr[j]) {\n //第一个等同于第二个,splice方法删除第二个\n arr.splice(j, 1);\n j--;\n }\n }\n }\n\n return arr;\n },\n //附件管理删除\n handleEnclosureDel: function handleEnclosureDel() {\n var _this11 = this;\n\n this.downLoading = true;\n var ids = this.unique(this.ids); // console.log(ids.join(','))\n\n var strs = ids.join(',');\n console.log(strs, '231');\n this.$http.remove('${form}/bridgeRegularCheck/v1/removesRegularCheck?ids=' + strs).then(function (res) {\n console.log(res, 'sc');\n\n if (res.data.state) {\n _this11.$message.success('附件删除成功');\n\n _this11.downLoading = false;\n } else {\n _this11.$message.error('附件删除失败');\n\n _this11.downLoading = false;\n }\n\n _this11.getEnclosureData(_this11.sourceId); //清空ids\n\n\n _this11.ids = [];\n });\n },\n //附件导出\n downLoadImg: function downLoadImg() {\n var _this12 = this;\n\n this.downLoading = true;\n var ids = this.unique(this.ids);\n var strs = ids.join(',');\n req.download(window.context.portal + '/projectAcceptance/v1/downloadAcceptanceUpload?ids=' + strs).then(function (res) {\n _this12.downLoading = false;\n\n _this12.$refs.multipleTable.clearSelection();\n\n _this12.ids = [];\n }); // basicData.downLoadEnclosureManagement(strs).then(res => {\n // //清空ids\n // this.ids = []\n // })\n },\n progress: function progress(event, file, fileList) {\n //将图标改成加载图标\n this.loading = true; //将按钮禁用\n\n this.disabled = true;\n },\n error: function error(response, file, fileList) {\n this.$message.error('文件上传失败');\n delete this.uploadingFiles[Base64.encode(file.name)];\n },\n success: function success(response, file, fileList) {\n this.$message.success('文件上传成功'); //重新加载数据\n\n this.getEnclosureData(this.sourceId); //将图标改成上传图标\n\n this.loading = false; //将按钮解禁\n\n this.disabled = false;\n },\n handleChange: function handleChange(file, fileList) {\n console.log(file, fileList, 'dddd');\n },\n handleCloseEnclosure: function handleCloseEnclosure(done) {\n this.enclosureData = [];\n done();\n },\n //审核\n handleExamine: function handleExamine(data) {\n this.exaform.ids = data.id;\n this.exadialog = true;\n\n if (data.confirmStatus == 0) {\n this.exacar = false;\n } else if (data.confirmStatus == 1) {\n this.exacar = true;\n }\n\n this.exaform.confirmStatus = this.exacar ? 5 : 1;\n this.exacar ? this.exaform.ownerDescription = '同意' : this.exaform.confirmDescription = '同意';\n },\n disabledSave: function disabledSave() {\n var _this13 = this;\n\n //验证表单是否填写完\n var url = '';\n\n if (this.exacar) {\n url = '/projectOverApplyFor/v1/ownerUserAudit';\n } else {\n url = '/projectOverApplyFor/v1/confirmUserAudit';\n }\n\n var formData = new FormData();\n Object.keys(this.exaform).map(function (key) {\n formData.append(key, _this13.exaform[key]);\n });\n this.fullscreenLoading = true;\n this.$http.post('${form}' + url, formData).then(function (res) {\n console.log(res);\n\n if (res.data.state) {\n _this13.$message.success(res.data.message);\n } else {\n _this13.$message.error(res.data.message);\n }\n\n _this13.exadialog = false;\n _this13.fullscreenLoading = false;\n\n _this13.$refs.htTable.load();\n });\n },\n getEnclosureData: function getEnclosureData(id) {\n var _this14 = this;\n\n var params = {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n params: {},\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'source_id_',\n relation: 'AND',\n value: id\n }],\n sorter: []\n };\n this.$http.post('${form}/bizEngineeringAccessories/v1/getJson', params).then(function (res) {\n _this14.enclosureData = res.data.rows;\n console.log(_this14.enclosureData, 'gg');\n });\n }\n }\n};",null]}