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
39 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-handover-RUS-aggregating-result"],{"00d9":function(e,t,a){"use strict";var r=a("4ea4");a("4de4"),a("4160"),a("d81d"),a("a434"),a("acd8"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.AggregatingModule=void 0;var n=r(a("5530"));a("96cf");var i=r(a("1da1")),o=r(a("d4ec")),u=r(a("bee2")),s=r(a("262e")),d=r(a("2caf")),l=a("9ab4"),c=a("6fc5"),f=r(a("0613")),p=r(a("b32d")),g=a("110c"),m=a("612d"),h=r(a("cd49")),b=a("094f"),v=function(e){(0,s.default)(a,e);var t=(0,d.default)(a);function a(){var e;return(0,o.default)(this,a),e=t.apply(this,arguments),e.proOrderList=[],e.SubmitCode="",e.proOrderResultList=[],e.CategoryList=[],e.aggregateList=[],e.orderList=[],e.accessoryList=[],e.lockCode="",e.locationList=[],e}return(0,u.default)(a,[{key:"clearProOrderResultList",value:function(){this.proOrderResultList=[]}},{key:"clearProOrderList",value:function(){this.proOrderList=[]}},{key:"checkAllAggregateList",value:function(e){this.aggregateList.map((function(t){Object.assign(t,{checked:e,hvAmount:e&&(0,b.subtraction)(parseFloat(t.totalMoAmount),parseFloat(t.totalHvAmount))||0})}))}},{key:"checkAllOrderList",value:function(e){this.orderList.map((function(t){Object.assign(t,{checked:e,hvAmount:e&&(0,b.subtraction)(parseFloat(t.totalMoAmount),parseFloat(t.totalHvAmount))||0})}))}},{key:"uploadAggregateList",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(g.url.sumscan.u.hzlist,t);case 2:return a=e.sent,r=a.code,console.log("yayayyayyayayayyayyayayayyay",r),uni.showToast({title:"success",duration:2e3,image:"/static/icons/icon-51.png"}),e.abrupt("return",{SubmitCode:r});case 7: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,a=e.hvAmount;this.aggregateList[t].hvAmount=a}},{key:"setOrderListItemHvAmount",value:function(e){var t=e.index,a=e.hvAmount;this.orderList[t].hvAmount=a}},{key:"setAccessoryListItemHvAmount",value:function(e){var t=e.index,a=e.hvAmount,r=this.accessoryList[t],i=(0,n.default)((0,n.default)({},r),{},{hvAmount:a});this.accessoryList.splice(t,1,i)}},{key:"checkAllProOrderList",value:function(e){this.proOrderList=this.proOrderList.map((function(t){return(0,n.default)((0,n.default)({},t),{},{checked:e})}))}},{key:"queryProOrder",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(g.url.sumscan.query.orderno,t);case 2:return a=e.sent,r=a.list,r.forEach((function(e){return e.checked=!0})),r.length||h.default.customToast(h.default.$t("message.Pi_NoDataFound")),e.abrupt("return",{proOrderList:r});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,i.default)(regeneratorRuntime.mark((function e(t){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(g.url.sumscan.query.ordoutlist,t);case 2:return a=e.sent,r=a.list,e.abrupt("return",{proOrderResultList:r});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getSendSpotList1",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t,a,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,p.default.post(g.url.sumscan.query.getSendSpotList,t);case 3:return a=e.sent,r=[],a.data.forEach((function(e){var t={label:e.sendSpot,value:e.sendSpot};r.push(t)})),console.log("res",a),console.log("LocList",r),e.abrupt("return",{CategoryList:r});case 9:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"queryAggregateList",val