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

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-ingoods-SpareInbound-SparePartsWarehouse-index"],{"114f":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")),i=r(a("bee2")),o=r(a("262e")),s=r(a("2caf")),u=r(a("d4ec")),l=a("9ab4"),c=a("6fc5"),d=r(a("0613")),f=r(a("b32d")),p=a("110c"),h=a("54a3"),m=r(a("cd49")),v=function e(){(0,u.default)(this,e)},g=function(e){(0,o.default)(a,e);var t=(0,s.default)(a);function a(){var e;return(0,u.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 v,e}return(0,i.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.getMdLocationSfgLine,{params:{factoryCode:h.session.factoryCode,loginName:h.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.getOdsRawStorageSnNew,{factoryCode:h.session.factoryCode,loginName:h.session.loginName,barcode:t});case 2:return a=e.sent,r=a.code,n=a.data.records[0],"0"==n.custCode?n.custCodeName=m.default.$t("message.Warehouse_NX"):"1"==n.custCode?n.custCodeName=m.default.$t("message.Warehouse_WX"):"2"==n.custCode?n.custCodeName=m.default.$t("message.Warehouse_YJ"):"4"==n.custCode&&(n.custCodeName=m.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.confirmMoveRussia,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.getSfgMoveBatchNo,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,i=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},e.next=3,f.default.post(p.url.war