nubomed-ui 2.0.176 → 2.0.178

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/nubomed-ui.umd.js CHANGED
@@ -469,6 +469,10 @@ __webpack_require__.d(__webpack_exports__, {
469
469
  age: '年龄',
470
470
  inpatientNum: '住院号',
471
471
  patientName: '患者姓名',
472
+ chiefSurgeonDoctor: '主刀医生',
473
+ opName: '手术名称',
474
+ opNum: '手术单号',
475
+ opRoom: '手术间',
472
476
  // 日期相关
473
477
  yesterday: '昨天',
474
478
  today: '今天',
@@ -970,7 +974,7 @@ src.install = function (Vue) {
970
974
 
971
975
  /***/ }),
972
976
 
973
- /***/ 2724:
977
+ /***/ 5999:
974
978
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
975
979
 
976
980
  "use strict";
@@ -989,29 +993,8 @@ var staticRenderFns = []
989
993
 
990
994
  // EXTERNAL MODULE: ./packages/mixins/index.js
991
995
  var mixins = __webpack_require__(869);
992
- ;// ./packages/utils/util.js
993
- function hasOwn(obj, key) {
994
- return hasOwnProperty.call(obj, key);
995
- }
996
-
997
- /**
998
- * @param {string} content 需要复制的内容文本
999
- */
1000
- function copyText(content) {
1001
- let copyEl = document.createElement('input');
1002
- copyEl.style.position = 'fixed';
1003
- copyEl.style.top = '0';
1004
- copyEl.style.left = '-1000em';
1005
- copyEl.readonly = 'readonly';
1006
- document.body.appendChild(copyEl);
1007
- copyEl.value = content;
1008
- copyEl.focus();
1009
- document.execCommand('selectAll');
1010
- const res = document.execCommand('copy');
1011
- copyEl.blur();
1012
- document.body.removeChild(copyEl);
1013
- return res;
1014
- }
996
+ // EXTERNAL MODULE: ./packages/utils/util.js
997
+ var util = __webpack_require__(5594);
1015
998
  // EXTERNAL MODULE: ./packages/utils/date-util.js
1016
999
  var date_util = __webpack_require__(2127);
1017
1000
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-80.use[1]!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBBarcodeReviewDialog/src/index.vue?vue&type=script&lang=js
@@ -1167,7 +1150,7 @@ var date_util = __webpack_require__(2127);
1167
1150
  },
1168
1151
  // 复制
1169
1152
  handleCopy(text) {
1170
- copyText(text);
1153
+ (0,util/* copyText */.Dk)(text);
1171
1154
  this.$emit('copy', text);
1172
1155
  },
1173
1156
  // 弹框关闭
@@ -1223,7 +1206,7 @@ __webpack_require__.d(__webpack_exports__, {
1223
1206
  });
1224
1207
 
1225
1208
  ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBBattery/src/index.vue?vue&type=template&id=869c2dc8&scoped=true
1226
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-battery",class:_vm.batteryClass},[_c('div',{staticClass:"nb-battery__battery"},[_c('span',{style:(("width: " + _vm.value + "%"))}),(_vm.charging)?_c('img',{staticClass:"nb-battery__charging",attrs:{"src":__webpack_require__(5594)("./batter-charging-" + _vm.batteryStatus + ".png")}}):_vm._e()]),(_vm.showValue)?_c('span',{staticClass:"nb-battery__value"},[_vm._v(_vm._s(_vm.batteryValue))]):_vm._e()])}
1209
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-battery",class:_vm.batteryClass},[_c('div',{staticClass:"nb-battery__battery"},[_c('span',{style:(("width: " + _vm.value + "%"))}),(_vm.charging)?_c('img',{staticClass:"nb-battery__charging",attrs:{"src":__webpack_require__(3213)("./batter-charging-" + _vm.batteryStatus + ".png")}}):_vm._e()]),(_vm.showValue)?_c('span',{staticClass:"nb-battery__value"},[_vm._v(_vm._s(_vm.batteryValue))]):_vm._e()])}
1227
1210
  var staticRenderFns = []
1228
1211
 
1229
1212
 
@@ -2939,7 +2922,7 @@ src.install = function (Vue) {
2939
2922
 
2940
2923
  /***/ }),
2941
2924
 
2942
- /***/ 4854:
2925
+ /***/ 2562:
2943
2926
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2944
2927
 
2945
2928
  "use strict";
@@ -2951,7 +2934,7 @@ __webpack_require__.d(__webpack_exports__, {
2951
2934
  "default": function() { return /* binding */ NBDialog; }
2952
2935
  });
2953
2936
 
