2 lines
5.1 KiB
JavaScript
2 lines
5.1 KiB
JavaScript
import{I,y as U,w as M,D as q,C as O,L as z,M as G,N as H}from"./element-plus.517d4382.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as K,a as Q}from"./index.8b1962e9.js";import{u as W}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.b5854a9e.js";import{a as Y,e as Z}from"./project_labor_budget_detail.248ce0ea.js";import"./lodash.1d82ee7c.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_projectLaborBudgetDetailEdit_lang.f1f4ec38.js";import{d as F,s as oe,r as D,a0 as te,ai as ae,o as n,c as le,V as e,M as t,O as _,u as r,L as p,S as ie,a as k,k as re,T as d,n as B}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_labor_budget.12dc1a8f.js";import"./project_job_type.a34d9934.js";const ne=d("\u67E5\u8BE2"),se=d("\u91CD\u7F6E"),ue=d(" \u65B0\u589E "),pe=d(" \u5220\u9664 "),de={class:"mt-4"},me=d(" \u7F16\u8F91 "),ce=d(" \u5220\u9664 "),_e={class:"flex justify-end mt-4"},fe=F({name:"projectLaborBudgetDetailLists"}),lo=F({...fe,setup(be){const f=oe(),b=D(!1),s=te({project_id:"",labor_budget_id:""}),w=D([]),j=l=>{w.value=l.map(({id:o})=>o)},{dictData:y}=X(""),{pager:m,getLists:v,resetParams:V,resetPage:x}=W({fetchFun:Y,params:s}),L=async()=>{var l;b.value=!0,await B(),(l=f.value)==null||l.open("add")},P=async l=>{var o,c;b.value=!0,await B(),(o=f.value)==null||o.open("edit"),(c=f.value)==null||c.setFormData(l)},h=async l=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Z({id:l}),v()};return v(),(l,o)=>{const c=I,g=U,u=M,$=q,C=O,A=Q,i=z,N=G,S=J,E=ae("perms"),T=H;return n(),le("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e($,{class:"mb-[-16px]",model:s,inline:""},{default:t(()=>[e(g,{label:"\u9879\u76EEid",prop:"project_id"},{default:t(()=>[e(c,{class:"w-[280px]",modelValue:s.project_id,"onUpdate:modelValue":o[0]||(o[0]=a=>s.project_id=a),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE"},null,8,["modelValue"])]),_:1}),e(g,{label:"\u4EBA\u5DE5\u9884\u7B97id",prop:"labor_budget_id"},{default:t(()=>[e(c,{class:"w-[280px]",modelValue:s.labor_budget_id,"onUpdate:modelValue":o[1]||(o[1]=a=>s.labor_budget_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5DE5\u9884\u7B97id"},null,8,["modelValue"])]),_:1}),e(g,null,{default:t(()=>[e(u,{type:"primary",onClick:r(x)},{default:t(()=>[ne]),_:1},8,["onClick"]),e(u,{onClick:r(V)},{default:t(()=>[se]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((n(),p(C,{class:"!border-none",shadow:"never"},{default:t(()=>[_((n(),p(u,{type:"primary",onClick:L},{icon:t(()=>[e(A,{name:"el-icon-Plus"})]),default:t(()=>[ue]),_:1})),[[E,["project.project_labor_budget_detail/add"]]]),_((n(),p(u,{disabled:!w.value.length,onClick:o[2]||(o[2]=a=>h(w.value))},{default:t(()=>[pe]),_:1},8,["disabled"])),[[E,["project.project_labor_budget_detail/delete"]]]),k("div",de,[e(N,{data:r(m).lists,onSelectionChange:j},{default:t(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"\u5DE5\u79CD\u540D\u79F0",prop:"job_type_name","show-overflow-tooltip":""}),e(i,{label:"\u4EBA\u5DE5\u8BF4\u660E",prop:"desc","show-overflow-tooltip":""}),e(i,{label:"\u5355\u4F4D",prop:"unit","show-overflow-tooltip":""}),e(i,{label:"\u6570\u91CF",prop:"num","show-overflow-tooltip":""}),e(i,{label:"\u5355\u4EF7",prop:"price","show-overflow-tooltip":""}),e(i,{label:"\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(i,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:a})=>[_((n(),p(u,{type:"primary",link:"",onClick:R=>P(a)},{default:t(()=>[me]),_:2},1032,["onClick"])),[[E,["project.project_labor_budget_detail/edit"]]]),_((n(),p(u,{type:"danger",link:"",onClick:R=>h(a.id)},{default:t(()=>[ce]),_:2},1032,["onClick"])),[[E,["project.project_labor_budget_detail/delete"]]])]),_:1})]),_:1},8,["data"])]),k("div",_e,[e(S,{modelValue:r(m),"onUpdate:modelValue":o[3]||(o[3]=a=>re(m)?m.value=a:null),onChange:r(v)},null,8,["modelValue","onChange"])])]),_:1})),[[T,r(m).loading]]),b.value?(n(),p(ee,{key:0,ref_key:"editRef",ref:f,"dict-data":r(y),onSuccess:r(v),onClose:o[4]||(o[4]=a=>b.value=!1)},null,8,["dict-data","onSuccess"])):ie("",!0)])}}});export{lo as default};
|