pages-stock-panku_record.0fa418fa.js 22 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-stock-panku_record"],{"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)}},"3cb0":function(t,e,a){t.exports=a.p+"static/img/arrow.ad35c373.png"},"4ec92":function(t,e,a){a("6f48")},"641d":function(t,e,a){var i=a("d0bb");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("5782bcf7",i,!0,{sourceMap:!1,shadowMode:!1})},6566:function(t,e,a){"use strict";var i=a("9bf2").f,n=a("7c73"),r=a("6964"),o=a("0366"),s=a("19aa"),d=a("7234"),c=a("2266"),l=a("c6d2"),f=a("4754"),u=a("2626"),g=a("83ab"),h=a("f183").fastKey,v=a("69f3"),p=v.set,m=v.getterFor;t.exports={getConstructor:function(t,e,a,l){var f=t((function(t,i){s(t,u),p(t,{type:e,index:n(null),first:void 0,last:void 0,size:0}),g||(t.size=0),d(i)||c(i,t[l],{that:t,AS_ENTRIES:a})})),u=f.prototype,v=m(e),y=function(t,e,a){var i,n,r=v(t),o=w(t,e);return o?o.value=a:(r.last=o={index:n=h(e,!0),key:e,value:a,previous:i=r.last,next:void 0,removed:!1},r.first||(r.first=o),i&&(i.next=o),g?r.size++:t.size++,"F"!==n&&(r.index[n]=o)),t},w=function(t,e){var a,i=v(t),n=h(e);if("F"!==n)return i.index[n];for(a=i.first;a;a=a.next)if(a.key==e)return a};return r(u,{clear:function(){var t=v(this),e=t.index,a=t.first;while(a)a.removed=!0,a.previous&&(a.previous=a.previous.next=void 0),delete e[a.index],a=a.next;t.first=t.last=void 0,g?t.size=0:this.size=0},delete:function(t){var e=v(this),a=w(this,t);if(a){var i=a.next,n=a.previous;delete e.index[a.index],a.removed=!0,n&&(n.next=i),i&&(i.previous=n),e.first==a&&(e.first=i),e.last==a&&(e.last=n),g?e.size--:this.size--}return!!a},forEach:function(t){var e,a=v(this),i=o(t,arguments.length>1?arguments[1]:void 0);while(e=e?e.next:a.first){i(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!w(this,t)}}),r(u,a?{get:function(t){var e=w(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),g&&i(u,"size",{get:function(){return v(this).size}}),f},setStrong:function(t,e,a){var i=e+" Iterator",n=m(e),r=m(i);l(t,e,(function(t,e){p(this,{type:i,target:t,state:n(t),kind:e,last:void 0})}),(function(){var t=r(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)?f("keys"==e?a.key:"values"==e?a.value:[a.key,a.value],!1):(t.target=void 0,f(void 0,!0))}),a?"entries":"values",!a,!0),u(e)}}},"6f48":function(t,e,a){"use strict";var i=a("6d61"),n=a("6566");i("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n)},7612:function(t,e,a){"use strict";a.r(e);var i=a("bd61"),n=a("ea27f");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("d091");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"4308fa94",null,!1,i["a"],void 0);e["default"]=s.exports},a7d3:function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.stockRecordNew=e.stockRecordDetailNew=e.stockRecordDetail=e.stockRecord=e.stockGoods=e.publishRuKuNew=e.publishRuKu=e.publishFirstPanKu=e.publishChuKu=e.panKuRecordDetail=e.panKuRecord=e.myStock=e.morePanKuRevise=e.goodsInfo=e.goodsDetail=e.getScanLog=e.getPanKuStock=e.allStock=e.allDaiRuKu=e.GetExpressInnage=void 0;var n=i(a("ef1d"));e.stockGoods=function(){return n.default.get("/storage/storage_detail")};e.getPanKuStock=function(){return n.default.get("/storage/get_storage")};e.publishChuKu=function(t){return n.default.post("/storage/out_storage",t)};e.goodsInfo=function(t){return n.default.get("/order/look_good",t)};e.publishFirstPanKu=function(t){return n.default.post("/storage/one_sure_storage",t)};e.goodsDetail=function(t){return n.default.get("/order/good_detail",t)};e.publishRuKu=function(t){return n.default.get("/storage/put_good_storage",t)};e.morePanKuRevise=function(t){return n.default.post("/storage/sure_storage",t)};e.stockRecord=function(t){return n.default.get("/storage/put_storage_group",t)};e.stockRecordDetail=function(t){return n.default.get("/storage/put_storage_detail",t)};e.allDaiRuKu=function(t){return n.default.get("/storage/put_storage",t)};e.myStock=function(){return n.default.get("/storage/my_storage")};e.allStock=function(){return n.default.get("/storage/storage_detail")};e.panKuRecord=function(t){return n.default.get("/storage/sure_storage_group",t)};e.panKuRecordDetail=function(t){return n.default.get("/storage/sure_storage_detail",t)};e.publishRuKuNew=function(t){return n.default.post("/storage/put_storages",t)};e.stockRecordNew=function(t){return n.default.get("/storage/put_storage_groups",t)};e.stockRecordDetailNew=function(t){return n.default.get("/storage/put_storage_details",t)};e.GetExpressInnage=function(t){return n.default.get("/express/GetExpressInnage",t)};e.getScanLog=function(t){return n.default.get("/UserSend/getScanLog",t)}},bd61:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));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:"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",[a("v-uni-text",[t._v("入库:"),a("v-uni-text",{staticClass:"spec"},[t._v(t._s(t.infoList.reduce((function(t,e){return t+Number(e.man)}),0))+"套")])],1),a("v-uni-text",[t._v("出库:"),a("v-uni-text",{staticClass:"spec"},[t._v(t._s(t.infoList.reduce((function(t,e){return t+Number(e.woman)}),0))+"套")])],1)],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(1===+e.storage_type?"-":"+")+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 panku"},[a("v-uni-view",{staticClass:"ku"},[t._v("入库:"),a("v-uni-text",{staticClass:"spec"},[t._v(t._s(e.man)+"套")])],1),a("v-uni-view",{staticClass:"ku"},[t._v("出库:"),a("v-uni-text",{staticClass:"spec"},[t._v(t._s(e.woman)+"套")])],1)],1)],2)}))],2)},n=[]},d091:function(t,e,a){"use strict";var i=a("641d"),n=a.n(i);n.a},d0bb:function(t,e,a){var i=a("24fb"),n=a("1de5"),r=a("3cb0");e=i(!1);var o=n(r);e.push([t.i,'@charset "UTF-8";.app-item[data-v-4308fa94]{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-4308fa94]{margin-top:%?10?%}.app-item uni-input[data-v-4308fa94], .app-item uni-picker[data-v-4308fa94], .app-item uni-textarea[data-v-4308fa94]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-4308fa94]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-4308fa94]{width:25%;height:50%;float:left;display:flex;align-items:center;flex-direction:column}.kingkong uni-navigator uni-image[data-v-4308fa94]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-4308fa94]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-4308fa94]{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-4308fa94]{color:#fff;background:#f76454}.small-btn[data-v-4308fa94]{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-4308fa94]{color:#999;border-color:#999}.login-btn[data-v-4308fa94]{flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-4308fa94]{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-4308fa94]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-4308fa94]{margin-right:%?20?%}.border-right[data-v-4308fa94]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-4308fa94]{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-4308fa94]{margin-right:%?6?%}.position-center[data-v-4308fa94]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-4308fa94]{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-4308fa94]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-4308fa94]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.data-card .data-card-text .text[data-v-4308fa94]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-4308fa94]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-4308fa94]{color:#f76454}.swiper-nav[data-v-4308fa94]{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-4308fa94]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%}.swiper-nav .item.active[data-v-4308fa94]{color:#f76454}.swiper-nav .moveBar[data-v-4308fa94]{display:flex;align-items:center;justify-content:center;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-4308fa94]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-4308fa94]{flex:1;width:100%}.swiper-area uni-swiper[data-v-4308fa94]{width:100%;height:100%}.article-header[data-v-4308fa94]{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-4308fa94]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-4308fa94]{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-4308fa94]{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-4308fa94]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-4308fa94]{color:#f76454}.article-footer[data-v-4308fa94]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-4308fa94]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-4308fa94]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-4308fa94]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-4308fa94]{color:#f76454}\n/*主题色及按钮渐变背景*/\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-4308fa94]{display:flex;flex-direction:column}.recordContainer[data-v-4308fa94]{width:100%;flex:1;background-color:#f9f9fb;padding:%?30?%;box-sizing:border-box}.recordContainer .search[data-v-4308fa94]{width:100%;display:flex;align-items:center;justify-content:space-between}.recordContainer .search .time[data-v-4308fa94]{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-4308fa94]{color:#999;letter-spacing:1px}.recordContainer .search .time .fixed[data-v-4308fa94]{color:#333}.recordContainer .search .btn[data-v-4308fa94]{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-4308fa94]{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-4308fa94]{color:#ea4a41!important;font-weight:700}.recordContainer .typeCard[data-v-4308fa94]{width:100%;border-radius:%?24?%;background-color:#fff;margin-bottom:%?30?%;overflow:hidden}.recordContainer .typeCard .header[data-v-4308fa94]{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-4308fa94]{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-4308fa94]::before{content:"";display:block;width:%?18?%;height:%?18?%;border-radius:50%;background-color:#ea4a41}.recordContainer .typeCard .header .name[data-v-4308fa94]{color:#333;font-size:%?32?%;line-height:%?44?%}.recordContainer .typeCard .header[data-v-4308fa94]::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-4308fa94]::after{-webkit-transform:rotate(90deg)!important;transform:rotate(90deg)!important}.recordContainer .typeCard .scrollList[data-v-4308fa94]{width:100%;height:%?416?%}.recordContainer .typeCard .scrollList .scrollItem[data-v-4308fa94]{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-4308fa94]{font-size:%?32?%!important;color:#ea4a41!important}.recordContainer .typeCard .scrollList .scrollItem.noMore[data-v-4308fa94]{justify-content:center!important;border-bottom:none!important}.recordContainer .typeCard .scrollList .scrollItem .sex[data-v-4308fa94],\n.recordContainer .typeCard .scrollList .scrollItem .size[data-v-4308fa94],\n.recordContainer .typeCard .scrollList .scrollItem .time[data-v-4308fa94],\n.recordContainer .typeCard .scrollList .scrollItem .num[data-v-4308fa94]{width:%?100?%;overflow:hidden;text-overflow:ellipsis}.recordContainer .typeCard .scrollList .scrollItem .time[data-v-4308fa94]{width:%?300?%!important}.recordContainer .typeCard .scrollList .scrollItem .num[data-v-4308fa94]{flex:1!important;text-align:right}.recordContainer .typeCard .scrollList .noTip[data-v-4308fa94]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#333;font-size:%?28?%}.recordContainer .typeCard .all[data-v-4308fa94]{width:100%;height:%?116?%;padding:0 %?30?%;display:flex;align-items:center;justify-content:space-between}.recordContainer .typeCard .all .sex[data-v-4308fa94]{color:#333;font-size:%?28?%;line-height:%?40?%}.recordContainer .typeCard .all .num[data-v-4308fa94]{color:#999;font-size:%?28?%}.recordContainer .typeCard .all .num .spec[data-v-4308fa94]{color:#ea4a41;font-size:%?40?%;line-height:%?56?%;font-weight:700}.recordContainer .typeCard .panku[data-v-4308fa94]{justify-content:center!important}.recordContainer .typeCard .panku .ku[data-v-4308fa94]{color:#333;font-size:%?28?%}.recordContainer .typeCard .panku .ku .spec[data-v-4308fa94]{color:#ea4a41!important;font-size:%?36?%!important;line-height:%?50?%!important}.recordContainer .typeCard .panku .ku[data-v-4308fa94]:nth-last-of-type(1){margin-left:%?20?%}",""]),t.exports=e},ea27f:function(t,e,a){"use strict";a.r(e);var i=a("f1ec"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},f1ec:function(t,e,a){"use strict";(function(t){a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("99af"),a("d81d"),a("b64b"),a("a9e3"),a("4ec92"),a("d3b7"),a("3ca3"),a("ddb0");var n=i(a("2909")),r=a("a7d3"),o=a("37f3"),s={data:function(){return{recoedParams:{start_time:"",end_time:""},infoList:[],searchParams:{start_time:(0,o.dateFormatter)(Date.now(),"yyyy-MM-dd"),end_time:(0,o.dateFormatter)(Date.now(),"yyyy-MM-dd")}}},onLoad:function(){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(e){e.total&&e.isMore?this.getRecordDetail(e.page_index,e.type,(function(t){e.children=[].concat((0,n.default)(e.children),(0,n.default)(t)),e.toggle=!e.toggle,t.length<20&&(e.isMore=!1)})):e.toggle=!e.toggle,t.log(e,"data")},getRecordDetail:function(e,a,i){uni.showLoading(),(0,r.panKuRecordDetail)({page_index:e,type:a,start_time:this.recoedParams.start_time+" 00:00:00",end_time:this.recoedParams.end_time+" 00:00:00"}).then((function(e){uni.hideLoading(),200===e.code?(i&&i(e.data.list),t.log(e.data.list,"list")):uni.showModal({content:e.message||"查看记录详情失败",showCancel:!1})})).catch((function(){uni.hideLoading(),uni.showModal({content:"查看记录详情失败",showCancel:!1})}))},getStockRecord:function(){var e=this;uni.showLoading();var a=this,i=this.recoedParams,n=i.start_time,o=i.end_time;(0,r.panKuRecord)({start_time:n+" 00:00:00",end_time:o+" 00:00:00"}).then((function(i){200===i.code?(a.infoList=Object.keys(i.data).map((function(t){var a=Object.assign({},i.data[t]);return a.type=e.changeKey(t).type,a.type_name=e.changeKey(t).name,a.children=[],a.total=Number(a.man)+Number(a.woman),a.toggle=!1,a.page_index=1,a.isMore=!0,a})),t.log(e.infoList,"infoList")):uni.showModal({content:i.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=s}).call(this,a("5a52")["default"])}}]);