chunk-b41f9964.f2d5233e.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b41f9964"],{"6a30":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{overflow:"auto","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"},[e("div",{staticClass:"home_con_s"},[t.is_show?e("div",{staticClass:"pack_up"},[e("img",{attrs:{src:a("8c39"),alt:""},on:{click:t.handleShow}})]):t._e(),t.is_show?t._e():e("div",{staticClass:"pack_up",class:t.is_show?"":"pack_up_d",staticStyle:{display:"flex",gap:".3125rem"},on:{click:t.handleShow}},[e("div",{staticStyle:{"font-size":"0.88rem",color:"#ABDFFF"}},[t._v("展开")]),e("img",{staticStyle:{width:"0.41rem",height:"0.69rem"},attrs:{src:a("bd8b"),alt:""}})]),t.is_show?e("div",{staticClass:"pack_up_con"},[e("p",{staticClass:"pack_up_name"},[t._v(t._s(t.name))]),e("div",{staticClass:"pack_up_grid"},[e("div",[e("p",[t._v("预发总数")]),e("div",[e("span",[t._v(t._s(t.total_num))]),e("span",[t._v("张")])])]),e("div",[e("p",[t._v("已扫总数")]),e("div",[e("span",[t._v(t._s(t.scan_num))]),e("span",[t._v("张")])])]),e("div",[e("p",[t._v("未扫总数")]),e("div",[e("span",[t._v(t._s(t.total_num-t.scan_num))]),e("span",[t._v("张")])])]),e("div",{on:{click:t.handleErrorShow}},[e("p",[t._v("异常总数")]),e("div",[e("span",{staticStyle:{color:"red !important"}},[t._v(t._s(t.error_num))]),e("span",[t._v("张")])])])])]):t._e()]),t._l(t.tableData,(function(a,o){return t.tableData.length>0?e("div",{key:o,staticClass:"send_work"},[e("div",{staticClass:"secd_flex",staticStyle:{"margin-top":".8rem"}},[e("div",{staticClass:"secd_title"},[e("span",[t._v("发货单号:")]),e("span",[t._v(" "+t._s(t.data.data.exe_delivery_note_b.no))])]),e("span",{staticClass:"secd_title_d"},[t._v(t._s(a.material_name))]),e("div",{staticClass:"secd_g"},[e("span",[t._v("规格型号:")]),e("span",[t._v(t._s(a.specs))])]),e("div",{staticClass:"secd_flex_w"},[e("div",{staticClass:"secd_flex_s"},[e("span",[t._v("已扫到数量:")]),e("span",[t._v(t._s(a.out_qty)+"张")])]),e("div",{staticClass:"secd_flex_s"},[e("span",[t._v("未发货数量:")]),e("span",[t._v(t._s(a.this_delivery_qty)+"张")])])])])]):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.handleSureClick}},[t._v("确认")])])],2)]),e("Modal",{attrs:{width:"80","footer-hide":"",closable:!1,"mask-closable":!1},model:{value:t.is_error,callback:function(e){t.is_error=e},expression:"is_error"}},[e("div",{staticStyle:{"font-size":"1.2rem","font-weight":"bold"}},[t._v("异常数据")]),e("div",{staticStyle:{height:"50vh",overflow:"auto"}},t._l(t.error_data,(function(a,o){return e("Form",{key:o,staticStyle:{width:"100%","background-color":"rgba(79,97,201,0.21)","border-radius":"1rem",margin:".7rem 0"},attrs:{"label-width":120}},[e("FormItem",{staticStyle:{"margin-bottom":".2rem !important"},attrs:{label:"包装单号:"}},[e("span",[t._v(t._s(a.box_no))])]),e("FormItem",{staticStyle:{"margin-bottom":".2rem !important"},attrs:{label:"订单号:"}},[e("span",[t._v(t._s(a.order_no))])]),e("FormItem",{staticStyle:{"margin-bottom":".2rem !important"},attrs:{label:"客户名称:"}},[e("span",[t._v(t._s(a.box_detail.customer_name))])]),e("FormItem",{staticStyle:{"margin-bottom":".2rem !important"},attrs:{label:"产品名称:"}},[e("span",[t._v(t._s(a.box_detail.product_title))])]),e("FormItem",{staticStyle:{"margin-bottom":".2rem !important"},attrs:{label:"规格型号:"}},[e("span",[t._v(t._s(a.box_detail.product_size))])]),e("FormItem",{staticStyle:{"margin-bottom":"0"},attrs:{label:"包装数量:"}},[e("span",[t._v(t._s(a.box_num))])])],1)})),1),e("div",{staticStyle:{"text-align":"center"}},[e("Button",{staticStyle:{"margin-left":"1rem"},attrs:{type:"primary"},on:{click:function(e){t.is_error=!1}}},[t._v("返回")])],1)]),e("Modal",{attrs:{width:"80","footer-hide":"",closable:!1,"mask-closable":!1},model:{value:t.is_modal,callback:function(e){t.is_modal=e},expression:"is_modal"}},[e("div",{staticStyle:{"font-size":"1.2rem","font-weight":"bold"}},[t._v("物流信息")]),e("Form",{attrs:{"label-width":120}},[e("FormItem",{attrs:{label:"司机姓名:"}},[e("Input",{attrs:{clearable:"",placeholder:"请输入司机姓名"},model:{value:t.modalData.carrier,callback:function(e){t.$set(t.modalData,"carrier",e)},expression:"modalData.carrier"}})],1),e("FormItem",{attrs:{label:"司机联系电话:"}},[e("Input",{attrs:{clearable:"",placeholder:"请输入司机联系电话"},model:{value:t.modalData.carrier_phone,callback:function(e){t.$set(t.modalData,"carrier_phone",e)},expression:"modalData.carrier_phone"}})],1),e("FormItem",{attrs:{label:"车牌号码:"}},[e("Input",{attrs:{clearable:"",placeholder:"请输入车牌号码"},model:{value:t.modalData.plate_no,callback:function(e){t.$set(t.modalData,"plate_no",e)},expression:"modalData.plate_no"}})],1),e("FormItem",{attrs:{label:"司机身份证号码:"}},[e("Input",{attrs:{clearable:"",placeholder:"请输入司机身份证号码"},model:{value:t.modalData.id_number,callback:function(e){t.$set(t.modalData,"id_number",e)},expression:"modalData.id_number"}})],1),e("FormItem",{attrs:{label:"附件"}},[e("div",{staticClass:"total_img"},[t._l(t.modalData.attachment.attachFile,(function(a,o){return e("div",{key:o,staticClass:"img_content"},[e("div",[t._v(t._s(a.name))]),e("Icon",{staticClass:"delete-img",attrs:{size:"20",type:"ios-close-circle"},on:{click:function(e){return t.handleDelet(o)}}})],1)})),e("Upload",{directives:[{name:"show",rawName:"v-show",value:3!=t.modalData.attachment.attachFile.length,expression:"modalData.attachment.attachFile.length!=3"}],attrs:{multiple:"",headers:t.headers,"show-upload-list":!1,"on-success":(e,a)=>t.handleSuccess(e,a),"before-upload":t.handleError,data:t.imgData,action:t.$store.state.ip+"/api/upload"}},[e("div",{staticClass:"upd_file"},[e("Icon",{staticClass:"ico",attrs:{type:"ios-cloud-upload-outline",size:"30"}})],1)])],2)])],1),e("div",{staticStyle:{"text-align":"center"}},[e("Button",{staticStyle:{"margin-right":"1rem"},attrs:{type:"error"},on:{click:function(e){t.is_modal=!1}}},[t._v("取消")]),e("Button",{staticStyle:{"margin-left":"1rem"},attrs:{type:"primary"},on:{click:t.handelGoSure}},[t._v("确认")])],1)],1)],1)},i=[],s={data(){return{imgData:{url:"http://122.112.250.253:7774/jbl/api/file/upload",header:[]},headers:{},modalData:{carrier:"",carrier_phone:"",plate_no:"",id_number:"",attachment:{attachFile:[]}},is_modal:!1,name:"",error_num:0,employee_code:"",tableData:[],key_tableData:{},send_goods_out:{},data:{},send_goods_out_product:{},is_show:!0,is_use:!1,total_num:0,scan_num:0,saveData:0,detail:{},transport_total:0,scan_data:[],new_table_data:[],state:!0,is_error:!1,error_data:[]}},mounted(){const t=localStorage.getItem("token"),e=JSON.parse(localStorage.getItem("site"));this.imgData.header=["Authorization:Bearer "+t,"Content-Type:application/json","Site:"+e.site],this.name=JSON.parse(localStorage.getItem("userDto")).name,this.employee_code=JSON.parse(localStorage.getItem("userDto")).mark1Code,this.handleShow(),this.tableData=[];const a=this.$route.query.id,o={url:"http://122.112.250.253:7774/jbl/api/module-data/delivery_note/delivery_note/478838363726815232/"+a};this.initData(o)},destroyed(){},methods:{handleErrorShow(){this.error_num&&(this.is_error=!0)},handleDelet(t){this.modalData.attachment.attachFile.splice(t,1)},handleSuccess(t,e){200===t.code&&(t.data.data.name=t.data.data.name.split("/")[t.data.data.name.split("/").length-1],this.modalData.attachment={attachFile:[...this.modalData.attachment.attachFile,t.data.data],createdBy:t.data.data.createdBy,createdDate:t.data.data.createdDate,deleted:t.data.data.deleted,id:t.data.data.id,insertCreateBy:null,lastModifiedBy:t.data.data.lastModifiedBy,lastModifiedDate:t.data.data.lastModifiedDate,remark:t.data.data.remark,transport:null})},handleError(t){},initData(t){this.axios.post("/api/testdwyget",{...t}).then(t=>{this.data=t.data,this.detail=t.data.data.exe_delivery_note_b,console.log(this.detail),this.modalData.attachment=this.detail.attachment?this.detail.attachment:{attachFile:[]},this.modalData.id_number=this.detail.id_number,this.modalData.carrier=this.detail.carrier,this.modalData.carrier_phone=this.detail.carrier_phone,this.modalData.plate_no=this.detail.plate_no,t.data.data.exe_delivery_note_dtl_b.forEach((t,e)=>{t.out_qty=0,t.product_code=t.material_code,this.total_num=this.total_num+t.this_delivery_qty;let a=this.deelUniqueProductKey(t);-1!==Object.keys(this.key_tableData).indexOf(a)?this.key_tableData[a].this_delivery_qty+=t.this_delivery_qty:this.key_tableData[a]=t});for(let i in this.key_tableData)this.tableData.push(this.key_tableData[i]);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))})}let a=localStorage.getItem("text")?JSON.parse(localStorage.getItem("text")):[];e.forEach(t=>{-1===a.indexOf(t)&&a.push(t)}),localStorage.setItem("text",JSON.stringify(a));const o={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:a}};this.initDataBox(o)})},initDataBox(t){this.$Message.warning(t.post["defective_order_no_list"].toString()),this.axios.post("/api/testdwy",{...t}).then(t=>{200==t.code&&(this.$Message.success("请求成功!"),t.data.data.forEach((t,e)=>{t.product_code=t.product_no;let a={order_item_id:t.order_item_id,order_no:t.order_no,box_num:t.box_num,product_code:t.product_code,box_no:t.box_orders.defective_order_no,color:t.color,color_two:t.color_two,process_title:t.process_title,process_title_two:t.process_title_two,box_orders:t.box_orders.id,box_id:t.box_orders.id,box_detail:t};this.scan_data.push(a)}),this.deelTableData())})},deelUniqueKey(t){let e=t.box_orders_show;return e},deelUniqueProductKey(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.error_data=[],this.scan_data.forEach((t,e)=>{if(t.order_no==this.detail.order_no&&-1!==Object.keys(this.key_tableData).indexOf(this.deelUniqueProductKey(t))&&this.key_tableData[this.deelUniqueProductKey(t)].this_delivery_qty-t.box_num>=0){let e=JSON.parse(JSON.stringify(this.key_tableData[this.deelUniqueProductKey(t)]));e.box_orders=t.box_id,e.box_orders_show=t.box_no,e.box_detail=t.box_detail,e.this_delivery_qty=t.box_num,e.out_qty=t.box_num,this.key_tableData[this.deelUniqueProductKey(t)].this_delivery_qty-=1*t.box_num,this.key_tableData[this.deelUniqueProductKey(t)].out_qty+=1*t.box_num,this.scan_num+=1*t.box_num,e.id=null,this.new_table_data.push(e)}else this.error_data.push(t),this.error_num+=1*t.box_num})},handleSureClick(){this.is_modal=!0},handelGoSure(){this.tableData.forEach((t,e)=>{t.item_num=e+1});const t=new Date,e=t.toISOString();this.data={bizId:-1,bizTypeEk:"LOWCODE",createdDate:e,dynamicFormId:"474057887278641152",showModelId:"474061442555260928",version:1,data:{send_goods_out:{},send_goods_out_product:[]}},this.data.data.send_goods_out={send_goods_out_no:null,in_out_type:"CK007",box_title:"WH05001",out_time:e,out_depart:"481280388644478976",out_employee_id:this.employee_code,expect_date_delivery:this.detail.expect_date_delivery,expect_date_arrival:this.detail.expect_date_arrival,delivery_method_dk:this.detail.delivery_method_dk,express_company:null,express_no:null,carrier:this.modalData.carrier,carrier_phone:this.modalData.carrier_phone,plate_no:this.modalData.plate_no,id_number:this.modalData.id_number,attachment:this.modalData.attachment,area_selection:this.detail.area_selection,detailed_address:this.detail.detailed_address,contact:this.detail.contact,contact_way:this.detail.contact_way,status:"NOT_APPROVED",oa_id:null,oa_time:null,remark:null,order_no:this.detail.order_no,site:null,in_out_type_show:"成品发货出库",box_title_show:"成品仓",out_depart_show:"仓储部",out_employee_id_show:this.name,delivery_method_dk_show:this.detail.delivery_method_dk_show,area_selection_show:this.detail.area_selection_show},this.new_table_data.forEach((t,e)=>{let a={item_num:e+1,product_code:t.box_detail.product_code,product_title:t.box_detail.product_title,product_size:t.box_detail.product_size,product_unit:t.box_detail.product_unit,product_unit_title:t.box_detail.product_unit_title,process_code:t.box_detail.process_code,color_code:t.box_detail.color_code,process_code_two:t.box_detail.process_code_two,color_code_two:t.box_detail.color_code_two,process_title:t.box_detail.process_title,color:t.box_detail.color,process_title_two:t.box_detail.process_title_two,color_two:t.box_detail.color_two,bus_no:this.detail.no,bus_id:t.bus_id,bus_item_id:t.bus_item_id,bus_item_no:t.item_no,order_no:t.box_detail.order_no,out_qty:t.out_qty,this_delivery_qty:t.out_qty,order_item_id:t.order_item_id,unit_price:t.unit_price,site:null,customer_name:t.box_detail.customer_name,customer_no:t.box_detail.customer_no,dealer_name:t.box_detail.dealer_name,dealer_no:t.box_detail.dealer_no,box_orders:t.box_detail.box_orders.id,box_orders_show:t.box_detail.box_orders.defective_order_no};this.data.data.send_goods_out_product.push(a)});let a={url:"http://122.112.250.253:7774/jbl/api/module-data/send_goods_out/send_goods_out",post:this.data};this.state&&(this.state=!1,this.axios.post("/api/testdwy",a).then(t=>{200===t.code&&(this.$Message.success(t.msg),this.is_modal=!1,this.$router.go(-1)),setTimeout(()=>{this.state=!0},5e3)}))},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}}},r=s,l=(a("9f64"),a("2877")),d=Object(l["a"])(r,o,i,!1,null,"4dc888b2",null);e["default"]=d.exports},"8c39":function(t,e,a){t.exports=a.p+"static/img/collect.7e6cbc97.png"},"9f64":function(t,e,a){"use strict";a("fe31")},bd8b:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAsCAYAAAB7aah+AAAAAXNSR0IArs4c6QAAA9xJREFUWEe911toHFUcx/Hvf5ImUatVmnqJpDMRxEtR8cVbBVF8aI0xzV5AEUuRFC2K+lJvpShKWwXRl4J9UMSKiGY3mF4spWjBS/RFfJPiQ3c3KWmraakJtUmTzE9mJGGT7El2N4vzOnP+n/mf+Z//OWP8T5dFzpGzWnFuhA8MuhADnsdzCd9+rOU7xFAmr4xEsijwhHlsTvn2aa2w/6CcRgSXzw1qxo6kz3Yz01LBGOrJ6wfE/aWCGXy5EjY92GZjS8FiqPeE7pia4HvgipKY0X9pIxseuc7+qhaLoXj6ClpDyEGB78COI9pTbXasGmwGigb3ndY1F/9hH3CXAzvnQTIR2HeVYrOgaHD/oC4ZmuKzOVVYHHeiDp5JtNknlWDzoGiwJMvkeQd42RnMY1dqNdvKrciS0HTwbF7dgg8l6kuCRk+z2FhORS4IRcGzBT0chmSAFY7v9ovXRGfiWvtzoalcFIoGf13QrZPioETgyCy3zHh0g2+/u7CyoHitndLV4Rh9Evc4gv2NRzLt27eOhV9+7RzNqWnY2ItIO6Zx0mBLMrCP5t4vO6PpgVFFZgfYqZBXXa/owbuJgNeKK7JiaKaT5PW0xB5gmWOqvrol4Kk1Zhej+1VD8XfL66EQshJXOookkw4snuYlQVGATE43Y3FF3lAS8+hI+3ZgyVAU/JuTWnV+nD7EvfMwI86qJlAUPKrIM0a/xJ3FmBknUoG11gyKu0hOm0KY1WwNxlNt1lRbKK8doXh9TkZnUoE11wzK5PSEIDrMzCp3M/pTga2tCZTN6SUZ70slqtjYmg7svSVBUZfozbMrhFccXeJ0w3Ju7Fxlo1VDR6X64TwfAxsdi3UK6EgHdqjqBXv4lC4bHaNHYr2ruWJ0Fx9AK85o/5Cax8c5ILjbkcl5ID2dyfQzFUHZIfnhOIeBm1zfpN6jvcu3X6veJjKDul1THEK0OLr1H+axPunb8ao3vt5BPTA1Sd9C54bGBjo6WmzYtUctOnWZvJKIzwWNjiD7rq/n8fta7cJCe/WCUCanLTJ2I7yS0+GxJ7ma580sKuUFLyeUzeutUGx3jja2pQPbuRjgrDpJddlCfGjc7AgyUefRnfBtb7nIvAUbn7sn+ULQ6aicUc8jmfDtSCXILOhAQVeNif0Sax2r/STQngrst0qRGShqKSMX+Bm4zYEcswbWJVusUA0yA2ULeiMMedOB/LS8jsfWtdrZapEZqCevXkTXvLZh9K4UT5bzt7DYS0z/lT8b/Z4UP2zG7qTPi2YWLhaknPsxFG9gA2wNxQvRWc/E26k2i06hNbsWbUG1kv4F23dePMrSt/kAAAAASUVORK5CYII="},fe31:function(t,e,a){}}]);