chunk-26d01dfa.0e1ce1f5.js 4.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26d01dfa"],{"03fd":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",[t._v(" "+t._s(s.dispatch_no)+" ")]),e("td",[t._v(t._s(s.product_title))]),e("td",[t._v(t._s(s.size))]),e("td",[t._v(t._s(s.finished_num))]),e("td",[t._v(t._s(s.not_finished_num))])])}))],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",{staticStyle:{width:"3rem"}},[t._v("派工单号")]),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("未完工数量")])])}],o={data(){return{tableData:[],is_show:!0,is_use:!1}},mounted(){this.tableData=[];const t="PG2023081000025,PG2023081000024".split(",");t.forEach(t=>{const e={url:"http://121.36.142.167:7774/jbl/api/module-data/dispatch_orders/page",post:{direction:"DESC",property:"id",fromClientType:"pc",number:0,sorts:[],rules:[{field:"dispatch_orders.dispatch_no",option:"LIKE_ANYWHERE",values:[t]},{field:"product_no",option:"LIKE_ANYWHERE",values:["BC030101000001"]}],size:15,specialConditions:[],workflowSearchBean:{},dynamicFormCode:"dispatch_orders",dynamicFormTable:null,ignoreField:!0,developmentSystemId:null,debugFlag:!0}};this.initData(e)})},methods:{initData(t){this.axios.post("/api/testdwy",{...t}).then(t=>{t.data.content.forEach(t=>{t.is_choose=!1,t.dispatch_no=t.dispatch_orders.dispatch_no,t.not_finished_num=t.dispatch_num-t.finished_num}),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/finish/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,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("c824"),s("2877")),d=Object(n["a"])(r,i,a,!1,null,"4179d326",null);e["default"]=d.exports},c824:function(t,e,s){"use strict";s("03fd")}}]);