nubomed-ui 2.0.159 → 2.0.160
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/fonts/iconfont.js +1 -1
- package/lang/en-US.js +1 -201
- package/lang/zh-CN.js +1 -201
- package/nubomed-ui.common.js +175 -46
- package/nubomed-ui.umd.js +175 -46
- package/nubomed-ui.umd.min.js +2 -3
- package/package.json +1 -1
- package/nubomed-ui.common.js.map +0 -1
- package/nubomed-ui.umd.js.map +0 -1
- package/nubomed-ui.umd.min.js.map +0 -1
package/nubomed-ui.common.js
CHANGED
@@ -722,7 +722,7 @@ src.install = function (Vue) {
|
|
722
722
|
|
723
723
|
/***/ }),
|
724
724
|
|
725
|
-
/***/
|
725
|
+
/***/ 7188:
|
726
726
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
727
727
|
|
728
728
|
"use strict";
|
@@ -734,8 +734,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
734
734
|
"default": function() { return /* binding */ NBBarcodeCard; }
|
735
735
|
});
|
736
736
|
|
737
|
-
;// ./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=
|
738
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-barcode-card",class:_vm.getCardClassList},[_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.showExpiry)?_c('nb-expiry-icon',{attrs:{"value":_vm.item.expiryState}}):_vm._e(),(_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","fill":""}},[_vm._v(_vm._s(_vm.t('nb.state.disabled')))]):_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.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")],2),_c('div',{staticClass:"card__brand--row"},[(_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":"caps-filled"}}),_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._t("brand-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)])}
|
737
|
+
;// ./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=7bc775a6&scoped=true
|
738
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-barcode-card",class:_vm.getCardClassList},[_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.showExpiry)?_c('nb-expiry-icon',{attrs:{"value":_vm.item.expiryState}}):_vm._e(),(_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","fill":""}},[_vm._v(_vm._s(_vm.t('nb.state.disabled')))]):_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.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")],2),_c('div',{staticClass:"card__brand--row"},[(_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":"caps-filled"}}),_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._t("brand-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.formatDateTime(_vm.item.dExpiry) || '- -'))])]),_vm._t("barcode-append")],2)])}
|
739
739
|
var staticRenderFns = []
|
740
740
|
|
741
741
|
|
@@ -743,6 +743,8 @@ var staticRenderFns = []
|
|
743
743
|
var es_array_push = __webpack_require__(4114);
|
744
744
|
// EXTERNAL MODULE: ./packages/mixins/index.js
|
745
745
|
var mixins = __webpack_require__(5289);
|
746
|
+
// EXTERNAL MODULE: ./packages/utils/date-util.js
|
747
|
+
var date_util = __webpack_require__(2035);
|
746
748
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
|
747
749
|
|
748
750
|
//
|
@@ -818,6 +820,7 @@ var mixins = __webpack_require__(5289);
|
|
818
820
|
//
|
819
821
|
|
820
822
|
|
823
|
+
|
821
824
|
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
822
825
|
name: 'NBBarcodeCard',
|
823
826
|
mixins: [mixins/* default */.A],
|
@@ -856,6 +859,11 @@ var mixins = __webpack_require__(5289);
|
|
856
859
|
validator(value) {
|
857
860
|
return ['', 'danger'].includes(value);
|
858
861
|
}
|
862
|
+
},
|
863
|
+
// 日期格式
|
864
|
+
dateFormat: {
|
865
|
+
type: String,
|
866
|
+
default: ''
|
859
867
|
}
|
860
868
|
},
|
861
869
|
data() {
|
@@ -872,7 +880,15 @@ var mixins = __webpack_require__(5289);
|
|
872
880
|
return cls;
|
873
881
|
}
|
874
882
|
},
|
875
|
-
methods: {
|
883
|
+
methods: {
|
884
|
+
// 日期格式化
|
885
|
+
formatDateTime(str) {
|
886
|
+
if (this.dateFormat) {
|
887
|
+
return (0,date_util/* formatDateTime */.r)(str, this.dateFormat);
|
888
|
+
}
|
889
|
+
return str;
|
890
|
+
}
|
891
|
+
}
|
876
892
|
});
|
877
893
|
;// ./packages/components/NBBarcodeCard/src/index.vue?vue&type=script&lang=js
|
878
894
|
/* harmony default export */ var NBBarcodeCard_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
@@ -892,7 +908,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
892
908
|
staticRenderFns,
|
893
909
|
false,
|
894
910
|
null,
|
895
|
-
"
|
911
|
+
"7bc775a6",
|
896
912
|
null
|
897
913
|
|
898
914
|
)
|
@@ -907,7 +923,7 @@ src.install = function (Vue) {
|
|
907
923
|
|
908
924
|
/***/ }),
|
909
925
|
|
910
|
-
/***/
|
926
|
+
/***/ 3956:
|
911
927
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
912
928
|
|
913
929
|
"use strict";
|
@@ -919,8 +935,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
919
935
|
"default": function() { return /* binding */ NBBarcodeReviewDialog; }
|
920
936
|
});
|
921
937
|
|
922
|
-
;// ./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/NBBarcodeReviewDialog/src/index.vue?vue&type=template&id=
|
923
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nb-dialog',{attrs:{"show-close":true,"custom-class":"nb-barcode-review-dialog","title":_vm.title || _vm.t('nb.traceDetail'),"show-cancel-button":false,"show-confirm-button":false,"center":false},on:{"closed":_vm.onClosed},model:{value:(_vm.dialogVisible),callback:function ($$v) {_vm.dialogVisible=$$v},expression:"dialogVisible"}},[_c('div',{staticClass:"br-top"},[_c('div',{staticClass:"br__name"},[_c('nb-reagent-type',{attrs:{"value":_vm.info.reagentType}}),(_vm.info.iTempDisable === 0)?_c('nb-tag',{attrs:{"type":"warning","fill":""}},[_vm._v(_vm._s(_vm.t('nb.state.temporaryStop')))]):_vm._e(),(_vm.info.isDisable === 1)?_c('nb-tag',{attrs:{"type":"danger","fill":""}},[_vm._v(_vm._s(_vm.t('nb.state.disabled')))]):_vm._e(),_c('span',[_vm._v(_vm._s(_vm.info.sDrugName || '- -'))]),_c('span',{staticClass:"br__copy",on:{"click":function($event){$event.stopPropagation();return _vm.handleCopy(_vm.info.sDrugName)}}},[_c('nb-icon',{attrs:{"icon":"copy"}}),_vm._v(_vm._s(_vm.t('nb.button.copy')))],1)],1),_c('div',{staticClass:"br__barcode"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.barcode'))+":")]),_c('span',[_vm._v(_vm._s(_vm.info.sBarcode || '- -'))]),_c('span',{staticClass:"br__copy",on:{"click":function($event){$event.stopPropagation();return _vm.handleCopy(_vm.info.sBarcode)}}},[_c('nb-icon',{attrs:{"icon":"copy"}}),_vm._v(_vm._s(_vm.t('nb.button.copy')))],1)]),_c('div',{staticClass:"br__row"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.spec'))+":")]),_c('span',[_vm._v(_vm._s(_vm.info.sSpecs || '- -'))])]),_c('div',{staticClass:"br__row"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.model'))+":")]),_c('span',[_vm._v(_vm._s(_vm.info.sModel || '- -'))])]),_c('div',{staticClass:"br__row flex-row"},[_c('div',[_c('i',[_vm._v(_vm._s(_vm.t('nb.batch'))+":")]),_c('span',[_vm._v(_vm._s(_vm.info.sBatch || '- -'))])]),_c('div',[_c('i',[_vm._v(_vm._s(_vm.t('nb.expiry'))+":")]),_c('span',[_vm._v(_vm._s(_vm.info.dExpiry || '- -'))])]),_c('div',[_c('i',[_vm._v(_vm._s(_vm.t('nb.price'))+":")]),_c('span',[_vm._v(_vm._s(_vm.info.fPrice || '- -'))])])]),_c('div',{staticClass:"br__row"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.brand'))+":")]),_c('span',[_vm._v(_vm._s(_vm.info.sBrand || '- -'))])]),_c('div',{staticClass:"br__row"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.manufacturer'))+":")]),_c('span',[_vm._v(_vm._s(_vm.info.sManufacturerName || '- -'))])]),_c('div',{staticClass:"br__row"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.supplier'))+":")]),_c('span',[_vm._v(_vm._s(_vm.info.sSupplierName || '- -'))])])]),_c('ul',{staticClass:"br-bottom"},_vm._l((_vm.info.details),function(item,index){return _c('li',{key:index,staticClass:"br__item"},[_c('div',{staticClass:"br__item__date",domProps:{"innerHTML":_vm._s(_vm.formartInputTime(item.dInputTime))}}),_c('div',{staticClass:"br__item__dot"}),_c('div',{staticClass:"br__item__card"},[_c('p',{staticClass:"br__item__card__type"},[_vm._v(_vm._s(item.sBillTypeName || '- -'))]),_c('div',{staticClass:"br__item__card__bottom"},[_c('div',[_c('i',[_vm._v(_vm._s(_vm.t('nb.operator'))+":")]),_c('span',[_vm._v(_vm._s(item.sInputUserName || '- -'))])]),_c('div',[_c('i',[_vm._v(_vm._s(_vm.t('nb.position'))+":")]),_c('span',[_vm._v(_vm._s(item.sTerDesc || '- -'))])])])])])}),0)])}
|
938
|
+
;// ./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/NBBarcodeReviewDialog/src/index.vue?vue&type=template&id=46be38f6&scoped=true
|
939
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nb-dialog',{attrs:{"show-close":true,"custom-class":"nb-barcode-review-dialog","title":_vm.title || _vm.t('nb.traceDetail'),"show-cancel-button":false,"show-confirm-button":false,"center":false},on:{"closed":_vm.onClosed},model:{value:(_vm.dialogVisible),callback:function ($$v) {_vm.dialogVisible=$$v},expression:"dialogVisible"}},[_c('div',{staticClass:"br-top"},[_c('div',{staticClass:"br__name"},[_c('nb-reagent-type',{attrs:{"value":_vm.info.reagentType}}),(_vm.info.iTempDisable === 0)?_c('nb-tag',{attrs:{"type":"warning","fill":""}},[_vm._v(_vm._s(_vm.t('nb.state.temporaryStop')))]):_vm._e(),(_vm.info.isDisable === 1)?_c('nb-tag',{attrs:{"type":"danger","fill":""}},[_vm._v(_vm._s(_vm.t('nb.state.disabled')))]):_vm._e(),_c('span',[_vm._v(_vm._s(_vm.info.sDrugName || '- -'))]),_c('span',{staticClass:"br__copy",on:{"click":function($event){$event.stopPropagation();return _vm.handleCopy(_vm.info.sDrugName)}}},[_c('nb-icon',{attrs:{"icon":"copy"}}),_vm._v(_vm._s(_vm.t('nb.button.copy')))],1)],1),_c('div',{staticClass:"br__barcode"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.barcode'))+":")]),_c('span',[_vm._v(_vm._s(_vm.info.sBarcode || '- -'))]),_c('span',{staticClass:"br__copy",on:{"click":function($event){$event.stopPropagation();return _vm.handleCopy(_vm.info.sBarcode)}}},[_c('nb-icon',{attrs:{"icon":"copy"}}),_vm._v(_vm._s(_vm.t('nb.button.copy')))],1)]),_c('div',{staticClass:"br__row"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.spec'))+":")]),_c('span',[_vm._v(_vm._s(_vm.info.sSpecs || '- -'))])]),_c('div',{staticClass:"br__row"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.model'))+":")]),_c('span',[_vm._v(_vm._s(_vm.info.sModel || '- -'))])]),_c('div',{staticClass:"br__row flex-row"},[_c('div',[_c('i',[_vm._v(_vm._s(_vm.t('nb.batch'))+":")]),_c('span',[_vm._v(_vm._s(_vm.info.sBatch || '- -'))])]),_c('div',[_c('i',[_vm._v(_vm._s(_vm.t('nb.expiry'))+":")]),_c('span',[_vm._v(_vm._s(_vm.formatDateTime(_vm.info.dExpiry) || '- -'))])]),_c('div',[_c('i',[_vm._v(_vm._s(_vm.t('nb.price'))+":")]),_c('span',[_vm._v(_vm._s(_vm.info.fPrice || '- -'))])])]),_c('div',{staticClass:"br__row"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.brand'))+":")]),_c('span',[_vm._v(_vm._s(_vm.info.sBrand || '- -'))])]),_c('div',{staticClass:"br__row"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.manufacturer'))+":")]),_c('span',[_vm._v(_vm._s(_vm.info.sManufacturerName || '- -'))])]),_c('div',{staticClass:"br__row"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.supplier'))+":")]),_c('span',[_vm._v(_vm._s(_vm.info.sSupplierName || '- -'))])])]),_c('ul',{staticClass:"br-bottom"},_vm._l((_vm.info.details),function(item,index){return _c('li',{key:index,staticClass:"br__item"},[_c('div',{staticClass:"br__item__date",domProps:{"innerHTML":_vm._s(_vm.formartInputTime(item.dInputTime))}}),_c('div',{staticClass:"br__item__dot"}),_c('div',{staticClass:"br__item__card"},[_c('p',{staticClass:"br__item__card__type"},[_vm._v(_vm._s(item.sBillTypeName || '- -'))]),_c('div',{staticClass:"br__item__card__bottom"},[_c('div',[_c('i',[_vm._v(_vm._s(_vm.t('nb.operator'))+":")]),_c('span',[_vm._v(_vm._s(item.sInputUserName || '- -'))])]),_c('div',[_c('i',[_vm._v(_vm._s(_vm.t('nb.position'))+":")]),_c('span',[_vm._v(_vm._s(item.sTerDesc || '- -'))])])])])])}),0)])}
|
924
940
|
var staticRenderFns = []
|
925
941
|
|
926
942
|
|
@@ -949,6 +965,8 @@ function copyText(content) {
|
|
949
965
|
document.body.removeChild(copyEl);
|
950
966
|
return res;
|
951
967
|
}
|
968
|
+
// EXTERNAL MODULE: ./packages/utils/date-util.js
|
969
|
+
var date_util = __webpack_require__(2035);
|
952
970
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBBarcodeReviewDialog/src/index.vue?vue&type=script&lang=js
|
953
971
|
//
|
954
972
|
//
|
@@ -1042,6 +1060,7 @@ function copyText(content) {
|
|
1042
1060
|
|
1043
1061
|
|
1044
1062
|
|
1063
|
+
|
1045
1064
|
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
1046
1065
|
name: 'NBBarcodeReviewDialog',
|
1047
1066
|
mixins: [mixins/* default */.A],
|
@@ -1067,6 +1086,11 @@ function copyText(content) {
|
|
1067
1086
|
default: () => {
|
1068
1087
|
return {};
|
1069
1088
|
}
|
1089
|
+
},
|
1090
|
+
// 日期格式
|
1091
|
+
dateFormat: {
|
1092
|
+
type: String,
|
1093
|
+
default: ''
|
1070
1094
|
}
|
1071
1095
|
},
|
1072
1096
|
data() {
|
@@ -1080,6 +1104,13 @@ function copyText(content) {
|
|
1080
1104
|
}
|
1081
1105
|
},
|
1082
1106
|
methods: {
|
1107
|
+
// 日期格式化
|
1108
|
+
formatDateTime(str) {
|
1109
|
+
if (this.dateFormat) {
|
1110
|
+
return (0,date_util/* formatDateTime */.r)(str, this.dateFormat);
|
1111
|
+
}
|
1112
|
+
return str;
|
1113
|
+
},
|
1083
1114
|
// 操作时间,换行显示
|
1084
1115
|
formartInputTime(dInputTime) {
|
1085
1116
|
if (dInputTime) {
|
@@ -1117,7 +1148,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
1117
1148
|
staticRenderFns,
|
1118
1149
|
false,
|
1119
1150
|
null,
|
1120
|
-
"
|
1151
|
+
"46be38f6",
|
1121
1152
|
null
|
1122
1153
|
|
1123
1154
|
)
|
@@ -2675,7 +2706,7 @@ src.install = function (Vue) {
|
|
2675
2706
|
|
2676
2707
|
/***/ }),
|
2677
2708
|
|
2678
|
-
/***/
|
2709
|
+
/***/ 4805:
|
2679
2710
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
2680
2711
|
|
2681
2712
|
"use strict";
|
@@ -2687,11 +2718,13 @@ __webpack_require__.d(__webpack_exports__, {
|
|
2687
2718
|
"default": function() { return /* binding */ NBExpiryCard; }
|
2688
2719
|
});
|
2689
2720
|
|
2690
|
-
;// ./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/NBExpiryCard/src/index.vue?vue&type=template&id=
|
2691
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:("nb-expiry-card nb-expiry-card--" + _vm.size + " nb-expiry-card--expiry" + (_vm.item.expiryState))},[(_vm.size === 'small')?[_vm._t("default",[_c('div',{staticClass:"card-top"},[_c('div',{staticClass:"card__name"},[_vm._v(_vm._s(_vm.item.sDrugName || '- -')),(_vm.item.iReagentType === 2 && _vm.item.iOpened === 1)?_c('span',{staticClass:"tag-opened"},[_vm._v(_vm._s(_vm.t('nb.state.openedBottle')))]):_vm._e()]),_c('div',{staticClass:"card__spec"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.spec'))+"/"+_vm._s(_vm.t('nb.model'))+":")]),_vm._v(_vm._s(_vm.item.sSpecs || '- -')+" / "+_vm._s(_vm.item.sModel || '- -')+" ")])]),_c('div',{staticClass:"card-bottom"},[_c('p',[_c('i',[_vm._v(_vm._s(_vm.t('nb.batch'))+":")]),_vm._v(_vm._s(_vm.item.sBatch || '- -')+" ")]),_c('p',{staticClass:"flex-between"},[_c('span',[_c('i',[_vm._v(_vm._s(_vm.t('nb.expiry'))+":")]),_vm._v(_vm._s(_vm.item.dExpiry || '- -'))]),(_vm.showPosition)?_c('span',[_c('i',[_vm._v(_vm._s(_vm.t('nb.position'))+":")]),_vm._v(_vm._s(_vm.item.sTerDesc || '- -'))]):_vm._e()]),_c('div',{class:("card__count " + (_vm.showPosition ? 'card__count--position' : ''))},[_c('strong',[_vm._v(_vm._s(_vm.item.iQuant))]),(_vm.showUnit)?_c('span',[_vm._v(_vm._s(_vm.item.sUnit))]):_vm._e()])])])]:[_vm._t("default",[_c('div',{staticClass:"card-top"},[_c('div',{staticClass:"card-top__left"},[_c('div',{staticClass:"card__name"},[_vm._v(" "+_vm._s(_vm.item.sDrugName || '- -')),(_vm.item.iReagentType === 2 && _vm.item.iOpened === 1)?_c('span',{staticClass:"tag-opened"},[_vm._v(_vm._s(_vm.t('nb.state.openedBottle')))]):_vm._e()]),_c('div',{staticClass:"card__spec"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.spec'))+"/"+_vm._s(_vm.t('nb.model'))+":")]),_vm._v(_vm._s(_vm.item.sSpecs || '- -')+"/"+_vm._s(_vm.item.sModel || '- -')+" ")])]),_c('div',{staticClass:"card-top__right card__count"},[_c('strong',[_vm._v(_vm._s(_vm.item.iQuant))]),(_vm.showUnit)?_c('span',[_vm._v(_vm._s(_vm.item.sUnit))]):_vm._e()])]),_c('div',{staticClass:"card-bottom"},[_c('div',{staticClass:"card__batch"},[_c('span',[_c('i',[_vm._v(_vm._s(_vm.t('nb.batch'))+":")]),_vm._v(_vm._s(_vm.item.sBatch || '- -'))]),_c('span',[_c('i',[_vm._v(_vm._s(_vm.t('nb.expiry'))+":")]),_vm._v(_vm._s(_vm.item.dExpiry || '- -'))])]),(_vm.showPosition)?_c('div',{staticClass:"card__postion"},[_c('span',[_c('i',[_vm._v(_vm._s(_vm.t('nb.position'))+":")]),_vm._v(_vm._s(_vm.item.sTerDesc || '- -'))])]):_vm._e()])])]],2)}
|
2721
|
+
;// ./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/NBExpiryCard/src/index.vue?vue&type=template&id=638fcde5&scoped=true
|
2722
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:("nb-expiry-card nb-expiry-card--" + _vm.size + " nb-expiry-card--expiry" + (_vm.item.expiryState))},[(_vm.size === 'small')?[_vm._t("default",[_c('div',{staticClass:"card-top"},[_c('div',{staticClass:"card__name"},[_vm._v(" "+_vm._s(_vm.item.sDrugName || '- -')),(_vm.item.iReagentType === 2 && _vm.item.iOpened === 1)?_c('span',{staticClass:"tag-opened"},[_vm._v(_vm._s(_vm.t('nb.state.openedBottle')))]):_vm._e()]),_c('div',{staticClass:"card__spec"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.spec'))+"/"+_vm._s(_vm.t('nb.model'))+":")]),_vm._v(_vm._s(_vm.item.sSpecs || '- -')+" / "+_vm._s(_vm.item.sModel || '- -')+" ")])]),_c('div',{staticClass:"card-bottom"},[_c('p',[_c('i',[_vm._v(_vm._s(_vm.t('nb.batch'))+":")]),_vm._v(_vm._s(_vm.item.sBatch || '- -')+" ")]),_c('p',{staticClass:"flex-between"},[_c('span',[_c('i',[_vm._v(_vm._s(_vm.t('nb.expiry'))+":")]),_vm._v(_vm._s(_vm.item.dExpiry || '- -'))]),(_vm.showPosition)?_c('span',[_c('i',[_vm._v(_vm._s(_vm.t('nb.position'))+":")]),_vm._v(_vm._s(_vm.item.sTerDesc || '- -'))]):_vm._e()]),_c('div',{class:("card__count " + (_vm.showPosition ? 'card__count--position' : ''))},[_c('strong',[_vm._v(_vm._s(_vm.item.iQuant))]),(_vm.showUnit)?_c('span',[_vm._v(_vm._s(_vm.item.sUnit))]):_vm._e()])])])]:[_vm._t("default",[_c('div',{staticClass:"card-top"},[_c('div',{staticClass:"card-top__left"},[_c('div',{staticClass:"card__name"},[_vm._v(" "+_vm._s(_vm.item.sDrugName || '- -')),(_vm.item.iReagentType === 2 && _vm.item.iOpened === 1)?_c('span',{staticClass:"tag-opened"},[_vm._v(_vm._s(_vm.t('nb.state.openedBottle')))]):_vm._e()]),_c('div',{staticClass:"card__spec"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.spec'))+"/"+_vm._s(_vm.t('nb.model'))+":")]),_vm._v(_vm._s(_vm.item.sSpecs || '- -')+"/"+_vm._s(_vm.item.sModel || '- -')+" ")])]),_c('div',{staticClass:"card-top__right card__count"},[_c('strong',[_vm._v(_vm._s(_vm.item.iQuant))]),(_vm.showUnit)?_c('span',[_vm._v(_vm._s(_vm.item.sUnit))]):_vm._e()])]),_c('div',{staticClass:"card-bottom"},[_c('div',{staticClass:"card__batch"},[_c('span',[_c('i',[_vm._v(_vm._s(_vm.t('nb.batch'))+":")]),_vm._v(_vm._s(_vm.item.sBatch || '- -'))]),_c('span',[_c('i',[_vm._v(_vm._s(_vm.t('nb.expiry'))+":")]),_vm._v(_vm._s(_vm.formatDateTime(_vm.item.dExpiry) || '- -'))])]),(_vm.showPosition)?_c('div',{staticClass:"card__postion"},[_c('span',[_c('i',[_vm._v(_vm._s(_vm.t('nb.position'))+":")]),_vm._v(_vm._s(_vm.item.sTerDesc || '- -'))])]):_vm._e()])])]],2)}
|
2692
2723
|
var staticRenderFns = []
|
2693
2724
|
|
2694
2725
|
|
2726
|
+
// EXTERNAL MODULE: ./packages/utils/date-util.js
|
2727
|
+
var date_util = __webpack_require__(2035);
|
2695
2728
|
// EXTERNAL MODULE: ./packages/mixins/index.js
|
2696
2729
|
var mixins = __webpack_require__(5289);
|
2697
2730
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBExpiryCard/src/index.vue?vue&type=script&lang=js
|
@@ -2769,6 +2802,10 @@ var mixins = __webpack_require__(5289);
|
|
2769
2802
|
//
|
2770
2803
|
//
|
2771
2804
|
//
|
2805
|
+
//
|
2806
|
+
//
|
2807
|
+
//
|
2808
|
+
|
2772
2809
|
|
2773
2810
|
|
2774
2811
|
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
@@ -2796,6 +2833,20 @@ var mixins = __webpack_require__(5289);
|
|
2796
2833
|
showPosition: {
|
2797
2834
|
type: Boolean,
|
2798
2835
|
default: true
|
2836
|
+
},
|
2837
|
+
// 日期格式
|
2838
|
+
dateFormat: {
|
2839
|
+
type: String,
|
2840
|
+
default: ''
|
2841
|
+
}
|
2842
|
+
},
|
2843
|
+
methods: {
|
2844
|
+
// 日期格式化
|
2845
|
+
formatDateTime(str) {
|
2846
|
+
if (this.dateFormat) {
|
2847
|
+
return (0,date_util/* formatDateTime */.r)(str, this.dateFormat);
|
2848
|
+
}
|
2849
|
+
return str;
|
2799
2850
|
}
|
2800
2851
|
}
|
2801
2852
|
});
|
@@ -2817,7 +2868,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
2817
2868
|
staticRenderFns,
|
2818
2869
|
false,
|
2819
2870
|
null,
|
2820
|
-
"
|
2871
|
+
"638fcde5",
|
2821
2872
|
null
|
2822
2873
|
|
2823
2874
|
)
|
@@ -6260,7 +6311,7 @@ src.install = function (Vue) {
|
|
6260
6311
|
|
6261
6312
|
/***/ }),
|
6262
6313
|
|
6263
|
-
/***/
|
6314
|
+
/***/ 9811:
|
6264
6315
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
6265
6316
|
|
6266
6317
|
"use strict";
|
@@ -6272,13 +6323,15 @@ __webpack_require__.d(__webpack_exports__, {
|
|
6272
6323
|
"default": function() { return /* binding */ NBPatientCard; }
|
6273
6324
|
});
|
6274
6325
|
|
6275
|
-
;// ./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/NBPatientCard/src/index.vue?vue&type=template&id=
|
6276
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-patient-card",class:_vm.cardClassList,style:(("width: " + _vm.width + "px"))},[_c('div',{staticClass:"card-top"},[(_vm.info.sBedNum)?_c('span',{staticClass:"card__bed"},[_vm._v(_vm._s(_vm.info.sBedNum))]):_vm._e(),(_vm.info.sPatientName)?_c('span',{staticClass:"card__name"},[_vm._v(_vm._s(_vm.info.sPatientName))]):_vm._e(),_vm._t("state",[(Number(_vm.stateMode) === 2 && _vm.info.statusText)?_c('span',{staticClass:"card__state"},[_vm._v(_vm._s(_vm.info.statusText))]):_vm._e()])],2),_c('div',{staticClass:"card__sex"},[(_vm.info.sSex)?_c('span',[_vm._v(_vm._s(_vm.info.sSex))]):_vm._e(),(_vm.info.sAge)?_c('span',[_vm._v(_vm._s(_vm.info.sAge))]):_vm._e(),(_vm.info.sHospitalNo || _vm.info.sHospitalNO)?_c('span',[_vm._v(_vm._s(_vm.info.sHospitalNo || _vm.info.sHospitalNO))]):_vm._e(),(_vm.info.sDeptName)?_c('span',[_vm._v(_vm._s(_vm.info.sDeptName))]):_vm._e()]),_c('div',{staticClass:"card__op"},[(_vm.info.sPerationApplyID && _vm.info.iOperType !== 2)?_c('span',[_vm._v(_vm._s(_vm.info.sPerationApplyID))]):_vm._e(),_c('span',[_vm._v(_vm._s(_vm.info.sOperationName))])]),_c('div',{staticClass:"card__dept"},[(_vm.info.sRoomName)?_c('span',[_vm._v(_vm._s(_vm.info.sRoomName))]):_vm._e(),(_vm.info.dOperapTime)?_c('span',[_vm._v(_vm._s(_vm.info.dOperapTime))]):_vm._e()]),_vm._t("operation")],2)}
|
6326
|
+
;// ./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/NBPatientCard/src/index.vue?vue&type=template&id=0ce50f0a&scoped=true
|
6327
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-patient-card",class:_vm.cardClassList,style:(("width: " + _vm.width + "px"))},[_c('div',{staticClass:"card-top"},[(_vm.info.sBedNum)?_c('span',{staticClass:"card__bed"},[_vm._v(_vm._s(_vm.info.sBedNum))]):_vm._e(),(_vm.info.sPatientName)?_c('span',{staticClass:"card__name"},[_vm._v(_vm._s(_vm.info.sPatientName))]):_vm._e(),_vm._t("state",[(Number(_vm.stateMode) === 2 && _vm.info.statusText)?_c('span',{staticClass:"card__state"},[_vm._v(_vm._s(_vm.info.statusText))]):_vm._e()])],2),_c('div',{staticClass:"card__sex"},[(_vm.info.sSex)?_c('span',[_vm._v(_vm._s(_vm.info.sSex))]):_vm._e(),(_vm.info.sAge)?_c('span',[_vm._v(_vm._s(_vm.info.sAge))]):_vm._e(),(_vm.info.sHospitalNo || _vm.info.sHospitalNO)?_c('span',[_vm._v(_vm._s(_vm.info.sHospitalNo || _vm.info.sHospitalNO))]):_vm._e(),(_vm.info.sDeptName)?_c('span',[_vm._v(_vm._s(_vm.info.sDeptName))]):_vm._e()]),_c('div',{staticClass:"card__op"},[(_vm.info.sPerationApplyID && _vm.info.iOperType !== 2)?_c('span',[_vm._v(_vm._s(_vm.info.sPerationApplyID))]):_vm._e(),_c('span',[_vm._v(_vm._s(_vm.info.sOperationName))])]),_c('div',{staticClass:"card__dept"},[(_vm.info.sRoomName)?_c('span',[_vm._v(_vm._s(_vm.info.sRoomName))]):_vm._e(),(_vm.info.dOperapTime)?_c('span',[_vm._v(_vm._s(_vm.formatDateTime(_vm.info.dOperapTime)))]):_vm._e()]),_vm._t("operation")],2)}
|
6277
6328
|
var staticRenderFns = []
|
6278
6329
|
|
6279
6330
|
|
6280
6331
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
6281
6332
|
var es_array_push = __webpack_require__(4114);
|
6333
|
+
// EXTERNAL MODULE: ./packages/utils/date-util.js
|
6334
|
+
var date_util = __webpack_require__(2035);
|
6282
6335
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBPatientCard/src/index.vue?vue&type=script&lang=js
|
6283
6336
|
|
6284
6337
|
//
|
@@ -6317,6 +6370,7 @@ var es_array_push = __webpack_require__(4114);
|
|
6317
6370
|
//
|
6318
6371
|
//
|
6319
6372
|
|
6373
|
+
|
6320
6374
|
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
6321
6375
|
name: 'NBPatientCard',
|
6322
6376
|
props: {
|
@@ -6341,6 +6395,11 @@ var es_array_push = __webpack_require__(4114);
|
|
6341
6395
|
width: {
|
6342
6396
|
type: [Number, String],
|
6343
6397
|
default: 456 // 456
|
6398
|
+
},
|
6399
|
+
// 日期格式
|
6400
|
+
dateFormat: {
|
6401
|
+
type: String,
|
6402
|
+
default: ''
|
6344
6403
|
}
|
6345
6404
|
},
|
6346
6405
|
data() {
|
@@ -6379,7 +6438,15 @@ var es_array_push = __webpack_require__(4114);
|
|
6379
6438
|
}
|
6380
6439
|
},
|
6381
6440
|
beforeDestroy() {},
|
6382
|
-
methods: {
|
6441
|
+
methods: {
|
6442
|
+
// 日期格式化
|
6443
|
+
formatDateTime(str) {
|
6444
|
+
if (this.dateFormat) {
|
6445
|
+
return (0,date_util/* formatDateTime */.r)(str, this.dateFormat);
|
6446
|
+
}
|
6447
|
+
return str;
|
6448
|
+
}
|
6449
|
+
}
|
6383
6450
|
});
|
6384
6451
|
;// ./packages/components/NBPatientCard/src/index.vue?vue&type=script&lang=js
|
6385
6452
|
/* harmony default export */ var NBPatientCard_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
@@ -6399,7 +6466,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
6399
6466
|
staticRenderFns,
|
6400
6467
|
false,
|
6401
6468
|
null,
|
6402
|
-
"
|
6469
|
+
"0ce50f0a",
|
6403
6470
|
null
|
6404
6471
|
|
6405
6472
|
)
|
@@ -7927,7 +7994,7 @@ src.install = function (Vue) {
|
|
7927
7994
|
|
7928
7995
|
/***/ }),
|
7929
7996
|
|
7930
|
-
/***/
|
7997
|
+
/***/ 7118:
|
7931
7998
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
7932
7999
|
|
7933
8000
|
"use strict";
|
@@ -7939,13 +8006,15 @@ __webpack_require__.d(__webpack_exports__, {
|
|
7939
8006
|
"default": function() { return /* binding */ NBToggleCate; }
|
7940
8007
|
});
|
7941
8008
|
|
7942
|
-
;// ./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/NBToggleCate/src/index.vue?vue&type=template&id=
|
7943
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-toggle-cate",class:_vm.getCateClassList,on:{"click":function($event){$event.stopPropagation();return _vm.handleToggle(_vm.item)}}},[_c('div',{staticClass:"nb-toggle-cate__left"},[_c('nb-icon',{staticClass:"cate__toggle",attrs:{"icon":_vm.item.toggle ? 'caret-down' : 'caret-right'},on:{"click":function($event){return _vm.handleToggle(_vm.item)}}}),(_vm.showRadio)?_c('el-radio',{staticClass:"cate__radio",attrs:{"value":_vm.value,"label":_vm.item[_vm.optionProps.value]},on:{"update:value":function($event){_vm.value=$event},"change":_vm.handleChangeRadio}}):_vm._e(),(_vm.showCheckbox)?_c('el-checkbox',{staticClass:"cate__checkbox",attrs:{"indeterminate":_vm.item.indeterminate},on:{"change":function($event){return _vm.handleChangeCheckbox($event, _vm.item)}},model:{value:(_vm.item.checked),callback:function ($$v) {_vm.$set(_vm.item, "checked", $$v)},expression:"item.checked"}}):_vm._e(),_c('nb-icon',{staticClass:"cate__icon",attrs:{"icon":_vm.item[_vm.optionProps.icon]}}),_c('strong',{staticClass:"cate__name"},[_vm._v(_vm._s(_vm.item[_vm.optionProps.label] || '- -'))]),(_vm.optionProps.date && _vm.item[_vm.optionProps.date])?_c('span',{staticClass:"cate__date"},[_vm._v(_vm._s(_vm.item[_vm.optionProps.date]))]):_vm._e(),(_vm.optionProps.tips && _vm.item[_vm.optionProps.tips])?_c('span',{staticClass:"cate__tips"},[_vm._v(_vm._s(_vm.item[_vm.optionProps.tips]))]):_vm._e(),_vm._t("left",null,{"item":_vm.item})],2),_vm._t("default")],2)}
|
8009
|
+
;// ./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/NBToggleCate/src/index.vue?vue&type=template&id=67acc247&scoped=true
|
8010
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-toggle-cate",class:_vm.getCateClassList,on:{"click":function($event){$event.stopPropagation();return _vm.handleToggle(_vm.item)}}},[_c('div',{staticClass:"nb-toggle-cate__left"},[_c('nb-icon',{staticClass:"cate__toggle",attrs:{"icon":_vm.item.toggle ? 'caret-down' : 'caret-right'},on:{"click":function($event){return _vm.handleToggle(_vm.item)}}}),(_vm.showRadio)?_c('el-radio',{staticClass:"cate__radio",attrs:{"value":_vm.value,"label":_vm.item[_vm.optionProps.value]},on:{"update:value":function($event){_vm.value=$event},"change":_vm.handleChangeRadio}}):_vm._e(),(_vm.showCheckbox)?_c('el-checkbox',{staticClass:"cate__checkbox",attrs:{"indeterminate":_vm.item.indeterminate},on:{"change":function($event){return _vm.handleChangeCheckbox($event, _vm.item)}},model:{value:(_vm.item.checked),callback:function ($$v) {_vm.$set(_vm.item, "checked", $$v)},expression:"item.checked"}}):_vm._e(),_c('nb-icon',{staticClass:"cate__icon",attrs:{"icon":_vm.item[_vm.optionProps.icon]}}),_c('strong',{staticClass:"cate__name"},[_vm._v(_vm._s(_vm.item[_vm.optionProps.label] || '- -'))]),(_vm.optionProps.date && _vm.item[_vm.optionProps.date])?_c('span',{staticClass:"cate__date"},[_vm._v(_vm._s(_vm.formatDateTime(_vm.item[_vm.optionProps.date])))]):_vm._e(),(_vm.optionProps.tips && _vm.item[_vm.optionProps.tips])?_c('span',{staticClass:"cate__tips"},[_vm._v(_vm._s(_vm.item[_vm.optionProps.tips]))]):_vm._e(),_vm._t("left",null,{"item":_vm.item})],2),_vm._t("default")],2)}
|
7944
8011
|
var staticRenderFns = []
|
7945
8012
|
|
7946
8013
|
|
7947
8014
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
7948
8015
|
var es_array_push = __webpack_require__(4114);
|
8016
|
+
// EXTERNAL MODULE: ./packages/utils/date-util.js
|
8017
|
+
var date_util = __webpack_require__(2035);
|
7949
8018
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBToggleCate/src/index.vue?vue&type=script&lang=js
|
7950
8019
|
|
7951
8020
|
//
|
@@ -7984,6 +8053,7 @@ var es_array_push = __webpack_require__(4114);
|
|
7984
8053
|
//
|
7985
8054
|
//
|
7986
8055
|
|
8056
|
+
|
7987
8057
|
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
7988
8058
|
name: 'NBToggleCate',
|
7989
8059
|
props: {
|
@@ -8031,6 +8101,11 @@ var es_array_push = __webpack_require__(4114);
|
|
8031
8101
|
validator(value) {
|
8032
8102
|
return ['', 'danger'].includes(value);
|
8033
8103
|
}
|
8104
|
+
},
|
8105
|
+
// 日期格式
|
8106
|
+
dateFormat: {
|
8107
|
+
type: String,
|
8108
|
+
default: ''
|
8034
8109
|
}
|
8035
8110
|
},
|
8036
8111
|
data() {
|
@@ -8063,6 +8138,13 @@ var es_array_push = __webpack_require__(4114);
|
|
8063
8138
|
}
|
8064
8139
|
},
|
8065
8140
|
methods: {
|
8141
|
+
// 日期格式化
|
8142
|
+
formatDateTime(str) {
|
8143
|
+
if (this.dateFormat) {
|
8144
|
+
return (0,date_util/* formatDateTime */.r)(str, this.dateFormat);
|
8145
|
+
}
|
8146
|
+
return str;
|
8147
|
+
},
|
8066
8148
|
// 展开
|
8067
8149
|
handleToggle(item) {
|
8068
8150
|
this.$set(item, 'toggle', !item.toggle);
|
@@ -8096,7 +8178,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
8096
8178
|
staticRenderFns,
|
8097
8179
|
false,
|
8098
8180
|
null,
|
8099
|
-
"
|
8181
|
+
"67acc247",
|
8100
8182
|
null
|
8101
8183
|
|
8102
8184
|
)
|
@@ -8557,6 +8639,57 @@ function getCabinetStatus(lockStatus, doorStatus) {
|
|
8557
8639
|
|
8558
8640
|
/***/ }),
|
8559
8641
|
|
8642
|
+
/***/ 2035:
|
8643
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
8644
|
+
|
8645
|
+
"use strict";
|
8646
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
8647
|
+
/* harmony export */ U: function() { return /* binding */ setDateFormat; },
|
8648
|
+
/* harmony export */ r: function() { return /* binding */ formatDateTime; }
|
8649
|
+
/* harmony export */ });
|
8650
|
+
/*
|
8651
|
+
* @Author: chenghuan.dong
|
8652
|
+
* @Date: 2025-01-17 11:04:41
|
8653
|
+
* @LastEditTime: 2025-01-17 13:49:15
|
8654
|
+
* @LastEditors: chenghuan.dong
|
8655
|
+
* @Description:
|
8656
|
+
* @FilePath: \nubomed-ui\packages\utils\date-util.js
|
8657
|
+
*/
|
8658
|
+
|
8659
|
+
/**
|
8660
|
+
* 设置日期格式
|
8661
|
+
* @param {String} value 日期格式
|
8662
|
+
*/
|
8663
|
+
function setDateFormat(value = 'YYYY/MM/dd') {
|
8664
|
+
value = value.replace(/D|Y/g, match => match.toLowerCase());
|
8665
|
+
localStorage.setItem('nb-date-format', value);
|
8666
|
+
}
|
8667
|
+
|
8668
|
+
/**
|
8669
|
+
* 格式化日期
|
8670
|
+
* @param {*} str 时间
|
8671
|
+
* @param {*} format 格式化规则
|
8672
|
+
* @returns
|
8673
|
+
*/
|
8674
|
+
function formatDateTime(str, format) {
|
8675
|
+
if (str) {
|
8676
|
+
const date = str.slice(0, 10);
|
8677
|
+
if (/^\d+$/.test(date)) {
|
8678
|
+
return str;
|
8679
|
+
}
|
8680
|
+
const dt = new Date(date);
|
8681
|
+
const year = dt.getFullYear();
|
8682
|
+
const month = dt.getMonth() + 1 < 10 ? `0${dt.getMonth() + 1}` : dt.getMonth() + 1;
|
8683
|
+
const day = dt.getDate() < 10 ? `0${dt.getDate()}` : dt.getDate();
|
8684
|
+
format = (format || localStorage.getItem('nb-date-format') || 'yyyy/MM/dd').replace(/D|Y/g, match => match.toLowerCase());
|
8685
|
+
return format.replace(/yyyy/, year).replace(/yy/, year.toString().slice(2)).replace(/MM/, month).replace(/dd/, day) + str.slice(10);
|
8686
|
+
} else {
|
8687
|
+
return str;
|
8688
|
+
}
|
8689
|
+
}
|
8690
|
+
|
8691
|
+
/***/ }),
|
8692
|
+
|
8560
8693
|
/***/ 2644:
|
8561
8694
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
8562
8695
|
|
@@ -10150,8 +10283,8 @@ webpackContext.id = 1603;
|
|
10150
10283
|
|
10151
10284
|
var map = {
|
10152
10285
|
"./NBBadge/index.js": 8730,
|
10153
|
-
"./NBBarcodeCard/index.js":
|
10154
|
-
"./NBBarcodeReviewDialog/index.js":
|
10286
|
+
"./NBBarcodeCard/index.js": 7188,
|
10287
|
+
"./NBBarcodeReviewDialog/index.js": 3956,
|
10155
10288
|
"./NBCabinetBall/index.js": 6523,
|
10156
10289
|
"./NBCabinetInventoryCarousel/index.js": 9087,
|
10157
10290
|
"./NBCabinetLockState/index.js": 8329,
|
@@ -10160,7 +10293,7 @@ var map = {
|
|
10160
10293
|
"./NBCheckboxGroup/index.js": 8252,
|
10161
10294
|
"./NBDialog/index.js": 7832,
|
10162
10295
|
"./NBEmpty/index.js": 7508,
|
10163
|
-
"./NBExpiryCard/index.js":
|
10296
|
+
"./NBExpiryCard/index.js": 4805,
|
10164
10297
|
"./NBExpiryIcon/index.js": 9655,
|
10165
10298
|
"./NBFullscreenDialog/index.js": 3343,
|
10166
10299
|
"./NBGridMenu/index.js": 7191,
|
@@ -10179,7 +10312,7 @@ var map = {
|
|
10179
10312
|
"./NBNoticeMarquee/index.js": 9174,
|
10180
10313
|
"./NBOutFooterDialog/index.js": 3117,
|
10181
10314
|
"./NBPagination/index.js": 1804,
|
10182
|
-
"./NBPatientCard/index.js":
|
10315
|
+
"./NBPatientCard/index.js": 9811,
|
10183
10316
|
"./NBPatientInfo/index.js": 8292,
|
10184
10317
|
"./NBProgress/index.js": 5204,
|
10185
10318
|
"./NBRadioGroup/index.js": 3024,
|
@@ -10192,7 +10325,7 @@ var map = {
|
|
10192
10325
|
"./NBSummaryBar/index.js": 1469,
|
10193
10326
|
"./NBTabs/index.js": 2825,
|
10194
10327
|
"./NBTag/index.js": 4174,
|
10195
|
-
"./NBToggleCate/index.js":
|
10328
|
+
"./NBToggleCate/index.js": 7118,
|
10196
10329
|
"./NBUVDialog/index.js": 9861,
|
10197
10330
|
"./NBVersionDialog/index.js": 4329
|
10198
10331
|
};
|
@@ -13053,8 +13186,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
13053
13186
|
|
13054
13187
|
// EXPORTS
|
13055
13188
|
__webpack_require__.d(__webpack_exports__, {
|
13189
|
+
NBTag: function() { return /* reexport */ NBTag["default"]; },
|
13056
13190
|
cabinetHelp: function() { return /* reexport */ cabinetHelp; },
|
13057
|
-
"default": function() { return /* binding */ entry_lib; }
|
13191
|
+
"default": function() { return /* binding */ entry_lib; },
|
13192
|
+
setDateFormat: function() { return /* reexport */ date_util/* setDateFormat */.U; }
|
13058
13193
|
});
|
13059
13194
|
|
13060
13195
|
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
@@ -13093,6 +13228,10 @@ function camelToKebab(camelCaseStr) {
|
|
13093
13228
|
var locale = __webpack_require__(6422);
|
13094
13229
|
// EXTERNAL MODULE: ./packages/helps/cabinet-help.js
|
13095
13230
|
var cabinet_help = __webpack_require__(1573);
|
13231
|
+
// EXTERNAL MODULE: ./packages/utils/date-util.js
|
13232
|
+
var date_util = __webpack_require__(2035);
|
13233
|
+
// EXTERNAL MODULE: ./packages/components/NBTag/index.js + 4 modules
|
13234
|
+
var NBTag = __webpack_require__(4174);
|
13096
13235
|
;// ./packages/index.js
|
13097
13236
|
|
13098
13237
|
|
@@ -13100,7 +13239,7 @@ var cabinet_help = __webpack_require__(1573);
|
|
13100
13239
|
/*
|
13101
13240
|
* @Author: chenghuan.dong
|
13102
13241
|
* @Date: 2024-11-11 13:46:54
|
13103
|
-
* @LastEditTime:
|
13242
|
+
* @LastEditTime: 2025-01-17 10:00:53
|
13104
13243
|
* @LastEditors: chenghuan.dong
|
13105
13244
|
* @Description: 主index.js导出全部组件
|
13106
13245
|
* @FilePath: \nubomed-ui\packages\index.js
|
@@ -13117,6 +13256,8 @@ const cabinetHelp = {
|
|
13117
13256
|
getCabinetStatus: cabinet_help/* getCabinetStatus */.rQ
|
13118
13257
|
};
|
13119
13258
|
|
13259
|
+
|
13260
|
+
|
13120
13261
|
// 获取所有组件
|
13121
13262
|
const components = [];
|
13122
13263
|
const req = __webpack_require__(3798);
|
@@ -13130,6 +13271,7 @@ req.keys().forEach(v => {
|
|
13130
13271
|
components.push(reqDefault);
|
13131
13272
|
}
|
13132
13273
|
});
|
13274
|
+
const notInstallNames = ['nb-mescroll-view']; // 不注册的组件
|
13133
13275
|
const install = function (Vue, options = {}) {
|
13134
13276
|
//设置多语言
|
13135
13277
|
locale/* default.use */.Ay.use(options.locale);
|
@@ -13139,24 +13281,10 @@ const install = function (Vue, options = {}) {
|
|
13139
13281
|
if (install.installed) return;
|
13140
13282
|
components.forEach(component => {
|
13141
13283
|
const name = 'nb-' + camelToKebab(component.name.slice(2));
|
13142
|
-
|
13143
|
-
// 'nb-mescroll-view'
|
13144
|
-
];
|
13145
|
-
// if (installNames.includes(name)) {
|
13146
|
-
// console.log('%c' + '√ ' + name, 'color: #00A572;')
|
13147
|
-
// } else {
|
13148
|
-
// console.log('? ' + name)
|
13149
|
-
// }
|
13150
|
-
|
13151
|
-
if (installNames.includes(name)) {
|
13284
|
+
if (!notInstallNames.includes(name)) {
|
13152
13285
|
Vue.component('nb-' + camelToKebab(component.name.slice(2)), component);
|
13153
13286
|
}
|
13154
13287
|
});
|
13155
|
-
|
13156
|
-
// console.log('nbNotify', nbNotify)
|
13157
|
-
|
13158
|
-
// Vue.prototype.$nbNotify = nbNotify
|
13159
|
-
// Vue.prototype.$nbMessage = nbMessage
|
13160
13288
|
};
|
13161
13289
|
const i18n = locale/* default.i18n */.Ay.i18n;
|
13162
13290
|
/* harmony default export */ var packages_0 = ({
|
@@ -13166,6 +13294,8 @@ const i18n = locale/* default.i18n */.Ay.i18n;
|
|
13166
13294
|
i18n
|
13167
13295
|
});
|
13168
13296
|
|
13297
|
+
// 按需引入
|
13298
|
+
|
13169
13299
|
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
13170
13300
|
|
13171
13301
|
|
@@ -13175,5 +13305,4 @@ const i18n = locale/* default.i18n */.Ay.i18n;
|
|
13175
13305
|
}();
|
13176
13306
|
module.exports = __webpack_exports__;
|
13177
13307
|
/******/ })()
|
13178
|
-
;
|
13179
|
-
//# sourceMappingURL=nubomed-ui.common.js.map
|
13308
|
+
;
|