2954
- ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBDialog/src/index.vue?vue&type=template&id=144f3ca4&scoped=true
2937
+ ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBDialog/src/index.vue?vue&type=template&id=63a48e3a&scoped=true
2955
2938
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{staticClass:"nb-dialog__wrapper",attrs:{"visible":_vm.visible,"show-close":_vm.showClose,"close-on-click-modal":false,"close-on-press-escape":false,"center":_vm.center,"dialog-center":_vm.dialogCenter,"type":_vm.size,"title":_vm.$slots['title-right'] ? '' : _vm.title,"custom-class":_vm.dialogCustomClass,"before-close":_vm.handleClose,"append-to-body":"","destroy-on-close":""},on:{"closed":_vm.closedDialog}},[_c('template',{slot:"title"},[_vm._t("title"),(_vm.$slots['title-right'])?_c('div',{staticClass:"nb-dialog__header--has-form"},[_c('span',{staticClass:"el-dialog__title"},[_vm._v(_vm._s(_vm.title))]),_c('div',{staticClass:"el-dialog__right"},[_vm._t("title-right")],2)]):_vm._e()],2),_vm._t("default"),_c('template',{slot:"footer"},[(_vm.$slots.footer)?_vm._t("footer"):[(_vm.showCancelButton)?_c('el-button',{on:{"click":_vm.handleCancel}},[_vm._v(_vm._s(_vm.cancelButtonText || _vm.t('nb.button.cancel'))),(_vm.cancelButtonTime > -1)?[_vm._v("("+_vm._s(_vm.cancelAutoTime)+"S)")]:_vm._e()],2):_vm._e(),(_vm.showConfirmButton)?_c('el-button',{attrs:{"type":"primary","plain":_vm.confirmButtonPlain},on:{"click":_vm.handleConfirm}},[_vm._v(_vm._s(_vm.confirmButtonText || _vm.t('nb.button.confirm'))),(_vm.confirmButtonTime > -1)?[_vm._v("("+_vm._s(_vm.confirmAutoTime)+"S)")]:_vm._e()],2):_vm._e()]],2)],2)}
2956
2939
  var staticRenderFns = []
2957
2940
 
@@ -3167,6 +3150,7 @@ var mixins = __webpack_require__(869);
3167
3150
  // 点击右上角关闭按钮
3168
3151
  handleClose() {
3169
3152
  this.$emit('update', false);
3153
+ this.$emit('close');
3170
3154
  },
3171
3155
  // 关闭弹框
3172
3156
  closedDialog() {
@@ -3194,7 +3178,7 @@ var component = (0,componentNormalizer/* default */.A)(
3194
3178
  staticRenderFns,
3195
3179
  false,
3196
3180
  null,
3197
- "144f3ca4",
3181
+ "63a48e3a",
3198
3182
  null
3199
3183
 
3200
3184
  )
@@ -3795,7 +3779,7 @@ src.install = function (Vue) {
3795
3779
 
3796
3780
  /***/ }),
3797
3781
 
3798
- /***/ 5836:
3782
+ /***/ 527:
3799
3783
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3800
3784
 
3801
3785
  "use strict";
@@ -3807,7 +3791,7 @@ __webpack_require__.d(__webpack_exports__, {
3807
3791
  "default": function() { return /* binding */ NBFullscreenDialog; }
3808
3792
  });
3809
3793
 
3810
- ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBFullscreenDialog/src/index.vue?vue&type=template&id=5990c3a8&scoped=true
3794
+ ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBFullscreenDialog/src/index.vue?vue&type=template&id=f084d420&scoped=true
3811
3795
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{staticClass:"nb-dialog__wrapper nb-fullscreen-dialog__wrapper",style:({ '--nb-fullscreen-dialog-top': (_vm.top + "px") }),attrs:{"visible":_vm.visible,"show-close":_vm.showClose,"close-on-click-modal":false,"close-on-press-escape":false,"modal":false,"fullscreen":"","append-to-body":"","destroy-on-close":"","custom-class":("nb-dialog nb-fullscreen-dialog " + _vm.customClass),"before-close":_vm.handleClose},on:{"closed":_vm.closedDialog}},[_vm._t("default"),_c('template',{slot:"footer"},[_vm._t("footer")],2)],2)}
3812
3796
  var staticRenderFns = []
3813
3797
 
