HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.2.20
System: Linux 825a8fd6cf8c 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User: apache (48)
PHP: 8.2.20
Disabled: NONE
Upload Files
File: /var/www/html/public/static/js/assemble-b887ae1a.js
import{ab as d}from"./message-2472a54a.js";import{_ as R}from"./help_icon-0d3c7670.js";import{useEqu as j}from"./hookAssemble-d412d4be.js";import{uploadBom as z}from"./po-7d33d434.js";import{d as C,r as H,o as J,Q as y,e as i,f as a,g as t,y as p,m as _,v,u as e,i as W,F as r,I as m,l as c,p as u,t as U,x as f,b5 as Y,b4 as Z}from"./runtime-core.esm-bundler-6128546f.js";import{_ as tt}from"./_plugin-vue_export-helper-c27b6911.js";import"./upload-0ec567a8.js";import"./error-78e43d3e.js";import"./index-9a513338.js";import"./preload-helper-78dc9057.js";import"./vue-i18n.runtime.esm-bundler-6949bcab.js";import"./index-b7f916e1.js";import"./_commonjsHelpers-87174ba5.js";import"./vue-router-a383d220.js";import"./utils-2ab4f76a.js";const s=g=>(Y("data-v-75081b5e"),g=g(),Z(),g),lt={class:"main"},et={class:"upload-demo_box"},nt={class:"main_box"},ot={class:"left",style:{width:"70%"}},st={class:"table_td",width:"100%"},dt=s(()=>t("td",{class:"switch_box",style:{padding:"10px 0 0 0"}},"是否返单:",-1)),ut=s(()=>t("td",null,"选择客户",-1)),it={colspan:"2"},at=s(()=>t("td",null,"客户产品型号",-1)),pt=s(()=>t("td",null,"无铅",-1)),_t=s(()=>t("td",null,[v("数量"),t("span",{class:"red"},"*")],-1)),rt=s(()=>t("td",null,"尺寸",-1)),mt={class:"deliver_dimension_unit"},yt=s(()=>t("td",{class:"smd_comp_side"},"贴片面",-1)),ct=s(()=>t("td",null,"插件面",-1)),xt=s(()=>t("td",null,"贴片脚数",-1)),Vt=s(()=>t("td",null,"焊接元件种类",-1)),bt=s(()=>t("td",null,"BGA IC数量 焊球数量",-1)),ft=s(()=>t("td",null,"插件脚数",-1)),vt=s(()=>t("td",null,"贴片元件 ( 0201 ) 数量",-1)),gt=s(()=>t("td",null,"插件轴向元件 ( 如电阻,电容,二极管 ) 数量",-1)),qt=s(()=>t("td",null,"贴片元件 ( 0402 ) 数量",-1)),Ut=s(()=>t("td",null,"插件元件 ( TO-92封装及类似 ) 数量",-1)),kt=s(()=>t("td",null,"贴片元件 ( 0603 ) 数量",-1)),ht=s(()=>t("td",null,"插件元件连接器脚数",-1)),wt=s(()=>t("td",null,"贴片元件 ( 0805 ) 数量",-1)),Ct=s(()=>t("td",null,"线缆焊点数",-1)),Ft=s(()=>t("td",null,"贴片元件 ( 1206 ) 数量",-1)),Bt=s(()=>t("td",null,"BGA X-ray 测试",-1)),Dt=s(()=>t("td",null,"贴片元件(SOT 23封装及类似)数量",-1)),It=s(()=>t("td",null,"需要程IC数量 ( 片 )",-1)),St=s(()=>t("td",null,"贴连接器脚数 Pins",-1)),At=s(()=>t("td",null,"代码长度(K )",-1)),Gt=s(()=>t("td",null,"QFP 脚数",-1)),Lt=s(()=>t("td",null,"拼板数量",-1)),Nt=s(()=>t("td",null,"手工悍接",-1)),Pt=s(()=>t("td",null,"钢网数量",-1)),Tt={colspan:"4",style:{padding:"10px 0 0 0"}},Et={class:"switch_box"},$t={key:0,class:"thickness_desc"},Mt={class:"right",style:{width:"28%"}},Ot=s(()=>t("div",{class:"price_title"},"价格明细",-1)),Qt={style:{width:"100%"}},Xt=s(()=>t("td",{class:"price_desc"},"数量",-1)),Kt={class:"price_info"},Rt={key:0,class:"price_desc"},jt={key:1,class:"price_info price_info_td"},zt=s(()=>t("img",{class:"help_icon",src:R,alt:""},null,-1)),Ht=s(()=>t("td",{class:"total_price"},[v(" 总费 "),t("span",null,"预估支付总价(不含运费)")],-1)),Jt={class:"total_price_desc"},Wt={class:"button_box"},Yt=C({name:"/crm/quotation/assemble"}),Zt=C({...Yt,setup(g){H(!1);const{priceParam:o,smdData:F,leadFreeData:B,unitData:D,compData:I,countPrice:S,handleExceed:tl,upload:A,uploadSlotFile:G,uploadSlotFileFailed:L,conpuatorData:N,onSwitch:P,switchValue:q,thicknessData:T,customList:E,loadGetAllCustomer:$}=j();function M(x){return parseFloat(x).toFixed(2)}function O(x){return x.name+"("+x.user_id+")--"+x.first_name}return J(()=>{}),(x,n)=>{const h=y("el-button"),Q=y("el-upload"),X=y("el-switch"),V=y("el-option"),b=y("el-select"),k=y("el-checkbox"),K=y("el-popover");return i(),a("div",lt,[t("div",et,[p(Q,{"on-success":e(G),"on-error":e(L),ref_key:"upload",ref:A,class:"upload-demo",action:e(z),limit:1},{trigger:_(()=>[p(h,{type:"primary",plain:""},{default:_(()=>[v("导入 bom")]),_:1})]),_:1},8,["on-success","on-error","action"])]),t("div",nt,[t("div",ot,[t("table",st,[t("tr",null,[dt,t("td",null,[p(X,{modelValue:e(q),"onUpdate:modelValue":n[0]||(n[0]=l=>W(q)?q.value=l:null),"active-text":"是","inactive-text":"否",onChange:n[1]||(n[1]=l=>e(P)(e(q))),style:{"margin-left":"10px"}},null,8,["modelValue"])]),ut,t("td",it,[p(b,{clearable:"true",modelValue:e(o).customer_id,"onUpdate:modelValue":n[2]||(n[2]=l=>e(o).customer_id=l),filterable:"",placeholder:"请选择",onChange:n[3]||(n[3]=l=>e($)()),style:{width:"210px"}},{default:_(()=>[(i(!0),a(r,null,m(e(E),l=>(i(),c(V,{key:l.user_id,label:O(l),value:l.user_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("tr",null,[at,t("td",null,[u(t("input",{"onUpdate:modelValue":n[4]||(n[4]=l=>e(o).part_no=l),class:"input",type:"text"},null,512),[[d,e(o).part_no]])]),pt,t("td",null,[p(b,{modelValue:e(o).LeadFree,"onUpdate:modelValue":n[5]||(n[5]=l=>e(o).LeadFree=l),filterable:"",placeholder:"请选择",style:{width:"210px"}},{default:_(()=>[(i(!0),a(r,null,m(e(B),l=>(i(),c(V,{key:l.id,label:l.name,value:l.name_k},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("tr",null,[_t,t("td",null,[u(t("input",{"onUpdate:modelValue":n[6]||(n[6]=l=>e(o).required_quantity=l),class:"input",type:"text"},null,512),[[d,e(o).required_quantity]])]),rt,t("td",mt,[u(t("input",{"onUpdate:modelValue":n[7]||(n[7]=l=>e(o).deliver_dimension_x=l),class:"input2",type:"text"},null,512),[[d,e(o).deliver_dimension_x]]),v(" X "),u(t("input",{"onUpdate:modelValue":n[8]||(n[8]=l=>e(o).deliver_dimension_y=l),class:"input2",type:"text"},null,512),[[d,e(o).deliver_dimension_y]]),p(b,{modelValue:e(o).deliver_dimension_unit,"onUpdate:modelValue":n[9]||(n[9]=l=>e(o).deliver_dimension_unit=l),filterable:"",placeholder:"请选择",style:{width:"70px"}},{default:_(()=>[(i(!0),a(r,null,m(e(D),l=>(i(),c(V,{key:l.id,label:l.name,value:l.name_k},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("tr",null,[yt,t("td",null,[p(b,{modelValue:e(o).smd_comp_side,"onUpdate:modelValue":n[10]||(n[10]=l=>e(o).smd_comp_side=l),filterable:"",placeholder:"请选择",style:{width:"210px"}},{default:_(()=>[(i(!0),a(r,null,m(e(F),l=>(i(),c(V,{key:l.id,label:l.name,value:l.name_k},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),ct,t("td",null,[p(b,{modelValue:e(o).pth_comp_side,"onUpdate:modelValue":n[11]||(n[11]=l=>e(o).pth_comp_side=l),filterable:"",placeholder:"请选择",style:{width:"210px",height:"28px"}},{default:_(()=>[(i(!0),a(r,null,m(e(I),l=>(i(),c(V,{key:l.id,label:l.name,value:l.name_k},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("tr",null,[xt,t("td",null,[u(t("input",{"onUpdate:modelValue":n[12]||(n[12]=l=>e(o).smd_ic_leads=l),class:"input",type:"text"},null,512),[[d,e(o).smd_ic_leads]])]),Vt,t("td",null,[u(t("input",{"onUpdate:modelValue":n[13]||(n[13]=l=>e(o).component_type_total=l),class:"input",type:"text"},null,512),[[d,e(o).component_type_total]])])]),t("tr",null,[bt,t("td",null,[u(t("input",{"onUpdate:modelValue":n[14]||(n[14]=l=>e(o).bga_ic_number=l),class:"input5",type:"text",placeholder:"BGAIC数量"},null,512),[[d,e(o).bga_ic_number]]),u(t("input",{style:{"margin-left":"10px"},"onUpdate:modelValue":n[15]||(n[15]=l=>e(o).bga_ic_balls=l),class:"input5",type:"text",placeholder:"焊球数量"},null,512),[[d,e(o).bga_ic_balls]])]),ft,t("td",null,[u(t("input",{"onUpdate:modelValue":n[16]||(n[16]=l=>e(o).pth_ic_pin_number=l),class:"input",type:"text"},null,512),[[d,e(o).pth_ic_pin_number]])])]),t("tr",null,[vt,t("td",null,[u(t("input",{"onUpdate:modelValue":n[17]||(n[17]=l=>e(o).smd_parts0201_qty=l),class:"input",type:"text"},null,512),[[d,e(o).smd_parts0201_qty]])]),gt,t("td",null,[u(t("input",{"onUpdate:modelValue":n[18]||(n[18]=l=>e(o).pth_axial_part_qty=l),class:"input",type:"text"},null,512),[[d,e(o).pth_axial_part_qty]])])]),t("tr",null,[qt,t("td",null,[u(t("input",{"onUpdate:modelValue":n[19]||(n[19]=l=>e(o).smd_parts0402_qty=l),class:"input",type:"text"},null,512),[[d,e(o).smd_parts0402_qty]])]),Ut,t("td",null,[u(t("input",{"onUpdate:modelValue":n[20]||(n[20]=l=>e(o).pth_part_92_qty=l),class:"input",type:"text"},null,512),[[d,e(o).pth_part_92_qty]])])]),t("tr",null,[kt,t("td",null,[u(t("input",{"onUpdate:modelValue":n[21]||(n[21]=l=>e(o).smd_parts0603_qty=l),class:"input",type:"text"},null,512),[[d,e(o).smd_parts0603_qty]])]),ht,t("td",null,[u(t("input",{"onUpdate:modelValue":n[22]||(n[22]=l=>e(o).pth_connector_pin=l),class:"input",type:"text"},null,512),[[d,e(o).pth_connector_pin]])])]),t("tr",null,[wt,t("td",null,[u(t("input",{"onUpdate:modelValue":n[23]||(n[23]=l=>e(o).smd_parts0805_qty=l),class:"input",type:"text"},null,512),[[d,e(o).smd_parts0805_qty]])]),Ct,t("td",null,[u(t("input",{"onUpdate:modelValue":n[24]||(n[24]=l=>e(o).wires_soldering_point=l),class:"input",type:"text"},null,512),[[d,e(o).wires_soldering_point]])])]),t("tr",null,[Ft,t("td",null,[u(t("input",{"onUpdate:modelValue":n[25]||(n[25]=l=>e(o).smd_parts1206_qty=l),class:"input",type:"text"},null,512),[[d,e(o).smd_parts1206_qty]])]),Bt,t("td",null,[u(t("input",{"onUpdate:modelValue":n[26]||(n[26]=l=>e(o).bga_xray_test_qty=l),class:"input",type:"text"},null,512),[[d,e(o).bga_xray_test_qty]])])]),t("tr",null,[Dt,t("td",null,[u(t("input",{"onUpdate:modelValue":n[27]||(n[27]=l=>e(o).smd_parts23_qty=l),class:"input",type:"text"},null,512),[[d,e(o).smd_parts23_qty]])]),It,t("td",null,[u(t("input",{"onUpdate:modelValue":n[28]||(n[28]=l=>e(o).programming_ic=l),class:"input",type:"text"},null,512),[[d,e(o).programming_ic]])])]),t("tr",null,[St,t("td",null,[u(t("input",{"onUpdate:modelValue":n[29]||(n[29]=l=>e(o).smd_connector_pin=l),class:"input",type:"text"},null,512),[[d,e(o).smd_connector_pin]])]),At,t("td",null,[u(t("input",{"onUpdate:modelValue":n[30]||(n[30]=l=>e(o).code_length=l),class:"input",type:"text"},null,512),[[d,e(o).code_length]])])]),t("tr",null,[Gt,t("td",null,[u(t("input",{"onUpdate:modelValue":n[31]||(n[31]=l=>e(o).qfp_pin=l),class:"input",type:"text"},null,512),[[d,e(o).qfp_pin]])]),Lt,t("td",null,[u(t("input",{"onUpdate:modelValue":n[32]||(n[32]=l=>e(o).panel_qty=l),class:"input",type:"text"},null,512),[[d,e(o).panel_qty]])])]),t("tr",null,[Nt,t("td",null,[u(t("input",{"onUpdate:modelValue":n[33]||(n[33]=l=>e(o).manual_solder_number=l),class:"input",type:"text"},null,512),[[d,e(o).manual_solder_number]])]),Pt,t("td",null,[u(t("input",{"onUpdate:modelValue":n[34]||(n[34]=l=>e(o).stencil_qty=l),class:"input",type:"text"},null,512),[[d,e(o).stencil_qty]])])]),t("tr",null,[t("td",Tt,[t("div",Et,[p(k,{modelValue:e(o).fixture_making,"onUpdate:modelValue":n[35]||(n[35]=l=>e(o).fixture_making=l),label:"治具制作"},null,8,["modelValue"]),p(k,{style:{"margin-left":"50px"},modelValue:e(o).test_req,"onUpdate:modelValue":n[36]||(n[36]=l=>e(o).test_req=l),label:"需要测试"},null,8,["modelValue"]),p(k,{style:{"margin-left":"50px"},modelValue:e(o).coating_require,"onUpdate:modelValue":n[37]||(n[37]=l=>e(o).coating_require=l),label:"要求上保护漆"},null,8,["modelValue"]),e(o).coating_require==!0?(i(),a("div",$t," 厚度: ")):U("",!0),e(o).coating_require==!0?(i(),c(b,{key:1,modelValue:e(o).paint_thickesss,"onUpdate:modelValue":n[38]||(n[38]=l=>e(o).paint_thickesss=l),filterable:"",placeholder:"请选择",style:{width:"210px"}},{default:_(()=>[(i(!0),a(r,null,m(e(T),l=>(i(),c(V,{key:l.id,label:l.name,value:l.name_k},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):U("",!0)])])])])]),t("div",Mt,[Ot,t("table",Qt,[t("tr",null,[Xt,t("td",Kt,f(e(o).required_quantity),1)]),(i(!0),a(r,null,m(e(N),(l,ll)=>(i(),a("tr",{key:l.price_code},[l.type!="sum"?(i(),a("td",Rt,f(l.price_name),1)):U("",!0),l.type!="sum"?(i(),a("td",jt,[t("div",null,"¥ "+f(M(l.price_value)),1),p(K,{placement:"bottom",title:"计算规则:",width:200,trigger:"click"},{reference:_(()=>[zt]),default:_(()=>[(i(!0),a(r,null,m(l.help,(w,el)=>(i(),a("div",{class:"help_desc",key:w.index},f(w),1))),128))]),_:2},1024)])):U("",!0)]))),128)),t("tr",null,[Ht,t("td",Jt,"¥ "+f(e(o).total_price),1)])]),t("div",Wt,[p(h,{type:"primary",onClick:n[39]||(n[39]=l=>e(S)())},{default:_(()=>[v("计算")]),_:1})])])])])}}});const bl=tt(Zt,[["__scopeId","data-v-75081b5e"]]);export{bl as default};