nubomed-ui 2.0.223 → 2.0.224

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.
@@ -19984,7 +19984,7 @@ src.install = function (Vue) {
19984
19984
 
19985
19985
  /***/ }),
19986
19986
 
19987
- /***/ 2560:
19987
+ /***/ 6866:
19988
19988
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
19989
19989
 
19990
19990
  "use strict";
@@ -19996,8 +19996,8 @@ __webpack_require__.d(__webpack_exports__, {
19996
19996
  "default": function() { return /* binding */ NBNameToggleCard; }
19997
19997
  });
19998
19998
 
19999
- ;// ./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/NBNameToggleCard/src/index.vue?vue&type=template&id=f444acc6&scoped=true
20000
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"refNBNameToggleCard",staticClass:"nb-name-toggle-card",class:_vm.getCardClassList},[_c('span',{staticClass:"cate__toggle"},[(_vm.item.details.length && _vm.showToggle)?_c('nb-icon',{attrs:{"icon":_vm.toggle ? 'caret-down' : 'caret-right'},on:{"click":function($event){return _vm.handleToggle(_vm.item)}}}):_vm._e()],1),_c('div',{staticClass:"nb-name-toggle-card__right"},[_c('div',{staticClass:"card__name--row",on:{"click":function($event){$event.stopPropagation();return _vm.handleToggle(_vm.item)}}},[(_vm.showCheckbox)?_c('el-checkbox',{staticClass:"card__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('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 === 0)?_c('nb-tag',{attrs:{"type":"danger"}},[_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",on:{"click":function($event){$event.stopPropagation();return _vm.handleToggle(_vm.item)}}},[_c('div',{staticClass:"card__row-left",class:_vm.specRowClass},[_c('div',{staticClass:"card__attr card__attr--spec"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.spec_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.showManufacturer)?_c('div',{staticClass:"card__attr card__attr--manufacturer"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.manufacturer'))+":")]),_c('span',[_vm._v(_vm._s(_vm.item.sManufacturerName || '- -'))])]):_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.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__attr card__attr--count"},[_vm._t("default")],2),(_vm.statLabel || _vm.statValue)?_c('span',{staticClass:"card__attr card__attr--count"},[_c('i',[_vm._v(_vm._s(_vm.statLabel))]),_c('strong',{class:_vm.statValueClass || ''},[_vm._v(_vm._s(_vm.getStatValue))])]):_vm._e()]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.toggle && _vm.showToggle),expression:"toggle && showToggle"}],staticClass:"card__details"},[_vm._t("detail",[_c('el-table',{staticClass:"nb-card-table",attrs:{"auto-right":"","data":_vm.item.details,"row-class-name":_vm.tableRowClassName}},[(_vm.showExpiry)?_c('el-table-column',{attrs:{"class-name":"is-tag","align":"right","width":"240"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('nb-expiry-icon',{attrs:{"value":scope.row.expiryState}})]}}],null,false,3613358482)}):_vm._e(),_vm._t("detail-left"),_c('el-table-column',{attrs:{"prop":"sBarcode","label":_vm.t('nb.barcode'),"width":"420"}}),_c('el-table-column',{attrs:{"prop":"sBatch","label":_vm.t('nb.batch'),"width":"270"}}),_c('el-table-column',{attrs:{"prop":"dExpiry","label":_vm.t('nb.expiry'),"width":"192"}}),_vm._t("detail-right")],2)],{"item":_vm.item})],2)])])}
19999
+ ;// ./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/NBNameToggleCard/src/index.vue?vue&type=template&id=73c6415a&scoped=true
20000
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"refNBNameToggleCard",staticClass:"nb-name-toggle-card",class:_vm.getCardClassList},[_c('span',{staticClass:"cate__toggle"},[(_vm.item.details.length && _vm.showToggle)?_c('nb-icon',{attrs:{"icon":_vm.toggle ? 'caret-down' : 'caret-right'},on:{"click":function($event){return _vm.handleToggle(_vm.item)}}}):_vm._e()],1),_c('div',{staticClass:"nb-name-toggle-card__right"},[_c('div',{staticClass:"card__name--row",on:{"click":function($event){$event.stopPropagation();return _vm.handleToggle(_vm.item)}}},[(_vm.showCheckbox)?_c('el-checkbox',{staticClass:"card__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('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 === 0)?_c('nb-tag',{attrs:{"type":"danger"}},[_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",on:{"click":function($event){$event.stopPropagation();return _vm.handleToggle(_vm.item)}}},[_c('div',{staticClass:"card__row-left",class:_vm.specRowClass},[_c('div',{staticClass:"card__attr card__attr--spec"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.spec_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.showManufacturer)?_c('div',{staticClass:"card__attr card__attr--manufacturer"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.manufacturer'))+":")]),_c('span',[_vm._v(_vm._s(_vm.item.sManufacturerName || '- -'))])]):_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 || _vm.item.sTerName || '- -'))])],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.item.sTerName || '- -'))])])]:_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")],2),_c('div',{staticClass:"card__attr card__attr--count"},[_vm._t("default")],2),(_vm.statLabel || _vm.statValue)?_c('span',{staticClass:"card__attr card__attr--count"},[_c('i',[_vm._v(_vm._s(_vm.statLabel))]),_c('strong',{class:_vm.statValueClass || ''},[_vm._v(_vm._s(_vm.getStatValue))])]):_vm._e()]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.toggle && _vm.showToggle),expression:"toggle && showToggle"}],staticClass:"card__details"},[_vm._t("detail",[_c('el-table',{staticClass:"nb-card-table",attrs:{"auto-right":"","data":_vm.item.details,"row-class-name":_vm.tableRowClassName}},[(_vm.showExpiry)?_c('el-table-column',{attrs:{"class-name":"is-tag","align":"right","width":"240"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('nb-expiry-icon',{attrs:{"value":scope.row.expiryState}})]}}],null,false,3613358482)}):_vm._e(),_vm._t("detail-left"),_c('el-table-column',{attrs:{"prop":"sBarcode","label":_vm.t('nb.barcode'),"width":"420"}}),_c('el-table-column',{attrs:{"prop":"sBatch","label":_vm.t('nb.batch'),"width":"270"}}),_c('el-table-column',{attrs:{"prop":"dExpiry","label":_vm.t('nb.expiry'),"width":"192"}}),_vm._t("detail-right")],2)],{"item":_vm.item})],2)])])}
20001
20001
  var staticRenderFns = []
20002
20002
 
20003
20003
 
@@ -20206,6 +20206,12 @@ var mixins = __webpack_require__(5289);
20206
20206
  toggle: false // 是否展开收起
20207
20207
  };
20208
20208
  },
20209
+ filters: {
20210
+ formatCount(count) {
20211
+ if (typeof count === 'undefined' || count === null) return '- -';
20212
+ return count;
20213
+ }
20214
+ },
20209
20215
  computed: {
20210
20216
  // 卡片样式(异常优先于近效期)
20211
20217
  getCardClassList() {
@@ -20247,7 +20253,7 @@ var mixins = __webpack_require__(5289);
20247
20253
  },
20248
20254
  // 右侧数量统计
20249
20255
  getStatValue() {
20250
- if (this.statValue) {
20256
+ if (this.statValue !== null && this.statValue !== undefined) {
20251
20257
  if (Array.isArray(this.statValue)) {
20252
20258
  return this.statValue.map(item => item | this.formatCount).join('/');
20253
20259
  }
@@ -20304,7 +20310,7 @@ var component = (0,componentNormalizer/* default */.A)(
20304
20310
  staticRenderFns,
20305
20311
  false,
20306
20312
  null,
20307
- "f444acc6",
20313
+ "73c6415a",
20308
20314
  null
20309
20315
 
20310
20316
  )
@@ -23978,7 +23984,7 @@ src.install = function (Vue) {
23978
23984
 
23979
23985
  /***/ }),
23980
23986
 
23981
- /***/ 4394:
23987
+ /***/ 6047:
23982
23988
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
23983
23989
 
23984
23990
  "use strict";
@@ -23990,7 +23996,7 @@ __webpack_require__.d(__webpack_exports__, {
23990
23996
  "default": function() { return /* binding */ NBToggleCate; }
23991
23997
  });
23992
23998
 
23993
- ;// ./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/NBToggleCate/src/index.vue?vue&type=template&id=dea7dbfe&scoped=true
23999
+ ;// ./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/NBToggleCate/src/index.vue?vue&type=template&id=b34c8e28&scoped=true
23994
24000
  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",[(_vm.statLabel || _vm.statValue)?_c('span',{staticClass:"cate__count"},[_c('i',[_vm._v(_vm._s(_vm.statLabel))]),_c('strong',{class:_vm.statValueClass || ''},[_vm._v(_vm._s(_vm.getStatValue))])]):_vm._e()])],2)}
23995
24001
  var staticRenderFns = []
23996
24002
 
@@ -24140,7 +24146,7 @@ var date_util = __webpack_require__(2035);
24140
24146
  },
24141
24147
  // 右侧数量统计
24142
24148
  getStatValue() {
24143
- if (this.statValue) {
24149
+ if (this.statValue !== null && this.statValue !== undefined) {
24144
24150
  if (Array.isArray(this.statValue)) {
24145
24151
  return this.statValue.map(item => item | this.formatCount).join('/');
24146
24152
  }
@@ -24197,7 +24203,7 @@ var component = (0,componentNormalizer/* default */.A)(
24197
24203
  staticRenderFns,
24198
24204
  false,
24199
24205
  null,
24200
- "dea7dbfe",
24206
+ "b34c8e28",
24201
24207
  null
24202
24208
 
24203
24209
  )
@@ -26316,7 +26322,7 @@ var map = {
26316
26322
  "./NBMenusGrid/index.js": 9727,
26317
26323
  "./NBMessageDialog/index.js": 8372,
26318
26324
  "./NBNameSpecCard/index.js": 803,
26319
- "./NBNameToggleCard/index.js": 2560,
26325
+ "./NBNameToggleCard/index.js": 6866,
26320
26326
  "./NBNoticeMarquee/index.js": 174,
26321
26327
  "./NBOutFooterDialog/index.js": 5704,
26322
26328
  "./NBPagination/index.js": 2372,
@@ -26340,7 +26346,7 @@ var map = {
26340
26346
  "./NBTerLayerGuide/index.js": 8202,
26341
26347
  "./NBTerLayout/index.js": 7489,
26342
26348
  "./NBTerList/index.js": 9454,
26343
- "./NBToggleCate/index.js": 4394,
26349
+ "./NBToggleCate/index.js": 6047,
26344
26350
  "./NBVersionDialog/index.js": 6161
26345
26351
  };
26346
26352
 
package/nubomed-ui.umd.js CHANGED
@@ -19994,7 +19994,7 @@ src.install = function (Vue) {
19994
19994
 
19995
19995
  /***/ }),
19996
19996
 
19997
- /***/ 9543:
19997
+ /***/ 8351:
19998
19998
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
19999
19999
 
20000
20000
  "use strict";
@@ -20006,8 +20006,8 @@ __webpack_require__.d(__webpack_exports__, {
20006
20006
  "default": function() { return /* binding */ NBNameToggleCard; }
20007
20007
  });
20008
20008
 
20009
- ;// ./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/NBNameToggleCard/src/index.vue?vue&type=template&id=f444acc6&scoped=true
20010
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"refNBNameToggleCard",staticClass:"nb-name-toggle-card",class:_vm.getCardClassList},[_c('span',{staticClass:"cate__toggle"},[(_vm.item.details.length && _vm.showToggle)?_c('nb-icon',{attrs:{"icon":_vm.toggle ? 'caret-down' : 'caret-right'},on:{"click":function($event){return _vm.handleToggle(_vm.item)}}}):_vm._e()],1),_c('div',{staticClass:"nb-name-toggle-card__right"},[_c('div',{staticClass:"card__name--row",on:{"click":function($event){$event.stopPropagation();return _vm.handleToggle(_vm.item)}}},[(_vm.showCheckbox)?_c('el-checkbox',{staticClass:"card__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('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 === 0)?_c('nb-tag',{attrs:{"type":"danger"}},[_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",on:{"click":function($event){$event.stopPropagation();return _vm.handleToggle(_vm.item)}}},[_c('div',{staticClass:"card__row-left",class:_vm.specRowClass},[_c('div',{staticClass:"card__attr card__attr--spec"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.spec_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.showManufacturer)?_c('div',{staticClass:"card__attr card__attr--manufacturer"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.manufacturer'))+":")]),_c('span',[_vm._v(_vm._s(_vm.item.sManufacturerName || '- -'))])]):_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.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__attr card__attr--count"},[_vm._t("default")],2),(_vm.statLabel || _vm.statValue)?_c('span',{staticClass:"card__attr card__attr--count"},[_c('i',[_vm._v(_vm._s(_vm.statLabel))]),_c('strong',{class:_vm.statValueClass || ''},[_vm._v(_vm._s(_vm.getStatValue))])]):_vm._e()]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.toggle && _vm.showToggle),expression:"toggle && showToggle"}],staticClass:"card__details"},[_vm._t("detail",[_c('el-table',{staticClass:"nb-card-table",attrs:{"auto-right":"","data":_vm.item.details,"row-class-name":_vm.tableRowClassName}},[(_vm.showExpiry)?_c('el-table-column',{attrs:{"class-name":"is-tag","align":"right","width":"240"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('nb-expiry-icon',{attrs:{"value":scope.row.expiryState}})]}}],null,false,3613358482)}):_vm._e(),_vm._t("detail-left"),_c('el-table-column',{attrs:{"prop":"sBarcode","label":_vm.t('nb.barcode'),"width":"420"}}),_c('el-table-column',{attrs:{"prop":"sBatch","label":_vm.t('nb.batch'),"width":"270"}}),_c('el-table-column',{attrs:{"prop":"dExpiry","label":_vm.t('nb.expiry'),"width":"192"}}),_vm._t("detail-right")],2)],{"item":_vm.item})],2)])])}
20009
+ ;// ./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/NBNameToggleCard/src/index.vue?vue&type=template&id=73c6415a&scoped=true
20010
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"refNBNameToggleCard",staticClass:"nb-name-toggle-card",class:_vm.getCardClassList},[_c('span',{staticClass:"cate__toggle"},[(_vm.item.details.length && _vm.showToggle)?_c('nb-icon',{attrs:{"icon":_vm.toggle ? 'caret-down' : 'caret-right'},on:{"click":function($event){return _vm.handleToggle(_vm.item)}}}):_vm._e()],1),_c('div',{staticClass:"nb-name-toggle-card__right"},[_c('div',{staticClass:"card__name--row",on:{"click":function($event){$event.stopPropagation();return _vm.handleToggle(_vm.item)}}},[(_vm.showCheckbox)?_c('el-checkbox',{staticClass:"card__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('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 === 0)?_c('nb-tag',{attrs:{"type":"danger"}},[_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",on:{"click":function($event){$event.stopPropagation();return _vm.handleToggle(_vm.item)}}},[_c('div',{staticClass:"card__row-left",class:_vm.specRowClass},[_c('div',{staticClass:"card__attr card__attr--spec"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.spec_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.showManufacturer)?_c('div',{staticClass:"card__attr card__attr--manufacturer"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.manufacturer'))+":")]),_c('span',[_vm._v(_vm._s(_vm.item.sManufacturerName || '- -'))])]):_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 || _vm.item.sTerName || '- -'))])],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.item.sTerName || '- -'))])])]:_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")],2),_c('div',{staticClass:"card__attr card__attr--count"},[_vm._t("default")],2),(_vm.statLabel || _vm.statValue)?_c('span',{staticClass:"card__attr card__attr--count"},[_c('i',[_vm._v(_vm._s(_vm.statLabel))]),_c('strong',{class:_vm.statValueClass || ''},[_vm._v(_vm._s(_vm.getStatValue))])]):_vm._e()]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.toggle && _vm.showToggle),expression:"toggle && showToggle"}],staticClass:"card__details"},[_vm._t("detail",[_c('el-table',{staticClass:"nb-card-table",attrs:{"auto-right":"","data":_vm.item.details,"row-class-name":_vm.tableRowClassName}},[(_vm.showExpiry)?_c('el-table-column',{attrs:{"class-name":"is-tag","align":"right","width":"240"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('nb-expiry-icon',{attrs:{"value":scope.row.expiryState}})]}}],null,false,3613358482)}):_vm._e(),_vm._t("detail-left"),_c('el-table-column',{attrs:{"prop":"sBarcode","label":_vm.t('nb.barcode'),"width":"420"}}),_c('el-table-column',{attrs:{"prop":"sBatch","label":_vm.t('nb.batch'),"width":"270"}}),_c('el-table-column',{attrs:{"prop":"dExpiry","label":_vm.t('nb.expiry'),"width":"192"}}),_vm._t("detail-right")],2)],{"item":_vm.item})],2)])])}
20011
20011
  var staticRenderFns = []
20012
20012
 
20013
20013
 
@@ -20216,6 +20216,12 @@ var mixins = __webpack_require__(869);
20216
20216
  toggle: false // 是否展开收起
20217
20217
  };
20218
20218
  },
20219
+ filters: {
20220
+ formatCount(count) {
20221
+ if (typeof count === 'undefined' || count === null) return '- -';
20222
+ return count;
20223
+ }
20224
+ },
20219
20225
  computed: {
20220
20226
  // 卡片样式(异常优先于近效期)
20221
20227
  getCardClassList() {
@@ -20257,7 +20263,7 @@ var mixins = __webpack_require__(869);
20257
20263
  },
20258
20264
  // 右侧数量统计
20259
20265
  getStatValue() {
20260
- if (this.statValue) {
20266
+ if (this.statValue !== null && this.statValue !== undefined) {
20261
20267
  if (Array.isArray(this.statValue)) {
20262
20268
  return this.statValue.map(item => item | this.formatCount).join('/');
20263
20269
  }
@@ -20314,7 +20320,7 @@ var component = (0,componentNormalizer/* default */.A)(
20314
20320
  staticRenderFns,
20315
20321
  false,
20316
20322
  null,
20317
- "f444acc6",
20323
+ "73c6415a",
20318
20324
  null
20319
20325
 
20320
20326
  )
@@ -23988,7 +23994,7 @@ src.install = function (Vue) {
23988
23994
 
23989
23995
  /***/ }),
23990
23996
 
23991
- /***/ 2992:
23997
+ /***/ 2000:
23992
23998
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
23993
23999
 
23994
24000
  "use strict";
@@ -24000,7 +24006,7 @@ __webpack_require__.d(__webpack_exports__, {
24000
24006
  "default": function() { return /* binding */ NBToggleCate; }
24001
24007
  });
24002
24008
 
24003
- ;// ./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/NBToggleCate/src/index.vue?vue&type=template&id=dea7dbfe&scoped=true
24009
+ ;// ./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/NBToggleCate/src/index.vue?vue&type=template&id=b34c8e28&scoped=true
24004
24010
  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",[(_vm.statLabel || _vm.statValue)?_c('span',{staticClass:"cate__count"},[_c('i',[_vm._v(_vm._s(_vm.statLabel))]),_c('strong',{class:_vm.statValueClass || ''},[_vm._v(_vm._s(_vm.getStatValue))])]):_vm._e()])],2)}
24005
24011
  var staticRenderFns = []
24006
24012
 
@@ -24150,7 +24156,7 @@ var date_util = __webpack_require__(2127);
24150
24156
  },
24151
24157
  // 右侧数量统计
24152
24158
  getStatValue() {
24153
- if (this.statValue) {
24159
+ if (this.statValue !== null && this.statValue !== undefined) {
24154
24160
  if (Array.isArray(this.statValue)) {
24155
24161
  return this.statValue.map(item => item | this.formatCount).join('/');
24156
24162
  }
@@ -24207,7 +24213,7 @@ var component = (0,componentNormalizer/* default */.A)(
24207
24213
  staticRenderFns,
24208
24214
  false,
24209
24215
  null,
24210
- "dea7dbfe",
24216
+ "b34c8e28",
24211
24217
  null
24212
24218
 
24213
24219
  )
@@ -26326,7 +26332,7 @@ var map = {
26326
26332
  "./NBMenusGrid/index.js": 2171,
26327
26333
  "./NBMessageDialog/index.js": 2133,
26328
26334
  "./NBNameSpecCard/index.js": 7114,
26329
- "./NBNameToggleCard/index.js": 9543,
26335
+ "./NBNameToggleCard/index.js": 8351,
26330
26336
  "./NBNoticeMarquee/index.js": 7108,
26331
26337
  "./NBOutFooterDialog/index.js": 7056,
26332
26338
  "./NBPagination/index.js": 8863,
@@ -26350,7 +26356,7 @@ var map = {
26350
26356
  "./NBTerLayerGuide/index.js": 6337,
26351
26357
  "./NBTerLayout/index.js": 1982,
26352
26358
  "./NBTerList/index.js": 7047,
26353
- "./NBToggleCate/index.js": 2992,
26359
+ "./NBToggleCate/index.js": 2000,
26354
26360
  "./NBVersionDialog/index.js": 3796
26355
26361
  };
26356
26362