@@ -3877,6 +3861,7 @@ var staticRenderFns = []
3877
3861
  methods: {
3878
3862
  handleClose() {
3879
3863
  this.$emit('update', false);
3864
+ this.$emit('close');
3880
3865
  },
3881
3866
  // 关闭弹框
3882
3867
  closedDialog() {
@@ -3902,7 +3887,7 @@ var component = (0,componentNormalizer/* default */.A)(
3902
3887
  staticRenderFns,
3903
3888
  false,
3904
3889
  null,
3905
- "5990c3a8",
3890
+ "f084d420",
3906
3891
  null
3907
3892
 
3908
3893
  )
@@ -4592,6 +4577,280 @@ src.install = function (Vue) {
4592
4577
 
4593
4578
  /***/ }),
4594
4579
 
4580
+ /***/ 4134:
4581
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4582
+
4583
+ "use strict";
4584
+ // ESM COMPAT FLAG
4585
+ __webpack_require__.r(__webpack_exports__);
4586
+
4587
+ // EXPORTS
4588
+ __webpack_require__.d(__webpack_exports__, {
4589
+ "default": function() { return /* binding */ NBInputFilter; }
4590
+ });
4591
+
4592
+ ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBInputFilter/src/index.vue?vue&type=template&id=07ebb246&scoped=true
4593
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"nb-input-filter",class:[_vm.isFocus ? 'is-focus' : '', _vm.size]},[_c('el-input',{ref:"input",attrs:{"size":_vm.size,"clearable":_vm.clearable,"disabled":_vm.disabled,"placeholder":_vm.placeholder},on:{"input":_vm.onInput,"focus":_vm.onInputFocus,"blur":_vm.onInputBlur,"clear":_vm.onInputClear},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:"inputValue"}}),_c('el-popover',{attrs:{"placement":"bottom-start","trigger":"manual","popper-class":("nb-select-filter-popover nb-select-filter-popover--" + _vm.size)},model:{value:(_vm.visible),callback:function ($$v) {_vm.visible=$$v},expression:"visible"}},[(_vm.isRemote)?_c('ul',{staticClass:"nb-select-filter-options"},[(_vm.options.length === 0)?_c('li',{staticClass:"null"},[_vm._v(_vm._s(_vm.t('nb.msg.noData')))]):_vm._e(),_vm._l((_vm.options),function(item,index){return _c('li',{key:index,class:_vm.optionClass(item),on:{"click":function($event){$event.stopPropagation();return _vm.onChecked(item)}}},[_vm._v(" "+_vm._s(item[_vm.optionProps.label])+" ")])})],2):_c('ul',{staticClass:"nb-select-filter-options"},[(_vm.showOptions.length === 0)?_c('li',{staticClass:"null"},[_vm._v(_vm._s(_vm.t('nb.msg.noData')))]):_vm._e(),_vm._l((_vm.showOptions),function(item,index){return _c('li',{key:index,class:_vm.optionClass(item),on:{"click":function($event){$event.stopPropagation();return _vm.onChecked(item)}}},[_vm._v(" "+_vm._s(item[_vm.optionProps.label])+" ")])})],2)])],1)}
4594
+ var staticRenderFns = []
4595
+
4596
+
4597
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.constructor.js
4598
+ var esnext_iterator_constructor = __webpack_require__(8992);
4599
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.filter.js
4600
+ var esnext_iterator_filter = __webpack_require__(4520);
4601
+ // EXTERNAL MODULE: ./packages/mixins/index.js
4602
+ var mixins = __webpack_require__(869);
4603
+ // EXTERNAL MODULE: ./packages/utils/util.js
4604
+ var util = __webpack_require__(5594);
4605
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-80.use[1]!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBInputFilter/src/index.vue?vue&type=script&lang=js
4606
+
4607
+
4608
+ //
4609
+ //
4610
+ //
4611
+ //
4612
+ //
4613
+ //
4614
+ //
4615
+ //
4616
+ //
4617
+ //
4618
+ //
4619
+ //
4620
+ //
4621
+ //
4622
+ //
4623
+ //
4624
+ //
4625
+ //
4626
+ //
4627
+ //
4628
+ //
4629
+ //
4630
+ //
4631
+ //
4632
+ //
4633
+ //
4634
+ //
4635
+ //
4636
+ //
4637
+ //
4638
+ //
4639
+ //
4640
+ //
4641
+ //
4642
+ //
4643
+ //
4644
+ //
4645
+ //
4646
+ //
4647
+ //
4648
+ //
4649
+ //
4650
+ //
4651
+ //
4652
+ //
4653
+ //
4654
+
4655
+
4656
+
4657
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
4658
+ name: 'NBInputFilter',
4659
+ mixins: [mixins/* default */.A],
4660
+ model: {
4661
+ prop: 'modelValue',
4662
+ event: 'input'
4663
+ },
4664
+ props: {
4665
+ // 输入框的值,使用v-model
4666
+ modelValue: [String, Array, Object, Boolean, Number, null],
4667
+ selected: {
4668
+ type: [String, Array, Object, Boolean, Number, null],
4669
+ default: null
4670
+ },
4671
+ loading: {
4672
+ type: Boolean,
4673
+ default: false
4674
+ },
4675
+ // 下拉选项数据
4676
+ options: {
4677
+ type: Array,
4678
+ default: () => {
4679
+ return [];
4680
+ }
4681
+ },
4682
+ // value 选中值,label 显示值
4683
+ props: {
4684
+ type: Object,
4685
+ default: () => {
4686
+ return {};
4687
+ }
4688
+ },
4689
+ // 大小:不指定:400*72px | mini: 184*48px | small:240*56px | medium:280*64px | large: 480*80px
4690
+ size: {
4691
+ type: String,
4692
+ default: ''
4693
+ },
4694
+ // 输入框的placeholder
4695
+ placeholder: {
4696
+ type: String,
4697
+ default: ''
4698
+ },
4699
+ // 是否禁用
4700
+ disabled: {
4701
+ type: Boolean,
4702
+ default: false
4703
+ },
4704
+ // 是否允许清除
4705
+ clearable: {
4706
+ type: Boolean,
4707
+ default: true
4708
+ }
4709
+ },
4710
+ data() {
4711
+ return {
4712
+ visible: false,
4713
+ isFocus: false,
4714
+ showOptions: this.options,
4715
+ checked: null
4716
+ };
4717
+ },
4718
+ computed: {
4719
+ // 输入框的值
4720
+ inputValue: {
4721
+ get() {
4722
+ // 获取传入的v-model
4723
+ return this.$props.modelValue;
4724
+ },
4725
+ set(newValue) {
4726
+ // 修改时同时修改v-model
4727
+ this.$emit('input', newValue);
4728
+ return newValue;
4729
+ }
4730
+ },
4731
+ // 是否是远程搜索
4732
+ isRemote() {
4733
+ return typeof this.$listeners['remote-method'] === 'function';
4734
+ },
4735
+ optionProps() {
4736
+ return Object.assign({
4737
+ value: 'value',
4738
+ label: 'label',
4739
+ filterText: 'filterText' // 名称首拼(用于本地筛选,远程搜索不需要)
4740
+ }, this.props);
4741
+ }
4742
+ },
4743
+ watch: {
4744
+ inputValue: {
4745
+ // 添加防抖
4746
+ handler: (0,util/* debounce */.sg)(function (val) {
4747
+ this.handleFilter();
4748
+ }, 300),
4749
+ immediate: true // 初始时立即执行一次
4750
+ }
4751
+ },
4752
+ created() {},
4753
+ mounted() {},
4754
+ beforeDestroy() {},
4755
+ methods: {
4756
+ onInput(value) {
4757
+ this.$emit('input', value);
4758
+ },
4759
+ onInputFocus() {
4760
+ this.visible = true;
4761
+ this.isFocus = true;
4762
+ },
4763
+ onInputBlur() {
4764
+ this.isFocus = false;
4765
+ this.visible = false;
4766
+ },
4767
+ onChecked(item) {
4768
+ this.inputValue = item[this.optionProps.label];
4769
+ this.checked = item;
4770
+ this.visible = false;
4771
+ this.$emit('change', item);
4772
+ },
4773
+ // 搜索
4774
+ handleFilter() {
4775
+ if (this.$listeners['remote-method']) {
4776
+ this.$emit('remote-method');
4777
+ } else {
4778
+ if (this.inputValue) {
4779
+ this.showOptions = this.options.filter(x => ((x[this.optionProps.filterText] || '') + (x[this.optionProps.label] || '')).toLowerCase().includes(this.inputValue.toLowerCase()));
4780
+ } else {
4781
+ this.showOptions = this.options;
4782
+ }
4783
+ }
4784
+ },
4785
+ // 选择项的class
4786
+ optionClass(item) {
4787
+ if (this.inputValue && ((item[this.optionProps.filterText] || '').toLowerCase() === this.inputValue.toLowerCase() || (item[this.optionProps.label] || '').toLowerCase() === this.inputValue.toLowerCase())) {
4788
+ return 'active';
4789
+ }
4790
+ },
4791
+ // 聚焦输入框并弹出键盘
4792
+ getFocus() {
4793
+ this.$nextTick(() => {
4794
+ if (this.$refs.input) {
4795
+ this.$refs.input.focus();
4796
+ // 模拟主动执行mouseup
4797
+ let e = new Event('mouseup', {
4798
+ bubbles: true,
4799
+ cancelable: true
4800
+ });
4801
+ const inputDOM = this.$refs.input.$el.querySelector('input');
4802
+ if (inputDOM) {
4803
+ inputDOM.dispatchEvent(e); // 主动触发事件
4804
+ }
4805
+ }
4806
+ });
4807
+ },
4808
+ onInputClear() {
4809
+ this.$emit('clear-input');
4810
+ }
4811
+ }
4812
+ });
4813
+ ;// ./packages/components/NBInputFilter/src/index.vue?vue&type=script&lang=js
4814
+ /* harmony default export */ var NBInputFilter_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
4815
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
4816
+ var componentNormalizer = __webpack_require__(1656);
4817
+ ;// ./packages/components/NBInputFilter/src/index.vue
4818
+
4819
+
4820
+
4821
+
4822
+
4823
+ /* normalize component */
4824
+ ;
4825
+ var component = (0,componentNormalizer/* default */.A)(
4826
+ NBInputFilter_srcvue_type_script_lang_js,
4827
+ render,
4828
+ staticRenderFns,
4829
+ false,
4830
+ null,
4831
+ "07ebb246",
4832
+ null
4833
+
4834
+ )
4835
+
4836
+ /* harmony default export */ var src = (component.exports);
4837
+ ;// ./packages/components/NBInputFilter/index.js
4838
+ /*
4839
+ * @Author: chenghuan.dong
4840
+ * @Date: 2024-11-12 11:27:05
4841
+ * @LastEditTime: 2024-11-12 14:38:34
4842
+ * @LastEditors: chenghuan.dong
4843
+ * @Description:
4844
+ * @FilePath: \nubomed-ui\packages\components\NBIcon\index.js
4845
+ */
4846
+
4847
+ src.install = function (Vue) {
4848
+ Vue.component(src.name, src);
4849
+ };
4850
+ /* harmony default export */ var NBInputFilter = (src);
4851
+
4852
+ /***/ }),
4853
+
4595
4854
  /***/ 38:
4596
4855
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4597
4856
 
@@ -4831,7 +5090,7 @@ src.install = function (Vue) {
4831
5090
 
4832
5091
  /***/ }),
4833
5092
 
4834
- /***/ 8681:
5093
+ /***/ 7698:
4835
5094
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4836
5095
 
4837
5096
  "use strict";
@@ -4843,7 +5102,7 @@ __webpack_require__.d(__webpack_exports__, {
4843
5102
  "default": function() { return /* binding */ NBInputNumber; }
4844
5103
  });
4845
5104
 
4846
- ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBInputNumber/src/index.vue?vue&type=template&id=4de23754&scoped=true
5105
+ ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBInputNumber/src/index.vue?vue&type=template&id=1fbe8d2e&scoped=true
4847
5106
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-input-number-box"},[_c('div',{staticClass:"nb-input-number",class:[_vm.size, ("color-" + _vm.type), ("" + (_vm.hasPrecision ? 'has-precision' : ''))]},[_c('span',{staticClass:"btn-minus",class:_vm.disabledMinus,on:{"click":function($event){$event.stopPropagation();return _vm.handlePlusMinus(-_vm.step, -1)}}},[_c('i',{staticClass:"el-icon-minus"})]),_c('div',{staticClass:"input"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.inputValue),expression:"inputValue"}],ref:"input",attrs:{"placeholder":_vm.placeholder,"disabled":_vm.disabled},domProps:{"value":(_vm.inputValue)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.inputValue=$event.target.value},_vm.handleInput],"blur":_vm.handleBlur}})]),_c('span',{staticClass:"btn-plus",class:_vm.disabledPlus,on:{"click":function($event){$event.stopPropagation();return _vm.handlePlusMinus(_vm.step, 1)}}},[_c('i',{staticClass:"el-icon-plus"})])])])}
4848
5107
  var staticRenderFns = []
