nubomed-ui 2.0.54 → 2.0.55

Sign up to get free protection for your applications and to get access to all the features.
package/nubomed-ui.umd.js CHANGED
@@ -529,7 +529,7 @@ src.install = function (Vue) {
529
529
 
530
530
  /***/ }),
531
531
 
532
- /***/ 3148:
532
+ /***/ 9178:
533
533
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
534
534
 
535
535
  "use strict";
@@ -541,8 +541,8 @@ __webpack_require__.d(__webpack_exports__, {
541
541
  "default": function() { return /* binding */ NBCabinetInventoryCarousel; }
542
542
  });
543
543
 
544
- ;// ./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/NBCabinetInventoryCarousel/src/index.vue?vue&type=template&id=fb7eeeb0&scoped=true
545
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-cabinet-inventory-carousel",class:[("nb-cabinet-inventory-carousel--" + _vm.locale)]},[(_vm.totalPage > 1)?_c('span',{staticClass:"cabinet__arrow",class:_vm.disableLeft ? 'is-disable' : '',on:{"click":function($event){$event.stopPropagation();return _vm.handleClickArrow('prev')}}},[_c('nb-icon',{staticClass:"cabinet__arrow--left",attrs:{"icon":"arrow-left"}})],1):_vm._e(),_c('el-carousel',{ref:"refCarousel",attrs:{"interval":0,"arrow":"never","trigger":"click","autoplay":false,"indicator-position":"none"},on:{"change":_vm.handleChange}},_vm._l((_vm.showList),function(page){return _c('el-carousel-item',{key:page.page},[_c('ul',{staticClass:"cabinet-list",class:("cabinet-list--" + (page.list.length))},_vm._l((page.list),function(item,index){return _c('li',{key:index,staticClass:"cabinet-item",on:{"click":function($event){$event.stopPropagation();return _vm.handleGoDetail(item)}}},[_c('div',{staticClass:"cabinet__img"},[_c('img',{attrs:{"src":("" + (item.terModelPic))}})]),(_vm.$slots.default)?_vm._t("default",null,{"row":item}):[_c('div',{staticClass:"cabinet__right"},[_c('div',{staticClass:"cabinet__right__top"},[_c('div',{staticClass:"cabinet__name"},[_vm._v(_vm._s(item.sTerDesc))]),_c('div',{staticClass:"cabinet__date"},[_vm._v("03/15 08:49 盘点")])]),_c('div',{staticClass:"cabinet__loss"},[_c('span',[_c('i',[_vm._v("盘盈")]),_c('span',{staticClass:"inventory-surplus"},[_vm._v("236")])]),_c('span',[_c('i',[_vm._v("盘亏")]),_c('span',{staticClass:"inventory-loss"},[_vm._v("888")])])]),_c('div',{staticClass:"cabinet__account"},[_c('span',[_c('i',[_vm._v("账盘")]),_c('strong',[_vm._v("236")])]),_c('span',[_c('i',[_vm._v("机盘")]),_c('strong',[_vm._v("888")])])])]),_c('el-button',{attrs:{"size":"mini","type":"primary","plain":""},on:{"click":function($event){$event.stopPropagation();return _vm.handleClickInventory(item)}}},[_vm._v("盘点")]),(item.state === 1)?_c('div',{staticClass:"cabinet__loading"},[_vm._v("盘点中...")]):_vm._e()]],2)}),0)])}),1),(_vm.totalPage > 1)?_c('span',{staticClass:"cabinet__arrow",class:_vm.disableRight ? 'is-disable' : '',on:{"click":function($event){$event.stopPropagation();return _vm.handleClickArrow('next')}}},[_c('nb-icon',{staticClass:"cabinet__arrow--right",attrs:{"icon":"arrow-right"}})],1):_vm._e()],1)}
544
+ ;// ./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/NBCabinetInventoryCarousel/src/index.vue?vue&type=template&id=ed854d94&scoped=true
545
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-cabinet-inventory-carousel",class:[("nb-cabinet-inventory-carousel--" + _vm.locale)]},[(_vm.totalPage > 1)?_c('span',{staticClass:"cabinet__arrow",class:_vm.disableLeft ? 'is-disable' : '',on:{"click":function($event){$event.stopPropagation();return _vm.handleClickArrow('prev')}}},[_c('nb-icon',{staticClass:"cabinet__arrow--left",attrs:{"icon":"arrow-left"}})],1):_vm._e(),_c('el-carousel',{ref:"refCarousel",attrs:{"interval":0,"arrow":"never","trigger":"click","autoplay":false,"indicator-position":"none"},on:{"change":_vm.handleChange}},_vm._l((_vm.showList),function(page){return _c('el-carousel-item',{key:page.page},[_c('ul',{staticClass:"cabinet-list",class:("cabinet-list--" + (page.list.length))},_vm._l((page.list),function(item,index){return _c('li',{key:index,staticClass:"cabinet-item",on:{"click":function($event){$event.stopPropagation();return _vm.handleGoDetail(item)}}},[_c('div',{staticClass:"cabinet__img"},[_c('img',{attrs:{"src":("" + (item.terModelPic))}})]),(_vm.$slots.default)?_vm._t("default",null,{"row":item}):[_c('div',{staticClass:"cabinet__right"},[_c('div',{staticClass:"cabinet__right__top"},[_c('div',{staticClass:"cabinet__name"},[_vm._v(_vm._s(item.sTerDesc))]),(item.dInvenTime)?_c('div',{staticClass:"cabinet__date"},[_vm._v(_vm._s(item.dInvenTime)+" 盘点")]):_vm._e()]),_c('div',{staticClass:"cabinet__loss"},[_c('span',[_c('i',[_vm._v("盘盈")]),_c('span',{staticClass:"color-inv-surplus"},[_vm._v(_vm._s(_vm._f("filterCount")(item.profit)))])]),_c('span',[_c('i',[_vm._v("盘亏")]),_c('span',{staticClass:"color-inv-loss"},[_vm._v(_vm._s(_vm._f("filterCount")(item.loss)))])])]),_c('div',{staticClass:"cabinet__account"},[_c('span',[_c('i',[_vm._v("账盘")]),_c('strong',[_vm._v(_vm._s(_vm._f("filterCount")(item.iAccount)))])]),_c('span',[_c('i',[_vm._v("机盘")]),_c('strong',[_vm._v(_vm._s(_vm._f("filterCount")(item.iActual)))])])])]),_c('el-button',{attrs:{"size":"mini","type":"primary","plain":""},on:{"click":function($event){$event.stopPropagation();return _vm.handleClickInventory(item)}}},[_vm._v("盘点")]),(item.state === 1)?_c('div',{staticClass:"cabinet__loading"},[_vm._v("盘点中...")]):_vm._e()]],2)}),0)])}),1),(_vm.totalPage > 1)?_c('span',{staticClass:"cabinet__arrow",class:_vm.disableRight ? 'is-disable' : '',on:{"click":function($event){$event.stopPropagation();return _vm.handleClickArrow('next')}}},[_c('nb-icon',{staticClass:"cabinet__arrow--right",attrs:{"icon":"arrow-right"}})],1):_vm._e()],1)}
546
546
  var staticRenderFns = []
