{"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\\maintenanceInspection\\checkFrequently\\culverts.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\maintenanceInspection\\checkFrequently\\culverts.vue","mtime":1710180839149},{"path":"D:\\jenkins\\workspace\\yhxt-web\\babel.config.js","mtime":1667326389982},{"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":456789000000},{"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/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport Dict from '@/components/dict/DictSelectUtils.js';\nimport BridgeDialog from '@/components/dialog/BridgeDialog.vue';\nimport req from '@/request.js';\nimport basicData from '@/api/basicData.js';\nimport DiseaseInforDialog from '@/components/dialog/DiseaseInformationDialog.vue';\nimport sctionInfoSelector from '@/components/selector/sctionInfoSelector.vue';\nimport fileUpload from '@/components/upload/fileUpload.vue';\nimport { uploadMixin } from '@/mixins/uploadMixin';\nimport DialogSelectBridge from '@/components/business/DialogSelectBridge.vue';\nimport DialogSelectTunnel from '@/components/business/DialogSelectTunnel.vue';\nimport DialogSelectCulvert from '@/components/business/DialogSelectCulvert.vue';\nimport DialogSelectSideSlope from '@/components/business/DialogSelectSideSlope.vue';\nexport default {\n components: {\n BridgeDialog: BridgeDialog,\n DiseaseInforDialog: DiseaseInforDialog,\n sctionInfoSelector: sctionInfoSelector,\n fileUpload: fileUpload,\n DialogSelectBridge: DialogSelectBridge,\n DialogSelectTunnel: DialogSelectTunnel,\n DialogSelectCulvert: DialogSelectCulvert,\n DialogSelectSideSlope: DialogSelectSideSlope\n },\n name: 'Fretow',\n mixins: [uploadMixin],\n data: function data() {\n return {\n originAPIOptions: {\n downloadApi: '/culvertOftenCheck/v1/downModel',\n uploadApi: '/culvertOftenCheck/v1/importExcelData',\n params: {\n mainJson: ''\n }\n },\n dadToSon: {\n bizPath: 'disease',\n fileList: []\n },\n accessories: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n optionsss: [{\n value: '0',\n label: '否'\n }, {\n value: '1',\n label: '是'\n }],\n options: [],\n cbkm: [],\n data: [],\n row: [],\n dialogVisible: false,\n loadingEdit: false,\n form: {\n roadName: '',\n roadId: '',\n direction: 1,\n temporary: '0',\n type: 5,\n typeName: '涵洞经常检查',\n accessories: []\n // position: '1'\n },\n\n dictSelection: [],\n //勾选复选框\n rules: {\n type: [{\n required: true,\n message: '请输入 巡检类别',\n trigger: 'blur'\n }],\n direction: [{\n required: true,\n message: '请输入 方向',\n trigger: 'blur'\n }],\n startPeg: [{\n required: true,\n message: '请输入 起点桩号',\n trigger: 'blur'\n }],\n endPeg: [{\n required: true,\n message: '请输入 结束桩号',\n trigger: 'blur'\n }],\n diseaseCategory: [{\n required: true,\n message: '请输入 病害类别',\n trigger: 'blur'\n }],\n // detailsId: [\n // {required: true, message: '请输入 病害细目', trigger: 'blur'}\n // ],\n // positionName: [\n // {required: true, message: '请输入 病害部位', trigger: 'blur'}\n // ],\n // paramHeight: [\n // {required: true, message: '请输入 病害高(mm)', trigger: 'blur'}\n // ],\n // paramLength: [\n // {required: true, message: '请输入 病害长(mm)', trigger: 'blur'}\n // ],\n // paramWidth: [\n // {required: true, message: '请输入 病害宽(mm)', trigger: 'blur'}\n // ],\n description: [{\n required: true,\n message: '请输入 病害描述',\n trigger: 'blur'\n }],\n roadName: [{\n required: true,\n message: '请输入 所属路段',\n trigger: 'blur'\n }],\n temporary: [{\n required: true,\n message: '请选择是否暂存',\n trigger: 'blur'\n }],\n rummager: [{\n required: true,\n message: '检查人',\n trigger: 'blur'\n }],\n noteTaker: [{\n required: true,\n message: '记录人',\n trigger: 'blur'\n }],\n checkDate: [{\n required: true,\n message: '检查日期',\n trigger: 'blur'\n }],\n weather: [{\n required: true,\n message: '天气',\n trigger: 'blur'\n }],\n evaluateValue: [{\n required: true,\n message: '总体评价',\n trigger: 'blur'\n }],\n accessories: [{\n required: true,\n message: '请上传附件',\n trigger: 'change'\n }]\n },\n cbkmGD: '',\n dialogVisibleEdit: false,\n formEdit: {\n accessories: []\n },\n tableData: [],\n activeName: 'first',\n flagoptions: []\n };\n },\n created: function created() {},\n mounted: function mounted() {\n this.originAPIOptions.params.mainJson = JSON.stringify(this.$route.params.row);\n var data = this.$route.params.row;\n this.form.companyId = data.companyId;\n this.form.companyName = data.companyName;\n this.form.roadId = data.roadSegmentId;\n this.form.roadName = data.roadSegmentName;\n },\n methods: {\n handleDialogSubmit: function handleDialogSubmit(data) {\n var obj = this.form;\n this.form = _objectSpread(_objectSpread({}, obj), {}, {\n structureName: data.name,\n structureId: data.id\n });\n },\n handleDict: function handleDict(val, obj, str) {\n if (str === 'xjlb') {\n this.form.typeName = obj.name;\n } else if (str == 'bhbw') {\n // this.form.positionName = obj.name\n } else if (str == 'qlfx') {\n this.form.directionName = obj.name;\n } else if (str === 'bhlx') {\n this.form.diseaseCategoryValue = obj.name;\n var _val = obj.value;\n if (_val == 3) {\n this.$refs.dialogBridgeTable.open();\n } else if (_val == 4) {\n this.$refs.dialogTunnelTable.open();\n } else if (_val == 5) {\n this.$refs.dialogCulvertTable.open();\n } else if (_val == 6) {\n this.$refs.dialogSideSlopeTable.open();\n }\n }\n },\n sonToDad_: function sonToDad_(data) {\n console.log(data);\n this.form.accessories = data;\n },\n //路段信息赋值\n changed: function changed(obj) {\n this.form.roadName = obj.name;\n this.form.roadId = obj.id;\n },\n //默认赋值为第一条数据的值\n value: function value(obj) {\n this.form.roadName = obj.name;\n this.form.roadId = obj.id;\n },\n openDisea: function openDisea(row) {\n this.opennew(row);\n },\n handleSubmit: function handleSubmit() {\n var _this = this;\n this.$refs.ruleForm.validate(function (bool) {\n if (bool) {\n _this.dialogVisible = false;\n //请求保存提交\n basicData.addDiseaseSave(_this.form).then(function (res) {\n console.log(res);\n _this.$message.success(res.message);\n _this.form = {\n roadName: '',\n roadId: '',\n direction: 1,\n temporary: '0',\n type: 5,\n accessories: []\n }; //清空表单\n _this.options = [];\n _this.cbkm = [];\n _this.dadToSon = {\n fileList: []\n };\n _this.$refs.htTable.load();\n });\n }\n });\n },\n handleCancel: function handleCancel() {\n this.dialogVisible = false;\n this.dialogVisibleEdit = false;\n this.form = {\n roadName: '',\n roadId: '',\n direction: 1,\n temporary: '0',\n type: 5\n };\n this.options = [];\n this.cbkm = [];\n this.dadToSon = {\n fileList: []\n };\n },\n handleSelectRoute: function handleSelectRoute(data) {\n // console.log(data, '路线信息')\n this.form.roadName = data.name;\n this.form.roadId = data.id;\n // console.log(this.form.roadSegmentName, '进来了')\n this.$refs.routeName.blur();\n // console.log(this.form.routeName)\n },\n handleEdit: function handleEdit(data) {\n var _this2 = this;\n this.formEdit = data;\n this.dialogVisibleEdit = true;\n this.loadingEdit = true;\n // this.tableData = Dict.getDictItemsFromCache('hdjcjcmx')\n this.flagoptions = Dict.getDictItemsFromCache('sdjcjcmxpd');\n this.tableData.forEach(function (item) {\n _this2.$set(item, 'result', '情况正常');\n _this2.$set(item, 'statusDesc', '正常');\n _this2.$set(item, 'checkProject', item.name);\n });\n this.$http.get('${yhxt}/culvertOftenCheck/v1/get/' + data.id).then(function (res) {\n _this2.loadingEdit = false;\n var data = res.data;\n _this2.formEdit = _objectSpread(_objectSpread(_objectSpread({}, _this2.formEdit), data.culvertOftenCheck), {}, {\n accessories: []\n });\n _this2.tableData = data.culvertOftenCheckDetails;\n _this2.tableData.forEach(function (i) {\n i.detailAccessories.forEach(function (item) {\n i.srcList = [];\n i.srcList.push(item.url);\n });\n });\n // 附件回显\n // data.accessories.forEach(item => {\n // item.url = item.attachmentPath\n // item.name = item.attachmentName\n // })\n _this2.dadToSon.fileList = data.accessories;\n _this2.formEdit.accessories = data.accessories;\n });\n },\n showDialog: function showDialog() {\n this.$router.go(-1);\n },\n loadData: function loadData(param, cb) {\n var _this3 = this;\n if (this.row == '') {\n this.row = this.$route.params.row;\n console.log(this.row, 'bp');\n }\n param.querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'culvert_id_',\n relation: 'AND',\n value: this.row.id\n }];\n this.$http.post('${form}/culvertOftenCheck/v1/getJson', param).then(function (resp) {\n var response = resp.data;\n _this3.data = response.rows;\n _this3.data.forEach(function (item) {\n _this3.$set(item, 'number', _this3.row.number);\n _this3.$set(item, 'roadSegmentName', _this3.row.roadSegmentName);\n _this3.$set(item, 'roadSegmentId', _this3.row.roadSegmentId);\n _this3.$set(item, 'companyName', _this3.row.companyName);\n _this3.$set(item, 'directionValue', _this3.row.directionValue);\n });\n _this3.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n _this3.form.type = 5;\n }, function (error) {\n reject(error);\n }).finally(function () {\n if (cb) {\n cb();\n }\n });\n },\n handleCommand: function handleCommand(params) {\n if (params.command == 'Fillin') {\n this.opennew(params.row);\n } else if (params.command == 'admin') {\n this.getDisease(params.row);\n }\n },\n openRoute: function openRoute() {\n this.$refs.route.open();\n },\n handleFocusRouter: function handleFocusRouter() {\n this.$refs.route.open();\n },\n handleClose: function handleClose() {\n this.$confirm('确认关闭?').then(function (_) {\n done();\n }).catch(function (_) {});\n },\n opennew: function opennew(row) {\n var _this4 = this;\n this.form.relevanceId = row.id;\n this.form = _objectSpread({\n checkDate: this.getTime()\n }, this.form);\n this.dialogVisible = true;\n if (this.options.length == 0) {\n var data = 'CBKM';\n basicData.getCostAccountManagement(data).then(function (res) {\n res.data.forEach(function (item) {\n _this4.options.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n });\n });\n }\n },\n // getselect(){\n // let data = 'CBKM'\n // basicData.getCostAccountManagement(data).then((res)=>{\n // res.data.forEach(item=>{\n // console.log(item,'sele')\n // this.options.push({\n // label:item.subjectName,\n // value:item.subjectCode\n // })\n // })\n // })\n // },\n changeDetail: function changeDetail(val) {\n var _this5 = this;\n this.cbkm.forEach(function (item) {\n if (item.value == val) {\n _this5.form.dsubjectName = item.label;\n }\n });\n },\n changesele: function changesele(value) {\n var _this6 = this;\n this.options.forEach(function (item) {\n if (item.value == value) {\n _this6.form.subjectName = item.label;\n }\n });\n var arr = [];\n basicData.getCostAccountManagement(value).then(function (res) {\n if (res.data.length > 0) {\n res.data.forEach(function (item) {\n if (item.pcode == value) {\n arr.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n }\n _this6.cbkm = arr;\n _this6.form.detailsId = arr[0].value;\n _this6.form.dsubjectName = arr[0].label;\n });\n }\n });\n },\n getDisease: function getDisease(row) {\n this.$refs.disease.open(row);\n },\n handleSubmitEdit: function handleSubmitEdit() {\n var _this7 = this;\n var data = {\n culvertOftenCheck: this.formEdit,\n culvertOftenCheckDetails: this.tableData,\n accessories: this.accessories\n };\n // 验证表单是否填写完\n this.$refs.ruleForm.validate(function (bool) {\n if (bool) {\n //请求保存提交\n _this7.$http.post('${form}/culvertOftenCheck/v1/updateCulvertOftenCheck', data).then(function (res) {\n _this7.$message({\n message: res.data.message,\n type: 'success'\n });\n _this7.dialogVisibleEdit = false;\n _this7.$refs.htTable.load();\n });\n }\n });\n },\n handleCloseEdit: function handleCloseEdit() {\n this.dialogVisibleEdit = false;\n },\n handleSelect: function handleSelect(selection) {\n this.dictSelection = selection;\n },\n handelExport: function handelExport() {\n var _this8 = this;\n if (!this.dictSelection.length) {\n this.$message.warning(\"\\u8BF7\\u9009\\u62E9\\u8981\\u5BFC\\u51FA\\u7684\\u6570\\u636E\");\n return;\n } else {\n var msg = \"\\u786E\\u5B9A\\u5BFC\\u51FA\\u9009\\u4E2D\\u6570\\u636E\\u5417?\";\n this.$confirm(msg, '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n var ids = [];\n var culvertId = null;\n _this8.dictSelection.forEach(function (item) {\n ids.push(item.id);\n culvertId = item.culvertId;\n });\n var param = ids.join(',');\n // 调用接口 提交数据\n var url = window.context.yhxt + '/checkExportOften/v1/culvert/exportCulvertOftenHistory?culvertId=' + culvertId + '&ids=' + param;\n req.downloadGet(url);\n _this8.dictSelection = [];\n }).catch(function () {\n _this8.$message({\n type: 'error',\n message: \"\\u5BFC\\u51FA\\u6570\\u636E\\u51FA\\u9519\"\n });\n _this8.$refs.htTable.load(); //重新获取数据\n });\n }\n }\n }\n};",null]}