(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesStorehouse/inventory/details"],{"43bb":function(t,n,e){"use strict";e.r(n);var r=e("9114"),o=e.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(a);n["default"]=o.a},"44c4":function(t,n,e){"use strict";var r;e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return r}));var o=function(){var t=this,n=t.$createElement,e=(t._self._c,t.getItemStatusName(t.dataInfo.status));t.$mp.data=Object.assign({},{$root:{m0:e}})},a=[]},"4f84":function(t,n,e){"use strict";var r=e("b673"),o=e.n(r);o.a},"5ba1":function(t,n,e){"use strict";e.r(n);var r=e("44c4"),o=e("43bb");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("4f84");var u,i=e("0095"),c=Object(i["a"])(o["default"],r["b"],r["c"],!1,null,"a4186620",null,!1,r["a"],u);n["default"]=c.exports},"77b1":function(t,n,e){"use strict";(function(t){e("6cdc");r(e("4a15"));var n=r(e("5ba1"));function r(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("f3be")["createPage"])},9114:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=u(e("4838")),o=e("9c67"),a=e("7602");function u(t){return t&&t.__esModule?t:{default:t}}function i(t,n,e,r,o,a,u){try{var i=t[a](u),c=i.value}catch(f){return void e(f)}i.done?n(c):Promise.resolve(c).then(r,o)}function c(t){return function(){var n=this,e=arguments;return new Promise((function(r,o){var a=t.apply(n,e);function u(t){i(a,r,o,u,c,"next",t)}function c(t){i(a,r,o,u,c,"throw",t)}u(void 0)}))}}function f(t,n){var e;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=s(t))||n&&t&&"number"===typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,i=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return u=t.done,t},e:function(t){i=!0,a=t},f:function(){try{u||null==e.return||e.return()}finally{if(i)throw a}}}}function s(t,n){if(t){if("string"===typeof t)return l(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?l(t,n):void 0}}function l(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var d={components:{},data:function(){return{INVENTORY_STATUS:a.INVENTORY_STATUS,orderSn:null,dataInfo:{},columns:[{name:"名称",custom:"icon"},{name:"库存",custom:"stock",width:120,align:"center"},{name:"盘点数",custom:"inventory",color:"warn",width:120,align:"center"},{name:"盈亏数",custom:"profit",color:"success",width:120,align:"center"}],dataList:[{count:"1",inventoryCount:"2",profitCount:"3"},{count:"1",inventoryCount:"2",profitCount:"3"},{count:"1",inventoryCount:"2",profitCount:"3"},{count:"1",inventoryCount:"2",profitCount:"3"},{count:"1",inventoryCount:"2",profitCount:"3"},{count:"1",inventoryCount:"2",profitCount:"3"}]}},onLoad:function(t){var n=t.orderSn;this.orderSn=n,this.initData()},computed:{sumCount:function(){var t=0,n=0;if(this.dataInfo.itemInfo){var e,r=f(this.dataInfo.itemInfo);try{for(r.s();!(e=r.n()).done;){var o=e.value;t+=Number(o.bigNumProfitLoss),n+=Number(o.smallNumProfitLoss)}}catch(a){r.e(a)}finally{r.f()}}return"".concat(t,"/").concat(n)}},methods:{initData:function(){var t=c(r.default.mark((function t(){var n,e;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,o.getCheckOrderDetailApi)(this.orderSn);case 3:n=t.sent,e=n.data,this.dataInfo=e,t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](0);case 10:case"end":return t.stop()}}),t,this,[[0,8]])})));function n(){return t.apply(this,arguments)}return n}(),getItemStatusName:function(t){var n="";switch(t){case a.INVENTORY_STATUS.DONE:n="已盘点";break;case a.INVENTORY_STATUS.DRAFT:n="草稿";break;default:break}return n}}};n.default=d},b673:function(t,n,e){}},[["77b1","common/runtime","common/vendor"]]]);