nubomed-ui 2.0.67 → 2.0.68

Sign up to get free protection for your applications and to get access to all the features.
package/nubomed-ui.umd.js CHANGED
@@ -260,7 +260,7 @@ __webpack_require__.d(__webpack_exports__, {
260
260
  /*
261
261
  * @Author: chenghuan.dong
262
262
  * @Date: 2024-11-11 11:59:27
263
- * @LastEditTime: 2024-11-19 16:55:30
263
+ * @LastEditTime: 2024-11-21 13:39:59
264
264
  * @LastEditors: chenghuan.dong
265
265
  * @Description:
266
266
  * @FilePath: \nubomed-ui\locale\lang\zh-CN.js
@@ -279,6 +279,7 @@ __webpack_require__.d(__webpack_exports__, {
279
279
  count: '数量',
280
280
  totalCount: '总数',
281
281
  stockCount: '库存',
282
+ coefficient: '系数',
282
283
  position: '位置',
283
284
  curPosition: '当前位置',
284
285
  lastPosition: '上次位置',
@@ -551,6 +552,201 @@ src.install = function (Vue) {
551
552
 
552
553
  /***/ }),
553
554
 
555
+ /***/ 1285:
556
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
557
+
558
+ "use strict";
559
+ // ESM COMPAT FLAG
560
+ __webpack_require__.r(__webpack_exports__);
561
+
562
+ // EXPORTS
563
+ __webpack_require__.d(__webpack_exports__, {
564
+ "default": function() { return /* binding */ NBBarcodeCard; }
565
+ });
566
+
567
+ ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBBarcodeCard/src/index.vue?vue&type=template&id=17f18b82&scoped=true
568
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-barcode-card"},[_c('div',{staticClass:"card__name-row"},[_c('strong',{staticClass:"card__name"},[_vm._v(_vm._s(_vm.item.sDrugName || '- -'))]),_c('nb-reagent-type',{attrs:{"value":_vm.item.reagentType}}),(_vm.item.iTempDisable === 0)?_c('nb-tag',{attrs:{"type":"warning","fill":""}},[_vm._v(_vm._s(_vm.t('nb.state.temporaryStop')))]):_vm._e(),(_vm.item.isDisable === 1)?_c('nb-tag',{attrs:{"type":"danger"}},[_vm._v(_vm._s(_vm.t('nb.state.disabled')))]):_vm._e(),(_vm.showExpiry)?_c('nb-expiry-icon',{attrs:{"value":_vm.item.expiryState}}):_vm._e(),_vm._t("name-append",null,{"item":_vm.item})],2),_c('div',{staticClass:"card__spec-row"},[_c('div',{staticClass:"card__attr card__attr--spec"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.spec'))+"/"+_vm._s(_vm.t('nb.model')))]),_c('span',[_vm._v(_vm._s(_vm.item.sSpecs || '- -')+"/"+_vm._s(_vm.item.sModel || '- -'))])]),(_vm.showBrand)?_c('div',{staticClass:"card__attr card__attr--brand"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.brand')))]),_c('span',[_vm._v(_vm._s(_vm.item.sBrand || '- -'))])]):_vm._e(),(_vm.showPosition)?[(_vm.item.lastTerDesc)?_c('div',{staticClass:"card__attr card__attr--position-move"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.position')))]),_c('span',[_vm._v(_vm._s(_vm.item.lastTerDesc || '--'))]),_c('nb-icon',{attrs:{"icon":"arrow-right-fill"}}),_c('span',[_vm._v(_vm._s(_vm.item.sTerDesc || '--'))])],1):_c('div',{staticClass:"card__attr card__attr--position"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.position')))]),_c('span',[_vm._v(_vm._s(_vm.item.sTerDesc || '--'))])])]:_vm._e(),(_vm.showCoefficient)?_c('div',{staticClass:"card__attr card__attr--num"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.coefficient')))]),_c('span',[_vm._v(_vm._s(_vm.item.iCount || '- -'))])]):_vm._e(),_vm._t("spec-append"),(_vm.$slots.default)?_vm._t("default"):_vm._e()],2),_c('div',{staticClass:"card__barcode-row"},[_c('div',{staticClass:"card__attr card__attr--barcode"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.barcode')))]),_c('span',[_vm._v(_vm._s(_vm.item.sBarcode || '- -'))])]),_c('div',{staticClass:"card__attr card__attr--batch"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.batch')))]),_c('span',[_vm._v(_vm._s(_vm.item.sBatch || '- -'))])]),_c('div',{staticClass:"card__attr card__attr--expiry"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.expiry')))]),_c('span',[_vm._v(_vm._s(_vm.item.dExpiry || '- -'))])]),_vm._t("barcode-append")],2)])}
569
+ var staticRenderFns = []
570
+
571
+
572
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
573
+ var es_array_push = __webpack_require__(4114);
574
+ // EXTERNAL MODULE: ./packages/mixins/index.js
575
+ var mixins = __webpack_require__(7389);
576
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-80.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBBarcodeCard/src/index.vue?vue&type=script&lang=js
577
+
578
+ //
579
+ //
580
+ //
581
+ //
582
+ //
583
+ //
584
+ //
585
+ //
586
+ //
587
+ //
588
+ //
589
+ //
590
+ //
591
+ //
592
+ //
593
+ //
594
+ //
595
+ //
596
+ //
597
+ //
598
+ //
599
+ //
600
+ //
601
+ //
602
+ //
603
+ //
604
+ //
605
+ //
606
+ //
607
+ //
608
+ //
609
+ //
610
+ //
611
+ //
612
+ //
613
+ //
614
+ //
615
+ //
616
+ //
617
+ //
618
+ //
619
+ //
620
+ //
621
+ //
622
+ //
623
+ //
624
+ //
625
+ //
626
+ //
627
+ //
628
+ //
629
+ //
630
+ //
631
+ //
632
+ //
633
+ //
634
+ //
635
+ //
636
+ //
637
+ //
638
+ //
639
+ //
640
+ //
641
+ //
642
+ //
643
+ //
644
+ //
645
+ //
646
+
647
+
648
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
649
+ name: 'NBBarcodeCard',
650
+ mixins: [mixins/* default */.A],
651
+ props: {
652
+ // 数据对象
653
+ item: {
654
+ type: Object,
655
+ default: () => {
656
+ return {};
657
+ }
658
+ },
659
+ // 是否显示近效期标识
660
+ showExpiry: {
661
+ type: Boolean,
662
+ default: false
663
+ },
664
+ // 是否显示品牌
665
+ showBrand: {
666
+ type: Boolean,
667
+ default: true
668
+ },
669
+ // 是否显示位置
670
+ showPosition: {
671
+ type: Boolean,
672
+ default: false
673
+ },
674
+ // 是否显示系数
675
+ showCoefficient: {
676
+ type: Boolean,
677
+ default: false
678
+ }
679
+ },
680
+ data() {
681
+ return {};
682
+ },
683
+ computed: {
684
+ // 分类样式
685
+ getCateClassList() {
686
+ let cls = [];
687
+ if (this.item.toggle) {
688
+ cls.push('nb-toggle-cate--toggle');
689
+ }
690
+ if (this.item[this.optionProps.name] === this.value) {
691
+ cls.push('nb-toggle-cate--active');
692
+ }
693
+ // 样式类型
694
+ if (this.item.styleType === 'danger') {
695
+ cls.push('nb-toggle-cate--danger');
696
+ }
697
+ return cls;
698
+ }
699
+ },
700
+ methods: {
701
+ // 展开
702
+ handleToggle(item) {
703
+ if (this.showToggle) {
704
+ item.toggle = !item.toggle;
705
+ }
706
+ },
707
+ // 勾选单选框
708
+ handleChangeRadio() {
709
+ this.$emit('input', this.item[this.optionProps.name]);
710
+ },
711
+ // 勾选单号
712
+ handleChangeCheckbox(value, item) {
713
+ this.$emit('change', value, item);
714
+ }
715
+ }
716
+ });
717
+ ;// ./packages/components/NBBarcodeCard/src/index.vue?vue&type=script&lang=js
718
+ /* harmony default export */ var NBBarcodeCard_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
719
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
720
+ var componentNormalizer = __webpack_require__(1656);
721
+ ;// ./packages/components/NBBarcodeCard/src/index.vue
722
+
723
+
724
+
725
+
726
+
727
+ /* normalize component */
728
+ ;
729
+ var component = (0,componentNormalizer/* default */.A)(
730
+ NBBarcodeCard_srcvue_type_script_lang_js,
731
+ render,
732
+ staticRenderFns,
733
+ false,
734
+ null,
735
+ "17f18b82",
736
+ null
737
+
738
+ )
739
+
740
+ /* harmony default export */ var src = (component.exports);
741
+ ;// ./packages/components/NBBarcodeCard/index.js
742
+
743
+ src.install = function (Vue) {
744
+ Vue.component(src.name, src);
745
+ };
746
+ /* harmony default export */ var NBBarcodeCard = (src);
747
+
748
+ /***/ }),
749
+
554
750
  /***/ 5927:
