detail.47246ca6.js 6.0 KB

1
  1. import{Q as R,_ as M,d as z,cp as S,m as x,ci as T,r as C,ae as j,B as q,o as p,A as s,x as l,b as r,H as m,G as h,u as n,a as B,D as I,cw as _,cb as c,d1 as V}from"./index.bf41a5b5.js";import{u as H}from"./use-page-search.fc995b50.js";import{a as d}from"./apis.2389da71.js";import{h as L}from"./export.69fb1f23.js";import"./createRequset.3eb6d703.js";import"./xlsx.ed122d16.js";const{detail:U}=d,G=[{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:"good_price",label:"\u9500\u552E\u5355\u4EF7",minWidth:"120px"},{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"},{label:"\u672A\u53D1\u8D27\u6570\u91CF",minWidth:"80px",prop:"wsend_num"},{label:"\u672A\u4E0A\u4F20\u8FD0\u8D39\u6570\u91CF",minWidth:"155px",prop:"wpost_num"},{prop:"cgdPrice",label:"\u91C7\u8D2D\u5355\u4EF7",minWidth:"120px"},{label:"\u8FD0\u8D39",minWidth:"80px",prop:"post_fee"},{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"},{prop:"manager",label:"\u4E1A\u52A1\u7ECF\u7406",minWidth:"80px"},{prop:"profit_rate",label:"\u6BDB\u5229\u7387",minWidth:"80px"},{prop:"profit_range",label:"\u6BDB\u5229\u7387\u533A\u95F4",minWidth:"80px"},{prop:"profit_coefficient",label:"\u6BDB\u5229\u7387\u63D0\u6210\u7CFB\u6570",minWidth:"120px"},{prop:"total_percentage",label:"\u660E\u7EC6\u603B\u63D0\u6210",minWidth:"120px"},{prop:"sale_percentage",label:"\u660E\u7EC6\u603B\u63D0\u621030%",minWidth:"120px"},{prop:"manager_percentage",label:"\u660E\u7EC6\u603B\u63D0\u621070%",minWidth:"120px"}],g={columns:G,showTitle:!1,superUserNoAction:!1,apis:{httpList:U}},O=R(new Date).subtract(0,"month").format("YYYY-MM"),F={formItems:[{field:"year_month",type:"date_picker",defaultValue:O,placeholder:"\u660E\u7EC6\u6708\u4EFD",trigger:"change",otherOptions:{editable:!1,clearable:!1,type:"month",format:"YYYY-MM",valueFormat:"YYYY-MM"}}]},Q={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"}},Z={style:{color:"#000000","font-size":"14px","margin-right":"10px","line-height":"26px"}},b="projectDepartment",$=z({__name:"detail",setup(ee){const{hasPermissionWithCode:E}=S(b),i=x(null),o=T(!1),t=x({}),D=u=>({result:{...u,depart_type:"3"}}),A=u=>({result:{...u,depart_type:"3"}}),y={onSuccess:()=>o.value=!1,onStart:()=>o.value=!0,onFail:()=>o.value=!1},v={pageSearchHook:()=>H(D,A,F)};async function W(){const u=i.value.getBasicParams();try{await L({fileType:"application/vnd.ms-excel;charset=utf-8",url:"/admin/report/exportinfo",name:"\u9500\u552E\u7BA1\u7406\u90E8\u65B0\u653F\u7B56\u63D0\u6210\u4E1A\u7EE9\u660E\u7EC6.xlsx",...y,params:u})}catch{}}async function f(){const u=i.value.getBasicParams();o.value=!0;const{data:e}=await d.isConfirm({...u});return o.value=!1,t.value=e||{},V.NEXT}g.beforeRequestList=f;async function w(){_.confirm("\u662F\u5426\u786E\u8BA4\u5168\u90E8\u660E\u7EC6?",{type:"warning"}).then(async()=>{const u=i.value.getBasicParams(),{message:e,code:a}=await d.confirm({...u,depart_type:"3",status:"1"});Number(a)===1?(c.success("\u660E\u7EC6\u5DF2\u786E\u8BA4\u5B8C\u6210"),f()):c.warning(e)})}async function k(){_.confirm("\u662F\u5426\u53D6\u6D88\u786E\u8BA4\u5168\u90E8\u660E\u7EC6?",{type:"warning"}).then(async()=>{const u=i.value.getBasicParams(),{message:e,code:a}=await d.delete({...u,id:t.value.id,status:"0"});Number(a)===1?(c.success("\u660E\u7EC6\u53D6\u6D88\u786E\u8BA4\u5B8C\u6210"),f()):c.warning(e)})}return(u,e)=>{const a=C("ElButton"),N=C("PageContainer"),Y=j("loading");return q((p(),s(N,{hooks:v,pageName:b,getContentRef:P=>i.value=P,contentConfig:n(g),searchConfig:n(F)},{content_header:l(()=>[r("div",Q,[r("div",X,[e[0]||(e[0]=m(" \u5F53\u524D\u72B6\u6001\uFF1A ")),r("span",J,h(Number(t.value.status)===1?"\u5DF2\u786E\u8BA4":"\u672A\u786E\u8BA4"),1)]),r("div",K," \u786E\u8BA4\u4EBA\uFF1A"+h(t.value.apply_name||"--"),1),r("div",Z," \u786E\u8BA4\u65F6\u95F4\uFF1A"+h(t.value.createtime||"--"),1),Number(t.value.length)===0&&n(E)("21")?(p(),s(a,{key:0,onClick:w,size:"small"},{default:l(()=>e[1]||(e[1]=[m("\u786E\u8BA4\u5168\u90E8\u660E\u7EC6 ")])),_:1})):B("v-if",!0),Number(t.value.status)===1&&n(E)("22")?(p(),s(a,{key:1,onClick:k,size:"small"},{default:l(()=>e[2]||(e[2]=[m("\u53D6\u6D88\u786E\u8BA4\u5168\u90E8\u660E\u7EC6 ")])),_:1})):B("v-if",!0),n(E)("18")?(p(),s(a,{key:2,icon:n(I)("arrow-up-line"),onClick:W,type:"primary",size:"small"},{default:l(()=>e[3]||(e[3]=[m("\u5BFC\u51FA ")])),_:1},8,["icon"])):B("v-if",!0)])]),_:1},8,["getContentRef","contentConfig","searchConfig"])),[[Y,o.value]])}}});var re=M($,[["__file","C:/Users/Administrator/Desktop/projects/report-v3/src/views/time/projectDepartment/components/detail.vue"]]);export{re as default};