1 |
- import{Z as B,cr as F,_ as N,d as P,m as c,cs as z,cp as I,w as O,r as s,o as f,A as _,x as o,h as u,u as r,H as b,D as x,a as k,ce as T}from"./index.56449854.js";import{s as g}from"./search.config.d6f3d084.js";import{a as E,D as $}from"./demand-modify-modal.a3c608ed.js";import{u as U}from"./use-page-search.59eb5443.js";import V from"./exec-modal.5b8667fb.js";import"./createRequset.56e9fc42.js";import"./isBeyondTime.ab735625.js";const H=[{value:1,label:"\u5F85\u6267\u884C",type:"info"},{value:2,label:"\u6267\u884C\u5B8C\u6210",type:"success"},{value:3,label:"\u6267\u884C\u5931\u8D25",type:"danger"}],j=[{value:1,label:"\u7ACB\u5373\u6267\u884C",type:""},{value:2,label:"\u5EF6\u8FDF\u6267\u884C",type:"warning"}],L=[{prop:"exec_name",label:"\u4E1A\u52A1\u8868\u540D\u79F0",minWidth:"115px"},{prop:"start",label:"\u6570\u636E\u5F00\u59CB\u65F6\u95F4",minWidth:"155px"},{prop:"end",label:"\u6570\u636E\u7ED3\u675F\u65F6\u95F4",minWidth:"155px"},{prop:"updatetime",label:"\u72B6\u6001\u66F4\u65B0\u65F6\u95F4",minWidth:"155px"},{prop:"createtime",label:"\u521B\u5EFA\u65F6\u95F4",minWidth:"115px"},{prop:"exce_type",label:"\u6267\u884C\u7C7B\u578B",cellRenderer({row:i}){const n=j.find(({value:a})=>String(a)===String(i.exec_type));return B(F,{type:n.type||""},{default:()=>n.label||"--"})}},{prop:"status",label:"\u72B6\u6001",cellRenderer({row:i}){const n=H.find(({value:a})=>String(a)===String(i.status));return B(F,{type:n.type||""},{default:()=>n.label||"--"})}},{prop:"apply_name",label:"\u7533\u8BF7\u4EBA",minWidth:"80px"},{label:"\u64CD\u4F5C",fixed:"right",width:90,slot:"operation"}],Z={columns:L,showTitle:!1,superUserNoAction:!1,apis:{httpList:E.list}},y="inventoryProductOutboundDetails",q=P({__name:"all",setup(i){const n=c(null),a=c(null),v=z(),{hasPermissionWithCode:C}=I(y),d=c(null),D=c(g);O(()=>v.level,m=>{const{formItems:e}=D.value;e.findIndex(({field:p})=>p==="depart_id"),v.info},{immediate:!0});async function S(m){const e=await E.delete_exec({id:m});e.code===1?d.value.onSearch():T.warning(e.message)}const A={pageSearchHook:()=>U(void 0,void 0,g)};return(m,e)=>{const p=s("el-button"),h=s("ElButton"),M=s("el-link"),w=s("el-popconfirm"),R=s("page-container"),W=s("page-auth");return f(),_(W,{"page-name":y},{default:o(()=>[u(R,{hooks:A,"page-name":y,"search-config":r(g),"get-content-ref":t=>d.value=t,"content-config":r(Z)},{content_header:o(()=>[u(p,{type:"",size:"mini",onClick:e[0]||(e[0]=t=>{var l;return(l=n.value)==null?void 0:l.onDisplay({})})},{default:o(()=>[b("\u67E5\u770B\u6267\u884C\u7C7B\u578B\u8BF4\u660E")]),_:1}),u(p,{type:"primary",size:"mini",onClick:e[1]||(e[1]=t=>{var l;return(l=a.value)==null?void 0:l.onDisplay({})})},{default:o(()=>[b("\u6DFB\u52A0")]),_:1})]),content_action:o(t=>[String(t.status)==="2"&&r(C)("10")?(f(),_(M,{key:0,href:t.down_url,target:"_blank",underline:!1},{default:o(()=>[u(h,{link:"",size:"small",type:"primary",icon:r(x)("download-line")},null,8,["icon"])]),_:2},1032,["href"])):k("v-if",!0),r(C)("8")&&String(t.status)==="3"?(f(),_(w,{key:1,title:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u6761\u8BB0\u5F55?",onConfirm:l=>S(t.id)},{reference:o(()=>[u(h,{link:"",size:"small",type:"primary",icon:r(x)("delete")},null,8,["icon"])]),_:2},1032,["onConfirm"])):k("v-if",!0)]),_:1},8,["search-config","get-content-ref","content-config"]),u($,{ref_key:"demandModifyModal",ref:a,onRefresh:e[2]||(e[2]=t=>d.value.onSearch())},null,512),u(V,{ref_key:"execModalRef",ref:n},null,512)]),_:1})}}});var te=N(q,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/subscribe/inventoryProductOutboundDetails/components/all.vue"]]);export{te as default};
|