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
25 KiB
JavaScript
1 line
25 KiB
JavaScript
2 years ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-commission-entrant-index"],{"0d7d":function(e,t,a){"use strict";a.r(t);var r=a("aa2b"),n=a("2e1d");for(var i in n)["default"].indexOf(i)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(i);a("53ae");var o,s=a("f0c5"),u=Object(s["a"])(n["default"],r["b"],r["c"],!1,null,"79a02f1c",null,!1,r["a"],o);t["default"]=u.exports},1497:function(e,t,a){var r=a("4afa");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var n=a("4f06").default;n("f26858ea",r,!0,{sourceMap:!1,shadowMode:!1})},"1b63":function(e,t,a){"use strict";var r=a("4ea4");a("a623"),a("4160"),a("a434"),a("acd8"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("96cf");var n=r(a("1da1")),i=r(a("d4ec")),o=r(a("bee2")),s=r(a("262e")),u=r(a("2caf")),l=a("9ab4"),c=a("60a3"),d=a("22da"),p=r(a("34b3")),f=a("54a3"),m=r(a("3c24")),h=function(e){(0,s.default)(a,e);var t=(0,u.default)(a);function a(){var e;return(0,i.default)(this,a),e=t.apply(this,arguments),e.model=m.default,e.form={documentNo:""},e.material={},e.materialList=[],e.list=[],e.every="",e.value="",e.type="text",e.border=!0,e.nowAmount="",e.Location=[],e.wlCode="",e}return(0,o.default)(a,[{key:"onLoad",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t,a,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=JSON.parse(localStorage.getItem("sendSpot")),a={loginName:f.session.loginName,sendSpot:t,factoryCode:f.session.factoryCode,workArea:f.session.workareaCode},e.next=4,this.model.queryByFactoryCodeAndWorkAreaCode(a);case 4:this.model.LoctionList.forEach((function(e){var t={};t.label=e.locationCode,t.value=e.locationCode+"("+e.sendSpot+")",t.sendSpot=e.sendSpot,r.Location.push(t)})),console.log("库位列表",this.Location);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"query",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!=this.form.documentNo){e.next=3;break}return this.customToast(this.$t("message.Commission_tips1")),e.abrupt("return");case 3:return this.materialList=[],e.next=6,this.model.queryOutsourcing(this.form.documentNo);case 6:t=e.sent,this.material=t.data,this.material.forEach((function(e){var t={};t.label=e.materialCode,t.value=e.materialCode,a.materialList.push(t)})),this.every=this.material[0];case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"materialChoice",value:function(e){var t=this;this.material.forEach((function(a){a.materialCode!=e.pickerName.value||(t.every=a)}))}},{key:"LocationChoice",value:function(e){this.wlCode=e.pickerName}},{key:"Add",value:function(){if(""!=this.nowAmount&&""!=this.wlCode)if(parseFloat(this.nowAmount)<=0)this.customToast(this.$t("message.Commission_tips3"));else if(parseFloat(this.nowAmount)>this.every.poAmount)this.customToast(this.$t("message.Commission_tips4"));else{var e={wlCode:this.wlCode.label,nowAmount:this.nowAmount};this.list.push(e),this.business()}else this.customToast(this.$t("message.Commission_tips2"))}},{key:"deleteItem",value:function(e){this.list.splice(e,1),this.business()}},{key:"onSubmit",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return null!=this.list&&0!=this.list.length||this.customToast(this.$t("message.Commission_tips5")),t={poNo:this.form.documentNo,materialCode:this.every.materialCode,loginName:f.session.loginName,factoryCode:f.session.factoryCode,list:this.list},e.next=4,this.model.submitOutsourcing(t);case 4:this.list=[],this.wlCode="",this.nowAmount="",this.every="",this.materialList=[];case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"bill",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var
|