4849
5108
 
@@ -4980,11 +5239,11 @@ var esnext_iterator_for_each = __webpack_require__(3949);
4980
5239
  watch: {
4981
5240
  value: {
4982
5241
  immediate: true,
4983
- handler(val) {
5242
+ handler(val, oldVal) {
4984
5243
  this.inputValue = val;
4985
5244
  this.$emit('input', val);
4986
5245
  this.$emit('update', val);
4987
- this.$emit('change', val);
5246
+ this.$emit('change', val, oldVal);
4988
5247
  }
4989
5248
  }
4990
5249
  },
@@ -5110,7 +5369,7 @@ var component = (0,componentNormalizer/* default */.A)(
5110
5369
  staticRenderFns,
5111
5370
  false,
5112
5371
  null,
5113
- "4de23754",
5372
+ "1fbe8d2e",
5114
5373
  null
5115
5374
 
5116
5375
  )
@@ -19317,7 +19576,7 @@ src.install = function (Vue) {
19317
19576
 
19318
19577
  /***/ }),
19319
19578
 
19320
- /***/ 2260:
19579
+ /***/ 4799:
19321
19580
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
19322
19581
 
19323
19582
  "use strict";
@@ -19329,11 +19588,13 @@ __webpack_require__.d(__webpack_exports__, {
19329
19588
  "default": function() { return /* binding */ NBPatientInfo; }
19330
19589
  });
19331
19590
 
