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
22 KiB
JavaScript
1 line
22 KiB
JavaScript
2 years ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-ingoods-poReceipt-poReceiving"],{1240:function(e,t,i){"use strict";i.r(t);var n=i("87ed"),a=i("5250");for(var r in a)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(r);i("8ca1");var o,s=i("f0c5"),l=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"9c5e2588",null,!1,n["a"],o);t["default"]=l.exports},"31aa":function(e,t,i){"use strict";var n=i("4ea4");i("4de4"),i("4160"),i("d81d"),i("4e82"),i("a9e3"),i("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ReceiptModule=void 0,i("96cf");var a=n(i("1da1")),r=n(i("bee2")),o=n(i("262e")),s=n(i("2caf")),l=n(i("d4ec")),u=i("9ab4"),c=i("6fc5"),d=n(i("0613")),p=n(i("b32d")),f=i("110c"),h=i("54a3"),v=function e(){(0,l.default)(this,e)},g=function(e){(0,o.default)(i,e);var t=(0,s.default)(i);function i(){var e;return(0,l.default)(this,i),e=t.apply(this,arguments),e.cboPlaceList=[],e.poNo="",e.code1="",e.orderInInfo=new v,e.orderInInfoList=[],e.orderInInfoListEx=[],e}return(0,r.default)(i,[{key:"updateOrderInInfoListKw",value:function(e){this.orderInInfoList=this.orderInInfoList.map((function(t){return t.kw=e,t}))}},{key:"updateCheckedOrderInInfoListKw",value:function(e){this.orderInInfoList=this.orderInInfoList.map((function(t){return t.checked&&(t.kw=e),t}))}},{key:"checkAllOrderInInfoList",value:function(e){this.orderInInfoList=this.orderInInfoList.map((function(t){return t.checked=e,t}))}},{key:"queryLocation",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(f.url.auth.query.location1,{factoryCode:h.session.factoryCode,loginName:h.session.loginName,userDefined3:1});case 2:return t=e.sent,console.log("result",t),i=t.data.records.map((function(e){return{label:e.sendSpot,value:e.sendSpot}})),e.abrupt("return",{cboPlaceList:i});case 6:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"queryOrderInInfo",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){var i,n,a,r,o,s,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(f.url.material.POorderin.info,{poNo:t,factoryCode:h.session.factoryCode,loginName:h.session.loginName});case 2:return i=e.sent,n=i.list,a=i.code,r=a,console.log("code1",r),o=n[0]||{},s=n.filter((function(e){return"1"===e.userDefined10})),l=n.filter((function(e){return"0"===e.userDefined10})),s.forEach((function(e){e.receiptAmount=e.requestAmount})),uni.setStorageSync("list",JSON.stringify(n)),uni.setStorageSync("sendSpot",JSON.stringify(n[0].sendSpot)),e.abrupt("return",{poNo:t,orderInInfo:o,orderInInfoList:s,orderInInfoListEx:l,code1:r});case 14:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"submitOrderInEnter",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){var i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(f.url.material.POorderin.enter,{poNo:this.poNo,factoryCode:h.session.factoryCode,loginName:h.session.loginName,list:t});case 2:return i=e.sent,uni.showToast({icon:"none",title:i.msg}),n=i.list.sort((function(e,t){return Number(e.accountingStatus)-Number(t.accountingStatus)})),e.abrupt("return",{orderInInfoList:n});case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"changeOrderInLocation",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post("/wmspda/material/orderin/enter",{factoryCode:h.session.factoryCode,loginName:h.session.loginName,warehouseCode:h.session.warehouseCode,locationCode:t});case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryByFac
|