1 |
- import se from"./InventoryDetailDialog.903c3045.js";import oe from"./InAndOutInventoryDialog.5d42f14c.js";import{I as le,l as ne,m as ue,n as ae,o as ie,p as de,q as re}from"./InAndOutInventoryDetailDialog.417ee0ad.js";import{A as pe}from"./index.e8855bbf.js";import{d as ce,a6 as _e,r as y,b as U,p as j,c as h,e as n,f as c,g as t,h as r,i,u as o,k as f,A as a,F as S,j as $,m as d,t as _,E as I,N as ge,R as he,S as fe,_ as ye}from"./index.76214426.js";import"./inventory_record.a064f7c1.js";import"./install.412476cc.js";import"./useAgent.769391df.js";import"./list.b7393bbf.js";const E=k=>(he("data-v-3dbbb61f"),k=k(),fe(),k),ve={class:"filter-form"},me=d("\u67E5\u8BE2"),xe={class:"data"},Ae={class:"operation-container",style:{display:"flex"}},be={class:"operation-btn"},Fe=d("\u65B0\u589E\u666E\u901A\u51FA\u5E93\u5355"),Ee={class:"operation-btn"},we=d("\u65B0\u589E\u91C7\u8D2D\u9000\u6B3E\u5355"),ke={key:0,class:"operation-btn"},Be=d("\u6279\u91CF\u5BA1\u6838\u901A\u8FC7"),Ce={key:1,class:"operation-btn"},De=d("\u6279\u91CF\u5BA1\u6838\u5931\u8D25"),Ve={class:"ml16",style:{flex:"2",display:"flex","flex-direction":"column"}},ze={style:{flex:"2"}},Se={key:0},Ie={style:{"margin-left":"10px","font-size":"18px"}},Me={class:"ml10"},Oe=d("\u76F4\u63A5\u5165\u5E93\u5355"),Ue={class:"ml10"},$e=d("\u76F4\u63A5\u51FA\u5E93\u5355"),Le={class:"ml10"},Ne=d("\u91C7\u8D2D\u9000\u6B3E\u5355"),Pe=["onClick"],Te=E(()=>t("span",null,[t("svg",{t:"1731662016725",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4556",width:"16",height:"16"},[t("path",{d:"M831.904012 960.007999v-95.988001a159.980002 159.980002 0 0 0-159.980003-159.980003h-319.960005a159.980002 159.980002 0 0 0-159.980002 159.980003v95.988001a63.992001 63.992001 0 1 1-127.984002 0v-95.988001a288.731909 288.731909 0 0 1 287.964004-287.964005h319.960005a288.731909 288.731909 0 0 1 287.964005 287.964005v95.988001a63.992001 63.992001 0 1 1-127.984002 0z m-575.928009-703.912011a255.968004 255.968004 0 1 1 255.968004 255.968004 255.968004 255.968004 0 0 1-255.968004-255.968004z m127.984002 0a127.984002 127.984002 0 1 0 127.984002-127.984002 127.984002 127.984002 0 0 0-127.984002 127.984002z",fill:"#d81e06","p-id":"4557"})])],-1)),Ye=E(()=>t("span",null,"\u5BA1\u6838",-1)),je=[Te,Ye],qe={style:{flex:"2","font-size":"13px"}},Re=E(()=>t("span",null,"\u51FA\u5E93\u5355\u53F7: ",-1)),Ge=["onClick"],He={style:{flex:"1","font-size":"12px",color:"#978c8c"}},Je=E(()=>t("span",null,"\u521B\u5EFA\u4EBA/\u521B\u5EFA\u65F6\u95F4:",-1)),Ke={key:0,class:"ml10"},Qe=E(()=>t("span",{style:{"margin-left":"20px"}},"\u5BA1\u6838\u4EBA/\u5BA1\u6838\u65F6\u95F4:",-1)),We={key:1,class:"ml10"},Xe={style:{flex:"2"}},Ze=d("\u5DF2\u51FA\u5E93"),et=d("\u5F85\u51FA\u5E93"),tt=d("\u51FA\u5E93\u5931\u8D25"),st={class:"ml10"},ot=d("\u5907\u6CE8"),lt={style:{flex:"1"}},nt={style:{"margin-top":"10px","font-size":"13px"}},ut={style:{"margin-left":"20px"}},at={style:{"margin-left":"20px"}},it=d(" \u603B\u8BA1: "),dt={style:{color:"#e0bc1f"}},rt={style:{height:"88px",width:"375px","margin-top":"10px",display:"flex"}},pt={style:{height:"100%","margin-left":"5px"}},ct={key:1,style:{width:"88px",height:"88px","border-radius":"12px","backgroud-color":"#f7f8f9"},t:"1731659055569",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11705",width:"48",height:"48"},_t=E(()=>t("path",{d:"M147.01175 430.890704c-44.791136 0-81.108273 36.303834-81.108273 81.109296 0 44.778856 36.316114 81.108273 81.108273 81.108273 44.792159 0 81.109296-36.329417 81.109296-81.108273C228.121046 467.194538 191.804932 430.890704 147.01175 430.890704zM511.999488 430.890704c-44.791136 0-81.108273 36.303834-81.108273 81.109296 0 44.778856 36.316114 81.108273 81.108273 81.108273 44.792159 0 81.109296-36.329417 81.109296-81.108273C593.108784 467.194538 556.791647 430.890704 511.999488 430.890704zM876.987227 430.890704c-44.791136 0-81.108273 36.303834-81.108273 81.109296 0 44.778856 36.316114 81.108273 81.108273 81.108273s81.108273-36.329417 81.108273-81.108273C958.094476 467.194538 921.778362 430.890704 876.987227 430.890704z","p-id":"11706",fill:"#c0bdbd"},null,-1)),gt=[_t],ht={class:"pagination"},ft=ce({setup(k){const{OpPlatform:p}=_e();let B=y(!1);const x=y(""),l=U({page:1,limit:10,sid:"",agentid:"",type:2,keyword:"",startday:"",endday:""}),C=U({stores:[]}),g=U({lists:[],count:0}),v=()=>{B.value=!0,p.value=="shangpu"?ne(l).then(u=>{g.lists=u.lists,g.count=u.count,C.stores=u.stores,B.value=!1}):p.value=="agent"?ue(l).then(u=>{g.lists=u.lists,g.count=u.count,C.stores=u.stores,B.value=!1}):ae(l).then(u=>{g.lists=u.lists,g.count=u.count,C.stores=u.stores,B.value=!1})};v();const A=y(""),D=y(!1),q=u=>{A.value=u,D.value=!0},R=()=>{console.log("sssssssssss"),A.value="",D.value=!1},L=y(1),M=y(!1),V=y(!1),z=y(!1),G=()=>{z.value=!1,v()},N=u=>{const s=[];if(g.lists.forEach((b,O)=>{b.flag&&s.push(b.id)}),s.length<=0){I.error("\u8BF7\u9009\u62E9\u51FA\u5E93\u5B58\u5355");return}ge.confirm("\u662F\u5426\u786E\u8BA4\u6279\u91CF\u5BA1\u6838","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{p.value=="shangpu"?ie({type:u,ids:s}).then(()=>{I.success("\u6279\u91CF\u5BA1\u6838\u6210\u529F")}):p.value=="agent"?de({type:u,ids:s}).then(()=>{I.success("\u6279\u91CF\u5BA1\u6838\u6210\u529F")}):re({type:u,ids:s}).then(()=>{I.success("\u6279\u91CF\u5BA1\u6838\u6210\u529F")})}),v(),g.lists.forEach((b,O)=>{b.flag=!1})},P=u=>{L.value=u,z.value=!0},H=u=>{A.value=u,M.value=!0,V.value=!0},J=()=>{console.log("\u51FA\u53D1\u7ED9\u5173\u95ED1111"),A.value="",V.value=!1,M.value=!1,v()};j(()=>[l.page,l.limit,l.type,l.agentid,l.sid],()=>{v()}),j(()=>[x.value],()=>{l.startday="",l.endday="",x.value&&(l.startday=x.value[0]||"",l.endday=x.value[1]||""),v()});const K=()=>{v()};return(u,s)=>{const b=h("el-date-picker"),O=h("el-option"),Q=h("el-select"),W=h("el-input"),w=h("el-button"),X=h("el-form"),Z=h("el-checkbox"),m=h("el-tag"),ee=h("el-image"),te=h("el-pagination");return n(),c(S,null,[t("div",ve,[r(X,{model:o(l),"label-width":"90px"},{default:i(()=>[r(b,{style:{top:"4px"},modelValue:x.value,"onUpdate:modelValue":s[0]||(s[0]=e=>x.value=e),type:"daterange","value-format":"YYYY-MM-DD","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"]),o(p)==="shangpu"?(n(),f(o(pe),{key:0,class:"tn-el-form-item--item",modelValue:o(l).agentid,"onUpdate:modelValue":s[1]||(s[1]=e=>o(l).agentid=e)},null,8,["modelValue"])):a("",!0),o(p)==="shangpu"||o(p)==="agent"?(n(),f(Q,{key:1,modelValue:o(l).sid,"onUpdate:modelValue":s[2]||(s[2]=e=>o(l).sid=e),placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",filterable:"",clearable:"",style:{width:"auto","margin-left":"10px"}},{default:i(()=>[(n(!0),c(S,null,$(o(C).stores,(e,T)=>(n(),f(O,{value:e.id,label:e.title},{default:i(()=>[d(_(e.title),1)]),_:2},1032,["value","label"]))),256))]),_:1},8,["modelValue"])):a("",!0),r(W,{modelValue:o(l).keyword,"onUpdate:modelValue":s[3]||(s[3]=e=>o(l).keyword=e),style:{width:"240px","margin-left":"20px"},placeholder:"\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u53F7"},null,8,["modelValue"]),r(w,{class:"tn-el-form-item--item tn-button tn-button--blue",onClick:K},{default:i(()=>[me]),_:1})]),_:1},8,["model"])]),t("div",xe,[t("div",Ae,[t("div",be,[r(w,{style:{"margin-bottom":"10px"},type:"success",onClick:s[4]||(s[4]=e=>P(2))},{default:i(()=>[Fe]),_:1})]),t("div",Ee,[r(w,{style:{"margin-bottom":"10px","margin-left":"10px"},type:"warning",onClick:s[5]||(s[5]=e=>P(3))},{default:i(()=>[we]),_:1})]),o(p)=="shangpu"||o(p)=="agent"?(n(),c("div",ke,[r(w,{style:{"margin-bottom":"10px","margin-left":"10px"},type:"warning",onClick:s[6]||(s[6]=e=>N(1))},{default:i(()=>[Be]),_:1})])):a("",!0),o(p)=="shangpu"||o(p)=="agent"?(n(),c("div",Ce,[r(w,{style:{"margin-bottom":"10px","margin-left":"10px"},type:"danger",onClick:s[7]||(s[7]=e=>N(2))},{default:i(()=>[De]),_:1})])):a("",!0)]),t("div",null,[(n(!0),c(S,null,$(o(g).lists,(e,T)=>(n(),c("div",{style:{width:"100%",height:"130px","margin-top":"10px",border:"1.3px solid rgb(206, 194, 194, 0.4)","border-radius":"10px",display:"flex","flex-direction":"row",padding:"7px"},key:T},[t("div",Ve,[t("div",ze,[e.status==0?(n(),c("span",Se,[r(Z,{modelValue:e.flag,"onUpdate:modelValue":F=>e.flag=F,size:"large"},null,8,["modelValue","onUpdate:modelValue"])])):a("",!0),t("span",Ie,_(e.store_title),1),t("span",Me,[e.type==1?(n(),f(m,{key:0,type:"warning"},{default:i(()=>[Oe]),_:1})):a("",!0)]),t("span",Ue,[e.type==2?(n(),f(m,{key:0,type:"warning"},{default:i(()=>[$e]),_:1})):a("",!0)]),t("span",Le,[e.type==3?(n(),f(m,{key:0,type:"warning"},{default:i(()=>[Ne]),_:1})):a("",!0)]),e.status==0&&(o(p)==="shangpu"||o(p)==="agent")?(n(),c("div",{key:1,onClick:F=>H(e.ordersn),style:{display:"inline-block",width:"50px",height:"23px",cursor:"pointer","line-height":"23px","border-radius":"20px",border:"1.3px solid red","text-align":"center","font-size":"11px","font-weight":"600","margin-left":"10px",color:"red"}},je,8,Pe)):a("",!0)]),t("div",qe,[Re,t("span",{style:{cursor:"pointer",color:"#a3a326"},onClick:F=>q(e.ordersn)},_(e.ordersn),9,Ge)]),t("div",He,[Je,e.extra?(n(),c("span",Ke,_(e.extra.audit_user)+" / "+_(e.create_time),1)):a("",!0),Qe,e.extra?(n(),c("span",We,_(e.extra.audit_user)+" / "+_(e.extra.audit_time),1)):a("",!0)]),t("div",Xe,[t("span",null,[e.status==1&&(e.type==2||e.type==3)?(n(),f(m,{key:0,type:"success"},{default:i(()=>[Ze]),_:1})):a("",!0),e.status==0&&(e.type==2||e.type==3)?(n(),f(m,{key:1,type:"warning"},{default:i(()=>[et]),_:1})):a("",!0),e.status==2&&(e.type==2||e.type==3)?(n(),f(m,{key:2,type:"error"},{default:i(()=>[tt]),_:1})):a("",!0)]),t("span",st,[r(m,{style:{"margin-right":"6px"},type:"info"},{default:i(()=>[ot]),_:1}),d(" "+_(e.remark),1)])])]),t("div",lt,[t("div",nt,[t("span",null," \u79CD\u7C7B: "+_(e.records.length),1),t("span",ut," \u6570\u91CF: "+_(e.num),1),t("span",at,[it,t("span",dt,"\xA5"+_(e.total),1)])]),t("div",rt,[(n(!0),c(S,null,$(e.records,(F,Y)=>(n(),c("div",pt,[Y<3?(n(),f(ee,{key:0,style:{width:"88px",height:"88px","border-radius":"12px"},src:F.thumb,"preview-src-list":F.thumb,"initial-index":0,fit:"cover","preview-teleported":!0},null,8,["src","preview-src-list"])):a("",!0),Y==3?(n(),c("svg",ct,gt)):a("",!0)]))),256))])])]))),128))]),t("div",ht,[r(te,{currentPage:o(l).page,"onUpdate:currentPage":s[8]||(s[8]=e=>o(l).page=e),"page-size":o(l).limit,"onUpdate:page-size":s[9]||(s[9]=e=>o(l).limit=e),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:o(g).count},null,8,["currentPage","page-size","total"])])]),r(se,{order_id:A.value,modelValue:D.value,"onUpdate:modelValue":s[10]||(s[10]=e=>D.value=e),onClose:R},null,8,["order_id","modelValue"]),r(le,{order_id:A.value,is_audit:M.value,modelValue:V.value,"onUpdate:modelValue":s[11]||(s[11]=e=>V.value=e),onClose:J},null,8,["order_id","is_audit","modelValue"]),r(oe,{type:L.value,modelValue:z.value,"onUpdate:modelValue":s[12]||(s[12]=e=>z.value=e),onClose:G},null,8,["type","modelValue"])],64)}}});const kt=ye(ft,[["__scopeId","data-v-3dbbb61f"]]);export{kt as default};
|