19332
- ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBPatientInfo/src/index.vue?vue&type=template&id=166bcb98&scoped=true
19333
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-patient-info"},[_c('strong',{staticClass:"patient__name"},[_vm._v(_vm._s(_vm.patient.sBedNum || '- -')+" "+_vm._s(_vm.patient.sPatientName))]),_c('i',{staticClass:"info-split"}),_c('span',[_vm._v(_vm._s(_vm.patient.sSex || '- -'))]),_c('i',{staticClass:"info-split"}),_c('span',[_vm._v(_vm._s(_vm.patient.sAge || '- -'))]),_c('i',{staticClass:"info-split"}),_c('span',{staticClass:"patient__info"},[_vm._v(_vm._s(_vm.patient.sHospitalNO || _vm.patient.sHospitalNo || '- -'))]),_c('i',{staticClass:"info-split"}),_c('span',{staticClass:"patient__info"},[_vm._v(_vm._s(_vm.patient.sPerationApplyID || '- -'))]),_c('i',{staticClass:"info-split"}),_c('span',{staticClass:"patient__info"},[_vm._v(_vm._s(_vm.patient.sOperationName || '- -'))]),_c('span',{staticClass:"patient__info"},[_vm._v(_vm._s(_vm.patient.sRoomName || '- -'))]),_c('span',{staticClass:"patient__info"},[_vm._v(_vm._s(_vm.patient.sDeptName || '- -'))]),_c('span',{staticClass:"patient__info"},[_vm._v(_vm._s(_vm.patient.sDoctorName || '- -'))]),_vm._t("default")],2)}
19591
+ ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBPatientInfo/src/index.vue?vue&type=template&id=04f09a1d&scoped=true
19592
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-patient-info"},[_c('strong',{staticClass:"patient__name"},[_vm._v(_vm._s(_vm.patient.sBedNum || '- -')+" "+_vm._s(_vm.patient.sPatientName))]),_c('i',{staticClass:"info-split"}),(_vm.showLabel)?_c('label',[_vm._v(_vm._s(_vm.t('nb.sex')))]):_vm._e(),_c('span',[_vm._v(_vm._s(_vm.patient.sSex || '- -'))]),_c('i',{staticClass:"info-split"}),(_vm.showLabel)?_c('label',[_vm._v(_vm._s(_vm.t('nb.age')))]):_vm._e(),_c('span',[_vm._v(_vm._s(_vm.patient.sAge || '- -'))]),_c('i',{staticClass:"info-split"}),(_vm.showLabel)?_c('label',[_vm._v(_vm._s(_vm.t('nb.inpatientNum')))]):_vm._e(),_c('span',{staticClass:"patient__info"},[_vm._v(_vm._s(_vm.patient.sHospitalNO || _vm.patient.sHospitalNo || '- -'))]),_c('i',{staticClass:"info-split"}),(_vm.showLabel)?_c('label',[_vm._v(_vm._s(_vm.t('nb.opNum')))]):_vm._e(),_c('span',{staticClass:"patient__info"},[_vm._v(_vm._s(_vm.patient.sPerationApplyID || '- -'))]),_c('i',{staticClass:"info-split"}),(_vm.showLabel)?_c('label',[_vm._v(_vm._s(_vm.t('nb.opName')))]):_vm._e(),_c('span',{staticClass:"patient__info"},[_vm._v(_vm._s(_vm.patient.sOperationName || '- -'))]),(_vm.showLabel)?_c('label',{staticClass:"label-margin"},[_vm._v(_vm._s(_vm.t('nb.opRoom')))]):_vm._e(),_c('span',{staticClass:"patient__info"},[_vm._v(_vm._s(_vm.patient.sRoomName || '- -'))]),(_vm.showLabel)?_c('label',{staticClass:"label-margin"},[_vm._v(_vm._s(_vm.t('nb.dept')))]):_vm._e(),_c('span',{staticClass:"patient__info"},[_vm._v(_vm._s(_vm.patient.sDeptName || '- -'))]),(_vm.showLabel)?_c('label',{staticClass:"label-margin"},[_vm._v(_vm._s(_vm.t('nb.chiefSurgeonDoctor')))]):_vm._e(),_c('span',{staticClass:"patient__info"},[_vm._v(_vm._s(_vm.patient.sDoctorName || '- -'))]),_vm._t("default")],2)}
19334
19593
  var staticRenderFns = []
19335
19594
 
19336
19595
 
19596
+ // EXTERNAL MODULE: ./packages/mixins/index.js
19597
+ var mixins = __webpack_require__(869);
19337
19598
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-80.use[1]!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBPatientInfo/src/index.vue?vue&type=script&lang=js
19338
19599
  //
19339
19600
  //
@@ -19363,9 +19624,19 @@ var staticRenderFns = []
19363
19624
  //
19364
19625
  //
19365
19626
  //
19627
+ //
19628
+ //
19629
+ //
19630
+ //
19631
+ //
19632
+ //
19633
+ //
19634
+ //
19635
+
19366
19636
 
