chunk-2af58fa3.de9a5d7e.js 5.3 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2af58fa3"],{"0119":function(t,e,a){"use strict";a.r(e);var s=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-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:"盘点日期",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:"盘点人员",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),e("div",{staticClass:"header_middle1 ot"},[e("div",{staticClass:"ft"},[t._v(t._s(t.intentory_no)+"  ")]),e("div",{staticClass:"ft"},[t._v(t._s(t.intentory_date)+"  ")]),e("div",{staticClass:"ft"},[t._v(t._s(t.intentory_name)+"  ")])]),e("div",{staticClass:"header_footer"})]),e("div",{staticClass:"bdy"},[e("table",[t._m(0),t._l(t.tableData,(function(a,s){return e("tr",{key:s,on:{click:function(e){return t.handleChoose(a,s)}}},[e("td",[t._v(" "+t._s(a.product_title)+" ")]),e("td",[t._v(t._s(a.product_size))]),e("td",[t._v(t._s(a.color))]),e("td",[t._v(t._s(a.balance_num))]),e("td",[t._v(t._s(a.check_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)])},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:[],key_tableData:{},send_goods_out:{},data:{},send_goods_out_product:{},is_show:!0,is_use:!1,intentory_no:"",intentory_date:"",intentory_name:"",saveData:0,scan_data:[]}},mounted(){this.tableData=[];const t=this.$route.query.id,e={url:"http://121.36.142.167:7774/jbl/api/module-data/goods_check/goods_check/477657155772747776/"+t};this.initData(e)},methods:{initData(t){this.axios.post("/api/testdwyget",{...t}).then(t=>{this.intentory_no=t.data.data.goods_check.goods_check_no,this.intentory_date=t.data.data.createdDate,this.intentory_name=t.data.data.goods_check.check_employee_id_show,this.data=t.data,this.tableData.push(...t.data.data.goods_check_product);let e=[];if(localStorage.getItem("fyy_target")){let t=JSON.parse(localStorage.getItem("fyy_target"));localStorage.removeItem("fyy_target"),t.forEach(t=>{t=t.replace(/\"/g,""),e.push(this.func.hexToString(t))})}const a={url:"http://121.36.142.167:7774/jbl/api/module-data/box_orders/box_orders/diy/defective_order_no_list",post:{defective_order_no_list:e}};this.initDataBox(a),this.deelTableData()})},initDataBox(t){this.$Message.warning(t.post["defective_order_no_list"].toString()),this.axios.post("/api/testdwy",{...t}).then(t=>{t.data.data.forEach((t,e)=>{-1!==Object.keys(this.key_tableData).indexOf(this.deelUniqueKey(t))?this.key_tableData[this.deelUniqueKey(t)]+=t.box_num:this.key_tableData[this.deelUniqueKey(t)]=t.box_num}),this.deelTableData()})},deelUniqueKey(t){let e=t.product_code;return e},deelTableData(){this.tableData.forEach((t,e)=>{-1!==Object.keys(this.key_tableData).indexOf(this.deelUniqueKey(t))&&(t.check_num=this.key_tableData[this.deelUniqueKey(t)])})},handelGoSure(){this.data.data.goods_check_product=this.tableData;let t={url:"http://121.36.142.167:7774/jbl/api/module-data/goods_check/goods_check",post:this.data};this.axios.post("/api/testdwy",t).then(t=>{200===t.code&&(this.$Message.success(t.msg),this.$router.go(-1))})},handleReturn(){localStorage.removeItem("fyy_target"),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;")}}},d=o,n=(a("965a"),a("2877")),r=Object(n["a"])(d,s,i,!1,null,"3897ffbe",null);e["default"]=r.exports},"5eea":function(t,e,a){},"965a":function(t,e,a){"use strict";a("5eea")}}]);