(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-550597a2"],{9157:function(t,e,a){},"9e2b":function(t,e,a){"use strict";a("9157")},e38b:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-card",[a("a-row",{attrs:{align:"middle"}},[a("a-col",{staticClass:"operate",staticStyle:{"padding-right":"25px",display:"flex","align-items":"center"},attrs:{sm:24,xs:24,md:15,xl:11}},[a("a-form",{attrs:{layout:t.formLayout}},[a("a-form-item",[a("label",{staticStyle:{"font-size":"20px",color:"#000000d9",width:"90px"}},[t._v("托 盘 号:")]),a("a-textarea",{ref:"input",attrs:{placeholder:"输入托盘号，获取入库状态的托盘数据，已拼柜、已出库托盘不允许退库不会显示","auto-size":{minRows:3,maxRows:5}},model:{value:t.container,callback:function(e){t.container=e},expression:"container"}})],1)],1)],1),a("a-col",{staticStyle:{display:"flex","align-items":"center",height:"40px"},attrs:{sm:24,md:13,xl:5}},[a("a-button",{staticStyle:{"margin-right":"20px"},attrs:{type:"primary",icon:"search"},on:{click:t.searchInspectContainer}},[t._v("查询")]),a("a-popconfirm",{attrs:{title:"是否确认将列表中的所有托盘全部退库","ok-text":"是","cancel-text":"否"},on:{confirm:t.confirm,cancel:t.cancel}},[a("a-button",{staticStyle:{"background-color":"#1890ff","border-color":"#1890ff"},attrs:{type:"danger",icon:"delete"}},[t._v("退库")])],1)],1)],1)],1),a("a-card",[a("a-form-model",{ref:"formRef",attrs:{rules:t.checkRules,model:t.submitModel,"label-col":{span:6},"wrapper-col":{span:16}}}),a("a-divider",{staticStyle:{margin:"0"}}),a("a-tabs",{attrs:{"default-active-key":"1"}},[a("a-tab-pane",{key:"1",attrs:{tab:"托盘信息"}},[a("a-table",{staticClass:"main-table",attrs:{"data-source":t.tableData,columns:t.columns,loading:t.tableLoading,pagination:!1,scroll:{x:"1500",y:"calc("+t.tableHeight+"px)"},rowKey:"pallet",size:"small"}})],1)],1)],1)],1)},i=[],o=(a("d3b7"),a("159b"),a("a15b"),a("b775")),s={name:"DeliverGoods",data:function(){return{formLayout:"inline",areaList:[],tableData:[],tableHeight:560,tableLoading:!1,columns:[{title:"托盘号",align:"center",dataIndex:"pallet_nbr",width:150},{title:"产品编码",align:"center",dataIndex:"product_code",width:100},{title:"工单号",align:"center",dataIndex:"workorder",width:100},{title:"功率档",align:"center",dataIndex:"power_grade",width:70},{title:"电流档",align:"center",dataIndex:"current_grade",width:70},{title:"最终等级",align:"center",dataIndex:"final_grade",width:70}],container:"",submitModel:{Container:"",Customer:""},checkRules:{Customer:[{required:!0,message:"不能为空",trigger:"blur"}]}}},methods:{submit:function(){var t=this;if(0!==this.tableData.length){var e=[];this.tableData.forEach((function(t){e.push(t.pallet_nbr)}));var a=e.join("','");o["b"].get("/api/deliver/Rwarehouse?packList=".concat(encodeURIComponent(a))).then((function(e){1===e.status?(t.$notification.success({message:"托盘退库成功"}),t.tableData=[],t.container=""):t.$notification.warn({message:e.msg})}))}else this.$notification.warn({message:"托盘明细为空，退库失败！"})},InspectContainer:function(){var t=this;this.submitModel.Container=this.container,this.tableLoading=!0,o["b"].get("/api/deliver/getPacklist?packs=".concat(encodeURIComponent(this.submitModel.Container))).then((function(e){if(1===e.status){if(0===e.data.length)return t.$notification.warn({message:"当前托盘号并非入库状态，无法进行退库"}),t.tableData=[],void(t.tableLoading=!1);t.tableData=e.data,t.tableLoading=!1}else t.$notification.warn({message:e.msg}),t.tableLoading=!1}))},searchInspectContainer:function(){this.InspectContainer()},selectedItems:function(t,e){this.submitModel.FactoryId=parseInt(e.data.key)},confirm:function(t){this.submit()},cancel:function(t){this.$message.error("退库操作已取消")}},mounted:function(){this.$refs.input.focus()}},r=s,l=(a("9e2b"),a("2877")),c=Object(l["a"])(r,n,i,!1,null,null,null);e["default"]=c.exports}}]);