19367
19637
  /* harmony default export */ var srcvue_type_script_lang_js = ({
19368
19638
  name: 'NBPatientInfo',
19639
+ mixins: [mixins/* default */.A],
19369
19640
  props: {
19370
19641
  // 患者基本信息
19371
19642
  patient: {
@@ -19373,6 +19644,11 @@ var staticRenderFns = []
19373
19644
  default: () => {
19374
19645
  return {};
19375
19646
  }
19647
+ },
19648
+ // 是否显示label
19649
+ showLabel: {
19650
+ type: Boolean,
19651
+ default: false
19376
19652
  }
19377
19653
  }
19378
19654
  });
@@ -19394,7 +19670,7 @@ var component = (0,componentNormalizer/* default */.A)(
19394
19670
  staticRenderFns,
19395
19671
  false,
19396
19672
  null,
19397
- "166bcb98",
19673
+ "04f09a1d",
19398
19674
  null
19399
19675
 
19400
19676
  )
@@ -21748,6 +22024,87 @@ const trim = function (string) {
21748
22024
 
21749
22025
  /***/ }),
21750
22026
 
22027
+ /***/ 5594:
22028
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
22029
+
22030
+ "use strict";
22031
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
22032
+ /* harmony export */ Dk: function() { return /* binding */ copyText; },
22033
+ /* harmony export */ sg: function() { return /* binding */ debounce; }
22034
+ /* harmony export */ });
22035
+ /* unused harmony exports hasOwn, throttle */
22036
+ /*
22037
+ * @Author: rui.zhang
22038
+ * @Date: 2024-12-03 16:17:07
22039
+ * @LastEditors: rui.zhang
22040
+ * @LastEditTime: 2025-03-12 11:20:52
22041
+ * @Description:
22042
+ */
22043
+ function hasOwn(obj, key) {
22044
+ return hasOwnProperty.call(obj, key);
22045
+ }
22046
+
22047
+ /**
22048
+ * @param {string} content 需要复制的内容文本
22049
+ */
22050
+ function copyText(content) {
22051
+ let copyEl = document.createElement('input');
22052
+ copyEl.style.position = 'fixed';
22053
+ copyEl.style.top = '0';
22054
+ copyEl.style.left = '-1000em';
22055
+ copyEl.readonly = 'readonly';
22056
+ document.body.appendChild(copyEl);
22057
+ copyEl.value = content;
22058
+ copyEl.focus();
22059
+ document.execCommand('selectAll');
22060
+ const res = document.execCommand('copy');
22061
+ copyEl.blur();
22062
+ document.body.removeChild(copyEl);
22063
+ return res;
22064
+ }
22065
+
22066
+ /**
22067
+ * 节流函数
22068
+ * 思路:在规定时间内只触发一次
22069
+ * @param {Function} fn 函数
22070
+ * @param {Number} delay 规定时间内触发一次
22071
+ */
22072
+ function throttle(fn, delay) {
22073
+ // 利用闭包保存时间
22074
+ let prev = Date.now();
22075
+ return function () {
22076
+ let context = this;
22077
+ let arg = arguments;
22078
+ let now = Date.now();
22079
+ if (now - prev >= delay) {
22080
+ fn.apply(context, arg);
22081
+ prev = Date.now();
22082
+ }
22083
+ };
22084
+ }
22085
+
22086
+ /**
22087
+ * 防抖函数
22088
+ * 思路:在规定时间内未触发第二次,则执行
22089
+ * @param {Function} fn 函数
22090
+ * @param {Number} delay 在规定时间内未触发第二次,则执行
22091
+ */
22092
+ function debounce(fn, delay) {
22093
+ // 利用闭包保存定时器
22094
+ let timer = null;
22095
+ return function () {
22096
+ let context = this;
22097
+ let arg = arguments;
22098
+ // 在规定时间内再次触发会先清除定时器后再重设定时器
22099
+ clearTimeout(timer);
22100
+ timer = setTimeout(function () {
22101
+ fn.apply(context, arg);
22102
+ }, delay);
22103
+ };
22104
+ }
22105
+
22106
+ /***/ }),
22107
+
21751
22108
  /***/ 6157:
21752
22109
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
21753
22110
 
@@ -23248,7 +23605,7 @@ var index = {
23248
23605
 
23249
23606
  /***/ }),
23250
23607
 
23251
- /***/ 5594:
23608
+ /***/ 3213:
23252
23609
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
23253
23610
 
23254
23611
  var map = {
@@ -23275,7 +23632,7 @@ webpackContext.keys = function webpackContextKeys() {
23275
23632
  };
23276
23633
  webpackContext.resolve = webpackContextResolve;
23277
23634
  module.exports = webpackContext;
23278
- webpackContext.id = 5594;
23635
+ webpackContext.id = 3213;
23279
23636
 
23280
23637
  /***/ }),
23281
23638
 
