engineering/public/admin/assets/index.ba915d0b.js
2024-03-04 15:04:21 +08:00

2 lines
7.6 KiB
JavaScript

import{J as I,y as U,w as J,D as O,C as G,L as K,M as Q,N as W}from"./element-plus.258bf9e7.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as ee,a as oe}from"./index.ec401e3b.js";import{_ as te}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as le}from"./usePaging.f6660143.js";import{u as ae}from"./useDictOptions.c644f395.js";import{_ as ue,a as C,b as re,c as ie}from"./edit.vue_vue_type_script_setup_true_name_taskHandlingThreeLevelReviewEdit_lang.62167cfa.js";import"./lodash.1d82ee7c.js";import{d as x,s as se,r as g,a0 as ne,ai as pe,o as i,c as me,V as e,M as t,O as d,u as a,L as p,S as _e,a as y,k as ce,T as m,n as T}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"./index.vue_vue_type_script_setup_true_lang.c11935ba.js";import"./cost_project.2762b876.js";import"./index.a7758114.js";import"./file.vue_vue_type_style_index_0_scoped_5ccc0f84_lang.e4e8877b.js";const de=m("\u67E5\u8BE2"),fe=m("\u91CD\u7F6E"),ve=m(" \u65B0\u589E "),we=m(" \u5220\u9664 "),he={class:"mt-4"},Ee=m(" \u7F16\u8F91 "),be=m(" \u5220\u9664 "),Fe={class:"flex justify-end mt-4"},Be=x({name:"taskHandlingThreeLevelReviewLists"}),wo=x({...Be,setup(De){const f=se(),v=g(!1),_=ne({start_time:"",end_time:""}),w=g(""),V=()=>{_.start_time=w.value[0],_.end_time=w.value[1]},B=g([]),j=r=>{B.value=r.map(({id:u})=>u)},{dictData:h}=ae("review_process,task_type,building_structure_type,preparation_requirements,cost_sentence,material_compensation,major_type"),{pager:s,getLists:E,resetParams:L,resetPage:$}=le({fetchFun:C,params:_}),R=async()=>{var r;v.value=!0,await T(),(r=f.value)==null||r.open("add")},z=async r=>{var b,c;let u=await re({id:r.id});v.value=!0,await T(),(b=f.value)==null||b.open("edit"),(c=f.value)==null||c.setFormData(u)},k=async r=>{await ee.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ie({id:r}),E()};return E(),(r,u)=>{const b=I,c=U,n=J,P=te,N=O,A=G,S=oe,o=K,D=Z,H=Q,M=X,F=pe("perms"),Y=W;return i(),me("div",null,[e(A,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(N,{class:"mb-[-16px]",model:_,inline:""},{default:t(()=>[e(c,{label:"\u65F6\u95F4\u6BB5"},{default:t(()=>[e(b,{modelValue:w.value,"onUpdate:modelValue":u[0]||(u[0]=l=>w.value=l),type:"daterange","unlink-panels":"","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",onChange:V,"value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(n,{type:"primary",onClick:a($)},{default:t(()=>[de]),_:1},8,["onClick"]),e(n,{onClick:a(L)},{default:t(()=>[fe]),_:1},8,["onClick"]),e(P,{class:"ml-2.5","fetch-fun":a(C),params:_,"page-size":a(s).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),d((i(),p(A,{class:"!border-none",shadow:"never"},{default:t(()=>[d((i(),p(n,{type:"primary",onClick:R},{icon:t(()=>[e(S,{name:"el-icon-Plus"})]),default:t(()=>[ve]),_:1})),[[F,["task_handling_three_level_review/add"]]]),d((i(),p(n,{disabled:!B.value.length,onClick:u[1]||(u[1]=l=>k(B.value))},{default:t(()=>[we]),_:1},8,["disabled"])),[[F,["task_handling_three_level_review/delete"]]]),y("div",he,[e(H,{data:a(s).lists,onSelectionChange:j},{default:t(()=>[e(o,{type:"selection",width:"55"}),e(o,{label:"\u5355\u636E\u7F16\u53F7",prop:"num","show-overflow-tooltip":""}),e(o,{label:"\u9879\u76EE\u540D\u79F0",prop:"projectInfo.project_name","show-overflow-tooltip":""}),e(o,{label:"\u9879\u76EE\u7F16\u53F7",prop:"projectInfo.project_num","show-overflow-tooltip":""}),e(o,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"task","show-overflow-tooltip":""}),e(o,{label:"\u5DE5\u5E8F",prop:"processes","show-overflow-tooltip":""}),e(o,{label:"\u4EFB\u52A1\u7C7B\u578B",prop:"rtype","show-overflow-tooltip":""},{default:t(({row:l})=>[e(D,{options:a(h).task_type,value:l.rtype},null,8,["options","value"])]),_:1}),e(o,{label:"\u4E13\u4E1A\u7C7B\u578B",prop:"zType","show-overflow-tooltip":""},{default:t(({row:l})=>[e(D,{options:a(h).major_type,value:l.zType},null,8,["options","value"])]),_:1}),e(o,{label:"\u5DE5\u7A0B\u5E08",prop:"engineer","show-overflow-tooltip":""}),e(o,{label:"\u9879\u76EE\u8D1F\u8D23\u4EBA",prop:"head","show-overflow-tooltip":""}),e(o,{label:"\u5BA1\u6838\u6D41\u7A0B",prop:"examine","show-overflow-tooltip":""},{default:t(({row:l})=>[e(D,{options:a(h).review_process,value:l.examine},null,8,["options","value"])]),_:1}),e(o,{label:"\u4E00\u7EA7\u5BA1\u6838\u4EBA",prop:"one","show-overflow-tooltip":""}),e(o,{label:"\u4E8C\u7EA7\u5BA1\u6838\u4EBA",prop:"two","show-overflow-tooltip":""}),e(o,{label:"\u4E09\u7EA7\u5BA1\u6838\u4EBA",prop:"three","show-overflow-tooltip":""}),e(o,{label:"\u767B\u8BB0\u65E5\u671F",prop:"apptime","show-overflow-tooltip":""}),e(o,{label:"\u4EFB\u52A1\u7EA7\u6B21",prop:"level","show-overflow-tooltip":""}),e(o,{label:"\u5EFA\u7B51\u9762\u79EF",prop:"area","show-overflow-tooltip":""}),e(o,{label:"\u5EFA\u7B51\u7528\u9014",prop:"use","show-overflow-tooltip":""}),e(o,{label:"\u65BD\u5DE5\u5355\u4F4D",prop:"construction","show-overflow-tooltip":""}),e(o,{label:"\u9001\u5BA1\u91D1\u989D",prop:"ssje","show-overflow-tooltip":""}),e(o,{label:"\u5DE5\u7A0B\u5E08\u6838\u5B9A\u4EF7",prop:"gcshd","show-overflow-tooltip":""}),e(o,{label:"\u6838\u589E/\u6838\u51CF\u91D1\u989D",prop:"hzhj","show-overflow-tooltip":""}),e(o,{label:"\u4EBA\u5DE5\u5355\u4EF7",prop:"rg","show-overflow-tooltip":""}),e(o,{label:"\u9879\u76EE\u8D1F\u8D23\u4EBA\u6838\u5B9A\u4EF7",prop:"xmhd","show-overflow-tooltip":""}),e(o,{label:"\u90E8\u95E8\u8D1F\u8D23\u4EBA\u6838\u5B9A\u4EF7",prop:"bmhd","show-overflow-tooltip":""}),e(o,{label:"\u5BA1\u6838\u90E8\u6838\u5B9A\u4EF7",prop:"shbhd","show-overflow-tooltip":""}),e(o,{label:"\u5F00\u5DE5\u65E5\u671F",prop:"kaigong","show-overflow-tooltip":""}),e(o,{label:"\u7AE3\u5DE5\u65E5\u671F",prop:"jungong","show-overflow-tooltip":""}),e(o,{label:"\u5907\u6CE8",prop:"bz","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[d((i(),p(n,{type:"primary",link:"",onClick:q=>z(l)},{default:t(()=>[Ee]),_:2},1032,["onClick"])),[[F,["task_handling_three_level_review/edit"]]]),d((i(),p(n,{type:"danger",link:"",onClick:q=>k(l.id)},{default:t(()=>[be]),_:2},1032,["onClick"])),[[F,["task_handling_three_level_review/delete"]]])]),_:1})]),_:1},8,["data"])]),y("div",Fe,[e(M,{modelValue:a(s),"onUpdate:modelValue":u[2]||(u[2]=l=>ce(s)?s.value=l:null),onChange:a(E)},null,8,["modelValue","onChange"])])]),_:1})),[[Y,a(s).loading]]),v.value?(i(),p(ue,{key:0,ref_key:"editRef",ref:f,"dict-data":a(h),onSuccess:a(E),onClose:u[3]||(u[3]=l=>v.value=!1)},null,8,["dict-data","onSuccess"])):_e("",!0)])}}});export{wo as default};