{"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\\components\\flowURLForm\\qualityInfoDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\components\\flowURLForm\\qualityInfoDialog.vue","mtime":1706175428928},{"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 _typeof from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/typeof.js\";\nimport _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\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\nimport { helper } from \"../../../public/hotent.helper.js\";\nimport req from '@/request.js';\nimport utils from '@/utils';\nimport basicData from '@/api/basicData.js';\nimport projectDialog from '@/components/dialog/projectDialog.vue';\nimport companyInfoSelector from '@/components/selector/companyInfoSelector.vue';\nimport EipUserSelector from '@/components/eipControl/selector/EipUserSelector.vue';\nimport DictSelect from '@/components/dict/DictSelect.vue';\nimport fileUpload from '@/components/upload/fileUploadProject.vue';\nexport default {\n name: 'PatrolWorkOrder',\n // 巡检工单\n components: {\n projectDialog: projectDialog,\n EipUserSelector: EipUserSelector,\n DictSelect: DictSelect,\n companyInfoSelector: companyInfoSelector,\n fileUpload: fileUpload\n },\n data: function data() {\n return {\n currentNode: 1,\n form: {\n roadSegmentId: ''\n },\n rules: {\n roadSegmentId: {\n required: true,\n message: '请选择路段',\n trigger: 'change'\n },\n projectName: {\n required: true,\n message: '请输入项目名称',\n trigger: 'change'\n },\n testTime: {\n required: true,\n message: '请输入质检时间',\n trigger: 'blur'\n },\n testLocation: {\n required: true,\n message: '请输入质检地点',\n trigger: 'blur'\n },\n testResult: {\n required: true,\n message: '请选择有无质检问题',\n trigger: 'blur'\n },\n testUserName: {\n required: true,\n message: '请选择质检员',\n trigger: 'blur'\n }\n },\n roadSegmentOptions: [],\n // 路段数据\n dadToSon: {\n bizPath: 'specialproject',\n //附件\n fileList: []\n }\n };\n },\n created: function created() {\n this.getRoadSegmentData(); //获取路段数据\n },\n mounted: function mounted() {\n this.currentNode = this.$route.query.node;\n var _this = this;\n window.saveData = this.saveData;\n this.id = utils.getUrlKey('id');\n var isEdit = utils.getUrlKey('isEdit');\n this.disabled = isEdit == 'r' ? true : false;\n if (this.id) {\n req.get(window.context.yhxt + '/siteInspection/v1/get/' + this.id).then(function (res) {\n if (res.data) {\n res.data.type ? res.data.type = res.data.type + '' : null;\n _this.form = res.data;\n }\n });\n }\n },\n methods: {\n //获取路段下拉信息\n getDataInfo: function getDataInfo() {\n var _this2 = this;\n // 获取路段信息\n basicData.getRoadManagement().then(function (res) {\n _this2.roadData = res.rows;\n });\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 _this2.options.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n });\n });\n }\n //获取公司信息\n this.$http.post('${yhxt}/Company/v1/getCompany').then(function (res) {\n res.data.forEach(function (item) {\n _this2.companyOptions.push({\n id: item.id,\n name: item.name\n });\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 this.form.accessories = arr;\n // 防止用户打开了文件选择框之后不选择文件而出现效验失败\n if (this.form.accessories) {\n this.$refs.form.clearValidate('accessories');\n }\n },\n backData: function backData(data) {\n console.log(data, 'data');\n this.form.projectId = data[0].id;\n this.form.projectName = data[0].projectName;\n this.$forceUpdate();\n var field = 'projectName'; // 替换为要清除校验的字段名\n var rules = this.$refs.form.rules;\n if (rules && rules[field]) {\n this.$refs.form.clearValidate(field);\n }\n },\n openProjectName: function openProjectName(val) {\n var _this3 = this;\n this.$nextTick(function () {\n _this3.$refs.reference.open(val);\n });\n },\n // 获取路段数据\n getRoadSegmentData: function getRoadSegmentData() {\n var _this4 = this;\n basicData.getRoadManagement().then(function (res) {\n if (res.rows.length !== 0) {\n _this4.roadSegmentOptions = res.rows;\n }\n });\n },\n handleRoadSegmentChanged: function handleRoadSegmentChanged(id) {\n var _this5 = this;\n this.roadSegmentOptions.forEach(function (item) {\n if (item.id == id) {\n _this5.form = _objectSpread({\n companyName: item.companyName,\n companyId: item.companyId,\n roadSegmentName: item.name,\n roadSegmentId: id,\n projectId: '',\n projectName: ''\n }, _this5.form);\n _this5.projectOptions = [];\n _this5.getProjectInfo(id);\n }\n });\n },\n //深层拷贝回去公司名称\n deepClone: function deepClone(obj) {\n var objClone = Array.isArray(obj) ? [] : {};\n if (obj && _typeof(obj) === 'object') {\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n //判断ojb子元素是否为对象,如果是,递归复制\n if (obj[key] && _typeof(obj[key]) === 'object') {\n objClone[key] = this.deepClone(obj[key]);\n } else {\n if (obj[key] == obj.name) {\n this.companyOptions.push({\n id: obj.id,\n name: obj.name\n });\n }\n //如果不是,简单复制\n objClone[key] = obj[key];\n }\n }\n }\n }\n },\n //字典回调,赋值\n handleSelectValue: function handleSelectValue(val, obj, str) {\n if (str == 'xjlb') {\n this.tableData.forEach(function (item) {\n if (item.key == obj.key) {\n item.typeName = obj.name;\n }\n });\n } else if (str == 'fx') {\n this.tableData.forEach(function (item) {\n if (item.key == obj.key) {\n item.directionName = obj.name;\n }\n });\n } else if (str == 'bhbw') {\n this.tableData.forEach(function (item) {\n if (item.key == obj.key) {\n item.positionName = obj.name;\n }\n });\n }\n },\n /* 添加病害结束 */saveData: function saveData() {\n var _this6 = this;\n var _this = this;\n //验证表单是否填写完\n this.$refs.taskManageForm.validate(function (pass) {\n if (pass) {\n //请求保存提交\n console.log(_this6.form, 'this.form');\n _this6.$http.post('${yhxt}/siteInspection/v1/saveSiteInspectionSpecial', _this6.form).then(function (res) {\n if (res.data.state) {\n var params = {\n type: 'saveData',\n state: true,\n businessKey: res.data.value.id,\n sysCode: ''\n };\n // params.vars = {\n // props1: this.forms.props1,\n // }\n hotent.sendMessage(params);\n }\n });\n }\n });\n }\n }\n};",null]}