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)}},"1dfd":function(t,e,a){"use strict";a.r(e);var r=a("8b23"),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},"36f5":function(t,e,a){var r=a("24fb"),i=a("1de5"),n=a("8b77");e=r(!1);var o=i(n);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}\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-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],\r\n.recordContainer .typeCard .scrollList .scrollItem .size[data-v-4308fa94],\r\n.recordContainer .typeCard .scrollList .scrollItem .time[data-v-4308fa94],\r\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},"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)},6122:function(t,e,a){"use strict";var r=a("6fb5"),i=a.n(r);i.a},"62af":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("daa8")),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 s=function(t){return i.default.post("/storage/out_storage",t)};e.publishChuKu=s;var d=function(t){return i.default.get("/order/look_good",t)};e.goodsInfo=d;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 w=function(t){return i.default.get("/storage/sure_storage_detail",t)};e.panKuRecordDetail=w;var b=function(t){return i.default.post("/storage/put_storages",t)};e.publishRuKuNew=b;var x=function(t){return i.default.get("/storage/put_storage_groups",t)};e.stockRecordNew=x;var _=function(t){return i.default.get("/storage/put_storage_details",t)};e.stockRecordDetailNew=_;var C=function(t){return i.default.get("/express/GetExpressInnage",t)};e.GetExpressInnage=C;var k=function(t){return i.default.get("/UserSend/getScanLog",t)};e.getScanLog=k},6566:function(t,e,a){"use strict";var r=a("9bf2").f,i=a("7c73"),n=a("e2cc"),o=a("0366"),s=a("19aa"),d=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){s(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&&d(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)}}},"6fb5":function(t,e,a){var r=a("36f5");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var i=a("4f06").default;i("80497886",r,!0,{sourceMap:!1,shadowMode:!1})},"72b5":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:"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=[]},"8b23":function(t,e,a){"use strict";(function(t){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("62af"),o=a("dfc7"),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,i.default)(e.children),(0,i.default)(t)),e.toggle=!e.toggle,t.length<20&&(e.isMore=!1)})):e.toggle=!e.toggle,t.log(e,"data")},getRecordDetail:function(e,a,r){uni.showLoading(),(0,n.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?(r&&r(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,r=this.recoedParams,i=r.start_time,o=r.end_time;(0,n.panKuRecord)({start_time:i+" 00:00:00",end_time:o+" 00:00:00"}).then((function(r){200===r.code?(a.infoList=Object.keys(r.data).map((function(t){var a=Object.assign({},r.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:r.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"])},"8b77":function(t,e,a){t.exports=a.p+"static/img/arrow.ad35c373.png"},c098:function(t,e,a){"use strict";a.r(e);var r=a("72b5"),i=a("1dfd");for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);a("6122");var o,s=a("f0c5"),d=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"4308fa94",null,!1,r["a"],o);e["default"]=d.exports}}]);
|