index.7b86ba.js 7.5 KB

1
  1. import{ac as y,aZ as h,_ as J,d as W,n as Y,W as Z,w as D,aY as k,az as V,a4 as q,r as x,at as K,o as p,G as C,C as l,j as r,l as u,aR as B,M as d,b2 as S,J as T,a as g,b0 as z,H as U,c as $}from"./index.js";import{u as Q}from"./use-page-search.ccdda2cc.js";import{O as X,o as ee}from"./index.06cea9.js";import{N as ue,n as te}from"./index.a3a924.js";import{a as oe}from"./index.fa2d778e.js";import{t as le,a as O}from"./shared.a743a5f7.js";import{u as re}from"./status.b7512d56.js";import{r as I}from"./columnRenderHelper.e2cf0def.js";import{u as P,w as ae}from"./execl-upload.59283836.js";import{h as ie,a as ne}from"./index.0b63e24d.js";import{B as se}from"./basic-descriptions.c79c2d96.js";import{o as de}from"./columns.77429d4b.js";import{h as pe}from"./index.c69c629a.js";import{P as me}from"./index.8e09a6fa.js";import"./index.53b07c6d.js";import"./index.46232daf.js";import"./tootip.4c68c02b.js";import"./columns.f9aa8f9a.js";const fe=[{type:"selection",width:40},{prop:"id",label:"ID",width:"40px"},{label:"\u786E\u8BA4\u5355\u7F16\u53F7",prop:"orderCode",width:150},{label:"\u9500\u552E\u4E3B\u5355\u53F7",prop:"cxCode",width:150},{label:"\u4E1A\u52A1\u7C7B\u578B",prop:"type",width:80,cellRenderer({row:i}){return y(h,{size:"small"},{default:()=>{var a;return((a=le.find(t=>t.value==i.type))==null?void 0:a.label)||"--"}})}},{label:"\u72B6\u6001",width:80,cellRenderer({row:i}){var a;return y(h,{size:"small",type:((a=O.find(t=>t.value==i.status))==null?void 0:a.type)||"warning"},{default:()=>{var t;return((t=O.find(w=>w.value==i.status))==null?void 0:t.label)||"--"}})}},{label:"\u5F02\u5E38\u539F\u56E0",width:120,prop:"error_remark"},{label:"\u5E73\u53F0\u8BA2\u5355\u53F7",prop:"poCode",width:100},{label:"\u5E73\u53F0\u7C7B\u578B",width:80,cellRenderer({row:i}){return y(h,{size:"small"},{default:()=>{var a;return((a=re.find(t=>t.value==i.platform_type))==null?void 0:a.label)||"--"}})}},{label:"\u9500\u552E\u65B9\u516C\u53F8",width:160,...I("seller_code","seller_name","\u9500\u552E\u65B9\u516C\u53F8\u7F16\u53F7:")},{label:"\u8D2D\u4E70\u65B9\u516C\u53F8",width:160,...I("buyer_code","buyer_name","\u8D2D\u4E70\u65B9\u516C\u53F8\u7F16\u53F7:")},{label:"\u5546\u54C1\u540D\u79F0",width:160,...I("goodNo","goodName","\u5546\u54C1\u7F16\u53F7:")},{label:"\u4E0B\u5355\u6570\u91CF",prop:"num",width:100},{label:"\u9500\u552E\u5355\u4EF7",prop:"goodPrice",width:100},{label:"\u9500\u552E\u5408\u8BA1",prop:"totalPrice",width:100},{label:"\u51FA\u5E93\u65F6\u95F4",prop:"fz_date",width:100},{label:"\u64CD\u4F5C",fixed:"right",width:50,slot:"operation"}],Fe={columns:fe,title:"\u5546\u54C1\u7BA1\u7406",companyProp:"seller_code",permissions:["007"],apis:{httpList:(i={})=>oe({...i,channel:[3]}),httpAdd:!0}},M={formItems:[{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u521B\u5EFA\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u521B\u5EFA\u7ED3\u675F\u65F6\u95F4"}},{field:"orderCode",placeholder:"\u9500\u552E\u5355\u7F16\u53F7",type:"input"},{field:"goodNo",placeholder:"\u8BA2\u5355\u5546\u54C1\u7F16\u53F7",type:"input"},{field:"status",placeholder:"\u72B6\u6001",options:O,type:"select"}]},Ce={style:{overflow:"hidden","margin-bottom":"30px"}},Ee="inOutManager",ce=W({__name:"index",setup(i){const a=Y(),t=Z({orderImportVisible:!1,notOrderImportVisible:!1,detailVisible:!1,productVisible:!1}),w={pageSearchHook:()=>Q(void 0,void 0,M)},E=D(),n=k(),c=k(),m=D(null),v=D([]),L=k({success(){V.success("\u53D6\u6D88\u6210\u529F"),m==null||m.value.onSearch()}}),{isSuperUser:_}=q(),j={content:{create:()=>a.push("/invoiceInOut/clinetCDetail"),preview:({id:s})=>{t.detailVisible=!0,n.run(ie({id:s}))}}};function N(s=!1){const e=s?ee:te,f=s?"\u51FA\u5E93\u6A21\u677F-\u8BA2\u5355\u5546\u54C1(C\u7AEF\u8BA2\u5355).xlsx":"\u51FA\u5E93\u6A21\u677F-\u975E\u8BA2\u5355\u5546\u54C1(C\u7AEF\u8BA2\u5355).xlsx",b=P.book_new(),A=P.json_to_sheet(e);P.book_append_sheet(b,A,"sheet"),ae(b,f,{bookType:"xlsx"})}function G(){if(v.value.length===0){V.warning('\u8BF7\u9009\u62E9\u81F3\u5C11\u4E00\u6761\u72B6\u6001\u4E3A "\u5F85\u5BA1\u6838" \u6216 "\u5F02\u5E38" \u7684\u6570\u636E');return}if(v.value.some(({status:e})=>e!="1"&&e!="4")){V.warning('\u53EA\u80FD\u9009\u62E9\u72B6\u6001\u4E3A "\u5F85\u5BA1\u6838" \u6216 "\u5F02\u5E38" \u7684\u6570\u636E');return}L.run(ne({id:v.value.map(({id:e})=>e)}))}function H(s,e){t.productVisible=!0,E.value=e,c.run(pe({id:s}))}return(s,e)=>{const f=x("ElDropdownItem"),b=x("PageContainer"),A=x("PageAuth"),R=K("loading");return p(),C(A,{pageName:Ee},{default:l(()=>[r(b,{hooks:w,events:j,searchConfig:u(M),contentConfig:u(Fe),"get-content-ref":o=>m.value=o,onContentSelectChange:e[5]||(e[5]=o=>v.value=o)},{content_header:l(()=>[r(u(B),{style:{"margin-right":"10px"},size:"small",type:"primary",onClick:G},{default:l(()=>e[12]||(e[12]=[d("\u6279\u91CF\u53D6\u6D88 ")])),_:1}),r(u(S),null,{dropdown:l(()=>[r(f,{onClick:e[0]||(e[0]=o=>t.orderImportVisible=!0)},{default:l(()=>e[14]||(e[14]=[d("\u8BA2\u5355\u5BFC\u5165")])),_:1}),r(f,{onClick:e[1]||(e[1]=o=>t.notOrderImportVisible=!0)},{default:l(()=>e[15]||(e[15]=[d("\u975E\u8BA2\u5355\u5BFC\u5165")])),_:1})]),default:l(()=>[u(_)?g("v-if",!0):(p(),C(u(B),{key:0,size:"small",type:"primary",style:{"margin-right":"10px","margin-top":"1px"},icon:u(T)("arrow-up-line")},{default:l(()=>e[13]||(e[13]=[d("\u51FA\u5E93\u6570\u636E\u5BFC\u5165(C\u7AEF\u8BA2\u5355) ")])),_:1},8,["icon"]))]),_:1}),r(u(S),null,{dropdown:l(()=>[r(f,{onClick:e[2]||(e[2]=o=>N(!0))},{default:l(()=>e[17]||(e[17]=[d("\u8BA2\u5355\u5BFC\u5165")])),_:1}),r(f,{onClick:e[3]||(e[3]=o=>N(!1))},{default:l(()=>e[18]||(e[18]=[d("\u975E\u8BA2\u5355\u5BFC\u5165")])),_:1})]),default:l(()=>[r(u(B),{size:"small",style:{"margin-right":"10px","margin-top":"1px"},icon:u(T)("arrow-down-line")},{default:l(()=>e[16]||(e[16]=[d(" \u51FA\u5E93\u6A21\u677F\u4E0B\u8F7D(C\u7AEF\u8BA2\u5355) ")])),_:1},8,["icon"])]),_:1}),u(_)?g("v-if",!0):(p(),C(u(B),{key:0,size:"small",type:"primary",onClick:e[4]||(e[4]=o=>u(a).push("/invoiceInOut/clinetCDetail"))},{default:l(()=>e[19]||(e[19]=[d(" \u6279\u91CF\u5904\u7406 ")])),_:1}))]),_:1},8,["searchConfig","contentConfig","get-content-ref"]),r(X,{visible:t.orderImportVisible,"onUpdate:visible":e[6]||(e[6]=o=>t.orderImportVisible=o),onRefresh:e[7]||(e[7]=o=>{var F;return(F=m.value)==null?void 0:F.onSearch()})},null,8,["visible"]),r(ue,{visible:t.notOrderImportVisible,"onUpdate:visible":e[8]||(e[8]=o=>t.notOrderImportVisible=o),onRefresh:e[9]||(e[9]=o=>{var F;return(F=m.value)==null?void 0:F.onSearch()})},null,8,["visible"]),r(u(z),{modelValue:t.detailVisible,"onUpdate:modelValue":e[10]||(e[10]=o=>t.detailVisible=o),title:"C\u7AEF\u65E0\u53D1\u7968\u8BA2\u5355\u51FA\u5E93\u8BE6\u60C5",center:""},{default:l(()=>[U((p(),$("div",Ce,[u(n).data?(p(),C(u(se),{key:0,columns:u(de)(H,u(n).data.ProductRela.length!==0),data:u(n).data},null,8,["columns","data"])):g("v-if",!0)])),[[R,u(n).loading]])]),_:1},8,["modelValue"]),r(u(z),{center:"",title:"\u5546\u54C1\u8BE6\u60C5",modelValue:t.productVisible,"onUpdate:modelValue":e[11]||(e[11]=o=>t.productVisible=o),style:{overflow:"hidden"},"append-to-body":!0},{default:l(()=>[U((p(),$("div",null,[u(c).data?(p(),C(me,{key:0,style:{overflow:"hidden"},data:u(c).data,num:u(n).data.ProductRela[E.value].num,time:u(n).data.ProductRela[E.value].create_time,name:u(n).data.ProductRela[E.value].apply_name},null,8,["data","num","time","name"])):g("v-if",!0)])),[[R,u(c).loading]])]),_:1},8,["modelValue"])]),_:1})}}});var Se=J(ce,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/clientC/index.vue"]]);export{Se as default};