InventoryDetailDialog.903c3045.js 7.9 KB

1
  1. import{o as O,f as U,h as j,i as q,j as H,k as J,l as K,m as L,n as Q}from"./inventory_record.a064f7c1.js";import{d as W,a6 as X,r as k,p as Y,b as A,s as D,c as h,e as d,k as w,i as r,g as e,t as a,u as s,f as m,A as c,m as v,h as u,R as Z,S as $,_ as ee}from"./index.76214426.js";const n=g=>(Z("data-v-63d7ec8e"),g=g(),$(),g),te=n(()=>e("div",{style:{height:"20px","line-height":"20px",display:"flex","flex-direction":"row"}},[e("div",{style:{height:"20px","line-height":"20px",width:"5px","background-color":"#ffbb00","border-radius":"20px"}}),e("div",{style:{"font-size":"15px","margin-left":"10px"}},"\u57FA\u672C\u4FE1\u606F")],-1)),se={class:"marginTop f12",style:{width:"100%",height:"20px",display:"flex","flex-direction":"row"}},oe={class:"flex1"},ae=n(()=>e("span",null,"\u51FA\u5165\u5E93\u5355\u53F7",-1)),le={class:"ml10 f14"},ne={class:"flex1"},ie=n(()=>e("span",null,"\u95E8\u5E97\u540D\u79F0",-1)),de={class:"ml10 f14"},ue={class:"flex1"},re=n(()=>e("span",null,"\u5355\u636E\u7C7B\u578B",-1)),ce={key:0,class:"ml10 f14"},_e={key:1,class:"ml10 f14"},pe={key:2,class:"ml10 f14"},he={class:"flex1"},fe=n(()=>e("span",null,"\u51FA\u5165\u5E93\u72B6\u6001",-1)),me={class:"marginTop f12",style:{width:"100%",height:"20px",display:"flex","flex-direction":"row"}},ge={class:"flex2"},xe=n(()=>e("span",null,"\u4F9B\u5E94\u5546",-1)),ve={class:"ml10 f14"},ye={class:"flex3"},we=n(()=>e("span",null,"\u521B\u5EFA\u4EBA/\u51FA\u5165\u5E93\u65F6\u95F4",-1)),Fe={key:0,class:"ml10 f14"},Ee={class:"flex3"},Ae=n(()=>e("span",null,"\u5BA1\u6838\u4EBA/\u5BA1\u6838\u65F6\u95F4",-1)),be={key:0,class:"ml10 f14"},Ce={class:"marginTop f12",style:{width:"100%",height:"20px",display:"flex","flex-direction":"row"}},ke=n(()=>e("span",null,"\u5907\u6CE8",-1)),De={class:"ml10 f14"},Be=n(()=>e("div",{style:{height:"20px","line-height":"20px",display:"flex","margin-top":"20px","flex-direction":"row"}},[e("div",{style:{height:"20px","line-height":"20px",width:"5px","background-color":"#ffbb00","border-radius":"20px"}}),e("div",{style:{"font-size":"15px","margin-left":"10px"}},"\u51FA\u5165\u5E93\u660E\u7EC6")],-1)),Ve={class:"marginTop"},Ie=v("\u67E5\u8BE2"),Re=v("\u5BFC\u51FA"),Ge={class:"table marginTop"},Se={style:{display:"flex","align-items":"center"}},Te=n(()=>e("svg",{t:"1732256630316",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4586",width:"16",height:"16"},[e("path",{d:"M925.789091 425.658182a150.341818 150.341818 0 0 1-52.596364 113.570909 10.007273 10.007273 0 0 1 0 2.56v276.945454a75.403636 75.403636 0 0 1-75.403636 75.403637h-553.890909a75.636364 75.636364 0 0 1-75.636364-75.403637v-276.945454-2.56A150.109091 150.109091 0 0 1 116.363636 425.658182C116.363636 418.909091 116.363636 418.909091 206.429091 179.432727A64.698182 64.698182 0 0 1 264.378182 139.636364h513.396363a64.698182 64.698182 0 0 1 57.949091 40.029091C925.789091 418.909091 925.789091 418.909091 925.789091 425.658182z m-656.989091-186.181818a25.134545 25.134545 0 0 0 0 50.269091h504.32a25.134545 25.134545 0 0 0 0-50.269091z m554.589091 579.258181V568.32a148.712727 148.712727 0 0 1-50.967273 9.309091 186.181818 186.181818 0 0 1-128.698182-55.621818 164.538182 164.538182 0 0 1-121.949091 55.621818A188.509091 188.509091 0 0 1 395.636364 522.24a165.701818 165.701818 0 0 1-125.207273 55.389091 150.109091 150.109091 0 0 1-51.2-9.309091v250.414545a25.134545 25.134545 0 0 0 25.367273 25.134546H798.254545a25.134545 25.134545 0 0 0 25.134546-25.134546z","p-id":"4587"})],-1)),ze={style:{"margin-left":"10px"}},Ne={style:{display:"flex"}},Pe={style:{"margin-left":"30px"}},Me={style:{display:"flex","flex-direction":"column"}},Oe={key:0},Ue={class:"marginTop f12",style:{width:"100%",height:"20px","font-size":"13px",display:"flex","flex-direction":"row"}},je=n(()=>e("span",null,"\u51FA / \u5165\u5E93\u6570\u91CF:",-1)),qe={class:"ml10"},He={style:{"margin-left":"20px"}},Je=n(()=>e("span",null,"\u51FA / \u5165\u5E93\u91D1\u989D:",-1)),Ke={class:"ml10"},Le=W({props:{order_id:{default:"",type:String},modelValue:{default:!1,type:Boolean}},emits:["update:modelValue","onClose"],setup(g,{emit:B}){const F=g,{OpPlatform:f}=X(),y=k(!1);console.log(F,"props"),Y(()=>F.modelValue,t=>{y.value=t,l.order_id=F.order_id,I(),b()});const l=A({order_id:"",keyword:""}),p=A({lists:[]}),V=()=>{p.lists=[],l.order_id="",l.keyword="",y.value=!1,B("onClose")};k("");const o=A({data:{}}),I=()=>{f.value=="shangpu"?O(l).then(t=>{console.log(t,"res"),o.data=t}):f.value=="agent"?U(l).then(t=>{console.log(t,"res"),o.data=t}):j(l).then(t=>{console.log(t,"res"),o.data=t})},b=()=>{f.value=="shangpu"?q(l).then(t=>{p.lists=t.lists}):f.value=="agent"?H(l).then(t=>{p.lists=t.lists}):J(l).then(t=>{p.lists=t.lists})},R=()=>{f.value=="shangpu"?K(l).then(t=>{window.open(t.data)}):f.value=="agent"?L(l).then(t=>{window.open(t.data)}):Q(l).then(t=>{window.open(t.data)})},G=()=>{b()},S=D(()=>{let t=0;return p.lists.forEach(_=>{t+=_.number}),t}),T=D(()=>{let t=0;return p.lists.forEach(_=>{t+=parseFloat(_.total)}),parseFloat(t).toFixed(2)});return(t,_)=>{const E=h("el-tag"),z=h("el-input"),C=h("el-button"),N=h("el-image"),x=h("el-table-column"),P=h("el-table"),M=h("el-dialog");return d(),w(M,{modelValue:y.value,"onUpdate:modelValue":_[1]||(_[1]=i=>y.value=i),width:"70%","destroy-on-close":"",center:"",onClose:V},{default:r(()=>[te,e("div",se,[e("div",oe,[ae,e("span",le,a(s(o).data.ordersn),1)]),e("div",ne,[ie,e("span",de,a(s(o).data.store_title),1)]),e("div",ue,[re,s(o).data.type==1?(d(),m("span",ce,"\u76F4\u63A5\u5165\u5E93")):c("",!0),s(o).data.type==2?(d(),m("span",_e,"\u76F4\u63A5\u51FA\u5E93")):c("",!0),s(o).data.type==3?(d(),m("span",pe,"\u4F9B\u5E94\u5546\u51FA\u5E93")):c("",!0)]),e("div",he,[fe,s(o).data.status==1?(d(),w(E,{key:0,class:"ml10 f14",type:"success"},{default:r(()=>[v(a(s(o).data.type==1?"\u5165\u5E93\u6210\u529F":"\u51FA\u5E93\u6210\u529F"),1)]),_:1})):c("",!0),s(o).data.status==0?(d(),w(E,{key:1,class:"ml10 f14",type:"warning"},{default:r(()=>[v(a(s(o).data.type==1?"\u5F85\u5165\u5E93":"\u5F85\u51FA\u5E93"),1)]),_:1})):c("",!0),s(o).data.status==2?(d(),w(E,{key:2,class:"ml10 f14",type:"warning"},{default:r(()=>[v(a(s(o).data.type==1?"\u5165\u5E93\u5931\u8D25":"\u51FA\u5E93\u5931\u8D25"),1)]),_:1})):c("",!0)])]),e("div",me,[e("div",ge,[xe,e("span",ve,a(s(o).data.supplier_name),1)]),e("div",ye,[we,s(o).data.extra?(d(),m("span",Fe,a(s(o).data.extra.audit_user)+" / "+a(s(o).data.create_time),1)):c("",!0)]),e("div",Ee,[Ae,s(o).data.extra?(d(),m("span",be,a(s(o).data.extra.audit_user)+" / "+a(s(o).data.extra.audit_time),1)):c("",!0)])]),e("div",Ce,[e("div",null,[ke,e("span",De,a(s(o).data.remark),1)])]),Be,e("div",Ve,[u(z,{modelValue:s(l).keyword,"onUpdate:modelValue":_[0]||(_[0]=i=>s(l).keyword=i),style:{width:"240px"},placeholder:"\u8BF7\u8F93\u5165\u7F16\u7801/\u540D\u79F0"},null,8,["modelValue"]),u(C,{class:"tn-el-form-item--item tn-button tn-button--blue",onClick:G},{default:r(()=>[Ie]),_:1}),u(C,{class:"tn-el-form-item--item tn-button tn-button--orange",type:"warning",onClick:R},{default:r(()=>[Re]),_:1})]),e("div",Ge,[u(P,{data:s(p).lists},{default:r(()=>[u(x,{align:"left",label:"\u5546\u54C1\u4FE1\u606F",width:"400"},{default:r(i=>[e("div",Se,[Te,e("span",ze,a(i.row.store_title),1)]),e("view",Ne,[u(N,{style:{width:"50px",height:"50px"},src:i.row.thumb,"preview-src-list":i.row.thumb,"initial-index":0,fit:"cover","preview-teleported":!0},null,8,["src","preview-src-list"]),e("span",Pe,a(i.row.goods_name),1)])]),_:1}),u(x,{label:"\u89C4\u683C",width:"200"},{default:r(i=>[e("view",Me,[e("view",null,[i.row.sku_id?(d(),m("span",Oe,"\u89C4\u683C: "+a(i.row.option_name),1)):c("",!0)]),e("view",null," \u7F16\u7801: "+a(i.row.goods_number),1)])]),_:1}),u(x,{label:"\u51FA / \u5165\u5E93\u4EF7",prop:"price"}),u(x,{label:"\u51FA / \u5165\u5E93\u6570\u91CF",prop:"number"}),u(x,{label:"\u51FA / \u5165\u5E93\u91D1\u989D",prop:"total"})]),_:1},8,["data"])]),e("div",Ue,[e("div",null,[je,e("span",qe,a(s(S)),1)]),e("div",He,[Je,e("span",Ke,a(s(T)),1)])])]),_:1},8,["modelValue"])}}});const Xe=ee(Le,[["__scopeId","data-v-63d7ec8e"]]);export{Xe as default};