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