{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/components/o_coding.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/components/o_coding.vue","mtime":1740130327257},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 Constant from \"@/Constant.js\"\nimport controlHidden from \"@/assets/js/controlHidden.js\"\nexport default {\n name: \"o-input\",\n props: [\"id\"],\n computed: {\n field: function() {\n let data = this.$parent.findField(this.id)\n if(data.discript) {\n if(data.discript.charAt(data.discript.length - 1) == \"*\") {\n data.discript = data.discript.replace(/(\\s|\\*)+$/g, '');\n data.essential = true;\n }\n }\n return this.$parent.findField(this.id);\n }\n },\n watch: {\n '$route' () { //监听路由是否变化\n },\n // 'field.value': {\n // deep: true,\n // handler:function(newV,oldV){\n // if (this.field.refreshOnChanged) {//判断是否需要刷新\n // this.$parent.refresh(this.id);\n // }\n // if(!this.field.value) {\n // this.value = '';\n // }\n // }\n // }\n\n },\n mounted(){\n this.$nextTick(()=>{\n let field = this.field;\n if(field.isHideType) {\n let id = this.id,\n formShowType = field.formShowType;\n controlHidden({id, field, formShowType})\n }\n })\n },\n data: function() {\n return { \n Constant,\n isFieldClear:false,\n isActive:false,\n errorMessage:'',\n };\n },\n methods: {\n setNunOrText(value){\n \n },\n clearValue() {\n this.field.value = '';\n this.isFieldClear = false;\n },\n hideClear(val) {\n if(val == 'SHOW') {\n if(this.field.value) {\n this.isFieldClear = true;\n }else {\n this.isFieldClear = false;\n }\n }else if (val == 'HIDE') {\n if(this.field.instantValidate) {\n this.isFieldClear = false;\n let value = true;\n let formData = this.$parent.checkData(value);\n //item[this.field.name] = this.field.value;\n this.$api.formValidation(\n this.$root.appid, \n formData,\n {\n onSucess: response => {\n if(response.data.errcode == 4001) {\n if(response.data.errors && response.data.errors.length > 0) {\n let arr = response.data.errors;\n for(let i=0; i