555
751
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
556
752
 
@@ -2421,6 +2617,186 @@ src.install = function (Vue) {
2421
2617
 
2422
2618
  /***/ }),
2423
2619
 
2620
+ /***/ 8183:
2621
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2622
+
2623
+ "use strict";
2624
+ // ESM COMPAT FLAG
2625
+ __webpack_require__.r(__webpack_exports__);
2626
+
2627
+ // EXPORTS
2628
+ __webpack_require__.d(__webpack_exports__, {
2629
+ "default": function() { return /* binding */ NBNameSpecCard; }
2630
+ });
2631
+
2632
+ ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBNameSpecCard/src/index.vue?vue&type=template&id=08d2f36e&scoped=true
2633
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-name-spec-card"},[_c('div',{staticClass:"card__name-row"},[_c('strong',{staticClass:"card__name"},[_vm._v(_vm._s(_vm.item.sDrugName || '- -'))]),_c('nb-reagent-type',{attrs:{"value":_vm.item.reagentType}}),(_vm.item.iTempDisable === 0)?_c('nb-tag',{attrs:{"type":"warning","fill":""}},[_vm._v(_vm._s(_vm.t('nb.state.temporaryStop')))]):_vm._e(),(_vm.item.isDisable === 1)?_c('nb-tag',{attrs:{"type":"danger"}},[_vm._v(_vm._s(_vm.t('nb.state.disabled')))]):_vm._e(),(_vm.showExpiry)?_c('nb-expiry-icon',{attrs:{"value":_vm.item.expiryState}}):_vm._e(),_vm._t("name-append",null,{"item":_vm.item})],2),_c('div',{staticClass:"card__spec-row"},[_c('div',{staticClass:"card__attr card__attr--spec"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.spec'))+"/"+_vm._s(_vm.t('nb.model')))]),_c('span',[_vm._v(_vm._s(_vm.item.sSpecs || '- -')+"/"+_vm._s(_vm.item.sModel || '- -'))])]),(_vm.showBrand)?_c('div',{staticClass:"card__attr card__attr--brand"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.brand')))]),_c('span',[_vm._v(_vm._s(_vm.item.sBrand || '- -'))])]):_vm._e(),(_vm.showPosition)?[(_vm.item.lastTerDesc)?_c('div',{staticClass:"card__attr card__attr--position-move"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.position')))]),_c('span',[_vm._v(_vm._s(_vm.item.lastTerDesc || '--'))]),_c('nb-icon',{attrs:{"icon":"arrow-right-fill"}}),_c('span',[_vm._v(_vm._s(_vm.item.sTerDesc || '--'))])],1):_c('div',{staticClass:"card__attr card__attr--position"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.position')))]),_c('span',[_vm._v(_vm._s(_vm.item.sTerDesc || '--'))])])]:_vm._e(),(_vm.showCoefficient)?_c('div',{staticClass:"card__attr card__attr--num"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.coefficient')))]),_c('span',[_vm._v(_vm._s(_vm.item.iCount || '- -'))])]):_vm._e(),_vm._t("spec-append"),(_vm.$slots.default)?_vm._t("default"):_vm._e()],2)])}
2634
+ var staticRenderFns = []
2635
+
2636
+
2637
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
2638
+ var es_array_push = __webpack_require__(4114);
2639
+ // EXTERNAL MODULE: ./packages/mixins/index.js
2640
+ var mixins = __webpack_require__(7389);
2641
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-80.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBNameSpecCard/src/index.vue?vue&type=script&lang=js
2642
+
2643
+ //
2644
+ //
2645
+ //
2646
+ //
2647
+ //
2648
+ //
2649
+ //
2650
+ //
2651
+ //
2652
+ //
2653
+ //
2654
+ //
2655
+ //
2656
+ //
2657
+ //
2658
+ //
2659
+ //
2660
+ //
2661
+ //
2662
+ //
2663
+ //
2664
+ //
2665
+ //
2666
+ //
2667
+ //
2668
+ //
2669
+ //
2670
+ //
2671
+ //
2672
+ //
2673
+ //
2674
+ //
2675
+ //
2676
+ //
2677
+ //
2678
+ //
2679
+ //
2680
+ //
2681
+ //
2682
+ //
2683
+ //
2684
+ //
2685
+ //
2686
+ //
2687
+ //
2688
+ //
2689
+ //
2690
+ //
2691
+ //
2692
+ //
2693
+ //
2694
+ //
2695
+ //
2696
+
2697
+
2698
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
2699
+ name: 'NBNameSpecCard',
2700
+ mixins: [mixins/* default */.A],
2701
+ props: {
2702
+ // 数据对象
2703
+ item: {
2704
+ type: Object,
2705
+ default: () => {
2706
+ return {};
2707
+ }
2708
+ },
2709
+ // 是否显示近效期标识
2710
+ showExpiry: {
2711
+ type: Boolean,
2712
+ default: false
2713
+ },
2714
+ // 是否显示品牌
2715
+ showBrand: {
2716
+ type: Boolean,
2717
+ default: true
2718
+ },
2719
+ // 是否显示位置
2720
+ showPosition: {
2721
+ type: Boolean,
2722
+ default: false
2723
+ },
2724
+ // 是否显示系数
2725
+ showCoefficient: {
2726
+ type: Boolean,
2727
+ default: false
2728
+ }
2729
+ },
2730
+ data() {
2731
+ return {};
2732
+ },
2733
+ computed: {
2734
+ // 分类样式
2735
+ getCateClassList() {
2736
+ let cls = [];
2737
+ if (this.item.toggle) {
2738
+ cls.push('nb-toggle-cate--toggle');
2739
+ }
2740
+ if (this.item[this.optionProps.name] === this.value) {
2741
+ cls.push('nb-toggle-cate--active');
2742
+ }
2743
+ // 样式类型
2744
+ if (this.item.styleType === 'danger') {
2745
+ cls.push('nb-toggle-cate--danger');
2746
+ }
2747
+ return cls;
2748
+ }
2749
+ },
2750
+ methods: {
2751
+ // 展开
2752
+ handleToggle(item) {
2753
+ if (this.showToggle) {
2754
+ item.toggle = !item.toggle;
2755
+ }
2756
+ },
2757
+ // 勾选单选框
2758
+ handleChangeRadio() {
2759
+ this.$emit('input', this.item[this.optionProps.name]);
2760
+ },
2761
+ // 勾选单号
2762
+ handleChangeCheckbox(value, item) {
2763
+ this.$emit('change', value, item);
2764
+ }
2765
+ }
2766
+ });
2767
+ ;// ./packages/components/NBNameSpecCard/src/index.vue?vue&type=script&lang=js
2768
+ /* harmony default export */ var NBNameSpecCard_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
2769
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
2770
+ var componentNormalizer = __webpack_require__(1656);
2771
+ ;// ./packages/components/NBNameSpecCard/src/index.vue
2772
+
2773
+
2774
+
2775
+
2776
+
2777
+ /* normalize component */
2778
+ ;
2779
+ var component = (0,componentNormalizer/* default */.A)(
2780
+ NBNameSpecCard_srcvue_type_script_lang_js,
2781
+ render,
2782
+ staticRenderFns,
2783
+ false,
2784
+ null,
2785
+ "08d2f36e",
2786
+ null
2787
+
2788
+ )
2789
+
2790
+ /* harmony default export */ var src = (component.exports);
2791
+ ;// ./packages/components/NBNameSpecCard/index.js
2792
+
2793
+ src.install = function (Vue) {
2794
+ Vue.component(src.name, src);
2795
+ };
2796
+ /* harmony default export */ var NBNameSpecCard = (src);
2797
+
2798
+ /***/ }),
2799
+
2424
2800
  /***/ 9213:
