1 |
- import{_ as h,d as C,w as g,aU as _,W as E,n as b,r as i,o as D,G as y,C as P,j as c,l as a,aq as N,aN as x}from"./index.js";import{b as w}from"./form.47628e.js";import{u as k}from"./use-page-search.f7bc460e.js";import R from"./modal.0b33cf.js";const m=[{value:"0",label:"\u5F85\u53D1\u8D77\u5BA1\u6838\u6D41\u7A0B"},{value:"1",label:"\u5F85\u79BB\u804C\u4EA4\u63A5\u5BA1\u6838"},{value:"2",label:"\u5BA1\u6838\u4E0D\u901A\u8FC7"},{value:"3",label:"\u5F85\u7CFB\u7EDF\u66F4\u65B0\u6570\u636E"},{value:"4",label:"\u79BB\u804C\u4EA4\u63A5\u5DF2\u6210\u529F"}],j=[{prop:"resign_name",label:"\u79BB\u804C\u4EBA"},{prop:"hand_name",label:"\u63A5\u6536\u4EBA"},{prop:"status",label:"\u72B6\u6001",cellRenderer({row:n}){return(m.find(o=>o.value==n.status)||{}).label||"--"}},{prop:"expire_date",label:"\u751F\u6548\u65F6\u95F4"},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4"},{label:"\u64CD\u4F5C",fixed:"right",width:50,slot:"operation"}],S={title:"\u79BB\u804C\u4EA4\u63A5",columns:j,companyProp:"custom",apis:{httpList:w,httpAdd:!0}},d={formItems:[{type:"select",field:"status",placeholder:"\u5BA1\u6838\u72B6\u6001",options:m},{type:"input",field:"supplierName",placeholder:"\u79BB\u804C\u4EBA\u59D3\u540D"},{type:"input",field:"supplierName_js",placeholder:"\u63A5\u53D7\u4EBA\u59D3\u540D"},{field:"addtime",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u521B\u5EFA\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u521B\u5EFA\u7ED3\u675F\u65F6\u95F4"}}]},U=C({__name:"index",setup(n){const o="handover",s=g(null),f={pageSearchHook:()=>k(void 0,void 0,d)},e=_(!1),{currentCompany:r}=E(),{push:B}=b(),v={content:{create:()=>{if(!r.value.companyNo){x.warning("\u8BF7\u9009\u62E9\u4E00\u5BB6\u4E1A\u52A1\u516C\u53F8");return}e.value=!0},preview:l=>B(`/interest/handoverDetail?id=${l.id}`)}};return(l,u)=>{const A=i("PageContainer"),F=i("PageAuth");return D(),y(F,{pageName:o},{default:P(()=>[c(A,{hooks:f,events:v,contentConfig:a(S),"search-config":a(d),"get-content-ref":t=>s.value=t},null,8,["contentConfig","search-config","get-content-ref"]),c(R,{visible:a(e),"onUpdate:visible":u[0]||(u[0]=t=>N(e)?e.value=t:null),companyNo:a(r).companyNo,onRefresh:u[1]||(u[1]=t=>{var p;return(p=s.value)==null?void 0:p.onSearch()})},null,8,["visible","companyNo"])]),_:1})}}});var G=h(U,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/interest/handover/index.vue"]]);export{G as default};
|