{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ProjectActionIteration\\components\\ApplyForDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ProjectActionIteration\\components\\ApplyForDialog.vue","mtime":1683620203198},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\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/es6.regexp.to-string\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\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//\nimport utils from '@/utils.js';\nimport moment from 'moment';\nimport measureIterationApplication from '@/api/projectActionIteration/measureIterationApplication.js';\nexport default {\n name: 'ApplyForDialog',\n data: function data() {\n return {\n monthLoading: false,\n activeNames: ['1', '2'],\n activeCollapse: ['1', '2'],\n visible: false,\n title: '新增',\n disabled: false,\n index: null,\n saveloading: false,\n rules: {\n reformSpecificMeasures: [{\n required: true,\n message: '请输入具体举措',\n trigger: 'blur'\n }],\n iterationAccording: [{\n required: true,\n message: '请输入迭代依据',\n trigger: 'blur'\n }]\n },\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n },\n parameter: {\n iterationAccording: '',\n reformSpecificMeasures: '',\n iteration: '',\n status: -1,\n pilotSpecificScheduleList: []\n },\n newData: null,\n oldData: null,\n //月度计划相关\n // parameter: {\n // pilotSpecificScheduleList: []\n // },\n JCIndex: null,\n JCItem: null,\n iterationType: 0\n };\n },\n created: function created() {},\n mounted: function mounted() {},\n methods: {\n add: function add(val) {\n this.title = '新增';\n this.visible = true;\n this.parameter.projectId = val;\n this.parameter.iteration = 0;\n this.parameter.distributionType = 1;\n },\n edit: function edit(val, index, iteration) {\n var _this = this;\n\n this.index = index;\n this.title = '编辑';\n this.parameter = _objectSpread(_objectSpread({}, val), {}, {\n edit: true,\n iteration: iteration\n }); // if (val.pilotSpecificScheduleList&&val.pilotSpecificScheduleList.length) {\n // this.parameter = val\n // }\n\n if (val.id && (!val.pilotSpecificScheduleList || !val.pilotSpecificScheduleList.length)) {\n var data = {\n pageBean: {\n page: 1,\n pageSize: -1\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'MEASURES_ID_',\n relation: 'AND',\n value: val.id\n }]\n };\n measureIterationApplication.getMonthDetails(data, function (res) {\n if (res.rows.length) {\n res.rows.forEach(function (item) {\n item.planYear = item.planYear.toString();\n item.planMonth = item.planMonth.toString();\n });\n\n _this.$nextTick(function () {\n _this.$set(_this.parameter, 'pilotSpecificScheduleList', res.rows);\n });\n } else {\n _this.$nextTick(function () {\n _this.$set(_this.parameter, 'pilotSpecificScheduleList', []);\n });\n }\n\n _this.monthLoading = false;\n });\n }\n\n this.visible = true;\n },\n detail: function detail(item) {\n var _this2 = this;\n\n this.newData = item;\n this.newData.createTime = moment(this.newData.createTime).format('YYYY-MM-DD');\n\n if (item.specificMeasuresId) {\n // let arr = [\n // {\n // group: 'main',\n // operation: 'EQUAL',\n // parentGroup: '',\n // property: 'id_',\n // relation: 'AND',\n // value: item.specificMeasuresId\n // }\n // ]\n // this.queryParam.querys = arr\n measureIterationApplication.getHistoryById(item.specificMeasuresId, function (res) {\n if (res.length > 1) {\n _this2.oldData = res[1];\n _this2.oldData.createTime = moment(_this2.oldData.createTime).format('YYYY-MM-DD');\n }\n });\n }\n\n this.visible = true;\n this.title = '历史记录';\n },\n getParentsById: function getParentsById(list, id) {\n for (var i in list) {\n if (list[i].id == id) {\n //这里的no根据你的需求可进行改变\n //查询到就返回该数组对象的value\n return [list[i].id];\n }\n\n if (list[i].children) {\n var node = this.getParentsById(list[i].children, id);\n\n if (node !== undefined) {\n //查询到把父节把父节点加到数组前面\n node.unshift(list[i].id);\n console.log(node);\n return node;\n }\n }\n }\n },\n changeUnit: function changeUnit(value) {\n var nodesObj = this.$refs['cascader'].getCheckedNodes();\n\n if (nodesObj != []) {\n this.parameter.unitId = nodesObj[0].data.id;\n this.parameter.unitName = nodesObj[0].label;\n this.parameter.unitCode = nodesObj[0].data.code;\n this.parameter.unitGrade = nodesObj[0].level;\n } else {\n this.parameter.unitId = '';\n this.parameter.unitName = '';\n this.parameter.unitCode = '';\n this.parameter.unitGrade = '';\n }\n },\n // 关闭新增人员窗口\n handleClose: function handleClose() {\n this.visible = false;\n this.saveloading = false;\n this.title = '';\n this.parameter = {\n iterationAccording: '',\n reformSpecificMeasures: '',\n iteration: '',\n status: -1\n };\n this.newData = null;\n this.oldData = null;\n this.parameter = {\n pilotSpecificScheduleList: []\n };\n this.JCIndex = null;\n this.JCItem = null;\n this.iterationType = 0;\n },\n // 保存\n handleSave: function handleSave() {\n var _this3 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n // if (this.parameter.iteration === 1) {\n // this.parameter.status = 0\n // } else {\n // this.parameter.status = -1\n // }\n _this3.parameter.status = 0;\n\n if (_this3.title == '新增') {\n _this3.$emit('getData', _this3.parameter);\n } else {\n _this3.$emit('getData', _this3.parameter, _this3.index);\n }\n\n _this3.handleClose();\n }\n });\n },\n // 月度计划\n tableAdd: function tableAdd(type) {\n length = this.parameter.pilotSpecificScheduleList;\n this.parameter.pilotSpecificScheduleList.push({\n key: length + new Date(),\n planYear: moment().format('YYYY'),\n planMonth: moment().format('M'),\n progressStatus: 1,\n planType: '',\n planContent: ''\n });\n },\n tableDel: function tableDel(type, row) {\n var _this4 = this;\n\n if (!row.id) {\n this.parameter.pilotSpecificScheduleList = this.parameter.pilotSpecificScheduleList.filter(function (item) {\n return item.key !== row.key;\n });\n } else {\n console.log(type);\n this.$confirm('确认删除这条记录?', '提示', {\n cancelButtonText: '关闭',\n type: 'error'\n }).then(function () {\n majorProjects.deleteJdjh(row.id, function (res) {\n if (res.state) {\n _this4.$message.success('删除数据成功');\n\n _this4.parameter[type] = _this4.parameter[type].filter(function (item) {\n return item.id !== row.id;\n });\n }\n });\n });\n }\n },\n // 保存月度计划\n handleSaveMonth: function handleSaveMonth() {\n var _this5 = this;\n\n if (this.parameter.pilotSpecificScheduleList.length) {\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n _this5.JCItem.pilotSpecificScheduleList = utils.deepClone(_this5.parameter.pilotSpecificScheduleList);\n _this5.JCItem.edit = true;\n\n _this5.JCItem.pilotSpecificScheduleList.forEach(function (item) {\n delete item.key;\n\n if (_this5.JCItem.id) {\n item.measuresId = _this5.JCItem.id;\n }\n });\n\n _this5.parameter.pilotSpecificScheduleList = [];\n\n _this5.$emit('getData', _this5.JCItem, _this5.JCIndex - 0, _this5.iterationType);\n\n _this5.handleSave(); // this.handleClose()\n\n }\n });\n }\n }\n }\n};",null]}