547
547
 
548
548
 
@@ -659,6 +659,14 @@ var es_array_push = __webpack_require__(4114);
659
659
  return this.index === this.totalPage - 1 || this.totalPage === 1;
660
660
  }
661
661
  },
662
+ filters: {
663
+ filterCount(val) {
664
+ if (typeof val === 'undefined' || val === null) {
665
+ return '- -';
666
+ }
667
+ return val;
668
+ }
669
+ },
662
670
  methods: {
663
671
  // 点击箭头
664
672
  handleClickArrow(type) {
@@ -705,7 +713,7 @@ var component = (0,componentNormalizer/* default */.A)(
705
713
  staticRenderFns,
706
714
  false,
707
715
  null,
708
- "fb7eeeb0",
716
+ "ed854d94",
709
717
  null
710
718
 
711
719
  )
@@ -3602,7 +3610,7 @@ webpackContext.id = 1603;
3602
3610
 
3603
3611
  var map = {
3604
3612
  "./NBBadge/index.js": 3134,
3605
- "./NBCabinetInventoryCarousel/index.js": 3148,
3613
+ "./NBCabinetInventoryCarousel/index.js": 9178,
3606
3614
  "./NBCheckboxGroup/index.js": 2129,
3607
3615
  "./NBDialog/index.js": 4066,
3608
3616
  "./NBEmpty/index.js": 2846,