{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyDanger\\components\\programDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyDanger\\components\\programDialog.vue","mtime":1687342878005},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import _toConsumableArray from \"D:/jenkins/workspace/bzzgj-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 programApi from '@/views/Manage/saftyDanger/api/programApi';\nimport dictContracts from '@/components/dict/DictSelectUtils.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport CmgtSaftyDangerCheckplanApi from '@/views/Manage/saftyDanger/api/CmgtSaftyDangerCheckplanApi';\nimport nineLittlePlaceApi from '@/views/Manage/saftyDanger/api/nineLittlePlaceApi';\nimport CmgtSaftyDangerCheckplanFormDialogTroubleshooting from \"./CmgtSaftyDangerCheckplanFormDialogTroubleshooting.vue\";\nexport default {\n name: 'CmgtSaftyDangerUnitFormDialog',\n components: {\n CmgtSaftyDangerCheckplanFormDialogTroubleshooting: CmgtSaftyDangerCheckplanFormDialogTroubleshooting\n },\n props: {},\n data: function data() {\n return {\n title: '新增',\n showFormDia: false,\n activeCollapseNames: ['1'],\n emphasisType: [],\n params: {\n checkplanId: null,\n checkYearMonth: null,\n checkType: null,\n schemeName: null,\n startDate: null,\n endDate: null,\n status: '1',\n workTargetContent: null,\n members: null,\n participant: null,\n sponsor: null,\n participantCompany: null,\n notes: null,\n pubState: 1,\n deleteDetailsId: [],\n detail: []\n },\n rules: {\n schemeName: [{\n required: true,\n message: '排查方案名称不能为空',\n trigger: 'blur'\n }],\n checkplanId: [{\n required: true,\n message: '排查计划不能为空',\n trigger: 'blur'\n }],\n status: [{\n required: true,\n message: '方案执行状态不能为空',\n trigger: 'blur'\n }],\n checkYearMonth: [{\n required: true,\n message: '排查月度不能为空',\n trigger: 'blur'\n }],\n checkType: [{\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 workTargetContent: [{\n required: true,\n message: '工作目标描述不能为空',\n trigger: 'blur'\n }],\n members: [{\n required: true,\n message: '检查组织机构及成员描述不能为空',\n trigger: 'blur'\n }],\n participant: [{\n required: true,\n message: '检查区域和对象描述不能为空',\n trigger: 'blur'\n }],\n sponsor: [{\n required: true,\n message: '检查方式与内容不能为空',\n trigger: 'blur'\n }],\n participantCompany: [{\n required: true,\n message: '检查要求不能为空',\n trigger: 'blur'\n }] // notes: [\n // {\n // required: true,\n // message: '注意事项描述不能为空',\n // trigger: 'blur'\n // }\n // ]\n\n },\n // levels: [],\n types: [],\n unitData: [],\n planList: []\n };\n },\n created: function created() {\n // this.types = dictContracts.getDictItemsFromCache('cmgt_aqyhpcdwlb')\n // this.fxjbList = dictUtils.getDictItemsFromCache('fxjb') //风险级别\n // this.zddwflList = dictUtils.getDictItemsFromCache('zddwfl') //重点单位分类\n // this.jxcslxList = dictUtils.getDictItemsFromCache('jxcslx') //九小场所类型\n // this.jxcspqList = dictUtils.getDictItemsFromCache('jxcspq') //九小场所片区\n // this.rlzlList = dictUtils.getDictItemsFromCache('rlzl') //燃料种类\n // this.tysfList = dictUtils.getDictItemsFromCache('ty-sf') //是否三合一\n // this.aqyhlxList = dictUtils.getDictItemsFromCache('cmgt_aqyhlx') //安全隐患\n this.dwlxList = dictContracts.getDictItemsFromCache('zhgl-dwlx');\n this.pclbList = dictContracts.getDictItemsFromCache('pclb');\n this.pcztList = dictContracts.getDictItemsFromCache('pczt');\n this.fazxztList = dictContracts.getDictItemsFromCache('fazxzt');\n this.faztList = dictContracts.getDictItemsFromCache('fazt');\n },\n methods: {\n DangerCheckplan: function DangerCheckplan(item) {\n var _this = this;\n\n // console.log(item)\n // programApi.cmgtSaftyDangerCheckplanUnit(\n // {\n // groupTree: {},\n // pageBean: {\n // page: -1,\n // pageSize: 10\n // },\n // params: {},\n // querys: [],\n // sorter: [\n // {\n // direction: 'ASC',\n // property: ''\n // }\n // ]\n // },\n // res => {\n // console.log(res)\n // }\n // )\n programApi.cmgtSaftyDangerCheckschemeID(item, function (res) {\n console.log(res);\n _this.params.checkYearMonth = res.checkYearMonth;\n _this.params.startDate = res.checkStartDate;\n _this.params.endDate = res.checkEndDate;\n _this.params.sponsor = res.checkContent;\n _this.params.checkType = res.checkType;\n _this.params.detail = res.detail;\n\n _this.params.detail.forEach(function (it) {\n it.id = null;\n });\n });\n },\n checkplanIdChange: function checkplanIdChange(item) {\n this.DangerCheckplan(item);\n },\n add: function add() {\n this.showFormDia = true;\n this.getUnit();\n this.getPlan();\n },\n getUnit: function getUnit() {\n var _this2 = this;\n\n nineLittlePlaceApi.loadCmgtSaftyDangerUnit({\n pageBean: {\n pageSize: -1,\n page: 1\n }\n }, function (res) {\n _this2.total = res.total;\n _this2.unitData = res.rows;\n });\n },\n getPlan: function getPlan() {\n var _this3 = this;\n\n CmgtSaftyDangerCheckplanApi.loadCmgtSaftyDangerCheckplan({\n pageBean: {\n pageSize: -1,\n page: 1\n }\n }, function (res) {\n _this3.total = res.total;\n _this3.planList = res.rows;\n });\n },\n // 字典转义\n dictTranslation: function dictTranslation(dictList, value, dictValue, dictLabel) {\n for (var i = 0; i < dictList.length; i++) {\n if (dictList[i][dictValue] === value) {\n return dictList[i][dictLabel];\n }\n }\n },\n handleClose: function handleClose() {\n this.params = {\n checkplanId: null,\n checkYearMonth: null,\n checkType: null,\n startDate: null,\n endDate: null,\n status: null,\n workTargetContent: null,\n members: null,\n schemeName: null,\n participant: null,\n sponsor: null,\n participantCompany: null,\n notes: null,\n pubState: 1,\n deleteDetailsId: [],\n detail: []\n };\n this.$refs.formInfo.clearValidate();\n this.title = '新增';\n this.showFormDia = false;\n },\n handleSave: function handleSave() {\n var _this4 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n var method;\n\n if (!_this4.params.id) {\n // 新增\n method = programApi.addCmgtSaftyDangerUnit;\n }\n\n if (_this4.params.id) {\n // 修改\n method = programApi.editCmgtSaftyDangerUnit;\n }\n\n method(_this4.params, function (res) {\n if (res.state) {\n _this4.$notify({\n type: 'success',\n message: _this4.title + '成功',\n duration: 2000\n }); // this.$emit('loadData')\n\n\n _this4.$parent.loadData();\n\n _this4.handleClose();\n } else {\n _this4.$message.warning(res.message);\n }\n });\n }\n });\n },\n addTable: function addTable() {\n this.$refs.troubleshooting.add();\n },\n addDetail: function addDetail(list) {\n var _this5 = this;\n\n var arrList = [];\n list.forEach(function (item) {\n // 前端去重\n var boolenVal = _this5.params.detail.every(function (it) {\n return item.checkCompany !== it.checkCompany;\n });\n\n if (boolenVal) {\n item.checkContent = _this5.params.sponsor;\n arrList.push(item);\n }\n });\n this.params.detail = [].concat(_toConsumableArray(this.params.detail), arrList);\n },\n delTable: function delTable(index, row) {\n this.params.detail.splice(index, 1);\n\n if (row.id) {\n this.params.deleteDetailsId.push(row.id);\n }\n },\n Update: function Update(row) {\n var _this6 = this;\n\n this.title = '修改';\n this.getUnit();\n this.getPlan();\n this.showFormDia = true;\n programApi.getItemById(row.id, function (res) {\n _this6.params.id = res.id;\n _this6.params.checkplanId = res.checkplanId;\n _this6.params.checkYearMonth = res.checkYearMonth;\n _this6.params.checkType = res.checkType;\n _this6.params.startDate = res.startDate;\n _this6.params.endDate = res.endDate;\n _this6.params.status = res.status;\n _this6.params.workTargetContent = res.workTargetContent;\n _this6.params.members = res.members;\n _this6.params.participant = res.participant;\n _this6.params.sponsor = res.sponsor;\n _this6.params.participantCompany = res.participantCompany;\n _this6.params.notes = res.notes;\n _this6.params.detail = res.detail;\n _this6.params.pubState = res.pubState;\n _this6.params.schemeName = res.schemeName;\n\n _this6.$set(_this6.params);\n });\n }\n }\n};",null]}