You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
24 KiB
JavaScript
1 line
24 KiB
JavaScript
2 years ago
|
(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("159b"),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=a(r("cd49")),h=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.checked?t.hvAmount=t.totalMoAmount-t.totalHvAmount:t.hvAmount=0,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];(0,n.default)((0,n.default)({},a),{},{hvAmount:r});this.aggregateList[t].hvAmount=r}},{key:"setOrderListItemHvAmount",value:function(e){var t=e.index,r=e.hvAmount,a=this.orderList[t];(0,n.default)((0,n.default)({},a),{},{hvAmount:r});this.orderList[t].hvAmount=r}},{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:"checkAllProOrderList",value:function(e){this.proOrderList=this.proOrderList.map((function(t){return(0,n.default)((0,n.default)({},t),{},{checked:e})}))}},{key:"checkAllOrderList",value:function(e){this.orderList=this.orderList.map((function(t){return t.checked=e,t.checked?t.hvAmount=t.totalMoAmount-t.totalHvAmount:t.hvAmount=0,t}))}},{key:"queryProOrder",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.orderno,t);case 2:return r=e.sent,a=r.list,a.forEach((function(e){return e.checked=!0})),a.length||v.default.customToast(v.default.$t("message.Pi_NoDataFound")),e.abrupt("return",{proOrderList:a});case 7: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:if(r=e.sent,a=r.list,a.length){e.next=7;break}return v.default.customToast(v.default.$t("message.Pi_NoDataFound")),e.abrupt("return",{aggregateList:a});case 7:return e.abrupt("return",{aggregateList:a});case 8: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,
|