1 |
- import{S as M,_ as z,d as S,cp as T,m as g,cl as j,r as f,ag as q,o as p,A as r,x as s,B as I,u as n,b as l,H as c,G as _,a as B,D as V,cw as C,ce as m,d2 as H}from"./index.56449854.js";import{u as L}from"./use-page-search.59eb5443.js";import{h as U}from"./export.a2ce61c0.js";import{a as d}from"./apis.49afab41.js";import"./xlsx.ed122d16.js";import"./createRequset.56e9fc42.js";const{detail:G}=d,O=[{prop:"tradeNo",label:"\u8D44\u91D1\u8BA4\u9886\u7F16\u7801",minWidth:"155px"},{prop:"depart",label:"\u90E8\u95E8",minWidth:"155px"},{prop:"saler",label:"\u9500\u552E\u4EBA\u5458",minWidth:"80px"},{prop:"plat_name",label:"\u5E73\u53F0\u7C7B\u578B",minWidth:"155px"},{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_code",label:"\u5546\u54C1\u7F16\u7801",minWidth:"155px"},{prop:"good_name",label:"\u4EA7\u54C1\u540D\u79F0",minWidth:"155px"},{prop:"first_cat",label:"\u4E00\u7EA7\u5206\u7C7B",minWidth:"80px"},{prop:"system_price",label:"\u7CFB\u7EDF\u5355\u4EF7",minWidth:"80px"},{prop:"good_price",label:"\u9500\u552E\u5355\u4EF7",minWidth:"120px"},{prop:"fullprice",label:"\u6EA2\u51FA\u5355\u4EF7",minWidth:"80px"},{prop:"old_company",label:"\u9500\u552E\u8BA2\u5355\u4E3B\u5355\u53F7\u4E1A\u52A1\u516C\u53F8",minWidth:"180px"},{prop:"oldCode",label:"\u9500\u552E\u4E3B\u8BA2\u5355\u7F16\u53F7",minWidth:"155px"},{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:"to_fee",label:"\u57FA\u7840\u7EE9\u6548\u56DE\u6B3E\u91D1\u989D",minWidth:"120px"},{prop:"jx_fee",label:"\u6FC0\u52B1\u7EE9\u6548\u56DE\u6B3E\u91D1\u989D",minWidth:"120px"},{prop:"pay_date_num",label:"\u8D26\u671F",minWidth:"70px"},{prop:"manager",label:"\u4E1A\u52A1\u7ECF\u7406",minWidth:"90px"},{prop:"pay_rate",label:"\u8D26\u671F\u56DE\u6B3E",minWidth:"80px"},{prop:"first_cat",label:"\u4E00\u7EA7\u5206\u7C7B\u7C7B\u578B",minWidth:"90px"},{prop:"percentage",label:"\u57FA\u7840\u7EE9\u6548\u63D0\u6210\u7CFB\u6570",minWidth:"120px"},{prop:"pay_percentage",label:"\u57FA\u7840\u7EE9\u6548\u63D0\u6210\u91D1\u989D",minWidth:"120px"},{prop:"jx_percentage",label:"\u6FC0\u52B1\u7EE9\u6548\u63D0\u6210\u91D1\u989D",minWidth:"120px"},{prop:"total_percentage",label:"\u7EE9\u6548\u63D0\u6210\u5408\u8BA1",minWidth:"120px"}],F={columns:O,showTitle:!1,superUserNoAction:!1,apis:{httpList:G}},X=M(new Date).subtract(1,"month").format("YYYY-MM"),D={formItems:[{field:"year_month",type:"date_picker",defaultValue:X,placeholder:"\u660E\u7EC6\u6708\u4EFD",trigger:"change",otherOptions:{editable:!1,clearable:!1,type:"month",format:"YYYY-MM",valueFormat:"YYYY-MM"}}]},J={style:{display:"flex"}},K={style:{color:"#000000","font-size":"14px","margin-right":"10px","line-height":"26px"}},Q={style:{color:"red"}},Z={style:{color:"#000000","font-size":"14px","margin-right":"10px","line-height":"26px"}},$={style:{color:"#000000","font-size":"14px","margin-right":"10px","line-height":"26px"}},x="customerDepartment",ee=S({__name:"detail",setup(ue){const{hasPermissionWithCode:E}=T(x),i=g(null),o=j(!1),u=g({}),b=e=>({result:{...e,depart_type:"1"}}),A=e=>({result:{...e,depart_type:"1"}}),y={onSuccess:()=>o.value=!1,onFail:()=>o.value=!1,onStart:()=>o.value=!0},v={pageSearchHook:()=>L(b,A,D)};async function W(){const e=i.value.getBasicParams();try{await U({fileType:"application/vnd.ms-excel;charset=utf-8",url:"/admin/report/exportinfo",name:"\u5BA2\u670D\u90E8\u63D0\u6210\u4E1A\u7EE9\u660E\u7EC6.xlsx",...y,params:e})}catch{}}async function h(){const e=i.value.getBasicParams();o.value=!0;const{data:t}=await d.isConfirm({...e});return o.value=!1,u.value=t||{},H.NEXT}F.beforeRequestList=h;async function w(){C.confirm("\u662F\u5426\u786E\u8BA4\u5168\u90E8\u660E\u7EC6?",{type:"warning"}).then(async()=>{const e=i.value.getBasicParams(),{message:t,code:a}=await d.confirm({...e,depart_type:"1",status:"1"});Number(a)===1?(m.success("\u660E\u7EC6\u5DF2\u786E\u8BA4\u5B8C\u6210"),h()):m.warning(t)})}async function k(){C.confirm("\u662F\u5426\u53D6\u6D88\u786E\u8BA4\u5168\u90E8\u660E\u7EC6?",{type:"warning"}).then(async()=>{const e=i.value.getBasicParams(),{message:t,code:a}=await d.delete({...e,id:u.value.id,status:"0"});Number(a)===1?(m.success("\u660E\u7EC6\u53D6\u6D88\u786E\u8BA4\u5B8C\u6210"),h()):m.warning(t)})}return(e,t)=>{const a=f("ElButton"),N=f("PageContainer"),Y=f("PageAuth"),P=q("loading");return p(),r(Y,{"page-name":x},{default:s(()=>[I((p(),r(N,{hooks:v,pageName:x,getContentRef:R=>i.value=R,contentConfig:n(F),searchConfig:n(D)},{content_header:s(()=>[l("div",J,[l("div",K,[c(" \u5F53\u524D\u72B6\u6001\uFF1A "),l("span",Q,_(Number(u.value.status)===1?"\u5DF2\u786E\u8BA4":"\u672A\u786E\u8BA4"),1)]),l("div",Z," \u786E\u8BA4\u4EBA\uFF1A"+_(u.value.apply_name||"--"),1),l("div",$," \u786E\u8BA4\u65F6\u95F4\uFF1A"+_(u.value.createtime||"--"),1),Number(u.value.length)===0&&n(E)("21")?(p(),r(a,{key:0,onClick:w,size:"small"},{default:s(()=>[c("\u786E\u8BA4\u5168\u90E8\u660E\u7EC6 ")]),_:1})):B("v-if",!0),Number(u.value.status)===1&&n(E)("22")?(p(),r(a,{key:1,onClick:k,size:"small"},{default:s(()=>[c("\u53D6\u6D88\u786E\u8BA4\u5168\u90E8\u660E\u7EC6 ")]),_:1})):B("v-if",!0),n(E)("18")?(p(),r(a,{key:2,icon:n(V)("arrow-up-line"),onClick:W,type:"primary",size:"small"},{default:s(()=>[c("\u5BFC\u51FA ")]),_:1},8,["icon"])):B("v-if",!0)])]),_:1},8,["getContentRef","contentConfig","searchConfig"])),[[P,o.value]])]),_:1})}}});var re=z(ee,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/time/customerDepartment/components/detail.vue"]]);export{re as default};
|