2 lines
7.8 KiB
JavaScript
2 lines
7.8 KiB
JavaScript
import{G as O,B as z,y as H,A as J,w as Q,N as W,C as X,R as Y,S as Z,T as tt}from"./element-plus.b8743002.js";import{_ as et}from"./index.vue_vue_type_script_setup_true_lang.a5f8d999.js";import{_ as ot}from"./index.vue_vue_type_script_setup_true_lang.23d19169.js";import{t as k,f as nt,d as at}from"./index.f6cf97bc.js";import{u as lt}from"./usePaging.160b82b8.js";import{a as it}from"./useDictOptions.0be635ae.js";import{_ as ut,a as st,b as rt}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.f0165184.js";import{d as S,s as pt,r as V,$ as ct,af as dt,o as s,c as A,U as t,L as o,M as f,u as a,K as p,R as _t,V as mt,a7 as ft,a as g,T as x,k as vt,S as _,n as $}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.92e7f918.js";import"./dayjs.79cf08f3.js";import"./axios.77c85d3e.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.3080e53f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.54284180.js";import"./color.1c59b943.js";import"./clone.0c702ab2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.66e2071a.js";import"./ms.a9ae1d6d.js";import"./nprogress.81114d43.js";import"./vue-clipboard3.f3fb4eed.js";import"./clipboard.c973b911.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.b897fe6d.js";const bt=_("\u67E5\u8BE2"),ht=_("\u91CD\u7F6E"),yt=_(" \u65B0\u589E "),Et=_(" \u5220\u9664 "),gt={class:"mt-4"},Bt=_(" \u7F16\u8F91 "),Ct=_(" \u5220\u9664 "),Ft={class:"flex mt-4 justify-end"},wt=S({name:"projectLists"}),_e=S({...wt,setup(jt){const v=pt(),b=V(!1),c=ct({custom_id:"",project_type:"",project_code:"",project_content:"",project_estimation:"",project_address:"",estimated_construction:"",bidding_time:"",bidding_method:"",contacts:"",position:"",telephone:"",department:"",person:"",relationship:"",discovery_time:"",information_sources:"",competitor:"",construction_funds_sources:"",construction_payment_method:"",construction_financial_status:"",construction_recognition:"",my_construction_recognition:"",strategic_significance:"",industry:"",unit_nature:"",annex:"",status:""}),B=V([]),P=u=>{B.value=u.map(({id:l})=>l)},{dictData:i}=it("project_type,project_content,bidding_method,relationship,information_sources,construction_funds_sources,construction_financial_status,construction_recognition,my_construction_recognition,strategic_significance,industry,unit_nature"),{pager:m,getLists:h,resetParams:L,resetPage:R}=lt({fetchFun:st,params:c}),T=async()=>{var u;b.value=!0,await $(),(u=v.value)==null||u.open("add")},M=async u=>{var l,y;b.value=!0,await $(),(l=v.value)==null||l.open("edit"),(y=v.value)==null||y.setFormData(u)},w=async u=>{await nt.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await rt({id:u}),h()};return h(),(u,l)=>{const y=O,C=z,j=H,N=J,d=Q,U=W,D=X,I=at,n=Y,r=ot,q=Z,G=et,E=dt("perms"),K=tt;return s(),A("div",null,[t(D,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[t(U,{class:"mb-[-16px]",model:c,inline:""},{default:o(()=>[t(C,{label:"\u5BA2\u6237",prop:"custom_name"},{default:o(()=>[t(y,{class:"w-[280px]",modelValue:c.custom_id,"onUpdate:modelValue":l[0]||(l[0]=e=>c.custom_id=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u6635\u79F0"},null,8,["modelValue"])]),_:1}),t(C,{label:"\u9879\u76EE\u7C7B\u578B",prop:"project_type"},{default:o(()=>[t(N,{class:"w-[280px]",modelValue:c.project_type,"onUpdate:modelValue":l[1]||(l[1]=e=>c.project_type=e),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE\u7C7B\u578B"},{default:o(()=>[t(j,{label:"\u5168\u90E8",value:""}),(s(!0),A(mt,null,ft(a(i).project_type,(e,F)=>(s(),p(j,{key:F,label:e.name,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(C,null,{default:o(()=>[t(d,{type:"primary",onClick:a(R)},{default:o(()=>[bt]),_:1},8,["onClick"]),t(d,{onClick:a(L)},{default:o(()=>[ht]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((s(),p(D,{class:"!border-none",shadow:"never"},{default:o(()=>[f((s(),p(d,{type:"primary",onClick:T},{icon:o(()=>[t(I,{name:"el-icon-Plus"})]),default:o(()=>[yt]),_:1})),[[E,["project.project/add"]]]),f((s(),p(d,{disabled:!B.value.length,onClick:l[2]||(l[2]=e=>w(B.value))},{default:o(()=>[Et]),_:1},8,["disabled"])),[[E,["project.project/delete"]]]),g("div",gt,[t(q,{data:a(m).lists,onSelectionChange:P},{default:o(()=>[t(n,{type:"selection",width:"55"}),t(n,{label:"\u5BA2\u6237",prop:"custom_name","show-overflow-tooltip":""}),t(n,{label:"\u9879\u76EE\u7C7B\u578B",prop:"project_type"},{default:o(({row:e})=>[t(r,{options:a(i).project_type,value:e.project_type},null,8,["options","value"])]),_:1}),t(n,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),t(n,{label:"\u9879\u76EE\u5185\u5BB9",prop:"project_content"},{default:o(({row:e})=>[t(r,{options:a(i).project_content,value:e.project_content},null,8,["options","value"])]),_:1}),t(n,{label:"\u9879\u76EE\u4F30\u7B97",prop:"project_estimation","show-overflow-tooltip":""}),t(n,{label:"\u9879\u76EE\u6240\u5728\u5730",prop:"project_address","show-overflow-tooltip":""}),t(n,{label:"\u9884\u8BA1\u5DE5\u671F",prop:"estimated_construction","show-overflow-tooltip":""}),t(n,{label:"\u6295\u6807\u65F6\u95F4",prop:"bidding_time"},{default:o(({row:e})=>[g("span",null,x(e.bidding_time?a(k)(e.bidding_time,"yyyy-mm-dd hh:MM:ss"):""),1)]),_:1}),t(n,{label:"\u62DB\u6807\u65B9\u5F0F",prop:"bidding_method"},{default:o(({row:e})=>[t(r,{options:a(i).bidding_method,value:e.bidding_method},null,8,["options","value"])]),_:1}),t(n,{label:"\u8054\u7CFB\u4EBA",prop:"contacts","show-overflow-tooltip":""}),t(n,{label:"\u8054\u7CFB\u4EBA\u804C\u4F4D",prop:"position","show-overflow-tooltip":""}),t(n,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"telephone","show-overflow-tooltip":""}),t(n,{label:"\u8054\u7CFB\u4EBA\u90E8\u95E8",prop:"department","show-overflow-tooltip":""}),t(n,{label:"\u8D1F\u8D23\u4EBA",prop:"person","show-overflow-tooltip":""}),t(n,{label:"\u5173\u7CFB\u5EA6",prop:"relationship"},{default:o(({row:e})=>[t(r,{options:a(i).relationship,value:e.relationship},null,8,["options","value"])]),_:1}),t(n,{label:"\u53D1\u73B0\u65F6\u95F4",prop:"discovery_time"},{default:o(({row:e})=>[g("span",null,x(e.discovery_time?a(k)(e.discovery_time,"yyyy-mm-dd hh:MM:ss"):""),1)]),_:1}),t(n,{label:"\u6218\u7565\u610F\u4E49",prop:"strategic_significance"},{default:o(({row:e})=>[t(r,{options:a(i).strategic_significance,value:e.strategic_significance},null,8,["options","value"])]),_:1}),t(n,{label:"\u6240\u5C5E\u884C\u4E1A",prop:"industry"},{default:o(({row:e})=>[t(r,{options:a(i).industry,value:e.industry},null,8,["options","value"])]),_:1}),t(n,{label:"\u5355\u4F4D\u6027\u8D28",prop:"unit_nature"},{default:o(({row:e})=>[t(r,{options:a(i).unit_nature,value:e.unit_nature},null,8,["options","value"])]),_:1}),t(n,{label:"\u72B6\u6001",prop:"status","show-overflow-tooltip":""}),t(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:e})=>[f((s(),p(d,{type:"primary",link:"",onClick:F=>M(e)},{default:o(()=>[Bt]),_:2},1032,["onClick"])),[[E,["project.project/edit"]]]),f((s(),p(d,{type:"danger",link:"",onClick:F=>w(e.id)},{default:o(()=>[Ct]),_:2},1032,["onClick"])),[[E,["project.project/delete"]]])]),_:1})]),_:1},8,["data"])]),g("div",Ft,[t(G,{modelValue:a(m),"onUpdate:modelValue":l[3]||(l[3]=e=>vt(m)?m.value=e:null),onChange:a(h)},null,8,["modelValue","onChange"])])]),_:1})),[[K,a(m).loading]]),b.value?(s(),p(ut,{key:0,ref_key:"editRef",ref:v,"dict-data":a(i),onSuccess:a(h),onClose:l[4]||(l[4]=e=>b.value=!1)},null,8,["dict-data","onSuccess"])):_t("",!0)])}}});export{_e as default};
|