engineering/public/admin/assets/index.eef0cde6.js
shengchanzhe a2653dcd36 提交pc
2024-01-27 11:43:47 +08:00

2 lines
4.2 KiB
JavaScript

import{L,w as N,M as P,C as S,N as T}from"./element-plus.4ff6f47d.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang.7dabd2cb.js";import{_ as R}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{u as $}from"./usePaging.f6660143.js";import{u as A}from"./useDictOptions.c83e2497.js";import{a as M,b as q}from"./subcontracting_contract_detail.ba5b3d7d.js";import"./lodash.8ea2174a.js";import"./index.aaca920c.js";import O from"./detail.e36f7dad.js";import{d as C,s as w,r as m,a0 as U,ai as z,o as s,c as G,O as v,u as l,L as _,M as i,S as H,a as h,V as t,k as I,T as J,n as K}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.fc5568d8.js";import"./axios.5b893b79.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.4cbccc26.js";import"./color.033abf8c.js";import"./clone.a6258514.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7eedf28f.js";import"./ms.a9ae1d6d.js";import"./nprogress.93182424.js";import"./vue-clipboard3.6a55d49e.js";import"./clipboard.2986c82d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.ff7c6188.js";import"./custom.01004c04.js";const Q={class:"mt-4"},W=J(" \u8BE6\u60C5 "),X={class:"flex justify-end mt-4"},Y=C({name:"subcontractingContractLists"}),Ho=C({...Y,setup(Z){const u=w();w(),m(!1);const c=m(!1),b=U({}),D=m([]),E=p=>{D.value=p.map(({id:e})=>e)},{dictData:d}=A("contract_type,account_period,tax_rate,pay_type,pay_period "),{pager:r,getLists:f,resetParams:oo,resetPage:to}=$({fetchFun:M,params:b}),g=async p=>{var o,n;let e=await q({id:p.id});c.value=!0,await K(),(o=u.value)==null||o.open(),(n=u.value)==null||n.setFormData(e),console.log(e)};return f(),(p,e)=>{const o=L,n=R,F=N,x=P,B=j,k=S,y=z("perms"),V=T;return s(),G("div",null,[v((s(),_(k,{class:"!border-none",shadow:"never"},{default:i(()=>[h("div",Q,[t(x,{data:l(r).lists,onSelectionChange:E},{default:i(()=>[t(o,{type:"selection",width:"55"}),t(o,{label:"\u5E8F\u53F7",type:"index",width:"55"}),t(o,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),t(o,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),t(o,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),t(o,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type","show-overflow-tooltip":""}),t(o,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_name","show-overflow-tooltip":""}),t(o,{label:"\u5DE5\u4F5C\u7C7B\u578B",prop:"work_type","show-overflow-tooltip":""}),t(o,{label:"\u5DE5\u4F5C\u5185\u5BB9",prop:"work_content","show-overflow-tooltip":""}),t(o,{label:"\u9879\u76EE\u7279\u5F81",prop:"project_features","show-overflow-tooltip":""}),t(o,{label:"\u5355\u4F4D",prop:"unit","show-overflow-tooltip":""}),t(o,{label:"\u7A0E\u7387(%)",prop:"tax_rate"},{default:i(({row:a})=>[t(n,{options:l(d).tax_rate,value:a.tax_rate},null,8,["options","value"])]),_:1}),t(o,{label:"\u5DE5\u4F5C\u91CF",prop:"num","show-overflow-tooltip":""}),t(o,{label:"\u4E0D\u542B\u7A0E\u91D1\u989D",prop:"amount_excluding_tax","show-overflow-tooltip":""}),t(o,{label:"\u542B\u7A0E\u91D1\u989D",prop:"amount_including_tax","show-overflow-tooltip":""}),t(o,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),t(o,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:i(({row:a})=>[v((s(),_(F,{link:"",onClick:eo=>g(a)},{default:i(()=>[W]),_:2},1032,["onClick"])),[[y,["contract.subcontracting_contract/detail"]]])]),_:1})]),_:1},8,["data"])]),h("div",X,[t(B,{modelValue:l(r),"onUpdate:modelValue":e[0]||(e[0]=a=>I(r)?r.value=a:null),onChange:l(f)},null,8,["modelValue","onChange"])])]),_:1})),[[V,l(r).loading]]),c.value?(s(),_(O,{key:0,ref_key:"detailRef",ref:u,"dict-data":l(d),onClose:e[1]||(e[1]=a=>c.value=!1)},null,8,["dict-data"])):H("",!0)])}}});export{Ho as default};