{"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\\regularInspection\\DqCulvert.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\maintenanceInspection\\regularInspection\\DqCulvert.vue","mtime":1706175429287},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 dictUtils from '@/components/dict/DictSelectUtils';\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 tempObjPicUrl: '',\n originAPIOptions: {\n downloadApi: '/culvertRegularCheck/v1/downModel',\n uploadApi: '/culvertRegularCheck/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 selecdVlue: '',\n dialogVisible: false,\n form: {\n roadName: '',\n roadId: '',\n direction: 1,\n temporary: '0',\n type: 9,\n typeName: '涵洞定期检查',\n accessories: []\n // position: '1'\n },\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: [{required: true, message: '请输入害细目', trigger: 'blur'}],\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 // lastRepairDate: [\n // {required: true, message: '请输入上次大中修日期', trigger: 'blur'}\n // ],\n lastCheckDate: [{\n required: true,\n message: '请输入上次检查日期',\n trigger: 'blur'\n }],\n culvertName: [{\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 accessories: [{\n required: true,\n message: '请上传附件',\n trigger: 'change'\n }]\n },\n cbkmGD: '',\n spanArr: [],\n //记录部件名称需要合并\n spanArr_: [],\n //记录构件名称需要合并\n isShowIconPlus: false,\n //控制表格中单元格添加符号的显隐\n formEdit: {\n accessories: []\n },\n dialogVisibleEdit: false,\n activeName: 'first',\n tableData: []\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 //图片上传\n sonToDadPicUrl1: function sonToDadPicUrl1(val) {\n this.tempObjPicUrl = val;\n },\n sonToDadPicUrl: function sonToDadPicUrl(val) {\n val.concat(this.tableData[this.tempObjPicUrl].picAccessories);\n this.tableData[this.tempObjPicUrl].picAccessories = val;\n val = val.map(function (item) {\n return item.url;\n });\n this.tableData[this.tempObjPicUrl].picUrl = val.join(',');\n console.log(this.tableData);\n },\n //示意图\n sonToDadDemoPicUrl: function sonToDadDemoPicUrl(val) {\n val.concat(this.tableData[this.tempObjPicUrl].demoAccessories);\n this.tableData[this.tempObjPicUrl].demoAccessories = val;\n val = val.map(function (item) {\n return item.url;\n });\n this.tableData[this.tempObjPicUrl].demoPicUrl = val.join(',');\n console.log(this.tableData);\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: 9,\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: 9\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.getDictChild()\n this.formEdit = data;\n this.$http.get('${yhxt}/culvertRegularCheck/v1/get/' + data.id).then(function (res) {\n _this2.dialogVisibleEdit = true;\n var data = res.data;\n _this2.formEdit = _objectSpread(_objectSpread(_objectSpread({}, _this2.formEdit), data.culvertRegularCheck), {}, {\n accessories: []\n });\n data.culvertRegularCheckDetails.forEach(function (item) {\n item.name = item.unitName;\n });\n _this2.tableData = data.culvertRegularCheckDetails;\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 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 loadData: function loadData(param, cb) {\n var _this3 = this;\n if (this.row == '') {\n this.row = this.$route.params.row;\n }\n param.querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'culvertId',\n relation: 'AND',\n value: this.row.id\n }];\n this.$http.post('${form}/culvertRegularCheck/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 = 9;\n }, function (error) {\n reject(error);\n }).finally(function () {\n if (cb) {\n cb();\n }\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.roadName = row.roadSegmentName;\n this.form.roadId = row.roadSegmentId;\n this.form = _objectSpread({\n checkDate: this.getTime()\n }, this.form);\n this.form.position = '1';\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 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 this.$forceUpdate();\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 row.type = this.form.type;\n row.typeName = this.form.typeName;\n this.$refs.disease.open(row);\n },\n //鼠标覆盖到单元格内显示添加按钮\n handleCellMouseEnter: function handleCellMouseEnter() {\n this.isShowIconPlus = true;\n },\n //鼠标移出到单元格外隐藏添加按钮\n handleCellMouseLeave: function handleCellMouseLeave() {\n this.isShowIconPlus = false;\n },\n //点击单元格添加按钮触发事件\n handleCellIconPlus: function handleCellIconPlus(data) {\n var length = this.tableData.length;\n var index = data.$index + 1;\n var obj = {\n name: data.row.name,\n value: data.row.value,\n childrenName: data.row.childrenName,\n childrenValue: data.row.childrenValue\n };\n console.log(index, 'index');\n this.tableData.splice(index, 0, obj);\n this.rowspan();\n },\n rowspan: function rowspan() {\n var _this7 = this;\n this.spanArr = [];\n this.spanArr_ = [];\n this.tableData.forEach(function (item, index) {\n if (index == 0) {\n _this7.spanArr.push(1);\n _this7.postion = 0;\n } else {\n if (_this7.tableData[index].name === _this7.tableData[index - 1].name) {\n _this7.spanArr[_this7.postion] += 1;\n _this7.spanArr.push(0);\n } else {\n _this7.spanArr.push(1);\n _this7.postion = index;\n }\n }\n });\n this.tableData.forEach(function (item, index) {\n if (index == 0) {\n _this7.spanArr_.push(1);\n _this7.postion_ = 0;\n } else {\n if (_this7.tableData[index].childrenName === _this7.tableData[index - 1].childrenName) {\n _this7.spanArr_[_this7.postion_] += 1;\n _this7.spanArr_.push(0);\n } else {\n _this7.spanArr_.push(1);\n _this7.postion_ = index;\n }\n }\n });\n },\n objectSpanMethod: function objectSpanMethod(_ref) {\n var row = _ref.row,\n column = _ref.column,\n rowIndex = _ref.rowIndex,\n columnIndex = _ref.columnIndex;\n } // if (columnIndex === 0) {\n // const _row = this.spanArr[rowIndex]\n // const _col = _row > 0 ? 1 : 0\n // return {\n // rowspan: _row,\n // colspan: _col\n // }\n // } else if (columnIndex === 1) {\n // const _row = this.spanArr_[rowIndex]\n // const _col = _row > 0 ? 1 : 0\n // return {\n // rowspan: _row,\n // colspan: _col\n // }\n // }\n ,\n getDictChild: function getDictChild() {\n var objArr = [];\n var dictItems = dictUtils.getDictItemsFromCache('hddqjc-jctb');\n var dictArr = ['hdds', 'hddk', 'hdjcsk'];\n dictItems.forEach(function (item) {\n if (item.lowerDic) {\n item.lowerDic[dictArr[item.sequence - 1]].forEach(function (item1) {\n objArr.push({\n name: item.name,\n value: item.value,\n childrenName: item1.name,\n childrenValue: item1.value\n });\n });\n }\n });\n this.tableData = objArr;\n this.rowspan();\n },\n handleSubmitEdit: function handleSubmitEdit() {\n var _this8 = this;\n var data = {\n culvertRegularCheckDetails: this.tableData,\n culvertRegularCheck: this.formEdit,\n accessories: this.accessories\n };\n // 验证表单是否填写完\n this.$refs.ruleForm.validate(function (bool) {\n if (bool) {\n //请求保存提交\n _this8.$http.post('${form}/culvertRegularCheck/v1/updateCulvertRegularCheck', data).then(function (res) {\n _this8.$message({\n message: res.data.message,\n type: 'success'\n });\n _this8.dialogVisibleEdit = false;\n _this8.$refs.htTable.load();\n });\n }\n });\n },\n handleCloseEdit: function handleCloseEdit() {\n this.dialogVisibleEdit = false;\n }\n }\n};",null]}