{"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\\patrolTask\\AgentInspection.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\patrolTask\\AgentInspection.vue","mtime":1673633598690},{"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/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport \"core-js/modules/es6.string.starts-with\";\nimport \"core-js/modules/es6.array.find-index\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.regexp.search\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { mapState, mapActions } from 'vuex';\nimport process from '@/api/process';\nimport utils from '@/utils.js';\nimport { Message } from 'element-ui';\nimport TaskImage from '@/components/flow/task/taskImage.vue';\nimport req from '@/request.js';\nimport basicData from '@/api/basicData.js';\nimport sctionInfoSelector from '@/components/selector/sctionInfoSelector.vue';\nimport EipUserSelector from '@/components/eipControl/selector/EipUserSelector.vue';\nimport ImageDialog from '@/components/dialog/ImageDialog.vue';\nimport startFlow from '@/components/flow/taskFlowComponents/startFlow.vue';\nimport fileUpload from '@/components/upload/fileUpload.vue';\nimport CascaderCompany from '@/components/selector/CascaderCompany.vue';\nvar STATUS = {\n NORMAL: '待办',\n TRANSFORMED: '流转',\n TRANSFORMEDINQU: '征询',\n DELIVERTO: '转办',\n FOLLOW: '跟踪',\n COMMU: '沟通',\n BACK: '驳回',\n ADDSIGN: '会签加签',\n AGENT: '委托',\n SHARE: '共享',\n BACKSHARE: '驳回共享',\n APPROVELINEED: '并行审批',\n SIGNSEQUENCEED: '顺序签署',\n SIGNLINEED: '并行签署',\n USERADDSIGN: '用户加签'\n};\nexport default {\n name: 'todo',\n components: {\n TaskImage: TaskImage,\n sctionInfoSelector: sctionInfoSelector,\n EipUserSelector: EipUserSelector,\n ImageDialog: ImageDialog,\n startFlow: startFlow,\n fileUpload: fileUpload,\n CascaderCompany: CascaderCompany\n },\n props: {\n defKey: {\n type: String,\n default: ''\n },\n orgName: {\n type: String,\n default: ''\n },\n orgId: {\n type: String,\n default: ''\n }\n },\n data: function data() {\n return {\n dadToSon: {\n bizPath: 'disease',\n fileList: []\n },\n companyOptions: [],\n roadData: [],\n searchForm: {},\n changeform: {\n rummagerName: '',\n rummagerId: ''\n },\n changeVisible: false,\n dataTaskList: [],\n pageResult: {\n page: 1,\n pageSize: 50,\n total: 0\n },\n batchHandleIds: [],\n form: {\n tableData: '',\n date: '',\n orgName: '',\n orgId: ''\n },\n //填写病害单\n formOrder: {\n roadSegmentName: '',\n rummagerId: '',\n rummagerName: '',\n patrolDate: '',\n type: 1,\n content: '',\n weather: 1 //天气值\n\n },\n status: STATUS,\n currentTree: '1425741088454479872',\n fullscreenLoading: true,\n sorter: [],\n urgentStateConf: {},\n urgentStateConfList: [],\n urgentStateVal: '',\n ids: '',\n //待办任务id集合\n defaultFiledShowConf: '',\n defaultFiledShowConfList: [{\n name: 'subject',\n desc: '标题',\n frontShow: true\n }, {\n name: 'procInstId',\n desc: '流程编号',\n frontShow: true\n }, {\n name: 'procDefName',\n desc: '流程名称',\n frontShow: true\n }, {\n name: 'name',\n desc: '任务名称',\n frontShow: true\n }, {\n name: 'status',\n desc: '类型',\n frontShow: true\n }, {\n name: 'createTime',\n desc: '创建时间',\n frontShow: true\n }, {\n name: 'creator',\n desc: '创建人',\n frontShow: true\n }, {\n name: 'urgentStateValue',\n desc: '紧急状态',\n frontShow: true\n }, {\n name: 'dueExpDate',\n desc: '到期时间',\n frontShow: false\n }, {\n name: 'ownerName',\n desc: '所属人',\n frontShow: false\n }, {\n name: 'assigneeName',\n desc: '待审批人',\n frontShow: false\n }, {\n name: 'prop1',\n desc: '扩展1',\n frontShow: false\n }, {\n name: 'prop2',\n desc: '扩展2',\n frontShow: false\n }, {\n name: 'prop3',\n desc: '扩展3',\n frontShow: false\n }, {\n name: 'prop4',\n desc: '扩展4',\n frontShow: false\n }, {\n name: 'prop5',\n desc: '扩展5',\n frontShow: false\n }, {\n name: 'prop6',\n desc: '扩展6',\n frontShow: false\n }],\n selectInstanceId: '',\n selectBpmnInstId: '',\n selectDefId: '',\n batchDialogVisible: false,\n batchHandleSetting: {},\n batchResultDialog: false,\n batchCompleteList: [],\n batchFailedList: [],\n batchUnBatchableList: [],\n batchNotAuthList: [],\n failedMsgMap: {},\n batchSubmitBtnLoad: false,\n skipMsg: '',\n unBatchMsg: '',\n fillInOrderDialogVisible: false,\n //填写病害单对话框\n diseaseData: [],\n diseasePageResult: {\n page: 1,\n pageSize: 10,\n total: 0\n },\n typeOptions: [],\n //类型 日巡检 夜巡检\n dataBaseOptions: {\n dataBaseId: '',\n tableName: 'biz_disease',\n // 必填\n tableSchema: ''\n },\n originAPIOptions: {\n url: '/disease/v1/getJson',\n // 列表请求接口地址\n method: 'post',\n // 列表请求方法\n moduleRoot: 'yhxt' // 微服务根路径\n\n },\n exportQuery: {},\n //附件数据\n enclosureData: [],\n tableData: [],\n AddDiseasedialogVisible: false,\n relationDialogVisible: false,\n // relationDialogVisible: false,\n processTrackDialogVisible: false,\n defaultQuerys: [{\n property: 'relevanceId',\n value: ''\n }],\n diseaseDataFillIn: [],\n selections: [],\n acceptInspectionDialogVisible: false,\n //接受巡检\n dialogVisible: false,\n //填写病害单\n groupCodeArr: [],\n //当前登录角色编码\n fillInOrderId: '',\n relationData: {},\n //发起养护工单\n flowDialogVisible: false,\n defId: '1434715043114651648',\n siteTaskVo: {\n advice: '',\n itemId: '',\n rummagerId: '',\n siteId: '',\n status: ''\n },\n handStatusOptions: [{\n text: '创建巡检任务',\n value: '1',\n type: ''\n }, {\n text: '接受巡检任务',\n value: '2',\n type: 'success'\n }, {\n text: '完成巡检任务',\n value: '3',\n type: 'info'\n }, {\n text: '确认无病害',\n value: '4',\n type: 'warning'\n }, {\n text: '填写病害',\n value: '5',\n type: 'info'\n }, {\n text: '拒绝巡检单',\n value: '6',\n type: 'danger'\n }],\n typeOp: [{\n label: '日巡检',\n value: 1\n }, {\n label: '夜巡检',\n value: 2\n }],\n rulesOrder: {\n weather: {\n required: true,\n message: '请选择天气',\n trigger: 'blur'\n },\n problem: {\n required: true,\n message: '请输入巡检问题',\n trigger: 'blur'\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 categoryId: [{\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 options: [],\n cbkm: [],\n optionsss: [{\n value: 0,\n label: '否'\n }, {\n value: 1,\n label: '是'\n }],\n // 巡检病害信息弹层需要的参数\n siteDiseaseVisible: false,\n siteForm: {},\n diseaseForm: [],\n activeNames: ['1', '2'],\n // typeOp: [\n // {label: '日巡检', value: '1'},\n // {label: '夜巡检', value: '2'}\n // ],\n isEnlarge: false,\n siteInspectionVo: {},\n diseaseList: []\n };\n },\n watch: {\n 'form.orgId': {\n handler: function handler(newName, oldName) {\n this.search('find');\n },\n immediate: true\n }\n },\n computed: _objectSpread(_objectSpread({}, mapState('storeProcess', ['rows', 'pagination', 'total'])), {}, {\n currentSwitchValue: function currentSwitchValue() {\n return localStorage.todoAsideShow === 'true' || localStorage.todoAsideShow === true;\n }\n }),\n created: function created() {\n this.company = this.getCompany();\n this.roadData = this.getroad(); //this.getTaskList()\n\n this.typeOptions = utils.getDictItemsFromCache('xjlx') || [];\n this.typeOptions.forEach(function (item) {\n item.text = item.name;\n });\n var orgAccount = JSON.parse(window.sessionStorage.getItem('currentUser')).account;\n this.getOrgInfo(orgAccount);\n },\n methods: {\n sonToDad: function sonToDad(data) {\n console.log(data);\n this.form.accessories = data;\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 }\n },\n handleEdit: function handleEdit(row) {\n var _this = this;\n\n this.siteDiseaseVisible = true;\n this.$http.get('${yhxt}/siteInspection/v1/get/' + row.siteInspection.id).then(function (res) {\n //巡检信息\n console.log(res.data, '巡检信息');\n _this.siteForm = res.data.siteInspectionVo; //病害信息\n\n _this.diseaseForm = res.data.diseaseList;\n });\n },\n siteDiseaseClose: function siteDiseaseClose() {\n this.siteDiseaseVisible = false;\n },\n //放大病害照片\n handleEnlarge: function handleEnlarge() {\n this.isEnlarge = true;\n },\n //获取级角色信息\n getOrgInfo: function getOrgInfo(orgAccount) {\n var _this2 = this;\n\n this.$http.get('${yhxt}/api/role/v1/role/getRolesByUser?account=' + orgAccount).then(function (res) {\n if (res.data.length != 0) {\n res.data.forEach(function (item) {\n _this2.groupCodeArr.push(item.groupCode);\n });\n console.log(_this2.groupCodeArr, 'd');\n }\n });\n },\n loadDataTaskList: function loadDataTaskList(param, cb) {\n var _this3 = this;\n\n this.$http.post('${yhxt}/bizTaskWaitHandle/v1/getJson', param).then(function (res) {\n // console.log(res)\n var result = res.data;\n _this3.dataTaskList = result.rows;\n _this3.pageResult = {\n page: result.page,\n pageSize: result.pageSize,\n total: result.total\n };\n }).finally(function () {\n return cb();\n });\n },\n //判断是否超时\n isOverTime: function isOverTime(startTime, planTime) {\n if (startTime && planTime) {\n var end = new Date().getTime();\n var start = new Date(startTime).getTime();\n var plan = new Date(planTime).getTime();\n var overTime = end - start;\n\n if (plan > overTime) {\n return '0'; // 0代表否\n } else {\n return '1'; // 1代表是\n }\n } else {\n return '0';\n }\n },\n //计算时间差\n formatTimeLag: function formatTimeLag(row) {\n var endTimes = 0;\n\n if (!row.transDate) {\n endTimes = new Date().getTime();\n } else {\n endTimes = new Date(row.transDate).getTime();\n }\n\n var difference = endTimes - new Date(row.sendDate).getTime();\n var r = ''; ////计算出相差天数\n\n var days = Math.floor(difference / (24 * 3600 * 1000)); //计算出小时数\n\n var leave1 = difference % (24 * 3600 * 1000); //计算天数后剩余的毫秒数\n\n var hours = Math.floor(leave1 / (3600 * 1000)); //计算相差分钟数\n\n var leave2 = leave1 % (3600 * 1000); //计算小时数后剩余的毫秒数\n\n var minutes = Math.floor(leave2 / (60 * 1000)); //计算相差秒数\n\n var leave3 = leave2 % (60 * 1000); //计算分钟数后剩余的毫秒数\n\n var seconds = Math.round(leave3 / 1000);\n if (days > 0) r += days + '天';\n if (hours > 0) r += hours + '小时';\n\n if (days > 0) {\n return r;\n }\n\n if (minutes > 0) r += minutes + '分钟';\n\n if (hours > 0) {\n return r;\n }\n\n if (seconds > 0) r += seconds + '秒';\n\n if (minutes == 0 && seconds >= 0) {\n return '小于1分钟';\n } //r.slice(0, r.indexOf('时'));\n\n\n return r;\n },\n handleDbClick: function handleDbClick(row) {\n this.handleRowClick(row, false);\n },\n // getTaskList() {\n // this.$http\n // .get(\n // '${portal}/sys/sysProperties/v1/getDecryptByAlias?alias=taskListFiledConf'\n // )\n // .then(resp => {\n // let tempConf = {}\n // if (resp.data) {\n // tempConf = JSON.parse(resp.data.value)\n // } else {\n // tempConf = this.defaultFiledShowConfList\n // }\n // this.formatConfListToObj(tempConf)\n // })\n // let querys = []\n // if (this.defKey) {\n // querys.push({\n // property: 'bt.proc_def_key_',\n // value: this.defKey,\n // operation: 'EQUAL',\n // relation: 'AND'\n // })\n // }\n // //判断是否有URL传参\n // if (this.orgName && this.orgId) {\n // this.form.orgName = this.orgName\n // this.form.orgId = this.orgId\n // querys.push({\n // group: 'orgId',\n // property: 'inst.CREATE_ORG_PATH_',\n // value: this.orgId,\n // operation: 'LIKE',\n // relation: 'AND'\n // })\n // }\n // if (this.currentTree) {\n // querys.push({\n // property: 'bt.type_id_',\n // value: this.currentTree,\n // group: 'typeId',\n // operation: 'IN',\n // relation: 'AND'\n // })\n // }\n // let pageBean = {\n // pageBean: {page: '1', pageSize: '10', showTotal: 'true'},\n // querys: querys\n // } //初次加载默认pageBean\n // // this.$store\n // // .dispatch(\"storeProcess/getUrgentStateConf\", { getConf: true })\n // // .then(data => {\n // this.$store\n // .dispatch('storeProcess/getTodoByPagination', pageBean)\n // .then(() => {\n // //页面加载调用tudo.js里面的分页方法\n // this.fullscreenLoading = false\n // })\n // // if (data.conf) {\n // // try {\n // // data.conf = JSON.parse(data.conf);\n // // } catch (error) {\n // // data.conf = eval(\"(\" + data.conf + \")\");\n // // }\n // // this.urgentStateConfList = data.conf;\n // // let conf = {};\n // // for (let index = 0, c; (c = data.conf[index++]); ) {\n // // if (c.default) {\n // // this.urgentStateConf.defaultValue = c.state;\n // // }\n // // conf[c.state] = c;\n // // }\n // // this.urgentStateConf.conf = conf;\n // // }\n // // });\n // },\n rowClick: function rowClick(row, column, event) {\n //操作列不触发多选按钮\n if (column && column.label == '流程图') {\n return;\n }\n\n this.$refs.htTable.toggleRowSelection(row);\n },\n //批量勾选待办流程获取\n handleSelectionChange: function handleSelectionChange(val) {\n this.ids = '';\n\n if (val.length > 0) {\n for (var i = 0; i < val.length; i++) {\n this.ids = this.ids + val[i].id + ',';\n }\n\n this.ids = this.ids.substring(0, this.ids.length - 1);\n }\n },\n //Loading 加载中\n openFullScreen: function openFullScreen() {\n this.fullscreenLoading = true;\n },\n handleSizeChange: function handleSizeChange(size) {\n //每页下拉显示数据\n this.$store.dispatch('storeProcess/setPaginationSize', size);\n this.search();\n },\n handleCurrentChange: function handleCurrentChange(currentPage) {\n //点击第几页\n this.$store.dispatch('storeProcess/setPaginationPageNum', currentPage);\n this.search();\n },\n //回车查询\n searchEnterFun: function searchEnterFun(e) {\n var keyCode = window.event ? e.keyCode : e.which;\n\n if (keyCode == 13) {\n this.search('find');\n }\n },\n // 处理排序\n handleSortChange: function handleSortChange(m) {\n this.sorter.splice(this.sorter.findIndex(function (s) {\n return s.property == m.prop;\n }), 1);\n\n if (m.order) {\n this.sorter.push({\n property: m.prop,\n direction: m.order == 'ascending' ? 'ASC' : 'DESC'\n });\n }\n\n this.search();\n },\n // 查询\n search: function search(str) {\n var _this4 = this;\n\n if (str == 'find') {\n this.$store.dispatch('storeProcess/setPaginationPageNum', 1);\n }\n\n var querys = []; //查询条件\n\n var queryFilter = {};\n var pageBean = {\n pageBean: this.pagination\n };\n var beginDate = ''; //开始时间\n\n var endDate = ''; //结束时间\n\n var group = 'main'; //判断条件\n\n var search = {\n company_id_: this.searchForm.companyIds,\n road_segment_name_: this.searchForm.roadSegmentName,\n patrol_date_: this.searchForm.patrolDate\n };\n\n for (var i in search) {\n if (search[i]) {\n if (i == 'company_id_') {\n querys.push({\n group: 'companyIds',\n operation: 'IN',\n parentGroup: '',\n property: 'COMPANY_ID_',\n relation: 'AND',\n value: search[i]\n });\n } else {\n querys.push({\n group: 'advance',\n operation: 'LIKE',\n property: i,\n relation: 'AND',\n value: search[i]\n });\n }\n }\n } // if (this.form.tableData) {\n // querys = [\n // {\n // property: 'bt.subject_',\n // value: this.form.tableData,\n // group: 'main',\n // operation: 'LIKE',\n // relation: 'OR'\n // },\n // {\n // property: 'bt.proc_inst_id_',\n // value: this.form.tableData,\n // group: 'main',\n // operation: 'LIKE',\n // relation: 'OR'\n // },\n // {\n // property: 'bt.proc_def_name_',\n // value: this.form.tableData,\n // group: 'main',\n // operation: 'LIKE',\n // relation: 'OR'\n // },\n // {\n // property: 'bt.name_',\n // value: this.form.tableData,\n // group: 'main',\n // operation: 'LIKE',\n // relation: 'OR'\n // }\n // ]\n // let temp = querys[0]\n // for (let index = 1; index < 7; index++) {\n // let query = JSON.parse(JSON.stringify(temp))\n // query.property = 'prop' + index\n // querys.push(query)\n // }\n // }\n // if (this.form.orgId) {\n // querys.push({\n // property: 'inst.CREATE_ORG_PATH_',\n // value: this.form.orgId,\n // group: 'orgId',\n // operation: 'LIKE',\n // relation: 'AND'\n // })\n // }\n // if (this.currentTree) {\n // querys.push({\n // property: 'a.type_id_',\n // value: this.currentTree,\n // group: 'main',\n // operation: 'IN',\n // relation: 'AND'\n // })\n // }\n // if (this.defKey) {\n // querys.push({\n // property: 'bt.proc_def_key_',\n // value: this.defKey,\n // operation: 'EQUAL',\n // relation: 'AND'\n // })\n // }\n\n\n if (this.form.date) {\n beginDate = utils.formatDate(this.form.date[0].getTime());\n endDate = utils.formatDate(this.form.date[1].getTime());\n querys.push({\n property: 'a.PATROL_DATE_',\n value: [beginDate, endDate],\n group: 'main',\n operation: 'BETWEEN',\n relation: 'AND'\n });\n }\n\n queryFilter = {\n pageBean: this.pagination,\n querys: querys,\n sorter: this.sorter\n };\n this.openFullScreen();\n this.$http.post('${yhxt}/bizTaskWaitHandle/v1/getJson', queryFilter).then(function (res) {\n _this4.fullscreenLoading = false;\n var result = res.data;\n _this4.dataTaskList = result.rows;\n _this4.pageResult = {\n page: result.page,\n pageSize: result.pageSize,\n total: result.total\n };\n }); // this.$store\n // .dispatch('storeProcess/getTodoByPagination', queryFilter)\n // .then((res) => {\n // console.log(res, 'ddddddddddd')\n // this.fullscreenLoading = false\n // this.dataTaskList = res.rows\n // this.pageResult = {\n // page: res.page,\n // pageSize: res.pageSize,\n // total: res.total\n // }\n // })\n },\n //重置\n reset: function reset() {\n this.form = {\n tableData: '',\n date: '',\n orgName: '',\n orgId: ''\n };\n this.search('find');\n },\n handleRowClick: function handleRowClick(row, newWin) {\n if (row.status == 'SHARE' || row.status == 'BACKSHARE') {\n if (row.identityList && row.identityList.length == 1) {\n var url = '/task/' + row.id + '/' + row.identityList[0].id;\n this.handleOpenUrl(url, newWin);\n } else {\n var html = '';\n var this_ = this;\n this.$alert(html, '请选择一个领导代为审批', {\n dangerouslyUseHTMLString: true,\n beforeClose: function beforeClose(action, instance, done) {\n if (action == 'confirm') {\n var se = document.getElementById('approvalLeaderSelect');\n\n if (se.selectedIndex == 0) {\n this.$message.warning('请选择代为审批的领导');\n } else {\n instance.close();\n this_.handleOpenUrl('/task/' + row.id + '/' + se[se.selectedIndex].value, newWin);\n }\n } else {\n instance.close();\n }\n }\n });\n }\n } else if (row.status == 'AGENT' && row.ownerId != row.assigneeId && row.ownerId == this.$store.state.login.currentUser.userId) {\n //委托任务\n this.handleOpenUrl('/instRead/' + row.procInstId + '/agent', newWin);\n } else if (row.status == 'FOLLOW') {\n //跟踪任务\n this.handleOpenUrl('/taskRead/' + row.id + '/FOLLOW', newWin);\n } else {\n var _url = '/task/' + row.id + '/0';\n\n if (this.defKey) {\n _url = '/sysModuleInst/' + row.id + '/0' + '/' + this.defKey + '/true';\n }\n\n this.handleOpenUrl(_url, newWin);\n }\n },\n handleOpenUrl: function handleOpenUrl(url, newWin) {\n if (!newWin) {\n this.$router.push(url);\n return;\n }\n\n if (!url) {\n return;\n }\n\n var token = this.$store.state.login.currentUser.token;\n\n if (!url.toLowerCase().startsWith('http')) {\n url = window.context.front + url;\n }\n\n if (url.indexOf('?') == -1) {\n url = url + '?token=' + token;\n } else {\n url = url + '&token=' + token;\n }\n\n window.open(url, '_blank');\n },\n formatConfListToObj: function formatConfListToObj(tempList) {\n var editConfObj = {};\n tempList.forEach(function (c) {\n var key = c.name;\n editConfObj[key] = c;\n });\n this.$set(this, 'defaultFiledShowConf', editConfObj);\n },\n computeTime: function computeTime(deadline) {\n if (deadline) {\n var time = new Date(deadline).getTime();\n var nowTime = new Date().getTime();\n var duration = time - nowTime;\n if (duration > 0) return deadline;else {\n var hour = Math.floor(Math.abs(duration / 3600000));\n var minute = Math.ceil(Math.abs(duration % 3600000 / 60000));\n return '已到期' + hour + '时' + minute + '分';\n }\n }\n\n return '';\n },\n computeColor: function computeColor(deadline) {\n if (deadline) {\n var time = new Date(deadline).getTime();\n var nowTime = new Date().getTime();\n var day = (time - nowTime) / 86400000;\n if (day > 0) //绿色\n return {\n color: '#22870D'\n };else {\n if (Math.ceil(Math.abs(day)) >= 3) //红色\n return {\n color: '#F1300A'\n }; //黄色\n else return {\n color: '#E1A306'\n };\n }\n }\n\n return {};\n },\n handleShowTaskImage: function () {\n var _handleShowTaskImage = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(row) {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return this.changeSeletion(row);\n\n case 2:\n this.$refs.taskImage.handleOpen();\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function handleShowTaskImage(_x) {\n return _handleShowTaskImage.apply(this, arguments);\n }\n\n return handleShowTaskImage;\n }(),\n changeSeletion: function changeSeletion(row) {\n this.selectInstanceId = row.procInstId;\n this.selectBpmnInstId = row.bpmnInstId;\n },\n batchHandle: function batchHandle() {\n var _this5 = this;\n\n var selectTasks = this.$refs.htTable.selection;\n\n if (!selectTasks || selectTasks.length == 0) {\n this.$message({\n type: 'warning',\n message: '请至少选择一条任务'\n });\n return;\n } //忽略掉非待办类型的任务\n\n\n var ids = [];\n this.skipMsg = '';\n\n for (var i = selectTasks.length - 1; i >= 0; i--) {\n if (selectTasks[i].status == 'NORMAL') {\n ids.push(selectTasks[i].id);\n } else {\n this.skipMsg += selectTasks[i].subject + '
';\n selectTasks.splice(i, 1);\n }\n }\n\n if (ids.length > 0) {\n req.get('${bpmRunTime}/runtime/task/v1/filterUnBatchable?taskIds=' + ids.join(',')).then(function (resp) {\n if (resp.data.state && resp.data.value) {\n if (resp.data.value.length != ids.length) {\n ids = resp.data.value;\n var unBatchMsg = '以下任务未配置批量处理
';\n\n for (var _i = selectTasks.length - 1; _i >= 0; _i--) {\n if (!resp.data.value.includes(selectTasks[_i].id)) {\n unBatchMsg += selectTasks[_i].subject + '
';\n selectTasks.splice(_i, 1);\n }\n } //this.$message({type:\"warning\",dangerouslyUseHTMLString:true,message:unBatchMsg});\n\n\n _this5.unBatchMsg = unBatchMsg;\n }\n\n if (ids && ids.length > 0) {\n _this5.batchHandleIds = ids;\n _this5.batchDialogVisible = true;\n } else {\n _this5.showMsg();\n }\n }\n });\n } else {\n if (this.skipMsg) {\n this.showMsg();\n }\n }\n\n this.batchHandleCheck();\n },\n batchHandleCheck: function batchHandleCheck() {},\n batchHandleSubmit: function batchHandleSubmit() {\n var _this6 = this;\n\n var errMsg = '';\n this.batchSubmitBtnLoad = true;\n\n if (!this.batchHandleSetting.opinion || !this.batchHandleSetting.action) {\n errMsg = '完善表单信息';\n }\n\n if (this.batchHandleSetting.action == 'reject' && (!this.batchHandleSetting.backHandMode || !this.batchHandleSetting.rejectType)) {\n errMsg = '请完善驳回设置';\n }\n\n if (errMsg) {\n this.$message({\n type: 'warning',\n message: errMsg\n });\n this.batchSubmitBtnLoad = false;\n return;\n }\n\n var action;\n\n if (this.batchHandleSetting.action == 'agree') {\n action = 'agree';\n } else {\n action = this.batchHandleSetting.rejectType || this.batchHandleSetting.action;\n }\n\n this.$http.post(window.context.bpmRunTime + '/runtime/task/v1/batchHandle', {\n taskIds: this.batchHandleIds.join(','),\n action: action,\n opinion: this.batchHandleSetting.opinion\n }).then(function (resp) {\n if (resp.data && resp.data.state) {\n _this6.batchDialogVisible = false;\n _this6.batchSubmitBtnLoad = false;\n\n _this6.showBatchResult(resp.data.value);\n }\n });\n },\n showBatchResult: function showBatchResult(taskMaps) {\n this.batchCompleteList = taskMaps['complete'];\n this.batchFailedList = taskMaps['failedList'];\n this.batchUnBatchableList = taskMaps['unHandleList'];\n this.batchNotAuthList = taskMaps['notAuth'];\n this.failedMsgMap = taskMaps['failedMsg'];\n this.batchResultDialog = true;\n },\n afterBatchClose: function afterBatchClose() {\n this.batchDialogVisible = false;\n this.batchHandleSetting = {};\n },\n changeClose: function changeClose() {\n this.changeVisible = false;\n },\n afterResultClose: function afterResultClose() {\n this.batchCompleteList = [];\n this.batchFailedList = [];\n this.batchUnBatchableList = [];\n this.batchNotAuthList = [];\n this.failedMsgMap = [];\n this.batchResultDialog = false;\n this.search('find');\n },\n open: function open(row) {\n var token = this.$store.state.login.currentUser.token;\n\n if (row.status == 'SHARE' || row.status == 'BACKSHARE') {\n if (row.identityList && row.identityList.length == 1) {\n var url = '/task/' + row.id + '/' + row.identityList[0].id + '?token=' + token; //this.$router.push(url);\n\n window.open(window.context.front + url, '_blank');\n } else {\n var html = '';\n var this_ = this;\n this.$alert(html, '请选择一个领导代为审批', {\n dangerouslyUseHTMLString: true,\n beforeClose: function beforeClose(action, instance, done) {\n if (action == 'confirm') {\n var se = document.getElementById('approvalLeaderSelect');\n\n if (se.selectedIndex == 0) {\n this.$message.warning('请选择代为审批的领导');\n } else {\n instance.close();\n /*this_.$router.push(\r\n \"/task/\" + row.id + \"/\" + se[se.selectedIndex].value\r\n );*/\n\n var _url2 = window.context.front + '/task/' + row.id + '/' + se[se.selectedIndex].value + '?token=' + token;\n\n window.open(_url2, '_blank');\n }\n } else {\n instance.close();\n }\n }\n });\n }\n } else if (row.status == 'AGENT' && row.ownerId != row.assigneeId && row.ownerId == this.$store.state.login.currentUser.userId) {\n //委托任务\n //this.$router.push(\"/instRead/\" + row.procInstId + \"/agent\");\n window.open(window.context.front + '/instRead/' + row.procInstId + '/agent' + '?token=' + token, '_blank');\n } else if (row.status == 'FOLLOW') {\n //跟踪任务\n //this.$router.push(\"/taskRead/\" + row.id + \"/FOLLOW\");\n window.open(window.context.front + '/taskRead/' + row.id + '/FOLLOW' + '?token=' + token, '_blank');\n } else {\n var _url3 = '/task/' + row.id + '/0';\n\n if (this.defKey) {\n _url3 += '/noSingle' + '?token=' + token;\n } //this.$router.push(url);\n\n\n window.open(window.context.front + _url3, '_blank');\n }\n },\n doneView: function doneView(procId) {\n var token = this.$store.state.login.currentUser.token;\n var url = window.context.front + '/inst/' + procId + '/doneList?token=' + token;\n window.open(url, '_blank');\n },\n afterOpen: function afterOpen() {\n this.showMsg();\n },\n showMsg: function showMsg() {\n var message = '';\n\n if (this.skipMsg) {\n message = '以下任务不是待办任务,不支持批量处理:
' + this.skipMsg + '
';\n }\n\n if (this.unBatchMsg) {\n message += this.unBatchMsg;\n }\n\n if (message) {\n this.$message({\n dangerouslyUseHTMLString: true,\n message: message,\n type: 'warning'\n });\n }\n },\n //操作按钮\n handleCommand: function handleCommand(params) {\n var _this7 = this;\n\n console.log(params.row);\n\n if (params.command == 'fillInDisease') {\n this.defaultQuerys[0].value = params.row.siteInspection.id;\n this.fillInOrderDialogVisible = true;\n this.fillInOrderId = params.row.siteInspection.id;\n var data = params.row.taskWaitHandle;\n this.siteTaskVo.itemId = data.itemId;\n this.siteTaskVo.rummagerId = data.receiveUserId;\n this.siteTaskVo.siteId = data.bizId;\n this.siteTaskVo.status = 3;\n this.form.type = params.row.siteInspection.type;\n this.form.roadName = params.row.siteInspection.roadSegmentName;\n this.form.roadId = params.row.siteInspection.roadSegmentId;\n this.form.relevanceId = params.row.taskWaitHandle.bizId;\n setTimeout(function () {\n _this7.$refs.htTableDisease.load();\n }, 100);\n } else if (params.command == 'processTrack') {\n this.processTrackDialogVisible = true;\n var query = {\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'bizId',\n relation: 'AND',\n value: params.row.siteInspection.id\n }]\n };\n this.$http.post('${yhxt}/bizTaskAlreadyHandleHistory/v1/getListLog', query).then(function (res) {\n _this7.tableData = res.data.rows;\n });\n } else if (params.command == 'Transfer') {\n console.log(1);\n this.changeVisible = true;\n this.changeform = {\n siteId: params.row.taskWaitHandle.bizId,\n status: '7',\n itemId: params.row.taskWaitHandle.itemId,\n advice: params.row.taskWaitHandle.advice,\n processingStatus: '4'\n };\n } else if (params.command == 'start') {\n this.acceptInspectionDialogVisible = true;\n var _data = params.row.taskWaitHandle;\n this.siteTaskVo.itemId = _data.itemId;\n this.siteTaskVo.rummagerId = _data.receiveUserId;\n this.siteTaskVo.siteId = _data.bizId;\n this.siteTaskVo.status = 2;\n this.siteTaskVo.advice = '接受该巡检单';\n } else if (params.command == 'refuse') {\n console.log(params.row, 'ffffffffffffff');\n var _data2 = params.row.taskWaitHandle;\n this.siteTaskVo.itemId = _data2.itemId;\n this.siteTaskVo.rummagerId = _data2.receiveUserId;\n this.siteTaskVo.siteId = _data2.bizId;\n this.siteTaskVo.status = 6;\n this.siteTaskVo.advice = '拒绝该巡检单';\n this.refuseOpen();\n } else if (params.command == 'confirmNo') {\n //确认无病害\n var _data3 = params.row.taskWaitHandle;\n this.siteTaskVo.itemId = _data3.itemId;\n this.siteTaskVo.rummagerId = _data3.receiveUserId;\n this.siteTaskVo.siteId = _data3.bizId;\n this.siteTaskVo.status = 3;\n this.$confirm('确认 无病害,进入巡检单填写?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n _this7.dialogVisible = true;\n\n _this7.$http.get('${yhxt}/siteInspection/v1/get/' + params.row.siteInspection.id).then(function (res) {\n // let form = {\n // weather: 1, //天气值\n // weatherValue: '晴天'\n // }\n if (res.data && res.data.siteInspectionVo) {\n _this7.siteInspectionVo = res.data.siteInspectionVo;\n _this7.siteInspectionVo.isDele = \"0\";\n _this7.diseaseList = [];\n _this7.formOrder.roadSegmentId = res.data.siteInspectionVo.roadSegmentId;\n _this7.formOrder.roadSegmentName = res.data.siteInspectionVo.roadSegmentName;\n _this7.formOrder.rummagerId = res.data.siteInspectionVo.rummagerId;\n _this7.formOrder.rummagerName = res.data.siteInspectionVo.rummagerName;\n _this7.formOrder.content = res.data.siteInspectionVo.content;\n _this7.formOrder.patrolDate = res.data.siteInspectionVo.patrolDate;\n _this7.formOrder.handStatus = parseInt(res.data.siteInspectionVo.handStatus); // 类型转换\n\n _this7.formOrder.type = parseInt(params.row.siteInspection.type);\n }\n\n _this7.formOrder.weather = 1;\n _this7.formOrder.weatherValue = '晴天';\n });\n }).catch(function () {\n _this7.$message({\n type: 'info',\n message: '已取消操作'\n });\n });\n } else if (params.command == 'Fillin') {\n this.seeImage(params.row);\n } else if (params.command == 'workOrder') {\n this.relationData = params.row;\n this.flowDialogVisible = true;\n }\n },\n //保存转换工单\n handleSavechange: function handleSavechange() {\n var _this8 = this;\n\n this.$http.post('${yhxt}/bizTaskWaitHandle/v1/otherSendPeople', this.changeform).then(function (res) {\n console.log(res, 'aaa');\n _this8.changeVisible = false;\n\n _this8.$message.success(res.data.message);\n\n _this8.$refs.taskListTable.load();\n });\n },\n //查看图片\n seeImage: function seeImage(row) {\n this.$refs.image.open(row);\n },\n handleCloseWorkOrder: function handleCloseWorkOrder() {\n this.flowDialogVisible = false;\n },\n //字典回调\n // handleDict(val, obj, str) {\n // console.log('dddd')\n // if (str == 'ty-tq') {\n // console.log(obj)\n // this.formOrder.weatherValue = obj.name\n // }\n // },\n //开始巡检事件\n siterTaskStatus: function siterTaskStatus() {\n var _this9 = this;\n\n this.siteTaskVo.processingStatus = 2;\n this.$http.post('${yhxt}/siteInspection/v1/updateSiteInspectionSpecial', this.siteTaskVo).then(function (res) {\n _this9.acceptInspectionDialogVisible = false;\n _this9.fillInOrderDialogVisible = false;\n\n _this9.$refs.taskListTable.load();\n });\n },\n //拒绝巡检事件\n refuseOpen: function refuseOpen() {\n var _this10 = this;\n\n this.$confirm('确认拒绝巡检操作?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n _this10.acceptInspectionDialogVisible = true;\n\n _this10.$refs.taskListTable.load();\n }).catch(function () {\n _this10.$message({\n type: 'info',\n message: '已取消操作'\n });\n });\n },\n afterDelete: function afterDelete() {},\n handleClose: function handleClose() {\n this.fillInOrderDialogVisible = false;\n this.relationDialogVisible = false;\n this.processTrackDialogVisible = false;\n this.acceptInspectionDialogVisible = false;\n this.dialogVisible = false;\n this.siteInspectionVo = {};\n this.diseaseList = [];\n },\n handleCancel: function handleCancel() {\n this.AddDiseasedialogVisible = false;\n },\n showDialog: function showDialog() {\n var _this11 = this;\n\n this.dadToSon.fileList = [];\n\n if (this.options.length == 0) {\n var data = 'CBKM';\n\n if (this.form.roadName == '昆楚高速') {\n // data = 'CBKM-KC'\n data = 'KCQD';\n }\n\n basicData.getCostAccountManagement(data).then(function (res) {\n res.data.forEach(function (item) {\n _this11.options.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n });\n });\n }\n\n this.AddDiseasedialogVisible = true;\n },\n handleSubmit: function handleSubmit() {\n var _this12 = this;\n\n console.log(this.form, 'fdddddd');\n this.$refs.ruleForm.validate(function (bool) {\n if (bool) {\n //请求保存提交\n basicData.addDiseaseSave(_this12.form, _this12.defaultQuerys).then(function (res) {\n console.log(res);\n\n _this12.$message.success('保存成功');\n\n _this12.form = {\n direction: '1',\n temporary: '0',\n roadName: ''\n }; //清空表单\n\n _this12.options = [];\n _this12.cbkm = [];\n _this12.AddDiseasedialogVisible = false;\n\n _this12.$refs.htTableDisease.load();\n });\n }\n });\n },\n //保存巡检病害单\n handleSaveDiseaseOreder: function handleSaveDiseaseOreder() {\n var _this13 = this;\n\n //验证表单是否填写完\n this.$refs.formOrder.validate(function (pass) {\n // console.log(this.formOrder)\n if (pass) {\n //请求保存提交/siteInspection/v1/saveVo\n //更改处理情况\n // this.formOrder.processingStatus = 2\n var data = {\n diseaseList: _this13.diseaseList,\n siteInspection: _objectSpread(_objectSpread({}, _this13.siteInspectionVo), _this13.formOrder)\n };\n\n _this13.$http.post('${yhxt}/siteInspection/v1/saveVo', data).then(function (res) {\n if (res.status == 200) {\n _this13.$message({\n message: res.data.message,\n type: 'success'\n }); //更改状态\n\n\n _this13.siterTaskStatus();\n }\n\n _this13.dialogVisible = false;\n _this13.siteInspectionVo = {};\n _this13.diseaseList = [];\n\n _this13.$refs.taskListTable.load();\n });\n }\n });\n },\n changesele: function changesele(value) {\n var _this14 = this;\n\n console.log(value);\n this.options.forEach(function (item) {\n if (value == item.value) {\n _this14.form.subjectName = item.label;\n _this14.form.categoryId = item.value;\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\n _this14.cbkm = arr;\n _this14.form.detailsId = arr[0].value;\n _this14.form.dsubjectName = arr[0].label;\n });\n }\n });\n },\n dsubchange: function dsubchange(val) {\n var _this15 = this;\n\n console.log(val);\n this.cbkm.forEach(function (item) {\n if (item.value == val) {\n _this15.form.dsubjectName = item.label;\n _this15.form.detailsId = item.value;\n }\n });\n this.$forceUpdate();\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 //关联病害\n relationDisease: function relationDisease() {\n var _this16 = this;\n\n this.relationDialogVisible = true;\n setTimeout(function () {\n _this16.$refs.htTablerelationDisease.load();\n }, 100);\n },\n //关联病害复选框事件\n select: function select(selection, row) {\n this.selections = selection;\n },\n //关联病害点击确定赋值到病害单\n relationDiseaseSure: function relationDiseaseSure() {\n var _this17 = this;\n\n console.log(this.selections, 'ffff');\n this.selections.forEach(function (item) {\n item.relevanceId = _this17.defaultQuerys[0].value;\n\n _this17.$http.post('${yhxt}/disease/v1/saveDisease', item).then(function (res) {\n console.log('eeee');\n\n _this17.$refs.htTableDisease.load();\n\n _this17.relationDialogVisible = false;\n });\n });\n },\n fillInOrder: function fillInOrder() {\n var _this18 = this;\n\n this.dialogVisible = true;\n this.$http.get('${yhxt}/siteInspection/v1/get/' + this.fillInOrderId).then(function (res) {\n console.log(res, 'dddddddddddd'); // let form = {\n // weather: 1, //天气值\n // weatherValue: '晴天',\n // type: res.data.siteInspectionVo.handStatus\n // }\n // this.formOrder = {...res.data.siteInspectionVo, ...form}\n\n if (res.data && res.data.siteInspectionVo) {\n _this18.siteInspectionVo = res.data.siteInspectionVo;\n _this18.siteInspectionVo.isDele = \"0\";\n _this18.diseaseList = res.data.diseaseList;\n _this18.formOrder.roadSegmentId = res.data.siteInspectionVo.roadSegmentId;\n _this18.formOrder.roadSegmentName = res.data.siteInspectionVo.roadSegmentName;\n _this18.formOrder.rummagerId = res.data.siteInspectionVo.rummagerId;\n _this18.formOrder.rummagerName = res.data.siteInspectionVo.rummagerName;\n _this18.formOrder.content = res.data.siteInspectionVo.content;\n _this18.formOrder.patrolDate = res.data.siteInspectionVo.patrolDate;\n _this18.formOrder.handStatus = parseInt(res.data.siteInspectionVo.handStatus);\n }\n\n _this18.formOrder.weather = 1;\n _this18.formOrder.weatherValue = '晴天';\n });\n },\n //添写病害单\n loadDatafillIn: function loadDatafillIn(param, cb) {\n var _this19 = this;\n\n this.exportQuery = param;\n this.$http.post('${form}/disease/v1/getJson', param).then(function (resp) {\n var res = resp.data.rows;\n var arr = [];\n res.filter(function (item) {\n if (item.temporary == 0) {\n arr = arr.concat(item);\n }\n });\n _this19.diseaseDataFillIn = arr;\n _this19.diseasePageResult = {\n page: resp.data.page,\n pageSize: resp.data.pageSize,\n total: _this19.diseaseDataFillIn.length\n };\n }, function (error) {\n reject(error);\n }).finally(function () {\n if (cb) {\n cb();\n }\n });\n },\n loadData: function loadData(param, cb) {\n var _this20 = this;\n\n this.exportQuery = param;\n this.$http.post('${form}/disease/v1/getJson', param).then(function (resp) {\n var res = resp.data.rows;\n var arr = [];\n res.filter(function (item) {\n if (item.temporary == 0 && item.relevanceId != _this20.defaultQuerys[0].value) {\n arr = arr.concat(item);\n }\n });\n _this20.diseaseData = arr;\n _this20.diseasePageResult = {\n page: resp.data.page,\n pageSize: resp.data.pageSize,\n total: arr.length\n };\n }, function (error) {\n reject(error);\n }).finally(function () {\n if (cb) {\n cb();\n }\n });\n },\n getroad: function getroad() {\n var arr = [];\n basicData.getRoadManagement().then(function (res) {\n res.rows.forEach(function (item) {\n arr.push({\n value: item.name,\n key: item.name\n });\n });\n console.log(arr, '12');\n });\n return arr;\n },\n getCompany: function getCompany() {\n var _this21 = this;\n\n this.$http.post('${yhxt}/Company/v1/getCompany').then(function (res) {\n res.data.forEach(function (item) {\n _this21.companyOptions.push({\n id: item.id,\n name: item.name\n });\n });\n });\n }\n }\n};",null]}