2 lines
5.7 KiB
JavaScript
2 lines
5.7 KiB
JavaScript
import{w as j,y as z,D as I,C as M,L as q,M as O,N as U}from"./element-plus.258bf9e7.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{_ as J}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as K}from"./usePaging.f6660143.js";import{u as Q}from"./useDictOptions.c644f395.js";import{_ as W,a as B,b as X}from"./edit.vue_vue_type_script_setup_true_name_taskDetailEdit_lang.f5960cdf.js";import"./lodash.1d82ee7c.js";import{f as Y}from"./index.ec401e3b.js";import{d as C,s as Z,r as b,a0 as oo,ai as eo,o as p,c as to,V as o,M as t,O as v,u as a,L as m,S as ao,a as D,k as lo,T as c,n as so}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"./index.9492d03b.js";import"./index.vue_vue_type_style_index_0_lang.0ff67de9.js";import"./common.c510575b.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.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const io=c("\u67E5\u8BE2"),uo=c("\u91CD\u7F6E"),ro={class:"mt-4"},po=c(" \u7F16\u8F91 "),no=c(" \u5220\u9664 "),mo={class:"flex justify-end mt-4"},co=C({name:"taskDetailLists"}),ae=C({...co,setup(_o){const _=Z(),d=b(!1),f=oo({}),k=b([]),y=r=>{k.value=r.map(({id:l})=>l)},{dictData:w}=Q("task_type,major_type"),{pager:u,getLists:n,resetParams:A,resetPage:g}=K({fetchFun:B,params:f}),x=async r=>{var l,i;d.value=!0,await so(),(l=_.value)==null||l.open("edit"),(i=_.value)==null||i.setFormData(r)},T=async r=>{await Y.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await X({id:r}),n()};return n(),(r,l)=>{const i=j,V=J,$=z,L=I,h=M,e=q,E=H,N=O,S=G,F=eo("perms"),P=U;return p(),to("div",null,[o(h,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[o(L,{class:"mb-[-16px]",model:f,inline:""},{default:t(()=>[o($,null,{default:t(()=>[o(i,{type:"primary",onClick:a(g)},{default:t(()=>[io]),_:1},8,["onClick"]),o(i,{onClick:a(A)},{default:t(()=>[uo]),_:1},8,["onClick"]),o(V,{class:"ml-2.5","fetch-fun":a(B),params:f,"page-size":a(u).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),v((p(),m(h,{class:"!border-none",shadow:"never"},{default:t(()=>[D("div",ro,[o(N,{data:a(u).lists,onSelectionChange:y},{default:t(()=>[o(e,{type:"selection",width:"55"}),o(e,{label:"\u4E3B\u8868\u6807\u8BC6",prop:"taskAllocation.dataid","show-overflow-tooltip":""}),o(e,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"taskTypeInfo.name","show-overflow-tooltip":""}),o(e,{label:"\u5DE5\u5E8F",prop:"process","show-overflow-tooltip":""}),o(e,{label:"\u4EFB\u52A1\u7C7B\u578B",prop:"task_type_id"},{default:t(({row:s})=>[o(E,{options:a(w).task_type,value:s.task_type_id},null,8,["options","value"])]),_:1}),o(e,{label:"\u4E13\u4E1A\u7C7B\u578B",prop:"professional_type"},{default:t(({row:s})=>[o(E,{options:a(w).major_type,value:s.professional_type},null,8,["options","value"])]),_:1}),o(e,{label:"\u5DE5\u7A0B\u5E08",prop:"engineer","show-overflow-tooltip":""}),o(e,{label:"\u4EFB\u52A1\u7EA7\u6B21",prop:"level","show-overflow-tooltip":""}),o(e,{label:"\u4E00\u7EA7\u5BA1\u6838\u4EBA",prop:"first_reviewer","show-overflow-tooltip":""}),o(e,{label:"\u4E8C\u7EA7\u5BA1\u6838\u4EBA",prop:"secondary_reviewer","show-overflow-tooltip":""}),o(e,{label:"\u4E09\u7EA7\u5BA1\u6838\u4EBA",prop:"third_level_reviewer","show-overflow-tooltip":""}),o(e,{label:"\u4E2D\u6807\u91D1\u989D\uFF08\u5143\uFF09",prop:"bid_winning_amount","show-overflow-tooltip":""}),o(e,{label:"\u9001\u5BA1\u9020\u4EF7\uFF08\u5143\uFF09",prop:"cost","show-overflow-tooltip":""}),o(e,{label:"\u7B2C\u4E09\u65B9\u6838\u5B9A\u91D1\u989D\uFF08\u5143\uFF09",prop:"approved_amount","show-overflow-tooltip":""}),o(e,{label:"\u65BD\u5DE5\u5355\u4F4D",prop:"construction_unit","show-overflow-tooltip":""}),o(e,{label:"\u65BD\u5DE5\u5355\u4F4Did",prop:"construction_unit_id","show-overflow-tooltip":""}),o(e,{label:"\u8054\u7CFB\u4EBA",prop:"contact","show-overflow-tooltip":""}),o(e,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"contact_phone","show-overflow-tooltip":""}),o(e,{label:"\u5929\u6570",prop:"days","show-overflow-tooltip":""}),o(e,{label:"\u5F00\u59CB\u65E5\u671F",prop:"start_date","show-overflow-tooltip":""}),o(e,{label:"\u7ED3\u675F\u65E5\u671F",prop:"end_date","show-overflow-tooltip":""}),o(e,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),o(e,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:s})=>[v((p(),m(i,{type:"primary",link:"",onClick:R=>x(s)},{default:t(()=>[po]),_:2},1032,["onClick"])),[[F,["task_detail/edit"]]]),v((p(),m(i,{type:"danger",link:"",onClick:R=>T(s.id)},{default:t(()=>[no]),_:2},1032,["onClick"])),[[F,["task_detail/delete"]]])]),_:1})]),_:1},8,["data"])]),D("div",mo,[o(S,{modelValue:a(u),"onUpdate:modelValue":l[0]||(l[0]=s=>lo(u)?u.value=s:null),onChange:a(n)},null,8,["modelValue","onChange"])])]),_:1})),[[P,a(u).loading]]),d.value?(p(),m(W,{key:0,ref_key:"editRef",ref:_,"dict-data":a(w),onSuccess:a(n),onClose:l[1]||(l[1]=s=>d.value=!1)},null,8,["dict-data","onSuccess"])):ao("",!0)])}}});export{ae as default};
|