2425
2801
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2426
2802
 
@@ -4293,6 +4669,7 @@ webpackContext.id = 1603;
4293
4669
 
4294
4670
  var map = {
4295
4671
  "./NBBadge/index.js": 3134,
4672
+ "./NBBarcodeCard/index.js": 1285,
4296
4673
  "./NBBarcodeReviewDialog/index.js": 5927,
4297
4674
  "./NBCabinetInventoryCarousel/index.js": 5433,
4298
4675
  "./NBCheckboxGroup/index.js": 2129,
@@ -4303,6 +4680,7 @@ var map = {
4303
4680
  "./NBHeader/index.js": 6523,
4304
4681
  "./NBIcon/index.js": 8311,
4305
4682
  "./NBMessageDialog/index.js": 5355,
4683
+ "./NBNameSpecCard/index.js": 8183,
4306
4684
  "./NBOutFooterDialog/index.js": 9213,
4307
4685
  "./NBPagination/index.js": 2407,
4308
4686
  "./NBProgress/index.js": 928,
@@ -7154,7 +7532,7 @@ var locale = __webpack_require__(7294);
7154
7532
  /*
7155
7533
  * @Author: chenghuan.dong
7156
7534
  * @Date: 2024-11-08 17:23:47
7157
- * @LastEditTime: 2024-11-20 13:58:43
7535
+ * @LastEditTime: 2024-11-21 11:46:33
7158
7536
  * @LastEditors: chenghuan.dong
7159
7537
  * @Description: 主index.js导出全部组件
7160
7538
  * @FilePath: \nubomed-ui\packages\index.js
@@ -7179,7 +7557,7 @@ const install = function (Vue, options = {}) {
7179
7557
  if (install.installed) return;
7180
7558
  components.forEach(component => {
7181
7559
  const name = 'nb-' + camelToKebab(component.name.slice(2));
7182
- const installNames = ['nb-icon', 'nb-tag', 'nb-badge', 'nb-empty', 'nb-radio-group', 'nb-checkbox-group', 'nb-header', 'nb-summary-bar', 'nb-header', 'nb-tabs', 'nb-pagination', 'nb-progress', 'nb-dialog', 'nb-fullscreen-dialog', 'nb-out-footer-dialog', 'nb-message-dialog', 'nb-sidebar-nav-group', 'nb-sidebar-nav', 'nb-expiry-icon', 'nb-reagent-type', 'nb-cabinet-inventory-carousel', 'nb-version-dialog', 'nb-barcode-review-dialog', 'nb-toggle-cate'];
7560
+ const installNames = ['nb-icon', 'nb-tag', 'nb-badge', 'nb-empty', 'nb-radio-group', 'nb-checkbox-group', 'nb-header', 'nb-summary-bar', 'nb-header', 'nb-tabs', 'nb-pagination', 'nb-progress', 'nb-dialog', 'nb-fullscreen-dialog', 'nb-out-footer-dialog', 'nb-message-dialog', 'nb-sidebar-nav-group', 'nb-sidebar-nav', 'nb-expiry-icon', 'nb-reagent-type', 'nb-cabinet-inventory-carousel', 'nb-version-dialog', 'nb-barcode-review-dialog', 'nb-toggle-cate', 'nb-name-spec-card', 'nb-barcode-card'];
7183
7561
  if (installNames.includes(name)) {
7184
7562
  console.log('%c' + '√ ' + name, 'color: #00A572;');
7185
7563
  } else {