1 |
- import $ from"./InventoryDetailDialog.2e593337.js";import{g as G,a as J,b as K}from"./index.0242d0f7.js";import{A as Q}from"./index.1d26a072.js";import{d as W,a6 as X,r as C,b as B,p as U,c as d,at as Z,e as n,f as p,g as t,h as a,i as u,u as o,k as v,A as c,F as D,j as L,m as f,t as r,w as ee,R as te,S as le,_ as oe}from"./index.0308b213.js";import"./inventory_record.f2378d3f.js";import"./install.524ae6f2.js";import"./useAgent.c0cb1751.js";import"./list.5526c7ef.js";const h=b=>(te("data-v-78c8d712"),b=b(),le(),b),ae={class:"filter-form"},se=f("\u67E5\u8BE2"),ne={class:"data"},ie=h(()=>t("div",{class:"operation-container"},[t("div",{class:"operation-btn"})],-1)),ue={class:"table"},re={style:{display:"flex","align-items":"center"}},de=h(()=>t("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"},[t("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)),ce={style:{"margin-left":"10px"}},_e={style:{display:"flex"}},pe={style:{"margin-left":"30px"}},me={style:{display:"flex","flex-direction":"column"}},ge={key:0},ve={style:{display:"flex","flex-direction":"column"}},we={key:0},fe={key:1},he={key:0},ye=h(()=>t("svg",{style:{"margin-top":"5px"},t:"1732259770477",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6014",width:"16",height:"16"},[t("path",{d:"M558.545455 801.303273V332.055273l170.565818 184.785454a34.909091 34.909091 0 1 0 51.293091-47.383272L549.282909 219.066182a34.955636 34.955636 0 0 0-51.293091 0l-231.121454 250.414545a34.862545 34.862545 0 0 0 1.954909 49.338182 34.909091 34.909091 0 0 0 49.338182-2.001454L488.727273 332.055273v469.248a34.909091 34.909091 0 1 0 69.818182 0",fill:"#d81e06","p-id":"6015"})],-1)),xe=[ye],be={key:1},Ee=h(()=>t("svg",{style:{"margin-top":"5px"},t:"1732259848622",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7182",width:"16",height:"16"},[t("path",{d:"M554.666667 669.44V213.333333a42.666667 42.666667 0 0 0-85.333334 0v456.106667a8.533333 8.533333 0 0 1-14.549333 5.973333l-184.149333-184.106666a42.666667 42.666667 0 0 0-60.330667 60.330666l241.365333 241.365334a85.333333 85.333333 0 0 0 120.661334 0l241.365333-241.365334a42.666667 42.666667 0 0 0-60.330667-60.330666l-184.149333 184.149333a8.533333 8.533333 0 0 1-14.549333-6.058667z",fill:"#1e9325","p-id":"7183"})],-1)),Fe=[Ee],Ce=f("\u5165\u5E93\u6210\u529F"),Ve=f("\u5F85\u5165\u5E93"),ke=f("\u5165\u5E93\u5931\u8D25"),Be={style:{display:"flex","flex-direction":"column"}},De=h(()=>t("span",null,"\u64CD\u4F5C\u4EBA:",-1)),Ae={key:0},Ie=h(()=>t("span",null,"\u5165\u5E93\u5355\u53F7: ",-1)),ze=["onClick"],Ue={style:{display:"flex","justify-content":"space-between","align-items":"center",height:"70px","margin-top":"20px"}},Le={class:"pagination"},Se=W({setup(b){const{OpPlatform:y}=X();let x=C(!1);const w=C(""),l=B({page:1,limit:10,sid:"",agentid:"",cid:"",keyword:"",startday:"",endday:""}),m=B({stores:[],categorys:[]}),g=B({lists:[],count:0}),E=()=>{x.value=!0,y.value=="shangpu"?G(l).then(s=>{g.lists=s.lists,g.count=s.count,m.stores=s.stores,m.categorys=s.categorys,x.value=!1}):y.value=="agent"?J(l).then(s=>{g.lists=s.lists,g.count=s.count,m.stores=s.stores,m.categorys=s.categorys,x.value=!1}):K(l).then(s=>{g.lists=s.lists,g.count=s.count,m.stores=s.stores,m.categorys=s.categorys,x.value=!1})};E();const V=C(""),F=C(!1),S=s=>{V.value=s,F.value=!0},M=()=>{V.value="",F.value=!1};U(()=>[l.page,l.limit,l.cid,l.agentid,l.sid],()=>{E()}),U(()=>[w.value],()=>{l.startday="",l.endday="",w.value&&(l.startday=w.value[0]||"",l.endday=w.value[1]||""),E()});const P=()=>{E()};return(s,i)=>{const N=d("el-date-picker"),A=d("el-option"),I=d("el-select"),Y=d("el-input"),j=d("el-button"),O=d("el-form"),T=d("el-image"),_=d("el-table-column"),k=d("el-tag"),q=d("el-table"),H=d("el-pagination"),R=Z("loading");return n(),p(D,null,[t("div",ae,[a(O,{model:o(l),"label-width":"90px"},{default:u(()=>[a(N,{style:{top:"4px"},modelValue:w.value,"onUpdate:modelValue":i[0]||(i[0]=e=>w.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(y)==="shangpu"?(n(),v(o(Q),{key:0,class:"tn-el-form-item--item",modelValue:o(l).agentid,"onUpdate:modelValue":i[1]||(i[1]=e=>o(l).agentid=e)},null,8,["modelValue"])):c("",!0),o(y)==="shangpu"||o(y)==="agent"?(n(),v(I,{key:1,modelValue:o(l).sid,"onUpdate:modelValue":i[2]||(i[2]=e=>o(l).sid=e),placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",filterable:"",clearable:"",style:{width:"auto","margin-left":"10px"}},{default:u(()=>[(n(!0),p(D,null,L(o(m).stores,(e,z)=>(n(),v(A,{value:e.id,label:e.title},{default:u(()=>[f(r(e.title),1)]),_:2},1032,["value","label"]))),256))]),_:1},8,["modelValue"])):c("",!0),a(I,{modelValue:o(l).cid,"onUpdate:modelValue":i[3]||(i[3]=e=>o(l).cid=e),placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B",filterable:"",clearable:"",style:{width:"auto","margin-left":"10px"}},{default:u(()=>[(n(!0),p(D,null,L(o(m).categorys,(e,z)=>(n(),v(A,{value:e.id,label:e.title},{default:u(()=>[f(r(e.title),1)]),_:2},1032,["value","label"]))),256))]),_:1},8,["modelValue"]),a(Y,{modelValue:o(l).keyword,"onUpdate:modelValue":i[4]||(i[4]=e=>o(l).keyword=e),style:{width:"240px","margin-left":"20px"},placeholder:"\u8BF7\u8F93\u5165\u7F16\u7801/\u540D\u79F0"},null,8,["modelValue"]),a(j,{class:"tn-el-form-item--item tn-button tn-button--blue",onClick:P},{default:u(()=>[se]),_:1})]),_:1},8,["model"])]),t("div",ne,[ie,t("div",ue,[ee((n(),v(q,{data:o(g).lists},{default:u(()=>[a(_,{align:"left",label:"\u5546\u54C1\u4FE1\u606F",width:"400"},{default:u(e=>[t("div",re,[de,t("span",ce,r(e.row.store_title),1)]),t("view",_e,[a(T,{style:{width:"50px",height:"50px"},src:e.row.thumb,"preview-src-list":e.row.thumb,"initial-index":0,fit:"cover","preview-teleported":!0},null,8,["src","preview-src-list"]),t("span",pe,r(e.row.goods_name),1)])]),_:1}),a(_,{label:"\u89C4\u683C",width:"200"},{default:u(e=>[t("view",me,[t("view",null,[e.row.sku_id?(n(),p("span",ge,"\u89C4\u683C: "+r(e.row.option_name),1)):c("",!0)]),t("view",null," \u7F16\u7801: "+r(e.row.goods_number),1)])]),_:1}),a(_,{label:"\u5206\u7C7B",width:"180"},{default:u(e=>[t("view",ve,[e.row.cid?(n(),p("view",we,"\u4E00\u7EA7: "+r(e.row.c_name),1)):c("",!0),e.row.child_id?(n(),p("view",fe,"\u4E8C\u7EA7: "+r(e.row.c2_name),1)):c("",!0)])]),_:1}),a(_,{label:"\u5DEE\u4EF7"},{default:u(e=>[t("div",null,[t("span",null,r(e.row.difference_price),1),e.row.difference_price>0?(n(),p("span",he,xe)):c("",!0),e.row.difference_price<0?(n(),p("span",be,Fe)):c("",!0)])]),_:1}),a(_,{label:"\u4E0A\u6B21\u5165\u5E93\u4EF7",prop:"last_price"}),a(_,{label:"\u672C\u6B21\u5165\u5E93\u4EF7",prop:"price"}),a(_,{label:"\u5165\u5E93\u6570\u91CF",prop:"number"}),a(_,{label:"\u5165\u5E93\u91D1\u989D",prop:"total"}),a(_,{label:"\u5165\u5E93\u72B6\u6001",align:"center"},{default:u(e=>[e.row.status==1?(n(),v(k,{key:0,type:"success"},{default:u(()=>[Ce]),_:1})):c("",!0),e.row.status==0?(n(),v(k,{key:1,type:"warning"},{default:u(()=>[Ve]),_:1})):c("",!0),e.row.status==2?(n(),v(k,{key:2,type:"error"},{default:u(()=>[ke]),_:1})):c("",!0)]),_:1}),a(_,{label:"\u5165\u5E93\u60C5\u51B5",width:"250"},{default:u(e=>[t("view",Be,[t("view",null,[De,e.row.extra?(n(),p("span",Ae,r(e.row.extra.audit_user),1)):c("",!0)]),t("view",null,[Ie,t("span",{style:{cursor:"pointer",color:"#a3a326"},onClick:z=>S(e.row.ordersn)},r(e.row.ordersn),9,ze)]),t("view",null,[t("span",null,"\u5165\u5E93\u65F6\u95F4: "+r(e.row.create_time),1)])])]),_:1})]),_:1},8,["data"])),[[R,o(x)]])]),t("div",Ue,[t("div",Le,[a(H,{currentPage:o(l).page,"onUpdate:currentPage":i[5]||(i[5]=e=>o(l).page=e),"page-size":o(l).limit,"onUpdate:page-size":i[6]||(i[6]=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"])])])]),a($,{order_id:V.value,modelValue:F.value,"onUpdate:modelValue":i[7]||(i[7]=e=>F.value=e),onClose:M},null,8,["order_id","modelValue"])],64)}}});const He=oe(Se,[["__scopeId","data-v-78c8d712"]]);export{He as default};
|