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

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-handover-RUS-aggregating-order"],{"00d9":function(e,t,r){"use strict";var a=r("4ea4");r("4de4"),r("4160"),r("d81d"),r("a434"),r("acd8"),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")),i=a(r("d4ec")),u=a(r("bee2")),s=a(r("262e")),l=a(r("2caf")),c=r("9ab4"),d=r("6fc5"),f=a(r("0613")),p=a(r("b32d")),m=r("110c"),g=r("612d"),h=a(r("cd49")),v=r("094f"),y=function(e){(0,s.default)(r,e);var t=(0,l.default)(r);function r(){var e;return(0,i.default)(this,r),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)(r,[{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,v.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,v.subtraction)(parseFloat(t.totalMoAmount),parseFloat(t.totalHvAmount))||0})}))}},{key:"uploadAggregateList",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,p.default.post(m.url.sumscan.u.hzlist,t);case 2:return r=e.sent,a=r.code,console.log("yayayyayyayayayyayyayayayyay",a),uni.showToast({title:"success",duration:2e3,image:"/static/icons/icon-51.png"}),e.abrupt("return",{SubmitCode:a});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,r=e.hvAmount;this.aggregateList[t].hvAmount=r}},{key:"setOrderListItemHvAmount",value:function(e){var t=e.index,r=e.hvAmount;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:"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,p.default.post(m.url.sumscan.query.orderno,t);case 2:return r=e.sent,a=r.list,a.forEach((function(e){return e.checked=!0})),a.length||h.default.customToast(h.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,p.default.post(m.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:"getSendSpotList1",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){var t,r,a,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(m.url.sumscan.query.getSendSpotList,t);case 3:return r=e.sent,a=[],r.data.forEach((function(e){var t={label:e.sendSpot,value:e.sendSpot};a.push(t)})),console.log("res",r),console.log("LocList",a),e.abrupt("return",{CategoryList:a});case 9:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"queryAggregateList",valu