{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\infoManagement\\components\\wsForm-dialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\infoManagement\\components\\wsForm-dialog.vue","mtime":1684458239215},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"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//\nimport { mapState } from 'vuex';\nimport waterPaper from '@/api/waterPaper.js';\nimport latitude from '@/mixins/latitude';\nimport req from '@/request.js';\nexport default {\n name: 'wsFormDialog',\n props: {\n showFormDia: {\n type: Boolean,\n default: false\n },\n title: {\n type: String,\n default: ''\n },\n plId: {\n type: String,\n default: ''\n },\n id: {\n type: String,\n default: ''\n }\n },\n data: function data() {\n return {\n params: {\n wpcSn: null,\n paperId: null,\n stcd: null,\n stnm: null,\n sttp: null,\n addvcd: null,\n stlc: null,\n lgtd: null,\n lttd: null,\n intp: null,\n incd: null,\n memo: null //备注\n\n },\n basAdNames: [],\n //行政区划\n waterCards: [],\n //取水证\n installationTypes: [],\n //安装类型 \n stationTypeS: [],\n //测站类型\n rules: {\n paperId: [{\n required: true,\n message: '请选择纸质证编号',\n trigger: 'blur'\n }],\n stcd: [{\n required: true,\n message: '请输入测站编号',\n trigger: 'blur'\n }],\n stnm: [{\n required: true,\n message: '请输入测站名称',\n trigger: 'blur'\n }]\n }\n };\n },\n created: function created() {\n var _this = this;\n\n waterPaper.getbasAdName({}, function (res) {\n _this.basAdNames = res.value; // this.params.addvcd = []\n // if (this.basAdNames[0]) {\n // \tthis.params.addvcd.push(this.basAdNames[0].code)\n // \tif (this.basAdNames[0].children[0]) {\n // \t\tthis.params.addvcd.push(this.basAdNames[0].children[0].code)\n // \t\tif (this.basAdNames[0].children[0].children[0]) {\n // \t\t\tthis.params.addvcd.push(this.basAdNames[0].children[0].children[0].code)\n // \t\t\tif (this.basAdNames[0].children[0].children[0].children[0]) {\n // \t\t\t\tthis.params.addvcd.push(this.basAdNames[0].children[0].children[0].children[0]\n // \t\t\t\t\t.code)\n // \t\t\t}\n // \t\t}\n // \t}\n // }\n });\n waterPaper.positionTree({}, function (res) {\n _this.installationTypes = res.value;\n _this.params.incd = [];\n\n if (_this.installationTypes[0]) {\n _this.params.incd.push(_this.installationTypes[0].reCode);\n\n if (_this.installationTypes[0].children[0]) {\n _this.params.incd.push(_this.installationTypes[0].children[0].reCode);\n }\n }\n });\n this.getwaterCard();\n this.getDetailInfo();\n this.getSysDict();\n },\n methods: {\n // 获取取水证\n getwaterCard: function getwaterCard() {\n var _this2 = this;\n\n waterPaper.getwaterCard({}, function (res) {\n _this2.waterCards = res.value;\n\n _this2.waterCards.forEach(function (ee) {\n if (_this2.plId == ee.id) {\n _this2.params.paperId = ee.id;\n }\n });\n });\n },\n selectChange: function selectChange() {\n this.$forceUpdate();\n },\n deadLevs: function deadLevs(val) {\n switch (val) {\n case '1':\n this.params.lttd = latitude.TreeFour(this.params.lttd);\n break;\n\n case '2':\n this.params.lttd = latitude.TreeFour(this.params.lttd);\n break;\n }\n },\n onhouChange: function onhouChange(val) {\n if (val) {\n this.params.addvcd = val[val.length - 1];\n var arr = this.basAdNames.filter(function (ite) {\n return ite.code === val[0];\n });\n this.calleArr(arr, val[val.length - 1]);\n }\n },\n calleArr: function calleArr(array, val) {\n for (var i in array) {\n var item = array[i];\n\n if (item.children) {\n this.calleArr(item.children, val); //自己调用自己\n } else {\n if (item.code === val) {// this.params.areaName = item.fullName\n }\n }\n }\n },\n //取消\n handleClose: function handleClose() {\n this.params = {};\n this.$emit('closeFormDiao');\n },\n // 根据ID查询\n getDetailInfo: function getDetailInfo() {\n var _this3 = this;\n\n if (this.title === '修改') {\n waterPaper.detailIdStation(this.id, function (res) {\n if (res.state) {\n _this3.params.wpcSn = _this3.plId;\n _this3.params.id = res.value.id;\n _this3.params.addvcd = res.value.addvcd;\n _this3.params.incd = res.value.incd;\n _this3.params.intp = res.value.intp;\n _this3.params.lgtd = res.value.lgtd;\n _this3.params.lttd = res.value.lttd;\n _this3.params.memo = res.value.memo;\n _this3.params.paperId = res.value.paperId;\n _this3.params.stcd = res.value.stcd;\n _this3.params.stcd = res.value.stcd;\n _this3.params.stlc = res.value.stlc;\n _this3.params.stnm = res.value.stnm; // this.params.sttp = res.value.sttp\n\n _this3.params.usfl = res.value.usfl;\n }\n });\n } else {}\n },\n goInfo: function goInfo(e) {\n var _this4 = this;\n\n this.params.wpcSn = this.params.paperId;\n this.params.intp = this.params.incd[0];\n this.params.incd = this.params.incd[1];\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n if (_this4.title === '新增') {\n var arr = JSON.parse(JSON.stringify(_this4.params));\n waterPaper.addSaveStation(_this4.params, function (response) {\n if (response.state) {\n _this4.$notify({\n type: 'success',\n message: '新增成功',\n duration: 2000\n });\n\n _this4.$emit('closeFormDiao');\n\n _this4.$emit('refList');\n } else {}\n });\n }\n\n if (_this4.title === '修改') {\n waterPaper.upDataStation(_this4.params, function (response) {\n if (response.state) {\n _this4.$notify({\n type: 'success',\n message: '修改成功',\n duration: 2000\n });\n\n _this4.$emit('closeFormDiao');\n\n _this4.$emit('refList');\n } else {}\n });\n }\n } else {\n return false;\n }\n });\n },\n getRowKey: function getRowKey(row) {\n return row.id;\n },\n //获取字典数据\n getSysDict: function getSysDict() {\n var _this5 = this;\n\n var portal = window.context.portal;\n return new Promise(function (resolve, reject) {\n req.post(portal + '/sys/sysDictionary/v1/queryAllDictItems').then(function (response) {\n resolve(response.data);\n _this5.stationTypeS = response.data.sblx;\n _this5.params.sttp = _this5.stationTypeS[8].value;\n }, function (error) {\n reject(error);\n });\n });\n }\n }\n};",null]}