2 lines
5.3 KiB
JavaScript
2 lines
5.3 KiB
JavaScript
import{w as O,L as U,M as z,C as G,N as H}from"./element-plus.517d4382.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as J,a as K}from"./index.8b1962e9.js";import{u as Q}from"./usePaging.f6660143.js";import{u as W}from"./useDictOptions.b5854a9e.js";import{s as X,a as y,b as Y}from"./project_subpackage_budget_detail.d2e48930.js";import"./lodash.1d82ee7c.js";import{_ as Z}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.f110d5c3.js";import ee from"./detail.1848a30d.js";import{d as V,a0 as B,s as j,r as k,ai as oe,o as i,c as te,O as c,u as p,L as n,M as r,S as $,V as e,a as x,k as ae,T as _,n as F}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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.b17dae19.js";import"./project_subpackage_budget.efca7e1e.js";import"./index.011c79f0.js";import"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./custom.99349afc.js";import"./flowSet.6da79e1c.js";const le=_(" \u65B0\u589E "),ie=_(" \u5220\u9664 "),re={class:"mt-4"},se=_(" \u7F16\u8F91 "),ne=_(" \u5220\u9664 "),ue=_(" \u8BE6\u60C5 "),pe={class:"flex justify-end mt-4"},ce=V({name:"projectLists"}),so=V({...ce,setup(de){B([]);const h=j(),f=j(),v=k(!1),b=k(!1),L=B({}),C=k([]),P=a=>{C.value=a.map(({id:t})=>t)},{dictData:D}=W("labor_contract_status,labor_contract_type,labor_contract_name"),{pager:d,getLists:w,resetParams:me,resetPage:_e}=Q({fetchFun:X,params:L}),R=async()=>{var a;v.value=!0,await F(),(a=f.value)==null||a.open("add")},N=async a=>{var u,l;console.log(a.id);let t=await y({id:a.id});v.value=!0,await F(),(u=f.value)==null||u.open("edit"),(l=f.value)==null||l.setFormData(t)},E=async a=>{await J.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Y({id:a}),w()},S=async a=>{var u,l;let t=await y({id:a.id});b.value=!0,await F(),(u=h.value)==null||u.open(),(l=h.value)==null||l.setFormData(t)};return w(),(a,t)=>{const u=K,l=O,o=U,T=z,A=I,M=G,m=oe("perms"),q=H;return i(),te("div",null,[c((i(),n(M,{class:"!border-none",shadow:"never"},{default:r(()=>[c((i(),n(l,{type:"primary",onClick:R},{icon:r(()=>[e(u,{name:"el-icon-Plus"})]),default:r(()=>[le]),_:1})),[[m,["project.project/add"]]]),c((i(),n(l,{disabled:!C.value.length,onClick:t[0]||(t[0]=s=>E(C.value))},{default:r(()=>[ie]),_:1},8,["disabled"])),[[m,["project.project/delete"]]]),x("div",re,[e(T,{data:p(d).lists,onSelectionChange:P},{default:r(()=>[e(o,{type:"selection",width:"55"}),e(o,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(o,{label:"\u9884\u7B97\u5355\u53F7",prop:"subpackage_budget_code","show-overflow-tooltip":""}),e(o,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(o,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(o,{label:"\u5DE5\u4F5C\u7C7B\u578B",prop:"work_type","show-overflow-tooltip":""}),e(o,{label:"\u5DE5\u4F5C\u5185\u5BB9",prop:"work_content","show-overflow-tooltip":""}),e(o,{label:"\u9879\u76EE\u7279\u5F81",prop:"project_features","show-overflow-tooltip":""}),e(o,{label:"\u5355\u4F4D",prop:"unit","show-overflow-tooltip":""}),e(o,{label:"\u9884\u7B97\u603B\u5DE5\u4F5C\u91CF",prop:"num","show-overflow-tooltip":""}),e(o,{label:"\u5355\u4EF7",prop:"price","show-overflow-tooltip":""}),e(o,{label:"\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(o,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(o,{label:"\u5DF2\u5206\u5305\u5DE5\u4F5C\u91CF",prop:"has_subcontract_num","show-overflow-tooltip":""}),e(o,{label:"\u5269\u4F59\u9884\u7B97\u5DE5\u4F5C\u91CF",prop:"residue_num","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:r(({row:s})=>[c((i(),n(l,{type:"primary",link:"",onClick:g=>N(s)},{default:r(()=>[se]),_:2},1032,["onClick"])),[[m,["project.project/edit"]]]),c((i(),n(l,{type:"danger",link:"",onClick:g=>E(s.id)},{default:r(()=>[ne]),_:2},1032,["onClick"])),[[m,["project.project/delete"]]]),c((i(),n(l,{link:"",onClick:g=>S(s)},{default:r(()=>[ue]),_:2},1032,["onClick"])),[[m,["project.project/detail"]]])]),_:1})]),_:1},8,["data"])]),x("div",pe,[e(A,{modelValue:p(d),"onUpdate:modelValue":t[1]||(t[1]=s=>ae(d)?d.value=s:null),onChange:p(w)},null,8,["modelValue","onChange"])])]),_:1})),[[q,p(d).loading]]),v.value?(i(),n(Z,{key:0,ref_key:"editRef",ref:f,"dict-data":p(D),onSuccess:p(w),onClose:t[2]||(t[2]=s=>v.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),b.value?(i(),n(ee,{key:1,ref_key:"detailRef",ref:h,"dict-data":p(D),onClose:t[3]||(t[3]=s=>b.value=!1)},null,8,["dict-data"])):$("",!0)])}}});export{so as default};
|