{"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\\Mobile\\Manage\\MobileSaftyTreatCheckPlanDetail\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Mobile\\Manage\\MobileSaftyTreatCheckPlanDetail\\index.vue","mtime":1690541169611},{"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 \"core-js/modules/es6.function.name\";\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//\nimport moment from 'moment';\nimport CmgtSaftyDangerCheckrecordApi from '@/views/Manage/saftyDanger/api/CmgtSaftyDangerCheckrecordApi';\nimport programApi from '@/views/Manage/saftyDanger/api/programApi';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'MobileSaftyTreatCheckPlanDetail',\n data: function data() {\n return {\n status: '',\n showPickerTime: false,\n dangerTypeName: '',\n aqyhlxList: [],\n schemeList: [],\n value: '',\n showCalendar: false,\n showPicker: false,\n title: '新增',\n deviceData: {},\n situation: '',\n loading: false,\n params: {\n checkschemeId: null,\n checkYearMonth: null,\n unitType: null,\n unitName: null,\n unitId: null,\n unitAddress: null,\n recordName: null,\n unitUserphone: null,\n dangerType: null,\n greatDanger: null,\n checkDate: null,\n checkContent: null,\n leadUsername: null,\n checkUsername: null,\n // status: null,\n reformUsername: null,\n reformUnitname: null,\n latestTimeLimit: null,\n latestReviewDate: null,\n completeDate: null,\n reformRequire: null,\n unitUsername: null,\n controlMemo: null,\n // reformContent: null,\n detail: []\n }\n };\n },\n created: function created() {\n this.aqyhlxList = dictUtils.getDictItemsFromCache('cmgt_aqyhlx');\n this.getScheme();\n },\n mounted: function mounted() {\n this.deviceStatus = dictUtils.getDictItemsFromCache('sbzt');\n this.deviceAzlc = dictUtils.getDictItemsFromCache('azlc');\n this.deviceAzddlx = dictUtils.getDictItemsFromCache('azddlx');\n this.device = this.$route.query.id;\n this.status = this.$route.query.status;\n this.Update(this.device);\n },\n methods: {\n //上一步\n previousStep: function previousStep() {\n this.$router.go(-1);\n },\n // 是否禁用及必填\n boolenShow: function boolenShow() {\n if (!this.params.greatDanger || this.params.greatDanger === '2') {\n return true;\n } else {\n return false;\n }\n },\n //保存\n handleSave: function handleSave() {\n var _this = this;\n\n var method;\n\n if (!this.params.id) {\n // 新增\n method = CmgtSaftyDangerCheckrecordApi.addCmgtSaftyDangerCheckrecord;\n }\n\n if (this.params.id) {\n // 修改\n method = CmgtSaftyDangerCheckrecordApi.editCmgtSaftyDangerCheckrecord;\n }\n\n this.params.detail.forEach(function (item) {\n if (item.reformImgUrlArray) {\n item.reformStatus = 2;\n }\n });\n method(this.params, function (res) {\n if (res.state) {\n _this.$toast.success({\n message: _this.title + '成功'\n });\n\n _this.$router.push({\n name: 'MobileSaftyDangerCheckPlan'\n });\n\n _this.handleClose();\n } else {\n _this.$message.warning(res.message);\n }\n });\n },\n handleClose: function handleClose() {\n this.params = {\n checkschemeId: null,\n checkYearMonth: null,\n unitType: null,\n unitName: null,\n unitId: null,\n unitAddress: null,\n unitUserphone: null,\n dangerType: null,\n greatDanger: null,\n checkDate: null,\n checkContent: null,\n leadUsername: null,\n unitUsername: null,\n checkUsername: null,\n recordName: null,\n // status: null,\n reformUsername: null,\n reformUnitname: null,\n latestTimeLimit: null,\n latestReviewDate: null,\n completeDate: null,\n reformRequire: null,\n controlMemo: null,\n // reformContent: null,\n detail: []\n };\n this.title = '新增'; // this.$emit('refreshList')\n },\n //最迟整改期限\n latestTimeInput: function latestTimeInput() {\n if (this.params.latestTimeLimit && this.params.checkDate) {\n this.params.latestReviewDate = this.dayjs(this.params.checkDate).add(this.params.latestTimeLimit, 'day').format('YYYY-MM-DD');\n } else {\n this.params.latestReviewDate = null;\n }\n },\n //请选择检查时间\n onConfirmTime: function onConfirmTime(item) {\n this.params.checkDate = moment(item).format('YYYY-MM-DD');\n this.showPickerTime = false;\n },\n //隐患类型\n dangerfirm: function dangerfirm(val) {\n this.dangerTypeName = val.name;\n this.params.dangerType = val.value;\n this.showPicker = false;\n },\n // 切换是否存在重大隐患\n changeGreatDanger: function changeGreatDanger(val) {\n if (val === '2') {\n this.params.dangerType = null;\n this.params.reformUnitname = null;\n this.params.checkDate = null;\n this.params.latestTimeLimit = null;\n this.params.latestReviewDate = null;\n this.params.leadUsername = null;\n this.params.reformUsername = null;\n this.params.checkUsername = null;\n this.params.checkContent = null;\n this.params.reformRequire = null;\n this.params.controlMemo = null; // this.rules.checkDate[0].required = false\n // this.rules.latestTimeLimit[0].required = false\n } else {// this.rules.checkDate[0].required = true\n // this.rules.latestTimeLimit[0].required = true\n }\n },\n //\n DangerUnitId: function DangerUnitId(id) {\n var _this2 = this;\n\n CmgtSaftyDangerCheckrecordApi.cmgtSaftyDangerUnitId(id, function (res) {\n _this2.params.unitAddress = res.unitAddress;\n _this2.params.unitUsername = res.name;\n _this2.params.unitUserphone = res.phone;\n _this2.params.unitType = res.type;\n });\n },\n //选择检查方案后自动填充字段检查年度\n CheckschemeId: function CheckschemeId(id) {\n var _this3 = this;\n\n CmgtSaftyDangerCheckrecordApi.cmgtSaftyDangerCheckschemeId(id, function (res) {\n _this3.params.checkYearMonth = res.checkYearMonth;\n });\n },\n //排查方案列表\n getScheme: function getScheme() {\n var _this4 = this;\n\n programApi.loadCmgtSaftyDangerUnit({\n pageBean: {\n pageSize: -1,\n page: 1\n }\n }, function (res) {\n _this4.schemeList = res.rows.map(function (item) {\n return {\n text: item.schemeName,\n value: item.id\n };\n });\n });\n },\n onSubmit: function onSubmit(values) {},\n onClickLeft: function onClickLeft() {\n this.$router.push({\n name: 'MobileSaftyDangerCheckPlan'\n });\n },\n Update: function Update(id) {\n var _this5 = this;\n\n this.readType = false;\n this.title = '修改'; // this.fromType = type\n\n this.showFormDia = true;\n CmgtSaftyDangerCheckrecordApi.getItemById(id, function (res) {\n _this5.params.id = res.id;\n _this5.params.checkschemeId = res.checkschemeId;\n _this5.params.checkYearMonth = res.checkYearMonth;\n _this5.params.unitType = res.unitType;\n _this5.params.unitName = res.unitName;\n _this5.params.unitId = res.unitId;\n _this5.params.unitAddress = res.unitAddress;\n _this5.params.unitUserphone = res.unitUserphone;\n _this5.params.dangerType = res.dangerType;\n _this5.params.unitUsername = res.unitUsername;\n _this5.params.greatDanger = res.greatDanger;\n _this5.params.checkDate = res.checkDate;\n _this5.params.checkContent = res.checkContent;\n _this5.params.leadUsername = res.leadUsername;\n _this5.params.checkUsername = res.checkUsername;\n _this5.params.recordName = res.recordName;\n _this5.params.status = res.status;\n _this5.params.reformUsername = res.reformUsername;\n _this5.params.reformUnitname = res.reformUnitname;\n _this5.params.latestTimeLimit = res.latestTimeLimit;\n _this5.params.latestReviewDate = res.latestReviewDate;\n _this5.params.completeDate = res.completeDate;\n _this5.params.reformRequire = res.reformRequire;\n _this5.params.controlMemo = res.controlMemo; // this.params.reformContent = res.reformContent\n\n _this5.params.detail = res.detail;\n\n _this5.CheckschemeId(res.checkschemeId);\n\n _this5.DangerUnitId(res.unitId);\n });\n }\n }\n};",null]}