detail.b177619e.js 4.4 KB

1
  1. import{S as N,_ as R,d as P,cT as M,m as f,cl as S,r as E,ag as T,B as z,o as r,A as l,x as p,b as o,H as c,G as m,u as n,a as _,D as q,cr as V,cc as g,c_ as I}from"./index.087a4b16.js";import{u as j}from"./use-page-search.f4c3a9ed.js";import{a as d}from"./apis.aef9cf74.js";import{h as H}from"./export.b709b922.js";import"./createRequset.8880d6c7.js";const{detail:L}=d,U=[{prop:"depart",label:"\u90E8\u95E8",minWidth:"135px"},{prop:"saler",label:"\u9500\u552E\u4EBA\u5458",minWidth:"80px"},{prop:"plat_name",label:"\u5E73\u53F0\u7C7B\u578B",minWidth:"135px"},{prop:"company_name",label:"\u516C\u53F8\u540D\u79F0",minWidth:"155px"},{prop:"order_type",label:"\u8BA2\u5355\u7C7B\u578B",minWidth:"80px"},{prop:"orderCode",label:"\u786E\u8BA4\u5355\u7F16\u53F7",minWidth:"155px"},{prop:"cgdNo",label:"\u91C7\u8D2D\u5355\u7F16\u53F7",minWidth:"155px"},{prop:"customerAttr",label:"\u5BA2\u6237\u5C5E\u6027",minWidth:"80px"},{prop:"branch",label:"\u5BA2\u6237\u5206\u516C\u53F8",minWidth:"80px"},{prop:"customerName",label:"\u5BA2\u6237\u540D\u79F0",minWidth:"155px"},{prop:"good_name",label:"\u4EA7\u54C1\u540D\u79F0",minWidth:"155px"},{prop:"first_cat",label:"\u4E00\u7EA7\u5206\u7C7B",minWidth:"80px"},{prop:"good_price",label:"\u9500\u552E\u5355\u4EF7",minWidth:"120px"},{prop:"oldCode",label:"\u539F\u9500\u552E\u5355\u53F7",minWidth:"155px"},{prop:"cgdPrice",label:"\u91C7\u8D2D\u5355\u4EF7",minWidth:"120px"},{prop:"good_num",label:"\u4E0B\u5355\u6570\u91CF",minWidth:"80px"},{prop:"total_price",label:"\u9500\u552E\u603B\u989D",minWidth:"155px"},{prop:"order_time",label:"\u9500\u552E\u4E0B\u5355\u65F6\u95F4",minWidth:"155px"},{prop:"pay_time",label:"\u56DE\u6B3E\u65E5\u671F",minWidth:"155px"},{prop:"pay_fee",label:"\u56DE\u6B3E\u91D1\u989D",minWidth:"120px"},{prop:"pay_date_num",label:"\u8D26\u671F",minWidth:"70px"}],x={columns:U,showTitle:!1,superUserNoAction:!1,apis:{httpList:L}},G=N(new Date).subtract(1,"month").format("YYYY-MM"),C={formItems:[{field:"year_month",type:"date_picker",defaultValue:G,placeholder:"\u660E\u7EC6\u6708\u4EFD",trigger:"change",otherOptions:{editable:!1,clearable:!1,type:"month",format:"YYYY-MM",valueFormat:"YYYY-MM"}}]},O={style:{display:"flex"}},X={style:{color:"#000000","font-size":"14px","margin-right":"10px","line-height":"26px"}},J={style:{color:"red"}},K={style:{color:"#000000","font-size":"14px","margin-right":"10px","line-height":"26px"}},Q={style:{color:"#000000","font-size":"14px","margin-right":"10px","line-height":"26px"}},B="mediumDepartment",Z=P({__name:"detail",setup($){const{hasPermissionWithCode:h}=M(B),s=f(null),t=S(!1),a=f({}),F=e=>({result:{...e,depart_type:"2"}}),b=e=>({result:{...e,depart_type:"2"}}),v={onSuccess:()=>t.value=!1,onStart:()=>t.value=!0,onFail:()=>t.value=!1},y={pageSearchHook:()=>j(F,b,C)};async function D(){const e=s.value.getBasicParams();try{await H({fileType:"application/vnd.ms-excel;charset=utf-8",url:"/admin/report/exportinfo",name:"\u65B0\u5A92\u4F53\u63D0\u6210\u4E1A\u7EE9\u660E\u7EC6.xlsx",...v,params:e})}catch{}}async function A(){const e=s.value.getBasicParams();t.value=!0;const{data:u}=await d.isConfirm({...e});return t.value=!1,a.value=u||{},I.NEXT}x.beforeRequestList=A;async function W(){V.confirm("\u662F\u5426\u786E\u8BA4\u5168\u90E8\u660E\u7EC6?",{type:"warning"}).then(async()=>{const e=s.value.getBasicParams(),{message:u,code:i}=await d.confirm({...e,depart_type:"2",status:"1"});Number(i)===1?g.success("\u660E\u7EC6\u5DF2\u786E\u8BA4\u5B8C\u6210"):g.warning(u)})}return(e,u)=>{const i=E("ElButton"),k=E("PageContainer"),w=T("loading");return z((r(),l(k,{hooks:y,pageName:B,getContentRef:Y=>s.value=Y,contentConfig:n(x),searchConfig:n(C)},{content_header:p(()=>[o("div",O,[o("div",X,[c(" \u5F53\u524D\u72B6\u6001\uFF1A "),o("span",J,m(Number(a.value.status)===1?"\u5DF2\u786E\u8BA4":"\u672A\u786E\u8BA4"),1)]),o("div",K," \u786E\u8BA4\u4EBA\uFF1A"+m(a.value.apply_name||"--"),1),o("div",Q," \u786E\u8BA4\u65F6\u95F4\uFF1A"+m(a.value.createtime||"--"),1),Number(a.value.status)!==1&&n(h)("21")?(r(),l(i,{key:0,onClick:W,size:"small"},{default:p(()=>[c("\u786E\u8BA4\u5168\u90E8\u660E\u7EC6 ")]),_:1})):_("v-if",!0),n(h)("18")?(r(),l(i,{key:1,icon:n(q)("arrow-up-line"),onClick:D,type:"primary",size:"small"},{default:p(()=>[c("\u5BFC\u51FA ")]),_:1},8,["icon"])):_("v-if",!0)])]),_:1},8,["getContentRef","contentConfig","searchConfig"])),[[w,t.value]])}}});var ne=R(Z,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/mediumDepartment/components/detail.vue"]]);export{ne as default};