{"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\\structureArchivesManagement\\culvertInsepect\\RegularInspect.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\structureArchivesManagement\\culvertInsepect\\RegularInspect.vue","mtime":1667326395497},{"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 _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.map\";\nimport \"core-js/modules/es6.function.name\";\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//\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';\nexport default {\n components: {\n BridgeDialog: BridgeDialog,\n DiseaseInforDialog: DiseaseInforDialog,\n sctionInfoSelector: sctionInfoSelector\n },\n name: 'Fretow',\n data: function data() {\n return {\n searchForm: {},\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 position: '1'\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,\n message: '请输入害细目',\n trigger: 'blur'\n }],\n position: [{\n required: true,\n message: '请输入病害部位',\n trigger: 'blur'\n }],\n paramHeight: [{\n required: true,\n message: '请输入害高(mm)',\n trigger: 'blur'\n }],\n paramLength: [{\n required: true,\n message: '请输入害长(mm)',\n trigger: 'blur'\n }],\n paramWidth: [{\n required: true,\n message: '请输入病害宽(mm)',\n 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 },\n cbkmGD: ''\n };\n },\n created: function created() {},\n methods: {\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 }\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\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 }; //清空表单\n\n _this.options = [];\n _this.cbkm = [];\n });\n }\n });\n },\n handleCancel: function handleCancel() {\n console.log(2);\n this.dialogVisible = 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 },\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 handleEdit: function handleEdit(data) {// this.title = '桥梁经常检查列表'\n // this.dialogVisible = true\n // this.$refs.fredialog.open(data)\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 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 _this2 = this;\n\n typeof this.$refs.filterTable !== 'undefined' && this.$refs.filterTable.clearFilter();\n var query = [];\n var params = {\n routeId: this.searchForm.routeId\n };\n var search = {\n rummager_: this.searchForm.rummager,\n culvert_id_: this.row.id,\n checkDate: this.searchForm.checkDate\n };\n\n for (var i in search) {\n if (search[i]) {\n query.push({\n group: 'advance',\n operation: 'LIKE',\n property: i,\n relation: 'AND',\n value: search[i]\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 params: params\n };\n this.topQuery = query;\n this.$http.post('${form}/culvertRegularCheck/v1/getJson', data).then(function (res) {\n console.log(res, '11');\n var response = res.data;\n _this2.data = response.rows;\n _this2.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n });\n },\n loadData: function loadData(param, cb) {\n var _this3 = this;\n\n if (this.row == '') {\n this.row = this.$route.params.row;\n }\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\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.$http.post('${form}/culvertRegularCheck/v1/getJson', param).then(function (resp) {\n var response = resp.data;\n _this3.data = response.rows; // 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].InspectionDays = days\n // }\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\n this.form.relevanceId = row.id;\n this.form = _objectSpread({\n checkDate: this.getTime()\n }, this.form);\n this.dialogVisible = true;\n\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 changesele: function changesele(value) {\n var _this5 = this;\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\n _this5.cbkm = arr;\n _this5.form.detailsId = arr[0].label;\n });\n }\n });\n },\n getDisease: function getDisease(row) {\n this.$refs.disease.open(row);\n }\n }\n};",null]}