2 lines
7.2 KiB
JavaScript
2 lines
7.2 KiB
JavaScript
import{I as U,y as q,w as O,D as G,C as H,L as J,M as K,N as Q}from"./element-plus.258bf9e7.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as Y,a as Z}from"./index.ec401e3b.js";import{_ as oo}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as to}from"./usePaging.f6660143.js";import{u as eo}from"./useDictOptions.c644f395.js";import{_ as ao,a as g,b as lo,c as uo}from"./edit.vue_vue_type_script_setup_true_name_taskAllocationEdit_lang.13e7a595.js";import"./lodash.1d82ee7c.js";import{d as V,s as io,r as j,a0 as so,ai as po,o as s,c as ro,V as o,M as e,O as f,u as l,L as n,S as no,a as k,k as co,T as c,n as x}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"./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";import"./index.9492d03b.js";import"./index.vue_vue_type_style_index_0_lang.0ff67de9.js";import"./common.c510575b.js";import"./task_type.9e05f637.js";import"./index.vue_vue_type_script_setup_true_lang.c11935ba.js";import"./cost_project.2762b876.js";import"./index.a7758114.js";const mo=c("\u67E5\u8BE2"),_o=c("\u91CD\u7F6E"),fo=c(" \u65B0\u589E "),wo=c(" \u5220\u9664 "),vo={class:"mt-4"},Eo={style:{width:"95%",margin:"0 auto"}},ho=c(" \u7F16\u8F91 "),Fo=c(" \u5220\u9664 "),bo={class:"flex justify-end mt-4"},Bo=V({name:"taskAllocationLists"}),wt=V({...Bo,setup(ko){const w=io(),v=j(!1),m=so({project:""}),b=j([]),T=i=>{b.value=i.map(({id:a})=>a)},{dictData:B}=eo("task_type,major_type"),{pager:p,getLists:E,resetParams:$,resetPage:I}=to({fetchFun:g,params:m}),L=async()=>{var i;v.value=!0,await x(),(i=w.value)==null||i.open("add")},N=async i=>{var h,_;let a=await lo({id:i.id});v.value=!0,await x(),(h=w.value)==null||h.open("edit"),(_=w.value)==null||_.setFormData(a)},D=async i=>{await Y.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await uo({id:i}),E()};return E(),(i,a)=>{const h=U,_=q,r=O,P=oo,S=G,C=H,R=Z,t=J,y=X,A=K,z=W,F=po("perms"),M=Q;return s(),ro("div",null,[o(C,{class:"!border-none mb-4",shadow:"never"},{default:e(()=>[o(S,{class:"mb-[-16px]",model:m,inline:""},{default:e(()=>[o(_,{label:"\u9879\u76EE\u540D\u79F0",prop:"project"},{default:e(()=>[o(h,{class:"w-[280px]",modelValue:m.project,"onUpdate:modelValue":a[0]||(a[0]=u=>m.project=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(_,null,{default:e(()=>[o(r,{type:"primary",onClick:l(I)},{default:e(()=>[mo]),_:1},8,["onClick"]),o(r,{onClick:l($)},{default:e(()=>[_o]),_:1},8,["onClick"]),o(P,{class:"ml-2.5","fetch-fun":l(g),params:m,"page-size":l(p).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),f((s(),n(C,{class:"!border-none",shadow:"never"},{default:e(()=>[f((s(),n(r,{type:"primary",onClick:L},{icon:e(()=>[o(R,{name:"el-icon-Plus"})]),default:e(()=>[fo]),_:1})),[[F,["task.task_allocation/add"]]]),f((s(),n(r,{disabled:!b.value.length,onClick:a[1]||(a[1]=u=>D(b.value))},{default:e(()=>[wo]),_:1},8,["disabled"])),[[F,["task.task_allocation/delete"]]]),k("div",vo,[o(A,{data:l(p).lists,onSelectionChange:T},{default:e(()=>[o(t,{type:"selection",width:"55"}),o(t,{type:"expand"},{default:e(u=>[k("div",Eo,[o(A,{data:u.row.children},{default:e(()=>[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:e(({row:d})=>[o(y,{options:l(B).task_type,value:d.task_type_id},null,8,["options","value"])]),_:1}),o(t,{label:"\u4E13\u4E1A\u7C7B\u578B",prop:"professional_type"},{default:e(({row:d})=>[o(y,{options:l(B).major_type,value:d.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":""})]),_:2},1032,["data"])])]),_:1}),o(t,{label:"\u5355\u636E\u7F16\u53F7",prop:"num","show-overflow-tooltip":""}),o(t,{label:"\u9879\u76EE\u540D\u79F0",prop:"projectInfo.project_name","show-overflow-tooltip":""}),o(t,{label:"\u9879\u76EE\u7F16\u53F7",prop:"projectInfo.project_num","show-overflow-tooltip":""}),o(t,{label:"\u9879\u76EE\u8D1F\u8D23\u4EBA",prop:"projectInfo.principal","show-overflow-tooltip":""}),o(t,{label:"\u767B\u8BB0\u65E5\u671F",prop:"apptime","show-overflow-tooltip":""}),o(t,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:e(({row:u})=>[f((s(),n(r,{type:"primary",link:"",onClick:d=>N(u)},{default:e(()=>[ho]),_:2},1032,["onClick"])),[[F,["task.task_allocation/edit"]]]),f((s(),n(r,{type:"danger",link:"",onClick:d=>D(u.id)},{default:e(()=>[Fo]),_:2},1032,["onClick"])),[[F,["task.task_allocation/delete"]]])]),_:1})]),_:1},8,["data"])]),k("div",bo,[o(z,{modelValue:l(p),"onUpdate:modelValue":a[2]||(a[2]=u=>co(p)?p.value=u:null),onChange:l(E)},null,8,["modelValue","onChange"])])]),_:1})),[[M,l(p).loading]]),v.value?(s(),n(ao,{key:0,ref_key:"editRef",ref:w,"dict-data":l(B),onSuccess:l(E),onClose:a[3]||(a[3]=u=>v.value=!1)},null,8,["dict-data","onSuccess"])):no("",!0)])}}});export{wt as default};
|