pages-stock-ruku_record.5ff21100.js 22 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-stock-ruku_record"],{"0989":function(t,e,a){"use strict";var r=a("2efb"),i=a.n(r);i.a},"1de5":function(t,e,a){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"208c":function(t,e,a){t.exports=a.p+"static/img/arrow.ad35c373.png"},"2efb":function(t,e,a){var r=a("b050");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var i=a("4f06").default;i("db95f5fc",r,!0,{sourceMap:!1,shadowMode:!1})},"4ec92":function(t,e,a){"use strict";var r=a("6d61"),i=a("6566");t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},6566:function(t,e,a){"use strict";var r=a("9bf2").f,i=a("7c73"),n=a("e2cc"),o=a("0366"),d=a("19aa"),s=a("2266"),c=a("7dd0"),l=a("2626"),f=a("83ab"),u=a("f183").fastKey,g=a("69f3"),v=g.set,p=g.getterFor;t.exports={getConstructor:function(t,e,a,c){var l=t((function(t,r){d(t,l,e),v(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),f||(t.size=0),void 0!=r&&s(r,t[c],t,a)})),g=p(e),h=function(t,e,a){var r,i,n=g(t),o=m(t,e);return o?o.value=a:(n.last=o={index:i=u(e,!0),key:e,value:a,previous:r=n.last,next:void 0,removed:!1},n.first||(n.first=o),r&&(r.next=o),f?n.size++:t.size++,"F"!==i&&(n.index[i]=o)),t},m=function(t,e){var a,r=g(t),i=u(e);if("F"!==i)return r.index[i];for(a=r.first;a;a=a.next)if(a.key==e)return a};return n(l.prototype,{clear:function(){var t=this,e=g(t),a=e.index,r=e.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete a[r.index],r=r.next;e.first=e.last=void 0,f?e.size=0:t.size=0},delete:function(t){var e=this,a=g(e),r=m(e,t);if(r){var i=r.next,n=r.previous;delete a.index[r.index],r.removed=!0,n&&(n.next=i),i&&(i.previous=n),a.first==r&&(a.first=i),a.last==r&&(a.last=n),f?a.size--:e.size--}return!!r},forEach:function(t){var e,a=g(this),r=o(t,arguments.length>1?arguments[1]:void 0,3);while(e=e?e.next:a.first){r(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!m(this,t)}}),n(l.prototype,a?{get:function(t){var e=m(this,t);return e&&e.value},set:function(t,e){return h(this,0===t?0:t,e)}}:{add:function(t){return h(this,t=0===t?0:t,t)}}),f&&r(l.prototype,"size",{get:function(){return g(this).size}}),l},setStrong:function(t,e,a){var r=e+" Iterator",i=p(e),n=p(r);c(t,e,(function(t,e){v(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){var t=n(this),e=t.kind,a=t.last;while(a&&a.removed)a=a.previous;return t.target&&(t.last=a=a?a.next:t.state.first)?"keys"==e?{value:a.key,done:!1}:"values"==e?{value:a.value,done:!1}:{value:[a.key,a.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),a?"entries":"values",!a,!0),l(e)}}},b050:function(t,e,a){var r=a("24fb"),i=a("1de5"),n=a("208c");e=r(!1);var o=i(n);e.push([t.i,'@charset "UTF-8";.app-item[data-v-01d3fda0]{display:flex;align-items:center;justify-content:center;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-01d3fda0]{margin-top:%?10?%}.app-item uni-input[data-v-01d3fda0], .app-item uni-picker[data-v-01d3fda0], .app-item uni-textarea[data-v-01d3fda0]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-01d3fda0]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-01d3fda0]{width:25%;height:50%;float:left;display:flex;align-items:center;flex-direction:column}.kingkong uni-navigator uni-image[data-v-01d3fda0]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-01d3fda0]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-01d3fda0]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-01d3fda0]{color:#fff;background:#f76454}.small-btn[data-v-01d3fda0]{display:flex;align-items:center;justify-content:center;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-01d3fda0]{color:#999;border-color:#999}.login-btn[data-v-01d3fda0]{flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-01d3fda0]{display:flex;align-items:center;justify-content:center;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-01d3fda0]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-01d3fda0]{margin-right:%?20?%}.border-right[data-v-01d3fda0]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-01d3fda0]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-01d3fda0]{margin-right:%?6?%}.position-center[data-v-01d3fda0]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-01d3fda0]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-01d3fda0]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-01d3fda0]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.data-card .data-card-text .text[data-v-01d3fda0]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-01d3fda0]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-01d3fda0]{color:#f76454}.swiper-nav[data-v-01d3fda0]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-01d3fda0]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%}.swiper-nav .item.active[data-v-01d3fda0]{color:#f76454}.swiper-nav .moveBar[data-v-01d3fda0]{display:flex;align-items:center;justify-content:center;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-01d3fda0]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-01d3fda0]{flex:1;width:100%}.swiper-area uni-swiper[data-v-01d3fda0]{width:100%;height:100%}.article-header[data-v-01d3fda0]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?120?%;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-01d3fda0]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-01d3fda0]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%;margin-left:%?20?%;justify-content:flex-start}.article-header .name .identity[data-v-01d3fda0]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-01d3fda0]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-01d3fda0]{color:#f76454}.article-footer[data-v-01d3fda0]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-01d3fda0]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-01d3fda0]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-01d3fda0]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-01d3fda0]{color:#f76454}\r\n/*主题色及按钮渐变背景*/\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-01d3fda0]{width:100%}.recordContainer[data-v-01d3fda0]{background-color:#f9f9fb;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between}.recordContainer .nav[data-v-01d3fda0]{width:100%;height:%?104?%;padding:0 %?60?%;box-sizing:border-box;background-color:#fff;display:flex;align-items:center;justify-content:space-between}.recordContainer .nav-item[data-v-01d3fda0]{position:relative;color:#333;font-size:%?32?%;line-height:%?44?%}.recordContainer .nav-item.active[data-v-01d3fda0]{color:#ea4a41!important}.recordContainer .nav-item.active[data-v-01d3fda0]::after{content:"";display:block;position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:%?30?%;height:%?4?%;border-radius:%?4?%;background:linear-gradient(97deg,#f97c55,#f44545)}.recordContainer .record-body[data-v-01d3fda0]{width:100%;padding:%?30?%;box-sizing:border-box}.recordContainer .search[data-v-01d3fda0]{width:100%;display:flex;align-items:center;justify-content:space-between}.recordContainer .search .time[data-v-01d3fda0]{width:%?468?%;height:%?68?%;border-radius:%?68?%;background-color:#fff;padding:0 %?34?%;box-sizing:border-box;line-height:%?68?%;font-size:%?28?%;display:flex;align-items:center;justify-content:space-between}.recordContainer .search .time .value[data-v-01d3fda0]{color:#999;letter-spacing:1px}.recordContainer .search .time .fixed[data-v-01d3fda0]{color:#333}.recordContainer .search .btn[data-v-01d3fda0]{width:%?192?%;height:%?68?%;border-radius:%?68?%;text-align:center;line-height:%?68?%;color:#fff;font-size:%?28?%;background:linear-gradient(90deg,#f97c55 0,#f44545)}.recordContainer .Header[data-v-01d3fda0]{width:100%;height:%?110?%;display:flex;align-items:center;justify-content:space-between;color:#333;font-size:%?32?%;line-height:%?44?%}.recordContainer .Header .spec[data-v-01d3fda0]{color:#ea4a41!important;font-weight:700}.recordContainer .typeCard[data-v-01d3fda0]{width:100%;border-radius:%?24?%;background-color:#fff;margin-bottom:%?30?%;overflow:hidden}.recordContainer .typeCard .header[data-v-01d3fda0]{width:100%;height:%?104?%;padding:0 %?30?%;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;border-bottom:1px solid #eee}.recordContainer .typeCard .header .icon[data-v-01d3fda0]{width:%?30?%;height:%?30?%;border-radius:50%;background-color:rgba(234,74,65,.36);margin-right:%?10?%;display:flex;align-items:center;justify-content:center}.recordContainer .typeCard .header .icon[data-v-01d3fda0]::before{content:"";display:block;width:%?18?%;height:%?18?%;border-radius:50%;background-color:#ea4a41}.recordContainer .typeCard .header .name[data-v-01d3fda0]{color:#333;font-size:%?32?%;line-height:%?44?%}.recordContainer .typeCard .header[data-v-01d3fda0]::after{display:block;content:"";margin-left:auto;width:%?30?%;height:%?30?%;background-image:url('+o+");background-position:50%;background-size:cover;background-repeat:no-repeat}.recordContainer .typeCard .header.open[data-v-01d3fda0]::after{-webkit-transform:rotate(90deg)!important;transform:rotate(90deg)!important}.recordContainer .typeCard .scrollList[data-v-01d3fda0]{width:100%;height:%?416?%}.recordContainer .typeCard .scrollList .scrollItem[data-v-01d3fda0]{width:100%;height:%?104?%;border-bottom:1px solid #eee;box-sizing:border-box;padding:0 %?30?%;color:#333;font-size:%?28?%;line-height:%?40?%;display:flex;align-items:center;justify-content:space-between}.recordContainer .typeCard .scrollList .scrollItem .spec[data-v-01d3fda0]{font-size:%?32?%!important;color:#ea4a41!important}.recordContainer .typeCard .scrollList .scrollItem.noMore[data-v-01d3fda0]{justify-content:center!important;border-bottom:none!important}.recordContainer .typeCard .scrollList .scrollItem .sex[data-v-01d3fda0],\r\n.recordContainer .typeCard .scrollList .scrollItem .size[data-v-01d3fda0],\r\n.recordContainer .typeCard .scrollList .scrollItem .time[data-v-01d3fda0],\r\n.recordContainer .typeCard .scrollList .scrollItem .num[data-v-01d3fda0],\r\n.recordContainer .typeCard .scrollList .scrollItem .type[data-v-01d3fda0]{width:%?80?%;overflow:hidden;text-overflow:ellipsis}.recordContainer .typeCard .scrollList .scrollItem .time[data-v-01d3fda0]{width:%?280?%!important}.recordContainer .typeCard .scrollList .scrollItem .num[data-v-01d3fda0]{flex:1!important;text-align:right}.recordContainer .typeCard .scrollList .scrollItem .type[data-v-01d3fda0]{text-align:right}.recordContainer .typeCard .scrollList .scrollItem .spec2[data-v-01d3fda0]{color:#0e8eff!important}.recordContainer .typeCard .scrollList .noTip[data-v-01d3fda0]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#333;font-size:%?28?%}.recordContainer .typeCard .all[data-v-01d3fda0]{width:100%;height:%?116?%;padding:0 %?30?%;display:flex;align-items:center;justify-content:space-between}.recordContainer .typeCard .all .sex[data-v-01d3fda0]{color:#333;font-size:%?28?%;line-height:%?40?%}.recordContainer .typeCard .all .num[data-v-01d3fda0]{color:#999;font-size:%?28?%}.recordContainer .typeCard .all .num .spec[data-v-01d3fda0]{color:#ea4a41;font-size:%?40?%;line-height:%?56?%;font-weight:700}.recordContainer .typeCard .panku[data-v-01d3fda0]{justify-content:center!important}.recordContainer .typeCard .panku .ku[data-v-01d3fda0]{color:#333;font-size:%?28?%}.recordContainer .typeCard .panku .ku .spec[data-v-01d3fda0]{color:#ea4a41!important;font-size:%?36?%!important;line-height:%?50?%!important}.recordContainer .typeCard .panku .ku[data-v-01d3fda0]:nth-last-of-type(1){margin-left:%?20?%}",""]),t.exports=e},bfd7:function(t,e,a){"use strict";var r=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getScanLog=e.GetExpressInnage=e.stockRecordDetailNew=e.stockRecordNew=e.publishRuKuNew=e.panKuRecordDetail=e.panKuRecord=e.allStock=e.myStock=e.allDaiRuKu=e.stockRecordDetail=e.stockRecord=e.morePanKuRevise=e.publishRuKu=e.goodsDetail=e.publishFirstPanKu=e.goodsInfo=e.publishChuKu=e.getPanKuStock=e.stockGoods=void 0;var i=r(a("ef4f")),n=function(){return i.default.get("/storage/storage_detail")};e.stockGoods=n;var o=function(){return i.default.get("/storage/get_storage")};e.getPanKuStock=o;var d=function(t){return i.default.post("/storage/out_storage",t)};e.publishChuKu=d;var s=function(t){return i.default.get("/order/look_good",t)};e.goodsInfo=s;var c=function(t){return i.default.post("/storage/one_sure_storage",t)};e.publishFirstPanKu=c;var l=function(t){return i.default.get("/order/good_detail",t)};e.goodsDetail=l;var f=function(t){return i.default.get("/storage/put_good_storage",t)};e.publishRuKu=f;var u=function(t){return i.default.post("/storage/sure_storage",t)};e.morePanKuRevise=u;var g=function(t){return i.default.get("/storage/put_storage_group",t)};e.stockRecord=g;var v=function(t){return i.default.get("/storage/put_storage_detail",t)};e.stockRecordDetail=v;var p=function(t){return i.default.get("/storage/put_storage",t)};e.allDaiRuKu=p;var h=function(){return i.default.get("/storage/my_storage")};e.myStock=h;var m=function(){return i.default.get("/storage/storage_detail")};e.allStock=m;var y=function(t){return i.default.get("/storage/sure_storage_group",t)};e.panKuRecord=y;var b=function(t){return i.default.get("/storage/sure_storage_detail",t)};e.panKuRecordDetail=b;var w=function(t){return i.default.post("/storage/put_storages",t)};e.publishRuKuNew=w;var x=function(t){return i.default.get("/storage/put_storage_groups",t)};e.stockRecordNew=x;var C=function(t){return i.default.get("/storage/put_storage_details",t)};e.stockRecordDetailNew=C;var _=function(t){return i.default.get("/express/GetExpressInnage",t)};e.GetExpressInnage=_;var k=function(t){return i.default.get("/UserSend/getScanLog",t)};e.getScanLog=k},c574:function(t,e,a){"use strict";var r;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"recordContainer"},[a("v-uni-view",{staticClass:"record-body"},[a("v-uni-view",{staticClass:"search"},[a("v-uni-view",{staticClass:"time"},[a("v-uni-picker",{attrs:{mode:"date"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.toChangeStartTime.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"value"},[t._v(t._s(t._f("dateFormatter")(t.searchParams.start_time,"yyyy-MM-dd")))])],1),a("v-uni-view",{staticClass:"fixed"},[t._v("至")]),a("v-uni-picker",{attrs:{mode:"date"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.toChangeEndTime.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"value"},[t._v(t._s(t._f("dateFormatter")(t.searchParams.end_time,"yyyy-MM-dd")))])],1)],1),a("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toSearch.apply(void 0,arguments)}}},[t._v("查询")])],1),a("v-uni-view",{staticClass:"Header"},[a("v-uni-view",[t._v("入库记录")]),a("v-uni-view",[t._v("总共入库:"),a("v-uni-text",{staticClass:"spec"},[t._v(t._s(t.infoList.reduce((function(t,e){return t+Number(e.total)}),0))+"套")])],1)],1),t._l(t.infoList,(function(e){return a("v-uni-view",{key:e.type,staticClass:"typeCard"},[a("v-uni-view",{staticClass:"header",class:e.toggle?"open":"",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.toGetDetail(e)}}},[a("v-uni-view",{staticClass:"icon"}),a("v-uni-view",{staticClass:"name"},[t._v(t._s(e.type_name))])],1),e.toggle?[a("v-uni-scroll-view",{staticClass:"scrollList",attrs:{"scroll-y":"true"}},[e.children.length>0?[t._l(e.children,(function(e){return a("v-uni-view",{key:e.id,staticClass:"scrollItem"},[a("v-uni-view",{staticClass:"sex"},[t._v(t._s(e.sex?"男款":"女款"))]),a("v-uni-view",{staticClass:"size"},[t._v(t._s(e.size))]),a("v-uni-view",{staticClass:"time"},[t._v(t._s(t._f("dateFormatter")(e.created_at,"yyyy/MM/dd hh:mm:ss")))]),a("v-uni-view",{staticClass:"num spec"},[t._v("+"+t._s(e.num))])],1)})),e.isMore?t._e():a("v-uni-view",{staticClass:"scrollItem noMore"},[t._v("没有更多记录了")])]:[a("v-uni-view",{staticClass:"noTip"},[t._v("暂无记录")])]],2)]:t._e(),a("v-uni-view",{staticClass:"all"},[a("v-uni-view",{staticClass:"sex"},[t._v("男款:"+t._s(e.man)+"套/女款:"+t._s(e.woman)+"套")]),a("v-uni-view",{staticClass:"num"},[t._v("入库:"),a("v-uni-text",{staticClass:"spec"},[t._v(t._s(e.total)+"套")])],1)],1)],2)}))],2)],1)},n=[]},ce18:function(t,e,a){"use strict";a.r(e);var r=a("de99"),i=a.n(r);for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);e["default"]=i.a},d2b6:function(t,e,a){"use strict";a.r(e);var r=a("c574"),i=a("ce18");for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);a("0989");var o,d=a("f0c5"),s=Object(d["a"])(i["default"],r["b"],r["c"],!1,null,"01d3fda0",null,!1,r["a"],o);e["default"]=s.exports},de99:function(t,e,a){"use strict";var r=a("4ea4");a("99af"),a("d81d"),a("4ec92"),a("a9e3"),a("b64b"),a("d3b7"),a("3ca3"),a("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(a("2909")),n=a("bfd7"),o=a("40bf"),d={data:function(){return{recoedParams:{start_time:"",end_time:"",record_type:0},infoList:[],searchParams:{start_time:(0,o.dateFormatter)(Date.now(),"yyyy-MM-dd"),end_time:(0,o.dateFormatter)(Date.now(),"yyyy-MM-dd")}}},onLoad:function(t){this.recoedParams.start_time=(0,o.dateFormatter)(Date.now(),"yyyy-MM-dd"),this.recoedParams.end_time=(0,o.dateFormatter)(Date.now(),"yyyy-MM-dd"),this.getStockRecord()},methods:{toSearch:function(){var t=this.searchParams,e=t.start_time,a=t.end_time;if(new Date(a).getTime()<new Date(e).getTime())return uni.showModal({content:"结束时间不能大于开始时间",showCancel:!1}),!1;this.recoedParams.start_time=e,this.recoedParams.end_time=a,this.getStockRecord()},toChangeEndTime:function(t){this.searchParams.end_time=t.detail.value},toChangeStartTime:function(t){this.searchParams.start_time=t.detail.value},toGetDetail:function(t){t.total&&t.isMore?this.getRecordDetail(t.page_index,t.type,(function(e){t.children=[].concat((0,i.default)(t.children),(0,i.default)(e)),t.toggle=!t.toggle,e.length<20&&(t.isMore=!1)})):t.toggle=!t.toggle},getRecordDetail:function(t,e,a){uni.showLoading(),(0,n.stockRecordDetailNew)({page_index:t,type:e,record_type:this.recoedParams.record_type,start_time:this.recoedParams.start_time+" 00:00:00",end_time:this.recoedParams.end_time+" 23:59:59"}).then((function(t){uni.hideLoading(),200===t.code?a&&a(t.data.list):uni.showModal({content:t.message||"查看记录详情失败",showCancel:!1})})).catch((function(){uni.hideLoading(),uni.showModal({content:"查看记录详情失败",showCancel:!1})}))},getStockRecord:function(){var t=this;uni.showLoading();var e=this,a=this.recoedParams,r=a.start_time,i=a.end_time,o=a.record_type;(0,n.stockRecordNew)({start_time:r+" 00:00:00",end_time:i+" 23:59:59",record_type:o,status:-1}).then((function(a){200===a.code?e.infoList=Object.keys(a.data).map((function(e){var r=Object.assign({},a.data[e]);return r.type=t.changeKey(e).type,r.type_name=t.changeKey(e).name,r.children=[],r.total=Number(r.man)+Number(r.woman),r.toggle=!1,r.page_index=1,r.isMore=!0,r})):uni.showModal({content:a.message||"获取库存记录失败",showCancel:!1})})).catch((function(){uni.hideLoading(),uni.showModal({content:"获取库存记录失败",showCancel:!1})}))},changeKey:function(t){var e=new Map([["simple",{name:"简约版",type:"1"}],["new_old",{name:"纯棉版",type:"3"}],["old",{name:"高腰版",type:"2"}],["hard",{name:"精装版",type:"0"}],["youth",{name:"青春版",type:"4"}]]);return e.get(t)}}};e.default=d}}]);