1 |
- import{o as X,f as Y,h as Z,i as ee,j as te,k as oe}from"./inventory_record.a064f7c1.js";import{az as E,aa as b,D as S,d as se,a6 as ne,r as B,p as ue,b as I,s as N,c as D,e as i,f as _,h as d,i as l,g as e,t as n,u as r,A as f,k as x,F as ie,m as g,R as le,S as re,_ as ae}from"./index.76214426.js";const At=s=>E.request({url:"addon/inventory.income_out_inventory/list",params:s}),U=s=>E.request({url:"addon/inventory.income_out_inventory/InAndOut",params:s}),wt=s=>E.request({url:"addon/inventory.income_out_inventory/save",method:"post",data:s}),xt=s=>E.request({url:"addon/inventory.income_out_inventory/SuccessOrError",method:"post",data:s}),Et=()=>E.request({url:"addon/inventory.income_out_inventory/getStorelists"}),bt=()=>E.request({url:"addon/inventory.income_out_inventory/getSupplierLists"}),Ft=s=>E.request({url:"addon/inventory.income_out_inventory/getGoodsLists",params:s}),kt=s=>b.request({url:"agent/plugin.inventory.income_out_inventory/list",params:s}),Dt=s=>b.request({url:"agent/plugin.inventory.income_out_inventory/SuccessOrError",method:"post",data:s}),T=s=>b.request({url:"agent/plugin.inventory.income_out_inventory/InAndOut",params:s}),St=s=>b.request({url:"agent/plugin.inventory.income_out_inventory/save",method:"post",data:s}),Ct=()=>b.request({url:"agent/plugin.inventory.income_out_inventory/getStoreLists"}),Bt=()=>b.request({url:"agent/plugin.inventory.income_out_inventory/getSupplierLists"}),It=s=>b.request({url:"agent/plugin.inventory.income_out_inventory/getGoodsLists",params:s}),Vt=s=>S.request({url:"merchant/inventory.income_out_inventory/list",params:s}),R=s=>S.request({url:"merchant/inventory.income_out_inventory/InAndOut",params:s}),qt=s=>S.request({url:"merchant/inventory.income_out_inventory/save",method:"post",data:s}),Ot=s=>S.request({url:"merchant/inventory.income_out_inventory/SuccessOrError",method:"post",data:s}),Lt=()=>S.request({url:"merchant/inventory.income_out_inventory/getSupplierlists"}),Gt=s=>S.request({url:"merchant/inventory.income_out_inventory/getGoodslists",params:s}),v=s=>(le("data-v-1d62a0b9"),s=s(),re(),s),de=v(()=>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)),_e={class:"marginTop f12",style:{width:"100%",height:"20px",display:"flex","flex-direction":"row"}},ce={class:"flex1"},pe=v(()=>e("span",null,"\u51FA\u5165\u5E93\u5355\u53F7",-1)),he={class:"ml10 f14"},me={class:"flex1"},ge=v(()=>e("span",null,"\u95E8\u5E97\u540D\u79F0",-1)),ve={class:"ml10 f14"},ye={class:"flex1"},fe=v(()=>e("span",null,"\u5355\u636E\u7C7B\u578B",-1)),Ae={key:0,class:"ml10 f14"},we={key:1,class:"ml10 f14"},xe={key:2,class:"ml10 f14"},Ee={class:"marginTop f12",style:{width:"100%",height:"20px",display:"flex","flex-direction":"row"}},be=v(()=>e("span",null,"\u5907\u6CE8",-1)),Fe={class:"ml10 f14"},ke=v(()=>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)),De={class:"table marginTop"},Se={style:{display:"flex","align-items":"center"}},Ce=v(()=>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)),Be={style:{"margin-left":"10px"}},Ie={style:{display:"flex"}},Ve={style:{"margin-left":"30px"}},qe={style:{display:"flex","flex-direction":"column"}},Oe={key:0},Le={key:0},Ge={key:1},ze={key:0},Ne={key:1},Ue={key:0},Te={key:1},Re={key:1},$e={key:0},je={class:"marginTop f12",style:{width:"100%","font-size":"13px",display:"flex","flex-direction":"row"}},Pe=v(()=>e("span",null,"\u5546\u54C1\u79CD\u7C7B:",-1)),Me={class:"ml10"},He={style:{"margin-left":"20px"}},Je=v(()=>e("span",null,"\u51FA / \u5165\u5E93\u6570\u91CF:",-1)),Ke={class:"ml10"},Qe={style:{"margin-left":"20px"}},We=v(()=>e("span",null,"\u51FA / \u5165\u5E93\u91D1\u989D:",-1)),Xe={class:"ml10"},Ye={style:{"margin-left":"500px"}},Ze=g("\u7F16\u8F91\u5E93\u5B58"),et=g("\u53D6\u6D88\u7F16\u8F91"),tt=g("\u5BA1\u6838\u901A\u8FC7"),ot=g("\u5BA1\u6838\u4E0D\u901A\u8FC7"),st=g("\u4FDD\u5B58"),nt=g(" \u672C\u6B21\u52A0\u5165\u5E93\u5546\u54C1\u5171 "),ut={style:{color:"red"}},it=g(" \u79CD, \u603B\u6570\u91CF: "),lt={style:{color:"red"}},rt=g(" \u4EF6,\u603B\u91D1\u989D: "),at={style:{color:"red"}},dt=g("\u5143 "),_t={style:{display:"flex"}},ct=v(()=>e("span",{style:{"margin-top":"20px"}},"\u5907\u6CE8\u4FE1\u606F: ",-1)),pt={class:"dialog-footer"},ht=g("\u53D6\u6D88"),mt=g(" \u786E\u8BA4 "),gt=se({props:{order_id:{default:"",type:String},is_audit:{default:!1,type:Boolean},is_save:{default:!1,type:Boolean},modelValue:{default:!1,type:Boolean}},emits:["update:modelValue","close"],setup(s,{emit:$}){const h=s,{OpPlatform:c}=ne(),C=B(!1),F=B(!1);console.log(h,"props"),ue(()=>h.modelValue,o=>{C.value=o,y.order_id=h.order_id,u.order_id=h.order_id,J(),K()});const k=B(!1),j=()=>{u.type=1,F.value=!0},P=()=>{u.type=1,F.value=!0},y=I({order_id:"",keyword:""}),m=I({lists:[]}),u=I({order_id:"",remark:"",type:0,ids:[],numbers:[],prices:[]}),V=()=>{m.lists=[],y.order_id="",y.keyword="",C.value=!1,F.value=!1,u.order_id="",u.remark="",u.type=0,console.log("\u51FA\u53D1\u7ED9\u5173\u95ED"),$("close")},M=()=>{u.type=2,m.lists.forEach(o=>{u.ids.push(o.id),u.numbers.push(o.number),u.prices.push(o.price)}),c.value=="shangpu"?U(u).then(o=>{}):c.value=="agent"?T(u).then(o=>{}):R(u).then(o=>{}),V()},H=()=>{u.remark=p.data.remark,m.lists.forEach(o=>{u.ids.push(o.id),u.numbers.push(o.number),u.prices.push(o.price)}),c.value=="shangpu"?U(u).then(o=>{}):c.value=="agent"?T(u).then(o=>{}):R(u).then(o=>{}),V()};B("");const p=I({data:{}}),J=()=>{c.value=="shangpu"?X(y).then(o=>{console.log(o,"res"),p.data=o}):c.value=="agent"?Y(y).then(o=>{console.log(o,"res"),p.data=o}):Z(y).then(o=>{console.log(o,"res"),p.data=o})},K=()=>{c.value=="shangpu"?ee(y).then(o=>{m.lists=o.lists}):c.value=="agent"?te(y).then(o=>{m.lists=o.lists}):oe(y).then(o=>{m.lists=o.lists})},L=N(()=>{let o=0;return m.lists.forEach(a=>{o+=Number(a.number)}),o}),G=N(()=>{let o=0;return m.lists.forEach(a=>{o+=a.price*a.number}),Number(o).toFixed(2)});return(o,a)=>{const Q=D("el-image"),A=D("el-table-column"),q=D("el-input"),W=D("el-table"),w=D("el-button"),z=D("el-dialog");return i(),_(ie,null,[d(z,{modelValue:C.value,"onUpdate:modelValue":a[2]||(a[2]=t=>C.value=t),width:"70%","destroy-on-close":"",center:"",onClose:V},{default:l(()=>[de,e("div",_e,[e("div",ce,[pe,e("span",he,n(r(p).data.ordersn),1)]),e("div",me,[ge,e("span",ve,n(r(p).data.store_title),1)]),e("div",ye,[fe,r(p).data.type==1?(i(),_("span",Ae,"\u76F4\u63A5\u5165\u5E93")):f("",!0),r(p).data.type==2?(i(),_("span",we,"\u76F4\u63A5\u51FA\u5E93")):f("",!0),r(p).data.type==3?(i(),_("span",xe,"\u4F9B\u5E94\u5546\u51FA\u5E93")):f("",!0)])]),e("div",Ee,[e("div",null,[be,e("span",Fe,n(r(p).data.remark),1)])]),ke,e("div",De,[d(W,{data:r(m).lists},{default:l(()=>[d(A,{align:"left",label:"\u5546\u54C1\u4FE1\u606F",width:"400"},{default:l(t=>[e("div",Se,[Ce,e("span",Be,n(t.row.store_title),1)]),e("view",Ie,[d(Q,{style:{width:"50px",height:"50px"},src:t.row.thumb,"preview-src-list":t.row.thumb,"initial-index":0,fit:"cover","preview-teleported":!0},null,8,["src","preview-src-list"]),e("span",Ve,n(t.row.goods_name),1)])]),_:1}),d(A,{label:"\u89C4\u683C",width:"200"},{default:l(t=>[e("view",qe,[e("view",null,[t.row.sku_id?(i(),_("span",Oe,"\u89C4\u683C: "+n(t.row.option_name),1)):f("",!0)]),e("view",null," \u7F16\u7801: "+n(t.row.goods_number),1)])]),_:1}),d(A,{label:"\u5E93\u5B58"},{default:l(t=>[t.row.sku_id?(i(),_("span",Le,n(t.row.option_total),1)):(i(),_("span",Ge,n(t.row.goods_total),1))]),_:1}),d(A,{label:"\u7EBF\u4E0A\u8FDB\u4EF7"},{default:l(t=>[t.row.sku_id?(i(),_("span",ze,n(t.row.option_caigou_price),1)):(i(),_("span",Ne,n(t.row.goods_caigou_price),1))]),_:1}),d(A,{label:"\u7EBF\u4E0A\u552E\u4EF7"},{default:l(t=>[t.row.sku_id?(i(),_("span",Ue,n(t.row.option_price),1)):(i(),_("span",Te,n(t.row.goods_price),1))]),_:1}),d(A,{label:"\u51FA / \u5165\u5E93\u4EF7"},{default:l(t=>[k.value&&t.row.type==1?(i(),x(q,{key:0,modelValue:t.row.price,"onUpdate:modelValue":O=>t.row.price=O,type:"number"},null,8,["modelValue","onUpdate:modelValue"])):(i(),_("span",Re,n(t.row.price),1))]),_:1}),d(A,{label:"\u51FA / \u5165\u5E93\u6570\u91CF"},{default:l(t=>[k.value?(i(),x(q,{key:1,modelValue:t.row.number,"onUpdate:modelValue":O=>t.row.number=O,type:"number"},null,8,["modelValue","onUpdate:modelValue"])):(i(),_("span",$e,n(t.row.number),1))]),_:1}),d(A,{label:"\u51FA / \u5165\u5E93\u91D1\u989D"},{default:l(t=>[e("span",null,n((t.row.price*t.row.number).toFixed(2)),1)]),_:1})]),_:1},8,["data"])]),e("div",je,[e("div",null,[Pe,e("span",Me,n(r(m).lists.length),1)]),e("div",He,[Je,e("span",Ke,n(Number(r(L))),1)]),e("div",Qe,[We,e("span",Xe,n(r(G)),1)]),e("div",Ye,[(h.is_audit||h.is_save)&&!k.value?(i(),x(w,{key:0,type:"warning",onClick:a[0]||(a[0]=t=>k.value=!0)},{default:l(()=>[Ze]),_:1})):f("",!0),(h.is_audit||h.is_save)&&k.value?(i(),x(w,{key:1,type:"warning",onClick:a[1]||(a[1]=t=>k.value=!1)},{default:l(()=>[et]),_:1})):f("",!0),h.is_audit&&(r(c)=="shangpu"||r(c)=="agent")?(i(),x(w,{key:2,type:"success",onClick:j},{default:l(()=>[tt]),_:1})):f("",!0),h.is_audit&&(r(c)=="shangpu"||r(c)=="agent")?(i(),x(w,{key:3,type:"danger",onClick:M},{default:l(()=>[ot]),_:1})):f("",!0),h.is_save?(i(),x(w,{key:4,type:"success",onClick:P},{default:l(()=>[st]),_:1})):f("",!0)])])]),_:1},8,["modelValue"]),d(z,{modelValue:F.value,"onUpdate:modelValue":a[5]||(a[5]=t=>F.value=t),title:"\u786E\u8BA4\u4FDD\u5B58",width:"500",center:""},{footer:l(()=>[e("div",pt,[d(w,{onClick:a[4]||(a[4]=t=>F.value=!1)},{default:l(()=>[ht]),_:1}),d(w,{type:"primary",onClick:H},{default:l(()=>[mt]),_:1})])]),default:l(()=>[e("span",null,[nt,e("span",ut,n(r(m).lists.length),1),it,e("span",lt,n(Number(r(L))),1),rt,e("span",at,n(r(G)),1),dt]),e("div",_t,[ct,d(q,{modelValue:r(p).data.remark,"onUpdate:modelValue":a[3]||(a[3]=t=>r(p).data.remark=t),style:{"margin-top":"20px",width:"300px",height:"100px","margin-left":"12px"},autosize:"",rows:2,type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u4FE1\u606F"},null,8,["modelValue"])])]),_:1},8,["modelValue"])],64)}}});const vt=ae(gt,[["__scopeId","data-v-1d62a0b9"]]),zt=Object.freeze(Object.defineProperty({__proto__:null,default:vt},Symbol.toStringTag,{value:"Module"}));export{vt as I,It as a,Gt as b,St as c,qt as d,Et as e,Ct as f,Ft as g,wt as h,bt as i,Bt as j,Lt as k,At as l,kt as m,Vt as n,xt as o,Dt as p,Ot as q,zt as r};
|