1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8f5b42dc"],{"0119":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"overflow-y":"scroll","padding-bottom":"6.6rem","box-sizing":"border-box"}},[e("div",[e("div",{staticClass:"home_header"},[t._v("盘点")]),e("div",{staticClass:"home_header_line"}),e("div",{staticClass:"home_con_body"},[t._l(t.tableData,(function(a,s){return t.tableData.length>0?e("div",{key:s,staticClass:"send_work"},[e("div",{staticClass:"secd_flex"},[e("span",{staticClass:"secd_title_d"},[t._v(t._s(a.product_title))]),e("div",{staticClass:"secd_g"},[e("span",[t._v("规格型号:")]),e("span",[t._v(t._s(a.product_size))])]),e("div",{staticClass:"secd_g"},[e("span",[t._v("花色/工艺:")]),e("span",[t._v(t._s(a.color)+t._s(a.color_two)+t._s(a.process_title)+t._s(a.process_title_two))])]),e("div",{staticClass:"secd_flex_w"},[e("div",{staticClass:"secd_flex_s"},[e("span",[t._v("账面数量:")]),e("span",[t._v(t._s(a.balance_num)+"张")])]),e("div",{staticClass:"secd_flex_s"},[e("span",[t._v("盘点数量:")]),e("span",[t._v(t._s(a.check_num)+"张")])])])])]):t._e()})),0==t.tableData.length?e("div",{staticStyle:{display:"flex",width:"100%",height:"10rem","justify-content":"center","align-items":"center"}},[e("Spin",{attrs:{size:"small"}}),e("Spin"),e("Spin",{attrs:{size:"small"}})],1):t._e(),e("div",{staticClass:"footer"},[e("div",{staticClass:"return_btn",on:{click:t.handleReturn}},[t._v("返回")]),e("div",{staticClass:"confirm_btn",on:{click:t.handelGoSure}},[t._v("确认")])])],2)])])},i=[],o={data(){return{tableData:[],key_tableData:{},send_goods_out:{},data:{},send_goods_out_product:{},is_show:!0,is_use:!1,total_num:0,state:!0,scan_num:0,saveData:0,scan_data:[]}},mounted(){this.handleShow(),this.tableData=[];const t=this.$route.query.id,e={url:"http://122.112.250.253: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=>{if("errorVm"===t.data.type)return;this.data=t.data,this.tableData.push(...t.data.data.goods_check_product),this.total_num=0,this.tableData.forEach(t=>{this.total_num+=1*t.balance_num});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://122.112.250.253:7774/jbl/api/module-data/box_orders/box_orders/diy/defective_order_no_list",post:{defective_order_no_list:e}};this.initDataBox(a)})},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=>{t.product_code=t.product_no}),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}),console.log(this.key_tableData),this.deelTableData()})},deelUniqueKey(t){let e=t.product_code+(t.color?t.color:"")+(t.color_two?t.color_two:"")+(t.process_title?t.process_title:"")+(t.process_title_two?t.process_title_two:"");return e},deelTableData(){this.tableData.forEach((t,e)=>{-1!==Object.keys(this.key_tableData).indexOf(this.deelUniqueKey(t))&&(t.check_num+=1*this.key_tableData[this.deelUniqueKey(t)]),this.scan_num+=1*t.check_num})},handelGoSure(){if(0==this.tableData.length)return;this.data.data.goods_check_product=this.tableData;let t={url:"http://122.112.250.253:7774/jbl/api/module-data/goods_check/goods_check",post:this.data};this.state&&(this.state=!1,this.axios.post("/api/testdwy",t).then(t=>{200===t.code&&(this.$Message.success(t.msg),this.$router.go(-1)),setTimeout(()=>{this.state=!0},5e3)}))},handleReturn(){localStorage.removeItem("fyy_target"),this.$router.push("/cms/inventory/index")},handleChoose(t,e){t.is_choose=!t.is_choose,this.tableData.splice(e,1,t)},handleShow(){this.is_show=!this.is_show}}},l=o,c=(a("c23e"),a("2877")),_=Object(c["a"])(l,s,i,!1,null,"749c4d6a",null);e["default"]=_.exports},a741:function(t,e,a){},c23e:function(t,e,a){"use strict";a("a741")}}]);
|