{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\bizComponents\\control\\HtCurrency.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\bizComponents\\control\\HtCurrency.vue","mtime":1675071991194},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\n//\n//\n//\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 utils from \"@/components/bizComponents/utils.js\";\nimport FormMath from \"@/components/bizComponents/math.js\";\nimport { Message } from \"element-ui\";\nexport default {\n  name: \"ht-input\",\n  props: [\"validate\", \"value\", \"name\", \"permission\", \"atter\", \"inputType\", \"placeholder\", \"tooltipplacement\", \"htfuncexp\", \"option\"],\n  data: function data() {\n    return {};\n  },\n  computed: {\n    inputVal: {\n      get: function get() {\n        return this.value;\n      },\n      set: function set(val) {\n        if (this.option.decimalDigits) {\n          val = val.toFixed(this.option.decimalDigits);\n        }\n\n        this.$emit(\"input\", val);\n      }\n    },\n    inputWriteable: function inputWriteable() {\n      return utils.getWriteable(this.permission);\n    },\n    inputValidate: function inputValidate() {\n      var validateObj = this.$store.state.index.validate;\n      return utils.addRequiredOrNot(this.permission, this.validate, validateObj, this);\n    },\n    inputName: function inputName() {\n      var labeldesc = \"\";\n\n      if (this.$slots && this.$slots.labeldesc && this.$slots.labeldesc[0].children && this.$slots.labeldesc[0].children[0].text) {\n        labeldesc = this.$slots.labeldesc[0].children[0].text;\n        return this.name ? this.name : utils.getName() + \"-\" + labeldesc;\n      } else {\n        return this.name ? this.name : utils.getName();\n      }\n    },\n    min: function min() {\n      return this.option.min || 0;\n    },\n    max: function max() {\n      return this.option.max || 999999;\n    },\n    step: function step() {\n      return this.option.step || 1;\n    }\n  },\n  mounted: function mounted() {\n    var _me = this;\n\n    var exp = this.htfuncexp;\n\n    if (exp) {\n      var elAttr = this.$refs.inputs.getAttribute(\"attr\");\n      var fields = FormMath.parseFuncexpField(exp);\n      var formVm = utils.getOnlineFormInstance(_me);\n      formVm.$on(elAttr, function (args) {\n        if (args.hasOwnProperty(\"index\")) {\n          var subScopeEl = utils.getParentElementByAttribute(_me.$el, \"data-subname\");\n\n          if (!subScopeEl) {\n            throw \"要计算子表行数据的输入框不在包含data-subname属性的元素中.\";\n          }\n\n          var index = subScopeEl.dataset[\"index\"];\n\n          if (index === undefined) {\n            throw \"要计算的子表行未获取到index属性.\";\n          }\n\n          if (index === args.index) {\n            _me.$emit(\"input\", args.result);\n          }\n        } else {\n          _me.$emit(\"input\", args.result);\n        }\n      });\n      fields.forEach(function (ele) {\n        if (formVm.watchMap.has(ele)) {\n          var ary = formVm.watchMap.get(ele);\n          ary.push({\n            target: elAttr,\n            exp: exp\n          });\n          formVm.watchMap.set(ele, ary.unique(\"target\"));\n        } else {\n          formVm.watchMap.set(ele, [{\n            target: elAttr,\n            exp: exp\n          }]);\n        }\n      });\n    }\n  },\n  beforeDestroy: function beforeDestroy() {},\n  created: function created() {\n    this.$validator = this.$root.$validator;\n  },\n  destroyed: function destroyed() {\n    sessionStorage.removeItem(this.atter);\n  }\n};",null]}