engineering/public/admin/assets/budgetadjustment.f7a5c4cf.js
2023-12-28 21:29:43 +08:00

2 lines
6.2 KiB
JavaScript

import{I as S,B as T,w as U,N as j,C as I,P as q,Q as K,R as Q}from"./element-plus.fe574ac0.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.628d4476.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.23d19169.js";import{f as H,a as J}from"./index.a67ea496.js";import{u as O}from"./usePaging.160b82b8.js";import{u as W}from"./useDictOptions.538be6b6.js";import{d as X,e as Z}from"./cost_budget_adjust.6e59ece1.js";import"./lodash.3080e53f.js";import{_ as oo}from"./editadjust.vue_vue_type_style_index_0_lang.69c75a63.js";import{d as D,s as eo,r as F,$ as A,af as to,o as r,c as uo,U as o,L as t,M as v,u as a,K as d,R as lo,a as y,k as ao,S as p,n as so}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.92e7f918.js";import"./dayjs.79cf08f3.js";import"./axios.77c85d3e.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.54284180.js";import"./color.1c59b943.js";import"./clone.0c702ab2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.66e2071a.js";import"./ms.a9ae1d6d.js";import"./nprogress.81114d43.js";import"./vue-clipboard3.f3fb4eed.js";import"./clipboard.c973b911.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.7a89d4ec.js";import"./index.d4c05efb.js";import"./no_perms.2c994bf8.js";import"./common.e1ef0fe3.js";import"./index.vue_vue_type_script_setup_true_lang.3147c0d5.js";import"./cost_subject.364a4d24.js";import"./department.df54ca37.js";import"./organization.2f9331eb.js";const no=p("\u67E5\u8BE2"),io=p("\u91CD\u7F6E"),ro=p(" \u65B0\u589E "),po=p(" \u5220\u9664 "),mo={class:"mt-4"},co=p(" > "),_o={class:"flex justify-end mt-4"},fo=D({name:"customLists"}),pe=D({...fo,setup(wo){const b=eo(),_=F(!1);A([{name:"\u5168\u90E8\u5BA2\u6237",count:1e3},{name:"\u516C\u6D77\u5BA2\u6237",count:1e3},{name:"\u79C1\u6709\u5BA2\u6237",count:1e3},{name:"\u4ECA\u65E5\u65B0\u589E",count:1e3},{name:"\u4ECA\u65E5\u5206\u914D\u516C\u6D77\u5BA2\u6237",count:1e3},{name:"\u4ECA\u65E5\u5E94\u8054\u7CFB",count:1e3},{name:"\u4ECA\u65E5\u672A\u8054\u7CFB",count:1e3},{name:"\u4ECA\u65E5\u5DF2\u8054\u7CFB",count:1e3}]);const n=A({name:"",custom_type:"",phone:"",credit_rating:"",province:"",city:"",status:""}),f=F([]),g=s=>{f.value=s.map(({id:u})=>u)},{dictData:h}=W("custom_type,credit_rating"),{pager:i,getLists:m,resetParams:k,resetPage:V}=O({fetchFun:X,params:n}),Y=async()=>{var s;_.value=!0,await so(),(s=b.value)==null||s.open("add")},x=async s=>{await H.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Z({id:s}),m()};return m(),(s,u)=>{const E=S,w=T,c=U,P=j,B=I,$=J,e=q,R=G,L=K,M=z,C=to("perms"),N=Q;return r(),uo("div",null,[o(B,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[o(P,{class:"mb-[-16px]",model:n,inline:""},{default:t(()=>[o(w,{label:"\u5E74\u4EFD",prop:"years"},{default:t(()=>[o(E,{modelValue:n.years,"onUpdate:modelValue":u[0]||(u[0]=l=>n.years=l),clearable:"",type:"year","value-format":"YYYY",placeholder:"\u9009\u62E9\u5E74\u4EFD"},null,8,["modelValue"])]),_:1}),o(w,{label:"\u5236\u5355\u65F6\u95F4",prop:"document_preparation_time"},{default:t(()=>[o(E,{class:"",modelValue:n.document_preparation_time,"onUpdate:modelValue":u[1]||(u[1]=l=>n.document_preparation_time=l),clearable:"",type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u5236\u5355\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),o(w,null,{default:t(()=>[o(c,{type:"primary",onClick:a(V)},{default:t(()=>[no]),_:1},8,["onClick"]),o(c,{onClick:a(k)},{default:t(()=>[io]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((r(),d(B,{class:"!border-none",shadow:"never"},{default:t(()=>[v((r(),d(c,{type:"primary",onClick:Y},{icon:t(()=>[o($,{name:"el-icon-Plus"})]),default:t(()=>[ro]),_:1})),[[C,["costbudget.costbudget/add"]]]),v((r(),d(c,{disabled:!f.value.length,onClick:u[2]||(u[2]=l=>x(f.value))},{default:t(()=>[po]),_:1},8,["disabled"])),[[C,["costbudget.costbudget/delete"]]]),y("div",mo,[o(L,{data:a(i).lists,onSelectionChange:g},{default:t(()=>[o(e,{type:"selection",width:"55"}),o(e,{label:"\u5E8F\u53F7",prop:"name","show-overflow-tooltip":""}),o(e,{label:"\u6D41\u7A0B\u7F16\u53F7",prop:"custom_type"},{default:t(({row:l})=>[o(R,{options:a(h).custom_type,value:l.custom_type},null,8,["options","value"])]),_:1}),co,o(e,{label:"\u5236\u5355\u65F6\u95F4",prop:"document_preparation_time","show-overflow-tooltip":""}),o(e,{label:"\u5E74\u4EFD",prop:"years","show-overflow-tooltip":""}),o(e,{label:"\u603B\u5408\u8BA1",prop:"total","show-overflow-tooltip":""}),o(e,{label:"1\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"2\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"3\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"4\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"5\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"6\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"7\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"7\u6708\u5DF2\u53D1\u751F","show-overflow-tooltip":"",width:"100"}),o(e,{label:"7\u6708\u5269\u4F59","show-overflow-tooltip":""}),o(e,{label:"8\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"9\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"10\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"11\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"12\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"\u5907\u6CE8","show-overflow-tooltip":"",width:"100"}),o(e,{label:"\u9644\u4EF6","show-overflow-tooltip":""})]),_:1},8,["data"])]),y("div",_o,[o(M,{modelValue:a(i),"onUpdate:modelValue":u[3]||(u[3]=l=>ao(i)?i.value=l:null),onChange:a(m)},null,8,["modelValue","onChange"])])]),_:1})),[[N,a(i).loading]]),_.value?(r(),d(oo,{key:0,ref_key:"editRef",ref:b,"dict-data":a(h),onSuccess:a(m),onClose:u[4]||(u[4]=l=>_.value=!1)},null,8,["dict-data","onSuccess"])):lo("",!0)])}}});export{pe as default};