{"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\\dailyMaintenance\\workplan.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\dailyMaintenance\\workplan.vue","mtime":1717697645384},{"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.string.iterator\";\nimport \"core-js/modules/es6.map\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.number.constructor\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 } from 'vuex';\nimport basicData from '@/api/basicData.js';\nimport sctionInfoSelector from '@/components/selector/sctionInfoSelector.vue';\nimport companyInfoSelector from '@/components/selector/companyInfoSelector.vue';\nimport Dict from '@/components/dict/DictSelectUtils.js';\nimport req from '@/request.js';\nimport CascaderCompany from '@/components/selector/CascaderCompany.vue';\nexport default {\n components: {\n // sctionInfoSelector,\n // companyInfoSelector,\n CascaderCompany: CascaderCompany,\n Dict: Dict\n },\n data: function data() {\n return {\n dadToSon: {\n bizPath: 'contract',\n fileList: []\n },\n roadData: [],\n companyOptions: [],\n searchForm: {},\n options: [],\n dialogVisibleEnclosure: false,\n form: {\n roadSegmentName: '',\n isTemporary: 0\n },\n dialogVisible: false,\n title: '',\n data: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n rules: {\n roadName: {\n required: true,\n message: '请选择所属路段',\n trigger: 'blur'\n },\n itemName: {\n required: true,\n message: '请输入合同名称',\n trigger: 'blur'\n },\n assessmentQuarter: {\n required: true,\n message: '请选择考核季度',\n trigger: 'blur'\n },\n startDate: {\n required: true,\n message: '请选择开始时间',\n trigger: 'blur'\n },\n endDate: {\n required: true,\n message: '请选择结束时间',\n trigger: 'blur'\n }\n },\n accessories: [],\n isShowDate: false,\n //是否填写开始时间和结束时间\n\n tableData: [],\n checkDetailArr: [],\n //检查明细\n contract: [],\n //合同信息\n dictSelection: [],\n //勾选复选框\n loading: false,\n //加载\n roadName_: '',\n itemName_: '',\n lock: true,\n //判断是否是在修改,true是修改时改变了表单的值\n tableDataLoading: false,\n dialogVisibleInfo: false,\n activeNames: ['1', '2'],\n activeName: 'first',\n tableDataNow: [],\n tableDataNext: [],\n transDate: [],\n result: false,\n isEdit: true\n };\n },\n created: function created() {\n this.roadData = this.getroad();\n this.company = this.getCompany();\n this.contract = this.getContract();\n // this.getCheckDetail() //获取检查明细列表\n },\n\n methods: {\n // 完成状态为已完成设置未完成原因不可填\n beforeLeave: function beforeLeave(visitName, currentName) {\n if (visitName == 'btn') {\n return false;\n }\n },\n // 删除一行\n removeRow: function removeRow(row, index) {\n if (row.planType == 1) {\n this.tableDataNow.splice(index, 1);\n } else if (row.planType == 2) {\n this.tableDataNext.splice(index, 1);\n }\n },\n // 添加新的一行\n addRow: function addRow(activeName) {\n if (activeName == 'first') {\n var obj = {\n planType: 1,\n context: '',\n status: 2,\n faildReason: '',\n notes: ''\n };\n this.tableDataNow.push(obj);\n } else if (activeName == 'second') {\n var _obj = {\n planType: 2,\n context: '',\n personResponsible: '',\n notes: ''\n };\n this.tableDataNext.push(_obj);\n }\n },\n handleClose: function handleClose() {\n this.dialogVisible = false;\n this.dialogVisibleInfo = false;\n this.isshow = false;\n },\n //导出\n handelExport: function handelExport() {\n var _this = 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 _this.dictSelection.forEach(function (item) {\n ids.push(item.curingAssessment.id);\n });\n var param = _this.qs.stringify({\n ids: ids.join(',')\n });\n // 调用接口 提交数据\n var url = window.context.yhxt + '/assessment/curingAssessment/v1/exportCuringAssessment?' + param;\n req.downloadGet(url);\n _this.dictSelection = [];\n // this.$http.get(\n // '${yhxt}/assessment/curingAssessment/v1/exportCuringAssessment?' +\n // param\n // )(res => {\n // this.dictSelection = []\n // this.$refs.htTable.load()\n // })\n }).catch(function () {\n _this.$message({\n type: 'info',\n message: \"\\u5DF2\\u5BFC\\u51FA\\u9009\\u4E2D\\u7684\\u6570\\u636E\"\n });\n _this.$refs.htTable.load(); //重新获取数据\n });\n }\n },\n handleSelect: function handleSelect(selection) {\n this.dictSelection = selection;\n },\n handleDelete: function handleDelete() {\n var _this2 = this;\n if (!this.dictSelection.length) {\n this.$message.warning(\"\\u8BF7\\u9009\\u62E9\\u8981\\u5220\\u9664\\u7684\\u6570\\u636E\");\n return;\n } else {\n var msg = \"\\u786E\\u5B9A\\u5220\\u9664\\u9009\\u4E2D\\u6570\\u636E\\u5417?\";\n this.$confirm(msg, '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n var ids = [];\n _this2.dictSelection.forEach(function (item) {\n ids.push(item.id);\n });\n var param = _this2.qs.stringify({\n ids: ids.join(',')\n });\n\n // 调用接口 提交数据\n _this2.$http.remove('${yhxt}/bizWorkPlan/v1/?' + param)(function (res) {\n _this2.dictSelection = [];\n _this2.$refs.htTable.load();\n _this2.loadData();\n _this2.$forceUpdate();\n });\n }).catch(function () {\n _this2.$refs.htTable.load(); //重新获取数据\n });\n }\n },\n //计算得分\n handleScorechange: function handleScorechange() {\n var sumScore = 0;\n this.tableData.forEach(function (item) {\n sumScore += Number(item.score);\n });\n if (isNaN(sumScore)) {\n sumScore = 0;\n }\n //解决实时更新数据\n this.$set(this.form, 'score', sumScore);\n },\n //获取合同信息\n getContract: function getContract() {\n var arr = [];\n this.$http.post('${yhxt}/contract/v1/getJson').then(function (res) {\n // console.log(res, 'ddddd')\n res.data.rows.forEach(function (item) {\n arr.push({\n itemName: item.name,\n itemId: item.id,\n itemNomber: item.contractNumber\n });\n });\n });\n return arr;\n },\n //获取检查明细\n getCheckDetail: function getCheckDetail() {\n var _this3 = this;\n var params = {\n pageBean: {\n page: 1,\n pageSize: -1,\n showTotal: true\n },\n querys: [{\n group: 'advance',\n operation: 'EQUAL',\n property: 'ROAD_ID_',\n relation: 'AND',\n value: this.form.roadId\n }]\n };\n this.tableDataLoading = true;\n this.$http.post('${yhxt}/assessment/curingAssessmentItem/v1/query', params).then(function (res) {\n _this3.tableDataLoading = false;\n var data = res.data.rows;\n data.forEach(function (item) {\n item.checkSituation = '';\n item.score = '';\n item.remarks = '';\n });\n // this.checkDetailArr = data\n _this3.tableData = data;\n });\n },\n handleClick: function handleClick(tab, event) {\n console.log(tab, event);\n },\n sonToDad: function sonToDad(data) {\n console.log(data);\n this.accessories = data;\n },\n //路段信息赋值\n changed: function changed(obj) {\n this.form.roadSegmentName = obj.name;\n this.form.roadSegmentId = obj.id;\n },\n handleSelectionChangeEnclosure: function handleSelectionChangeEnclosure(rows) {\n var _this4 = this;\n rows.forEach(function (item) {\n _this4.ids.push(item.id);\n });\n },\n // handleClick(tab, event) {\n // console.log(tab, event)\n // },\n beforeCloseDialog: function beforeCloseDialog() {\n this.dialogVisible = false;\n this.form = [];\n this.tableDataNext = [];\n this.tableDataNow = [];\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 handleReset: function handleReset() {\n this.searchForm = _objectSpread(_objectSpread({}, this.searchForm), {}, {\n companyId: ['1419863231459102720'],\n roadName: '',\n planDate: '',\n startTime: '',\n endTime: ''\n });\n this.transDate = [];\n this.findinfo();\n },\n findinfo: function findinfo() {\n var _this5 = this;\n typeof this.$refs.filterTable !== 'undefined' && this.$refs.filterTable.clearFilter();\n if (this.transDate.length) {\n var startTime = this.transDate[0];\n var endTime = this.transDate[1];\n var year = parseInt(endTime.slice(0, 4));\n var month = parseInt(endTime.slice(5, 7));\n if (month == 12) {\n month = 1;\n year = year + 1;\n } else {\n month = month + 1;\n }\n if (month < 10) {\n endTime = year + '-0' + month + '-01';\n } else {\n endTime = year + '-' + month + '-01';\n }\n startTime = startTime + '-01';\n this.searchForm.planDate = [startTime, endTime];\n }\n var query = [];\n var search = {\n company_id_: this.searchForm.companyIds,\n road_id_: this.searchForm.roadName,\n // planDate: this.searchForm.planDate,\n startTime: this.searchForm.startTime,\n endTime: this.searchForm.endTime\n };\n for (var i in search) {\n if (search[i]) {\n if (i == 'company_id_') {\n query.push({\n group: 'companyIds',\n operation: 'IN',\n parentGroup: '',\n property: 'COMPANY_ID_',\n relation: 'AND',\n value: search[i]\n });\n } else if (i == 'road_id_') {\n query.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'road_id_',\n relation: 'AND',\n value: search[i]\n });\n } else if (i == 'startTime') {\n query.push({\n group: 'advance',\n operation: 'GREAT_EQUAL',\n property: 'planDate',\n relation: 'AND',\n value: search[i]\n });\n } else if (i == 'endTime') {\n query.push({\n group: 'advance',\n operation: 'LESS_EQUAL',\n property: 'planDate',\n relation: 'AND',\n value: search[i]\n });\n } else {\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 };\n this.topQuery = query;\n this.$http.post('${yhxt}/bizWorkPlan/v1/page', data).then(function (resp) {\n console.log(resp);\n var response = resp.data.value;\n for (var _i = 0; _i < response.rows; _i++) {\n response.rows[_i].planDate = response.rows[_i].planDate.slice(0, 10);\n }\n _this5.data = response.rows;\n console.log(_this5.data);\n _this5.$forceUpdate();\n _this5.detilsIds = [];\n _this5.data.forEach(function (item) {\n _this5.detilsIds.push(item.id);\n });\n _this5.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\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 roadName: item.name,\n roadId: item.id,\n companyId: item.companyId,\n companyName: item.companyName\n });\n });\n console.log(arr, '12');\n });\n return arr;\n },\n loadData: function loadData(param, cb) {\n var _this6 = this;\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 this.$http.post('${yhxt}/bizWorkPlan/v1/page', param).then(function (resp) {\n console.log(resp);\n var response = resp.data.value;\n for (var i = 0; i < response.rows.length; i++) {\n response.rows[i].planDate = response.rows[i].planDate.slice(0, 10);\n }\n _this6.data = response.rows;\n _this6.$forceUpdate();\n _this6.detilsIds = [];\n _this6.data.forEach(function (item) {\n _this6.detilsIds.push(item.id);\n });\n _this6.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }, function (error) {\n reject(error);\n }).finally(function () {\n if (cb) {\n cb();\n }\n });\n },\n delpaymentList: function delpaymentList(key) {\n // console.log(key)\n this.paymentList = this.paymentList.filter(function (item) {\n return item.key !== key;\n });\n },\n handleEdit: function handleEdit(data) {\n if (this.isEdit == true) {\n this.isEdit = false;\n } else {\n this.isEdit = true;\n }\n\n // console.log(data)\n // let obj = data.curingAssessment\n // this.roadName_ = obj.roadName //暂存数值\n // this.itemName_ = obj.itemName\n // this.form = data.curingAssessment\n // this.form.roadName = {\n // value: obj.roadId,\n // label: obj.roadName,\n // companyIds: obj.companyIds,\n // companyName: obj.companyName\n // }\n // this.form.itemName = {\n // value: obj.itemId,\n // label: obj.itemName,\n // number: obj.itemNomber\n // }\n // this.tableData = data.curingAssessmentDetailedList\n // this.title = '添加工作计划'\n // this.dialogVisible = true\n },\n calculation: function calculation(row) {\n console.log(row);\n // this.YStable[row.key].totalPrice=row.quantities*row.unitPrice\n this.itemList.forEach(function (item) {\n if (item.price != null && item.amount != null) {\n item.monty = item.price * item.amount;\n }\n });\n var sum = 0;\n this.itemList.forEach(function (item) {\n if (item.totalPrice) {\n sum += item.totalPrice;\n }\n });\n },\n afterDelete: function afterDelete() {\n // this.$refs.htTable.load()\n },\n showDialog: function showDialog() {\n this.form = {}; //添加的时候将表单置空\n this.tableDataNext = [];\n this.tableDataNow = [];\n this.activeName = 'first';\n this.tableData.forEach(function (item) {\n item.checkSituation = '';\n item.score = '';\n item.remarks = '';\n });\n // this.tableData = this.checkDetailArr\n this.title = '添加工作计划';\n this.dialogVisible = true;\n },\n handleCloseEnclosure: function handleCloseEnclosure(done) {\n this.enclosureData = [];\n done();\n },\n handleChange: function handleChange(file, fileList) {\n console.log(file, fileList, 'dddd');\n },\n handleCancel: function handleCancel() {\n // this.$refs.htTable.load()\n this.dialogVisible = false;\n this.form = [];\n this.tableDataNext = [];\n this.tableDataNow = [];\n },\n handleSubmit: function handleSubmit(edit) {\n var _this7 = this;\n //验证表单是否填写完\n this.$refs.ruleForm.validate(function (bool) {\n if (bool) {\n var date = _this7.form.planDate.slice(0, 10);\n _this7.form.planDate = date + ' 00:00:00';\n _this7.loading = true;\n _this7.form.list = [];\n //请求保存提交\n if (_this7.tableDataNow) {\n for (var i = 0; i < _this7.tableDataNow.length; i++) {\n if (!_this7.tableDataNow[i].planType) {\n _this7.tableDataNow[i].planType = 1;\n }\n _this7.form.list.push(_this7.tableDataNow[i]);\n }\n }\n if (_this7.tableDataNext) {\n for (var _i2 = 0; _i2 < _this7.tableDataNext.length; _i2++) {\n if (!_this7.tableDataNext[_i2].planType) {\n _this7.tableDataNext[_i2].planType = 2;\n }\n _this7.form.list.push(_this7.tableDataNext[_i2]);\n }\n }\n _this7.$http.post('${yhxt}/bizWorkPlan/v1/save', _this7.form).then(function (res) {\n _this7.loading = false;\n _this7.$message.success(res.data.message);\n if (res.data.state) {\n _this7.dialogVisible = false;\n _this7.tableDataNow = [];\n _this7.tableDataNext = [];\n }\n _this7.$refs.htTable.load(); //重新获取数据\n if (edit) {\n _this7.dialogVisibleInfo = false;\n }\n });\n }\n });\n },\n getCompany: function getCompany() {\n var _this8 = this;\n this.$http.post('${yhxt}/Company/v1/getCompany').then(function (res) {\n res.data.forEach(function (item) {\n _this8.companyOptions.push({\n id: item.id,\n name: item.name\n });\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 objClone[key] = obj[key];\n }\n }\n }\n }\n },\n handleCommand: function handleCommand(params) {\n var _this9 = this;\n if (params.command == 'detail') {\n this.isEdit = true;\n this.detilsIdsIndex = params.index;\n this.dialogVisibleInfo = true;\n this.loading = true;\n this.activeName = 'first';\n var planid = params.row;\n this.tableDataNow = [];\n this.tableDataNext = [];\n this.$http.post('${yhxt}/bizWorkPlan/v1/selectOne?id=' + planid).then(function (res) {\n if (res.data) {\n _this9.loading = false;\n }\n _this9.form = res.data.value;\n var list = res.data.value.list;\n for (var i = 0; i < list.length; i++) {\n if (list[i].planType == 1) {\n var obj = {\n context: list[i].context,\n status: list[i].status,\n faildReason: list[i].faildReason,\n notes: list[i].notes\n };\n _this9.tableDataNow.push(obj);\n } else if (list[i].planType == 2) {\n var obj2 = {\n context: list[i].context,\n personResponsible: list[i].personResponsible,\n notes: list[i].notes\n };\n _this9.tableDataNext.push(obj2);\n }\n }\n });\n\n // let obj = {\n // billOfQuantities: [],\n // billOutOfQuantities: [],\n // contract: {},\n // defaultBpmCheckOpinion: {},\n // workOrderInformation: {},\n // }\n // this.form = {...obj, ...res.data}\n // this.tableData = res.data.billOfQuantities\n // this.tableDataOutside = res.data.billOutOfQuantities\n // if (this.form.diseases) {\n // this.isshow = true\n // }\n // this.getDiseaseName()\n // this.getsonDiseaseName()\n // // console.log(this.form)\n // })\n // // console.log(params.row)\n // // this.form = {...this.form, ...obj}\n // } else if (params.command == 'processLog') {\n // // console.log(params.row, 'ffffffffffffffffff')\n // this.procInstId = params.row.defaultBpmCheckOpinion.procInstId\n // this.taskId = params.row.defaultBpmCheckOpinion.taskId\n // this.referOpinion = params.row.defaultBpmCheckOpinion.referOpinion\n // this.nodeType = params.row.defaultBpmCheckOpinion.nodeType\n // this.defId = params.row.defaultBpmCheckOpinion.defId\n // this.nodeId = params.row.defaultBpmCheckOpinion.nodeId\n // this.processRecordDialog(params.row.defaultBpmCheckOpinion)\n // } else {\n // /* examine */\n // let formData = new FormData()\n // formData.append('id', params.row.workOrderInformation.id)\n // this.$confirm('是否通过或驳回该条工单?', '提示', {\n // confirmButtonText: '通过',\n // cancelButtonText: '驳回',\n // distinguishCancelAndClose: true,\n // cancelButtonClass: 'cancelButtonClass',\n // type: 'warning',\n // center: true,\n // callback: (action, instance) => {\n // if (action == 'confirm') {\n // formData.append('state', 1)\n // }\n // if (action == 'cancel') {\n // formData.append('state', 0)\n // }\n // if (action !== 'close') {\n // this.$http\n // .post('${yhxt}/workOrderInformation/v1/approve', formData)\n // .then((res) => {\n // this.$message.info(res.data.message)\n // this.findinfo()\n // })\n // }\n // },\n // })\n }\n },\n handleRoadNameChange: function handleRoadNameChange(roadId) {\n var data = this.roadData;\n var result = data.filter(function (item) {\n return item.roadId === roadId;\n });\n this.form = _objectSpread(_objectSpread({}, this.form), result[0]);\n this.getCheckDetail();\n // this.lock = false\n // this.form.roadName = data.label\n // this.form.roadId = data.value\n // this.form.companyId = data.companyId\n // this.form.companyName = data.companyName\n },\n handleItemNameChange: function handleItemNameChange(itemId) {\n var data = this.contract;\n var result = data.filter(function (item) {\n return item.itemId === itemId;\n });\n this.form = _objectSpread(_objectSpread({}, this.form), result[0]);\n // this.lock = false\n // this.form.itemName = data.label\n // this.form.itemId = data.value\n // this.form.itemNomber = data.number\n },\n //字典回调\n handleDict: function handleDict(val, obj, str) {\n if (str === 'khjdlx') {\n this.form.assessmentContent = obj.name;\n if (val == 5) {\n this.isShowDate = true;\n } else {\n this.isShowDate = false;\n }\n }\n },\n handleDetilePrv: function handleDetilePrv() {\n console.log(this.detilsIdsIndex, this.detilsIds.length);\n if (this.detilsIdsIndex > 0) {\n this.detilsIdsIndex--;\n var param = {\n row: this.detilsIds[this.detilsIdsIndex],\n command: 'detail',\n index: this.detilsIdsIndex\n };\n this.handleCommand(param);\n } else {\n this.$message.error('已经是第一页');\n }\n },\n handleDetileNext: function handleDetileNext() {\n console.log(this.detilsIdsIndex, this.detilsIds.length);\n if (this.detilsIdsIndex < this.detilsIds.length - 1) {\n this.detilsIdsIndex++;\n var param = {\n row: this.detilsIds[this.detilsIdsIndex],\n command: 'detail',\n index: this.detilsIdsIndex\n };\n this.handleCommand(param);\n } else {\n this.$message.error('已经是最后一页');\n }\n }\n }\n};",null]}