(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1e4e0621"],{"01cc":function(t,s,e){"use strict";e.r(s);var a=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("page-header-wrapper",{staticClass:"deliveGoods",attrs:{breadcrumb:null}},[e("div",{staticClass:"card"},[e("div",{staticClass:"searchbox"},[e("span",{domProps:{innerHTML:t._s(t.lang.duo2(40181,"托盘号"))}}),e("div",[e("a-input",{ref:"input",attrs:{placeholder:t.lang.first2(20922,"扫描托盘号条码，或输入托盘号后回车"),disabled:t.loading},on:{keyup:function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"enter",13,s.key,"Enter")?null:t.getPallet.apply(null,arguments)}},model:{value:t.searchText,callback:function(s){t.searchText=s},expression:"searchText"}})],1)]),e("div",{staticClass:"table"},[e("div",{staticClass:"head"},[e("div",{staticClass:"cell",attrs:{index:""},domProps:{innerHTML:t._s(t.lang.duo2(20104,"序号"))}}),e("div",{staticClass:"cell",attrs:{primary:""},domProps:{innerHTML:t._s(t.lang.duo2(50168,"托盘号"))}}),e("div",{staticClass:"cell",attrs:{code:""},domProps:{innerHTML:t._s(t.lang.duo2(20934,"弃审人"))}}),e("div",{staticClass:"cell",attrs:{code:""},domProps:{innerHTML:t._s(t.lang.duo2(20935,"弃审时间"))}}),e("div",{staticClass:"cell",attrs:{code:""},domProps:{innerHTML:t._s(t.lang.duo2(20936,"弃审状态"))}})]),e("div",{staticClass:"body",attrs:{id:"table-body"}},t._l(t.pallets,(function(s,a){return e("div",{key:a,staticClass:"row",on:{click:function(e){return t.clickRow(s)}}},[e("div",{staticClass:"cell",attrs:{index:""},domProps:{textContent:t._s(a+1)}}),e("div",{staticClass:"cell",attrs:{primary:""},domProps:{textContent:t._s(s.pallet_nbr)}}),e("div",{staticClass:"cell",attrs:{code:""},domProps:{textContent:t._s(s.user_name)}}),e("div",{staticClass:"cell",attrs:{code:""},domProps:{textContent:t._s(s.time_lucid)}}),e("div",{staticClass:"cell",attrs:{code:"",title:t.explainStatus(2,s)}},[t._v(t._s(t.explainStatus(1,s)))])])})),0)])])])},n=[],i=(e("498a"),e("d3b7"),e("4de4"),e("b775")),l=e("2b0e"),r=e("a388"),o=e.n(r),c=(e("c695"),e("778e"),e("5734")),d=e.n(c);o.a.use(d.a),l["default"].use(o.a);var u={name:"ErpStockOut",data:function(){return{loading:!1,searchText:"",pallets:[],queue:[],stocks:[],stock:null,locations:[],location:null,types:[],type:null,salesmans:[],salesman:null,lotNo:"",lang:window.lang}},watch:{loading:function(){for(var t=document.getElementsByTagName("select"),s=0;s<t.length;s++){var e=t[s];"submit-select"==e.className&&(this.loading?e.setAttribute("disabled","disabled"):e.removeAttribute("disabled"))}}},methods:{explainStatus:function(t,s){if(1===t)switch(s.old_status){case 0:return this.lang.first2(20984,"正在包装");case 1:return this.lang.first2(20985,"待入库");case 2:return this.lang.first2(20986,"已申请入库");case 3:return this.lang.first2(20987,"已入库");case 4:return this.lang.first2(20988,"已拼柜");case 5:return this.lang.first2(20989,"已发货");default:return String(s.old_status)}if(2===t)switch(s.old_status){case 0:return this.lang.second2(20984,"正在包装");case 1:return this.lang.second2(20985,"待入库");case 2:return this.lang.second2(20986,"已申请入库");case 3:return this.lang.second2(20987,"已入库");case 4:return this.lang.second2(20988,"已拼柜");case 5:return this.lang.second2(20989,"已发货");default:return String(s.old_status)}},getPallet:function(t){var s=this,e=this.searchText;return this.searchText="",e&&(e=e.trim()),e?this.loading?this.$notification.warn({message:lang.brackets2(20928,"正在处理，请稍后再操作")}):(this.loading=!0,void i["b"].get("/api/wms/changePalletsStatus?pallet_nbr="+encodeURIComponent(e)).then((function(t){s.listGet(),t.status?(s.$notification.info({message:lang.brackets2(20937,"托盘【{0}】已退审",e)}),s.$nextTick((function(){var t=document.getElementById("table-body");t&&t.scrollTo(t.scrollLeft,t.scrollHeight)}))):t.msg&&s.$notification.error({message:t.msg})})).finally((function(){s.loading=!1,"function"==typeof t&&t()}))):this.$notification.error({message:lang.brackets2(20927,"未输入托盘号")})},clickRow:function(t){if(this.loading)return this.$notification.warn({message:lang.brackets2(20928,"正在处理，请稍后再操作")});t.selected=!t.selected},clickRemove:function(t){if(this.loading)return this.$notification.warn({message:lang.brackets2(20928,"正在处理，请稍后再操作")});t&&(this.pallets=this.pallets.filter((function(s){return s!=t})))},listGet:function(){var t=this,s="/api/wms/getUnapprovalLog";i["b"].get(s).then((function(s){s.status?t.pallets=s.data:s.msg&&t.$notification.error({message:s.msg})})).catch((function(s){t.$notification.error({message:String(s)})}))}},mounted:function(){window.vue=this,this.listGet(),this.$refs.input.focus()}},g=u,f=(e("1e13"),e("2877")),h=Object(f["a"])(g,a,n,!1,null,null,null);s["default"]=h.exports},"1e13":function(t,s,e){"use strict";e("72e9")},"72e9":function(t,s,e){}}]);