2 lines
8.1 KiB
JavaScript
2 lines
8.1 KiB
JavaScript
import{I as H,y as W,G as J,H as K,w as Q,D as X,C as Y,L as Z,M as oo,N as eo}from"./element-plus.517d4382.js";import{_ as to}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{_ as lo}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as uo,a as ao}from"./index.8b1962e9.js";import{u as ro}from"./usePaging.f6660143.js";import{u as so}from"./useDictOptions.b5854a9e.js";import{u as no}from"./vue-router.87ebc608.js";import{c as po,d as io,e as co}from"./cost_project.d46e72b8.js";import{_ as mo}from"./edit.vue_vue_type_script_setup_true_name_costProjectEdit_lang.e844dea4.js";import{d as I,s as _o,r as V,a0 as fo,ai as Eo,o as r,c as y,V as o,M as l,O as v,u as a,L as i,S as vo,n as x,W as P,a8 as $,a as L,k as wo,T as d}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.1d82ee7c.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_style_index_0_lang.c7aef442.js";import"./common.9d529cba.js";import"./cost_approved_project.00126379.js";import"./index.e6dda1f5.js";import"./index.b17dae19.js";import"./department.b8dec04d.js";import"./organization.5e75830a.js";const Fo=d("\u67E5\u8BE2"),bo=d("\u91CD\u7F6E"),ho=d(" \u65B0\u589E "),Co=d(" \u5220\u9664 "),yo={class:"mt-4"},Bo=d(" \u7F16\u8F91 "),Do=d(" \u5220\u9664 "),jo={class:"flex justify-end mt-4"},ko=I({name:"costProjectLists"}),he=I({...ko,setup(Ao){const w=_o(),F=V(!1),S=no(),s=fo({project_num:"",project_name:"",types:"",industry:""}),C=V([]),N=n=>{C.value=n.map(({id:u})=>u)},{dictData:m}=so("consultation_type,cost_consultation_industry_nature"),{pager:_,getLists:b,resetParams:R,resetPage:T}=ro({fetchFun:po,params:s}),B=async()=>{var n;F.value=!0,await x(),(n=w.value)==null||n.open("add")},U=async n=>{var f,p;let u=await io({id:n.id});F.value=!0,await x(),(f=w.value)==null||f.open("edit"),(p=w.value)==null||p.setFormData(u)},D=async n=>{await uo.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await co({id:n}),b()};return S.query.contractId&&B(),b(),(n,u)=>{const f=H,p=W,j=J,k=K,c=Q,q=X,A=Y,M=ao,e=Z,g=lo,O=oo,z=to,h=Eo("perms"),G=eo;return r(),y("div",null,[o(A,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[o(q,{class:"mb-[-16px]",model:s,inline:""},{default:l(()=>[o(p,{label:"\u9879\u76EE\u7F16\u53F7",prop:"project_num"},{default:l(()=>[o(f,{class:"w-[280px]",modelValue:s.project_num,"onUpdate:modelValue":u[0]||(u[0]=t=>s.project_num=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),o(p,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name"},{default:l(()=>[o(f,{class:"w-[280px]",modelValue:s.project_name,"onUpdate:modelValue":u[1]||(u[1]=t=>s.project_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(p,{label:"\u54A8\u8BE2\u7C7B\u578B",prop:"types"},{default:l(()=>[o(k,{class:"w-[280px]",modelValue:s.types,"onUpdate:modelValue":u[2]||(u[2]=t=>s.types=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4E1A\u52A1\u6027\u8D28"},{default:l(()=>[(r(!0),y(P,null,$(a(m).consultation_type,(t,E)=>(r(),i(j,{key:E,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(p,{label:"\u884C\u4E1A",prop:"industry"},{default:l(()=>[o(k,{class:"w-[280px]",modelValue:s.industry,"onUpdate:modelValue":u[3]||(u[3]=t=>s.industry=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u884C\u4E1A"},{default:l(()=>[(r(!0),y(P,null,$(a(m).cost_consultation_industry_nature,(t,E)=>(r(),i(j,{key:E,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(p,null,{default:l(()=>[o(c,{type:"primary",onClick:a(T)},{default:l(()=>[Fo]),_:1},8,["onClick"]),o(c,{onClick:a(R)},{default:l(()=>[bo]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((r(),i(A,{class:"!border-none",shadow:"never"},{default:l(()=>[v((r(),i(c,{type:"primary",onClick:B},{icon:l(()=>[o(M,{name:"el-icon-Plus"})]),default:l(()=>[ho]),_:1})),[[h,["cost_project.cost_project/add"]]]),v((r(),i(c,{disabled:!C.value.length,onClick:u[4]||(u[4]=t=>D(C.value))},{default:l(()=>[Co]),_:1},8,["disabled"])),[[h,["cost_project.cost_project/delete"]]]),L("div",yo,[o(O,{data:a(_).lists,onSelectionChange:N},{default:l(()=>[o(e,{type:"selection",width:"55"}),o(e,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),o(e,{label:"\u5173\u8054\u5408\u540C",prop:"contract_id","show-overflow-tooltip":""}),o(e,{label:"\u54A8\u8BE2\u7C7B\u578B",prop:"types","show-overflow-tooltip":""},{default:l(({row:t})=>[o(g,{options:a(m).consultation_type,value:t.types},null,8,["options","value"])]),_:1}),o(e,{label:"\u884C\u4E1A",prop:"industry","show-overflow-tooltip":""},{default:l(({row:t})=>[o(g,{options:a(m).cost_consultation_industry_nature,value:t.industry},null,8,["options","value"])]),_:1}),o(e,{label:"\u6240\u5728\u7701\u4EFD",prop:"province","show-overflow-tooltip":""}),o(e,{label:"\u6240\u5728\u5E02\u533A",prop:"city","show-overflow-tooltip":""}),o(e,{label:"\u5177\u4F53\u5730\u5740",prop:"address","show-overflow-tooltip":""}),o(e,{label:"\u8BA1\u5212\u5F00\u59CB\u65E5\u671F",prop:"starting","show-overflow-tooltip":""}),o(e,{label:"\u8BA1\u5212\u7ED3\u675F\u65E5\u671F",prop:"endtime","show-overflow-tooltip":""}),o(e,{label:"\u8BA1\u5212\u5DE5\u671F\uFF08\u5929\uFF09",prop:"jhgq","show-overflow-tooltip":""}),o(e,{label:"\u9879\u76EE\u6240\u5C5E\u90E8\u95E8",prop:"depar","show-overflow-tooltip":""}),o(e,{label:"\u9879\u76EE\u8D1F\u8D23\u4EBA",prop:"principal","show-overflow-tooltip":""}),o(e,{label:"\u9879\u76EE\u76F8\u5173\u4EBA\u5458",prop:"person","show-overflow-tooltip":""}),o(e,{label:"\u9879\u76EE\u603B\u6295\u8D44\uFF08\u4E07\u5143\uFF09",prop:"invest","show-overflow-tooltip":""}),o(e,{label:"\u9884\u7B97\u9020\u4EF7\uFF08\u4E07\u5143\uFF09",prop:"budget","show-overflow-tooltip":""}),o(e,{label:"\u9001\u5BA1\u9020\u4EF7\uFF08\u4E07\u5143\uFF09",prop:"cost","show-overflow-tooltip":""}),o(e,{label:"\u5BA1\u5B9A\u9020\u4EF7\uFF08\u4E07\u5143\uFF09",prop:"approval","show-overflow-tooltip":""}),o(e,{label:"\u59D4\u6258\u5355\u4F4D",prop:"aunit","show-overflow-tooltip":""}),o(e,{label:"\u59D4\u6258\u65B9\u8054\u7CFB\u4EBA",prop:"Acontact","show-overflow-tooltip":""}),o(e,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"acontactnum","show-overflow-tooltip":""}),o(e,{label:"\u767B\u8BB0\u65E5\u671F",prop:"date","show-overflow-tooltip":""}),o(e,{label:"\u9879\u76EE\u89C4\u6A21\u53CA\u6982\u62EC",prop:"generalize","show-overflow-tooltip":""}),o(e,{label:"\u6CE8\u610F\u4E8B\u9879",prop:"note","show-overflow-tooltip":""}),o(e,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),o(e,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:t})=>[v((r(),i(c,{type:"primary",link:"",onClick:E=>U(t)},{default:l(()=>[Bo]),_:2},1032,["onClick"])),[[h,["cost_project.cost_project/edit"]]]),v((r(),i(c,{type:"danger",link:"",onClick:E=>D(t.id)},{default:l(()=>[Do]),_:2},1032,["onClick"])),[[h,["cost_project.cost_project/delete"]]])]),_:1})]),_:1},8,["data"])]),L("div",jo,[o(z,{modelValue:a(_),"onUpdate:modelValue":u[5]||(u[5]=t=>wo(_)?_.value=t:null),onChange:a(b)},null,8,["modelValue","onChange"])])]),_:1})),[[G,a(_).loading]]),F.value?(r(),i(mo,{key:0,ref_key:"editRef",ref:w,"dict-data":a(m),onSuccess:a(b),onClose:u[6]||(u[6]=t=>F.value=!1)},null,8,["dict-data","onSuccess"])):vo("",!0)])}}});export{he as default};
|