(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6c8c1f7c"],{"24b2":function(t,e,s){},4331:function(t,e,s){"use strict";s.r(e);var a=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:"产品数",disabled:t.is_use}}),e("b-dropdown",{staticClass:"m-2",attrs:{size:"sm",text:"已包数",disabled:t.is_use}}),e("b-dropdown",{staticClass:"m-2",attrs:{size:"sm",text:"未包数",disabled:t.is_use}})],1),e("div",{staticClass:"header_middle1 ot"},[e("div",{staticClass:"ft"},[t._v(t._s(this.product_total)+"  ")]),e("div",{staticClass:"ft"},[t._v(t._s(this.box_num)+"  ")]),e("div",{staticClass:"ft"},[t._v(t._s(this.product_total-this.box_num)+"  ")])]),e("div",{staticClass:"header_footer"})]),e("div",{staticClass:"bdy"},[e("table",[t._m(0),t._l(t.tableData,(function(s,a){return e("tr",{key:a,class:s.is_choose?"choose_item":"",on:{click:function(e){return t.handleChoose(s,a)}}},[e("td",[t._v(t._s(s.material_code_show))]),e("td",[t._v(t._s(s.specs))]),e("td",[t._v(" "+t._s(s.decor_code_show)+" ")]),e("td",[t._v(t._s(s.box_num_total))]),e("td",[t._v(t._s(s.qty-s.box_num_total))])])}))],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)])},i=[function(){var t=this,e=t._self._c;return e("tr",{staticStyle:{height:"2rem"}},[e("th",{staticStyle:{width:"4rem"}},[t._v("产品名称")]),e("th",{staticStyle:{width:"3rem"}},[t._v("规格型号")]),e("th",{staticStyle:{width:"3rem"}},[t._v("花色")]),e("th",{staticStyle:{width:"3rem"}},[t._v("已包装数量")]),e("th",{staticStyle:{width:"3rem"}},[t._v("未包装数量")])])}],o={data(){return{tableData:[],is_show:!0,is_use:!1,product_total:0,box_num:0}},mounted(){this.tableData=[];const t={url:"http://121.36.142.167:7774/jbl/api/module-data/exe_sale_order_b/page",post:{direction:"DESC",property:"id",fromClientType:"pc",number:0,sorts:[],rules:[],size:15,specialConditions:[],dynamicFormCode:"exe_sale_order_b",developmentSystemId:null,debugFlag:!1}};this.initData(t)},methods:{initData(t){this.axios.post("/api/testdwy",{...t}).then(t=>{t.data.content.forEach(t=>{t.is_choose=!1,t.no=t.exe_sale_order_b.no,t.un_box_num=t.qty-t.box_num_total,this.product_total+=t.qty,this.box_num+=t.box_num_total}),this.tableData.push(...t.data.content)})},handelGoSure(){if(0===this.tableData.filter(t=>t.is_choose).length)return this.$Message.warning("请先选择数据！");localStorage.removeItem("fyy_target");const t=Math.floor(100*Math.random()),e=JSON.stringify(this.tableData.filter(t=>t.is_choose));localStorage.setItem(t+"",e),this.$router.push({path:"/cms/package/detailed",query:{id:t}})},handleReturn(){localStorage.removeItem("fyy_target"),this.$router.push("/cms/home")},handleChoose(t,e){t.is_choose=!t.is_choose,this.tableData.splice(e,1,t)},handleShow(){this.is_show=!this.is_show,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,l=(s("95dd"),s("2877")),d=Object(l["a"])(r,a,i,!1,null,"920b5462",null);e["default"]=d.exports},"95dd":function(t,e,s){"use strict";s("24b2")}}]);