|
|
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-handover-aggregating-accessory"],{"1d5f":function(e,t,r){"use strict";var a=r("4ea4");r("4de4"),r("4160"),r("d81d"),r("a434"),r("d3b7"),r("159b"),r("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.AggregatingModule=void 0;var n=a(r("5530"));r("96cf");var o=a(r("1da1")),u=a(r("d4ec")),i=a(r("bee2")),s=a(r("262e")),l=a(r("2caf")),c=r("9ab4"),d=r("6fc5"),f=a(r("0613")),m=a(r("b32d")),p=r("110c"),g=r("612d"),v=function(e){(0,s.default)(r,e);var t=(0,l.default)(r);function r(){var e;return(0,u.default)(this,r),e=t.apply(this,arguments),e.proOrderList=[],e.proOrderResultList=[],e.aggregateList=[],e.orderList=[],e.accessoryList=[],e.locationList=[],e}return(0,i.default)(r,[{key:"clearProOrderResultList",value:function(){this.proOrderResultList=[]}},{key:"clearProOrderList",value:function(){this.proOrderList=[]}},{key:"checkAllAggregateList",value:function(e){this.aggregateList=this.aggregateList.map((function(t){return t.checked=e,t}))}},{key:"uploadAggregateList",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",m.default.post(p.url.sumscan.u.hzlist,t));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setAggregateListItemHvAmount",value:function(e){var t=e.index,r=e.hvAmount,a=this.aggregateList[t],o=(0,n.default)((0,n.default)({},a),{},{hvAmount:r});this.aggregateList.splice(t,1,o)}},{key:"setOrderListItemHvAmount",value:function(e){var t=e.index,r=e.hvAmount,a=this.orderList[t],o=(0,n.default)((0,n.default)({},a),{},{hvAmount:r});this.orderList.splice(t,1,o)}},{key:"setAccessoryListItemHvAmount",value:function(e){var t=e.index,r=e.hvAmount,a=this.accessoryList[t],o=(0,n.default)((0,n.default)({},a),{},{hvAmount:r});this.accessoryList.splice(t,1,o)}},{key:"checkAllOrderList",value:function(e){this.orderList=this.orderList.map((function(t){return t.checked=e,t}))}},{key:"queryProOrder",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(t){var r,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m.default.post(p.url.sumscan.query.orderno,t);case 2:return r=e.sent,a=r.values,n=a.map((function(e){return{prdOrder:e}})),n.forEach((function(e){return e.checked=!0})),n.length||uni.showToast({icon:"none",title:"No Data Found!"}),e.abrupt("return",{proOrderList:n});case 8:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryProOrderResult",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(t){var r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m.default.post(p.url.sumscan.query.ordoutlist,t);case 2:return r=e.sent,a=r.list,e.abrupt("return",{proOrderResultList:a});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryAggregateList",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(t){var r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m.default.post(p.url.sumscan.query.hzlist,t);case 2:return r=e.sent,a=r.list,a.length||uni.showToast({icon:"none",title:"No Data Found!"}),e.abrupt("return",{aggregateList:a});case 6:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryOrderList",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(t){var r,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.queryParams,a=t.proOrderResultList,e.next=3,m.default.post(p.url.sumscan.lock.list,r);case 3:return n=(0,g.cloneDeep)(a),e.abrupt("return",{orderList:n});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryAccessoryList",value:function(){var e=(0,o.default)(regeneratorRunt
|