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
19 KiB
JavaScript
1 line
19 KiB
JavaScript
2 years ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-warehouse-wholeTransfer-Local-details"],{1539:function(e,t,a){"use strict";var r=a("4ea4");a("4160"),a("d81d"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.wholeTransfer=void 0,a("96cf");var n=r(a("1da1")),o=r(a("bee2")),i=r(a("262e")),u=r(a("2caf")),s=r(a("d4ec")),l=a("9ab4"),d=a("6fc5"),c=r(a("0613")),f=r(a("b32d")),p=a("110c"),m=a("54a3"),h=r(a("cd49")),b=function e(){(0,s.default)(this,e)},g=function(e){(0,i.default)(a,e);var t=(0,u.default)(a);function a(){var e;return(0,s.default)(this,a),e=t.apply(this,arguments),e.WlList=[],e.userDefined="",e.code="",e.delCode="",e.removeList=[],e.removeMaterialList=[],e.dnNo="",e.orderInInfo=new b,e}return(0,o.default)(a,[{key:"queryLocation",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.get(p.url.warehouse.wholeTransfer.list,{params:{factoryCode:m.session.factoryCode,loginName:m.session.loginName}});case 2:return t=e.sent,console.log("库位数据",t),a=t.data.map((function(e){return{label:e.locationCode,value:e.locationCode}})),e.abrupt("return",{WlList:a});case 6:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getProductCode",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(t){var a,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(p.url.warehouse.wholeTransfer.content,t);case 2:return a=e.sent,r=a.code,n=a.data.records[0],"0"==n.custCode?n.custCodeName=h.default.$t("message.Warehouse_NX"):"1"==n.custCode?n.custCodeName=h.default.$t("message.Warehouse_WX"):"2"==n.custCode?n.custCodeName=h.default.$t("message.Warehouse_YJ"):"4"==n.custCode&&(n.custCodeName=h.default.$t("message.Warehouse_BCP")),e.abrupt("return",{orderInInfo:n,code:r});case 7:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"codeDel",value:function(){var e=(0,n.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,f.default.post(p.url.warehouse.wholeTransfer.del,t);case 2:return a=e.sent,r=a.code,e.abrupt("return",{delCode:r});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"empty",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[],a="",e.abrupt("return",{orderInInfo:t,code:a});case 3:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onTakeoutConfirm",value:function(){var e=(0,n.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,f.default.post(p.url.warehouse.rowTransfer.commit,t);case 2:return a=e.sent,r=a.code,e.abrupt("return",{code:r});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getCpMoveBatchNo",value:function(){var e=(0,n.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,f.default.post(p.url.warehouse.rowTransfer.getCode,t);case 2:return a=e.sent,r=a.data,e.abrupt("return",{userDefined:r});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"QueryHistory",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t,a,r,n,o=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},e.next=3,f.default.post(p.url.warehouse.rowTransfer.queryGroupLis,t);case 3:return a=e.sent,r=a.data,n=[],a.data.forEach((function(e){var t={value:e.materialCode,lab
|