@@ -23317,7 +23674,7 @@ webpackContext.id = 1603;
23317
23674
  var map = {
23318
23675
  "./NBBadge/index.js": 7345,
23319
23676
  "./NBBarcodeCard/index.js": 5831,
23320
- "./NBBarcodeReviewDialog/index.js": 2724,
23677
+ "./NBBarcodeReviewDialog/index.js": 5999,
23321
23678
  "./NBBattery/index.js": 5383,
23322
23679
  "./NBCabinetBall/index.js": 1736,
23323
23680
  "./NBCabinetInventoryCarousel/index.js": 1875,
@@ -23327,19 +23684,20 @@ var map = {
23327
23684
  "./NBCheckboxGroup/index.js": 4261,
23328
23685
  "./NBDatePicker/index.js": 9611,
23329
23686
  "./NBDaterangePicker/index.js": 3757,
23330
- "./NBDialog/index.js": 4854,
23687
+ "./NBDialog/index.js": 2562,
23331
23688
  "./NBEmpty/index.js": 1870,
23332
23689
  "./NBExpiryCard/index.js": 4931,
23333
23690
  "./NBExpiryIcon/index.js": 996,
23334
23691
  "./NBFooter/index.js": 6090,
23335
- "./NBFullscreenDialog/index.js": 5836,
23692
+ "./NBFullscreenDialog/index.js": 527,
23336
23693
  "./NBGridMenu/index.js": 1083,
23337
23694
  "./NBGroupList/index.js": 8995,
23338
23695
  "./NBGroupListItem/index.js": 8696,
23339
23696
  "./NBHeader/index.js": 8140,
23340
23697
  "./NBIcon/index.js": 4865,
23698
+ "./NBInputFilter/index.js": 4134,
23341
23699
  "./NBInputGroup/index.js": 38,
23342
- "./NBInputNumber/index.js": 8681,
23700
+ "./NBInputNumber/index.js": 7698,
23343
23701
  "./NBInputTime/index.js": 640,
23344
23702
  "./NBKeyboard/index.js": 1645,
23345
23703
  "./NBLayout/index.js": 9885,
@@ -23354,7 +23712,7 @@ var map = {
23354
23712
  "./NBOutFooterDialog/index.js": 7056,
23355
23713
  "./NBPagination/index.js": 8863,
23356
23714
  "./NBPatientCard/index.js": 3874,
23357
- "./NBPatientInfo/index.js": 2260,
23715
+ "./NBPatientInfo/index.js": 4799,
23358
23716
  "./NBProgress/index.js": 6549,
23359
23717
  "./NBRadioGroup/index.js": 5199,
23360
23718
  "./NBReagentType/index.js": 337,
@@ -26341,7 +26699,7 @@ var esnext_iterator_constructor = __webpack_require__(8992);
26341
26699
  // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.for-each.js
26342
26700
  var esnext_iterator_for_each = __webpack_require__(3949);
26343
26701
  ;// ./package.json
26344
- var package_namespaceObject = {"rE":"2.0.176"};
26702
+ var package_namespaceObject = {"rE":"2.0.178"};
26345
26703
  ;// ./packages/utils/convert.js
26346
26704
  /**
26347
26705
  * 将大驼峰(camelCase)字符串转换为小写且带有空格分隔的形式(kebab-case)
@@ -26404,9 +26762,16 @@ const nbConfirm = (MessageBox, obj) => {
26404
26762
  if (!obj.type) {
26405
26763
  customClass += ' nb-confirm--no-icon';
26406
26764
  }
26765
+
26766
+ // 如果有showClose属性,则以其为准
26767
+ let showClose = false; // 是否显示showClose按钮
26768
+ if (typeof obj.showClose === 'boolean') {
26769
+ showClose = obj.showClose;
26770
+ }
26771
+ // 如果未指定showClose,则根据是否指定type(即是否显示图标)来决定是否显示showClose按钮
26407
26772
  return MessageBox.confirm(getHtml(obj), '', {
26408
26773
  dangerouslyUseHTMLString: true,
26409
- showClose: false,
26774
+ showClose: showClose,
26410
26775
  showCancelButton: true,
26411
26776
  cancelButtonText: obj.cancelButtonText,
26412
26777
  cancelButtonClass: cancelButtonClass,
@@ -26460,9 +26825,15 @@ const nbAlert = (MessageBox, obj) => {
26460
26825
  if (!obj.type) {
26461
26826
  customClass += ' nb-alert--no-icon';
26462
26827
  }
26828
+
26829
+ // 如果有showClose属性,则以其为准
26830
+ let showClose = false; // 是否显示showClose按钮
26831
+ if (typeof obj.showClose === 'boolean') {
26832
+ showClose = obj.showClose;
26833
+ }
26463
26834
  return MessageBox.alert(getHtml(obj), '', {
26464
26835
  dangerouslyUseHTMLString: true,
26465
- showClose: false,
26836
+ showClose: showClose,
26466
26837
  confirmButtonText: obj.confirmButtonText || obj.buttonText,
26467
26838
  confirmButtonClass: confirmButtonClass,
26468
26839
  closeOnClickModal: false,