import{S,w as $,T as L,C as N,U as P}from"./element-plus.8d8bc08e.js";import{_ as R}from"./index.vue_vue_type_script_setup_true_lang.22372a4f.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{u as U}from"./usePaging.f6660143.js";import{u as q}from"./useDictOptions.82f321d1.js";import{_ as I,a as M,b as O}from"./edit.vue_vue_type_script_setup_true_name_taskDetailEdit_lang.bb93f926.js";import"./lodash.1d82ee7c.js";import{f as z}from"./index.f4793b9f.js";import{d as F,s as G,r as h,a0 as H,ai as J,o as r,c as K,O as d,u as l,L as n,M as i,S as Q,a as E,V as o,k as W,T as B,n as X}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.373b3802.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"./index.vue_vue_type_style_index_0_lang.bced12d1.js";import"./common.d9331c8c.js";import"./index.3f758a9f.js";import"./vue-router.87ebc608.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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.d693a0d8.js";const Y={class:"mt-4"},Z=B(" \u7F16\u8F91 "),oo=B(" \u5220\u9664 "),to={class:"flex justify-end mt-4"},eo=F({name:"taskDetailLists"}),Ko=F({...eo,setup(ao){const m=G(),c=h(!1),b=H({}),D=h([]),k=u=>{D.value=u.map(({id:e})=>e)},{dictData:_}=q("task_type,major_type"),{pager:s,getLists:p,resetParams:lo,resetPage:io}=U({fetchFun:M,params:b}),C=async u=>{var e,t;c.value=!0,await X(),(e=m.value)==null||e.open("edit"),(t=m.value)==null||t.setFormData(u)},y=async u=>{await z.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await O({id:u}),p()};return p(),(u,e)=>{const t=S,f=j,v=$,A=L,g=R,T=N,w=J("perms"),V=P;return r(),K("div",null,[d((r(),n(T,{class:"!border-none",shadow:"never"},{default:i(()=>[E("div",Y,[o(A,{data:l(s).lists,onSelectionChange:k},{default:i(()=>[o(t,{type:"selection",width:"55"}),o(t,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"taskTypeInfo.name","show-overflow-tooltip":""}),o(t,{label:"\u5DE5\u5E8F",prop:"process","show-overflow-tooltip":""}),o(t,{label:"\u4EFB\u52A1\u7C7B\u578B",prop:"task_type_id"},{default:i(({row:a})=>[o(f,{options:l(_).task_type,value:a.task_type_id},null,8,["options","value"])]),_:1}),o(t,{label:"\u4E13\u4E1A\u7C7B\u578B",prop:"professional_type"},{default:i(({row:a})=>[o(f,{options:l(_).major_type,value:a.professional_type},null,8,["options","value"])]),_:1}),o(t,{label:"\u5DE5\u7A0B\u5E08",prop:"engineer","show-overflow-tooltip":""}),o(t,{label:"\u4EFB\u52A1\u7EA7\u6B21",prop:"level","show-overflow-tooltip":""}),o(t,{label:"\u4E00\u7EA7\u5BA1\u6838\u4EBA",prop:"first_reviewer","show-overflow-tooltip":""}),o(t,{label:"\u4E8C\u7EA7\u5BA1\u6838\u4EBA",prop:"secondary_reviewer","show-overflow-tooltip":""}),o(t,{label:"\u4E09\u7EA7\u5BA1\u6838\u4EBA",prop:"third_level_reviewer","show-overflow-tooltip":""}),o(t,{label:"\u4E2D\u6807\u91D1\u989D\uFF08\u5143\uFF09",prop:"bid_winning_amount","show-overflow-tooltip":""}),o(t,{label:"\u9001\u5BA1\u9020\u4EF7\uFF08\u5143\uFF09",prop:"cost","show-overflow-tooltip":""}),o(t,{label:"\u7B2C\u4E09\u65B9\u6838\u5B9A\u91D1\u989D\uFF08\u5143\uFF09",prop:"approved_amount","show-overflow-tooltip":""}),o(t,{label:"\u65BD\u5DE5\u5355\u4F4D",prop:"construction_unit","show-overflow-tooltip":""}),o(t,{label:"\u65BD\u5DE5\u5355\u4F4Did",prop:"construction_unit_id","show-overflow-tooltip":""}),o(t,{label:"\u8054\u7CFB\u4EBA",prop:"contact","show-overflow-tooltip":""}),o(t,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"contact_phone","show-overflow-tooltip":""}),o(t,{label:"\u5929\u6570",prop:"days","show-overflow-tooltip":""}),o(t,{label:"\u5F00\u59CB\u65E5\u671F",prop:"start_date","show-overflow-tooltip":""}),o(t,{label:"\u7ED3\u675F\u65E5\u671F",prop:"end_date","show-overflow-tooltip":""}),o(t,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),o(t,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:i(({row:a})=>[d((r(),n(v,{type:"primary",link:"",onClick:x=>C(a)},{default:i(()=>[Z]),_:2},1032,["onClick"])),[[w,["task_detail/edit"]]]),d((r(),n(v,{type:"danger",link:"",onClick:x=>y(a.id)},{default:i(()=>[oo]),_:2},1032,["onClick"])),[[w,["task_detail/delete"]]])]),_:1})]),_:1},8,["data"])]),E("div",to,[o(g,{modelValue:l(s),"onUpdate:modelValue":e[0]||(e[0]=a=>W(s)?s.value=a:null),onChange:l(p)},null,8,["modelValue","onChange"])])]),_:1})),[[V,l(s).loading]]),c.value?(r(),n(I,{key:0,ref_key:"editRef",ref:m,"dict-data":l(_),onSuccess:l(p),onClose:e[1]||(e[1]=a=>c.value=!1)},null,8,["dict-data","onSuccess"])):Q("",!0)])}}});export{Ko as default};