2 lines
4.2 KiB
JavaScript
2 lines
4.2 KiB
JavaScript
import{L as N,w as P,M as S,C as T,N as j}from"./element-plus.517d4382.js";import{_ as R}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{_ as $}from"./index.vue_vue_type_style_index_0_lang.9f4b6930.js";import{u as z}from"./usePaging.f6660143.js";import{u as A}from"./useDictOptions.b5854a9e.js";import{a as w,b as M}from"./subcontracting_contract_detail.0c5382f4.js";import"./lodash.1d82ee7c.js";import"./index.8b1962e9.js";import q from"./detail.e1f7aa9c.js";import{d as b,s as v,r as m,a0 as O,ai as U,o as s,c as G,O as h,u as a,L as _,M as n,S as H,V as t,a as C,k as I,T as J,n as K}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"./index.b17dae19.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"./custom.99349afc.js";const Q={class:"mt-4"},W=J(" \u8BE6\u60C5 "),X={class:"flex justify-end mt-4"},Y=b({name:"subcontractingContractLists"}),Ho=b({...Y,setup(Z){const u=v();v(),m(!1);const c=m(!1),d=O({}),D=m([]),g=r=>{D.value=r.map(({id:e})=>e)},{dictData:E}=A("contract_type,account_period,tax_rate,pay_type,pay_period "),{pager:l,getLists:f,resetParams:oo,resetPage:to}=z({fetchFun:w,params:d}),F=async r=>{var i,o;let e=await M({id:r.id});c.value=!0,await K(),(i=u.value)==null||i.open(),(o=u.value)==null||o.setFormData(e),console.log(e)};return f(),(r,e)=>{const i=$,o=N,x=P,B=S,k=R,y=T,V=U("perms"),L=j;return s(),G("div",null,[h((s(),_(y,{class:"!border-none",shadow:"never"},{default:n(()=>[t(i,{class:"ml-2.5 float-right","fetch-fun":a(w),params:d,"page-size":a(l).size},null,8,["fetch-fun","params","page-size"]),C("div",Q,[t(B,{data:a(l).lists,onSelectionChange:g},{default:n(()=>[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_text","show-overflow-tooltip":""}),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:n(({row:p})=>[h((s(),_(x,{link:"",onClick:eo=>F(p)},{default:n(()=>[W]),_:2},1032,["onClick"])),[[V,["contract.subcontracting_contract/detail"]]])]),_:1})]),_:1},8,["data"])]),C("div",X,[t(k,{modelValue:a(l),"onUpdate:modelValue":e[0]||(e[0]=p=>I(l)?l.value=p:null),onChange:a(f)},null,8,["modelValue","onChange"])])]),_:1})),[[L,a(l).loading]]),c.value?(s(),_(q,{key:0,ref_key:"detailRef",ref:u,"dict-data":a(E),onClose:e[1]||(e[1]=p=>c.value=!1)},null,8,["dict-data"])):H("",!0)])}}});export{Ho as default};
|