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
29 KiB
JavaScript
1 line
29 KiB
JavaScript
2 years ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-commission-entrant-index"],{"0d7d":function(e,t,i){"use strict";i.r(t);var a=i("a413"),n=i("2e1d");for(var r in n)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(r);i("83f2");var o,s=i("f0c5"),c=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"75a2dd4c",null,!1,a["a"],o);t["default"]=c.exports},"1b63":function(e,t,i){"use strict";var a=i("4ea4");i("a623"),i("4de4"),i("7db0"),i("4160"),i("13d5"),i("a434"),i("acd8"),i("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(i("5530")),r=a(i("2909"));i("96cf");var o=a(i("1da1")),s=a(i("d4ec")),c=a(i("bee2")),l=a(i("262e")),u=a(i("2caf")),d=i("9ab4"),p=i("60a3"),h=i("22da"),f=a(i("34b3")),v=i("54a3"),m=a(i("3c24")),g=i("7579"),w=i("110c"),b=function(e){(0,l.default)(i,e);var t=(0,u.default)(i);function i(){var e;return(0,s.default)(this,i),e=t.apply(this,arguments),e.model=m.default,e.form={documentNo:""},e.material=[],e.poList=[],e.materialList=[],e.every={},e.isfocus=!0,e.everyIndex="",e.value="",e.headers=g.DNheader,e.type="text",e.DNReceivingList=[],e.border=!0,e.receiptAmount="",e.Location=[],e.LocationList=[],e.wl={value:null},e.poNo=null,e.requestAmount=null,e}return(0,c.default)(i,[{key:"onShow",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.queryLoction();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"queryLoction",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){var t,i,a,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.Location=[],t=JSON.parse(uni.getStorageSync("sendSpot")),i={loginName:v.session.loginName,sendSpot:t,factoryCode:v.session.factoryCode,workArea:v.session.workareaCode},e.next=5,this.model.queryList(i);case 5:a=e.sent,a.forEach((function(e){var t={};t.label=e.locationCode,t.value=e.locationCode+"("+e.sendSpot+")",t.sendSpot=e.sendSpot,n.Location.push(t)})),this.wl=this.Location[0];case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"initLocation",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(t){var i,a,n,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log("condition>>>>>>>>>>>>>>>>>>.",t),i=[],a=JSON.parse(uni.getStorageSync("__GWMS_APP_STATE_DATA__")),n=JSON.parse(uni.getStorageSync("sendSpot")),r={loginName:a.session.user.loginName,sendSpot:n,factoryCode:a.session.user.factoryCode,workArea:v.session.workareaCode},e.next=7,this.model.queryList(r);case 7:return o=e.sent,console.log(">>>>>>>>>>>>>>",o),o.forEach((function(e){if(e.sendSpot===t.sendSpot){var a={};a.label=e.locationCode,a.value=e.locationCode+"("+e.sendSpot+")",a.sendSpot=e.sendSpot,i.push(a)}})),e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"query",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){var t,i,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.empty(),this.form.documentNo){e.next=4;break}return this.customToast(this.$t("message.Commission_tips1")),e.abrupt("return");case 4:return e.prev=4,e.next=7,this.model.subcDnInfo(this.form.documentNo);case 7:if("1"!=m.default.code){e.next=22;break}if(0!=this.model.orderInInfoList.length){e.next=11;break}return this.empty(),e.abrupt("return");case 11:uni.showToast({title:this.$t("message.successful"),duration:2e3,image:"/static/icons/icon-51.png"}),t=uni.getStorageSync("list"),uni.removeStorageSync("list"),this.material=JSON.parse(t),this.DNReceivingList=JSON.parse(t),this.DNReceivingList.forEach((function(e){e.wllist=[]})),this.poList=(0,r.default)(this.DNReceivingList),i=this.removeDuplicates(this.poList,"poNo"),i.forEach((function(e){e.label=e.poNo,e.value=e
|