{"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\\MonthlyPlanDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ProjectActionIteration\\components\\MonthlyPlanDialog.vue","mtime":1682688895021},{"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 _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport \"core-js/modules/web.dom.iterable\";\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//\nimport org from '@/api/org.js';\nimport utils from '@/utils.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport measureIterationApplication from '@/api/projectActionIteration/measureIterationApplication.js';\nimport majorProjects from '@/api/MajorReformProjects/majorProjects.js';\nimport moment from 'moment';\nimport { TableMixin } from '@/mixins/tableMixin';\nexport default {\n name: 'ApplyForDialog',\n mixins: [TableMixin],\n data: function data() {\n return {\n activeCollapse1: '1',\n visible: false,\n title: '月度计划',\n disabled: false,\n index: null,\n saveloading: false,\n rules: {\n planContent: [{\n required: true,\n // message: '请输入具体举措',\n trigger: 'change'\n }],\n planType: [{\n required: true,\n // message: '请输入具体举措',\n trigger: 'change'\n }]\n },\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: -1\n }\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 open: function open(JCItem, JCIndex, iterationType) {\n var _this = this;\n\n // console.log(JCItem)\n if (JCItem.pilotSpecificScheduleList) {\n var tempData = utils.deepClone(JCItem.pilotSpecificScheduleList);\n tempData.forEach(function (item) {\n item.planYear = item.planYear.toString();\n item.planMonth = item.planMonth.toString();\n });\n this.parameter.pilotSpecificScheduleList = tempData;\n } else {\n if (JCItem.id) {\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: JCItem.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.$set(_this.parameter, 'pilotSpecificScheduleList', res.rows);\n\n console.log(_this.parameter);\n }\n });\n }\n } // console.log(\n // this.parameter.pilotSpecificScheduleList,\n // 'this.parameter.pilotSpecificScheduleList.............'\n // )\n\n\n this.visible = true;\n this.JCIndex = JCIndex;\n this.JCItem = JCItem;\n this.iterationType = iterationType;\n\n if (this.iterationType == 'detail') {\n this.disabled = true;\n } else {\n this.disabled = false;\n }\n },\n tableAdd: function tableAdd(type) {\n length = this.parameter.pilotSpecificScheduleList.length;\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 _this2 = 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 _this2.$message.success('删除数据成功');\n\n _this2.parameter[type] = _this2.parameter[type].filter(function (item) {\n return item.id !== row.id;\n });\n }\n });\n });\n }\n },\n // 关闭新增人员窗口\n handleClose: function handleClose() {\n this.visible = false;\n this.saveloading = false;\n this.disabled = false;\n this.parameter = {\n pilotSpecificScheduleList: []\n };\n },\n add: function add(val) {\n this.title = '新增';\n this.visible = true;\n this.parameter.projectId = val;\n this.parameter.iteration = 0;\n },\n edit: function edit(val, index, active) {\n this.index = index;\n this.title = '编辑';\n this.visible = true;\n this.parameter = _objectSpread(_objectSpread({}, val), {}, {\n edit: true,\n iteration: active == 0 ? 0 : 1\n });\n },\n getParentsById: function getParentsById(list, id) {\n console.log(111);\n\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 handleSave: function handleSave() {\n var _this3 = this;\n\n if (this.parameter.pilotSpecificScheduleList.length) {\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n console.log(_this3.parameter.pilotSpecificScheduleList);\n _this3.JCItem.pilotSpecificScheduleList = utils.deepClone(_this3.parameter.pilotSpecificScheduleList);\n _this3.JCItem.edit = true;\n\n _this3.JCItem.pilotSpecificScheduleList.forEach(function (item) {\n delete item.key;\n\n if (_this3.JCItem.id) {\n item.measuresId = _this3.JCItem.id;\n }\n });\n\n _this3.parameter.pilotSpecificScheduleList = [];\n\n _this3.$emit('getData', _this3.JCItem, _this3.JCIndex - 0, _this3.iterationType);\n\n _this3.handleClose();\n }\n });\n } // this.saveloading=true\n // if (this.title == '新增') {\n // this.$emit('getData', this.parameter)\n // } else {\n // this.$emit('getData', this.parameter, this.index)\n // }\n // this.$refs.formInfo.validate((valid) => {\n // \tif (valid) {\n // \t\tif (this.title === '添加' || this.title === 'add') {\n // \t\t\tmeasureIterationApplication.addData(this.parameter, (res) => {\n // \t\t\t\tif (res.state) {\n // \t\t\t\t\tthis.$notify({\n // \t\t\t\t\t\ttype: 'success',\n // \t\t\t\t\t\tmessage: '添加成功',\n // \t\t\t\t\t\tduration: 2000,\n // \t\t\t\t\t})\n // \t\t\t\t\tthis.$emit('getData')\n // \t\t\t\t\tthis.handleClose()\n // \t\t\t\t}\n // \t\t\t})\n // \t\t} else if (this.title === '编辑' || this.title === 'edit') {\n // \t\t\tmeasureIterationApplication.editData(this.parameter, (res) => {\n // \t\t\t\tif (res.state) {\n // \t\t\t\t\tthis.$notify({\n // \t\t\t\t\t\ttype: 'success',\n // \t\t\t\t\t\tmessage: '修改成功',\n // \t\t\t\t\t\tduration: 2000,\n // \t\t\t\t\t})\n // \t\t\t\t\tthis.$emit('getData')\n // \t\t\t\t\tthis.handleClose()\n // \t\t\t\t}\n // \t\t\t})\n // \t\t}\n // \t}\n // })\n\n }\n }\n};",null]}