(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f965fc8a"],{"544b":function(t,e,s){"use strict";s("6a59")},"6a59":function(t,e,s){},"7c15":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"header"},[e("div",{staticClass:"header_top"},[e("Button",{staticClass:"header_btn",attrs:{type:"primary",ghost:"",icon:t.is_show?"ios-arrow-dropup":"ios-arrow-dropdown"},on:{click:t.handleShow}},[e("div",{staticStyle:{"margin-right":"0.6rem"}},[t._v(" "+t._s(t.is_show?"收起":"展开")+" ")])]),e("div",{staticStyle:{"margin-right":"1rem",color:"#66a9f0"}},[t._v("王小伟")])],1),e("div",{staticClass:"header_middle"},[e("b-dropdown",{staticClass:"m-2",attrs:{size:"sm",text:"Large",disabled:t.is_use}},[e("b-dropdown-item-button",[t._v("Action")]),e("b-dropdown-item-button",[t._v("Another action")]),e("b-dropdown-item-button",[t._v("Something else here")])],1),e("b-dropdown",{staticClass:"m-2",attrs:{size:"sm",text:"Large",disabled:t.is_use}},[e("b-dropdown-item-button",[t._v("Action")]),e("b-dropdown-item-button",[t._v("Another action")]),e("b-dropdown-item-button",[t._v("Something else here")])],1),e("b-dropdown",{staticClass:"m-2",attrs:{size:"sm",text:"Large",disabled:t.is_use}},[e("b-dropdown-item-button",[t._v("Action")]),e("b-dropdown-item-button",[t._v("Another action")]),e("b-dropdown-item-button",[t._v("Something else here")])],1)],1),t._m(0),t._m(1)]),e("div",{staticClass:"bdy"},[e("table",[t._m(2),t._l(t.tableData,(function(s,i){return e("tr",{key:i,class:s.is_choose?"choose_item":"",on:{click:function(e){return t.handleChoose(s,i)}}},[e("td",{staticStyle:{width:"2rem"}},[t._v(" "+t._s(s.dispatch_no)+" ")]),e("td",{staticStyle:{width:"5rem"}},[t._v(t._s(s.product_title))]),e("td",[t._v(t._s(s.finished_num))]),e("td",[t._v(t._s(s.un_finished_quantity))])])}))],2)]),e("div",{staticClass:"footer"},[e("Button",{staticClass:"header_btn",staticStyle:{"margin-right":"3rem",height:"2.6rem"},attrs:{type:"primary"},on:{click:t.handleReturn}},[t._v(" 返回")]),e("Button",{staticClass:"header_btn",staticStyle:{"margin-left":"3rem",height:"2.6rem"},attrs:{type:"primary"},on:{click:t.handelGoSure}},[t._v(" 确认")])],1)])},a=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"header_middle1 ot"},[e("div",{staticClass:"ft"},[t._v("58  ")]),e("div",{staticClass:"ft"},[t._v("12  ")]),e("div",{staticClass:"ft"},[t._v("12  ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"header_footer"},[e("div",{staticStyle:{"margin-left":"1rem"}},[t._v("已完成56/10")]),e("div",{staticStyle:{"margin-right":"1.4rem"}},[t._v("已完成10%")])])},function(){var t=this,e=t._self._c;return e("tr",{staticStyle:{height:"2rem"}},[e("th",[t._v("派工单号")]),e("th",[t._v("产品名称")]),e("th",[t._v("已完工数量")]),e("th",[t._v("未完工数量")])])}],o={data(){return{tableData:[],is_show:!0,is_use:!1}},mounted(){let t={};this.$Message.success("11111"+localStorage.getItem("fyy_target")),localStorage.getItem("fyy_target")&&(t.target=JSON.parse(localStorage.getItem("fyy_target")),this.$Message.success(localStorage.getItem("fyy_target"))),this.initData(t)},methods:{initData(t){this.axios.post("/api/finishedOrderList",{...t,process_id:this.$route.query.id}).then(t=>{this.tableData=t.data.data?t.data.data:[],this.tableData.forEach(t=>{t.is_choose=!1})})},handelGoSure(){if(0==this.tableData.filter(t=>t.is_choose).length)return this.$Message.warning("请先选择数据！");let t=this.tableData.map(t=>t.id).toString();this.$router.push({path:"/cms/finish/detailed",query:{id:t}})},handleReturn(){this.$router.push("/cms/finish")},handleChoose(t,e){t.is_choose=!t.is_choose,this.tableData.splice(e,1,t)},handleShow(){this.is_show=!this.is_show,console.log(document.getElementsByClassName("header")),this.is_show?(document.getElementsByClassName("header")[0].style="height:7rem;overflow:hidden;transition:all .4s;",setTimeout(()=>{document.getElementsByClassName("header")[0].style="overflow:none;",this.is_use=!1},400)):(this.is_use=!0,document.getElementsByClassName("header")[0].style="height:2.7rem;overflow:hidden;transition:all .4s;")}}},r=o,n=(s("544b"),s("2877")),d=Object(n["a"])(r,i,a,!1,null,"dedcf1f0",null);e["default"]=d.exports}}]);