2 lines
7.2 KiB
JavaScript
2 lines
7.2 KiB
JavaScript
import{I as J,y as K,w as Q,D as W,C as X,L as Y,M as Z,N as tt}from"./element-plus.b3353ca6.js";import{_ as ot}from"./index.vue_vue_type_script_setup_true_lang.f8e9523f.js";import{f as et,a as at}from"./index.892155dd.js";import{_ as nt}from"./index.vue_vue_type_style_index_0_lang.55eb6c89.js";import{u as lt}from"./usePaging.f6660143.js";import{u as it}from"./useDictOptions.c47985a3.js";import{a as V,c as $,b as rt}from"./subcontracting_contract.82d60ffc.js";import"./lodash.1d82ee7c.js";import{_ as ut}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.2c0a1c5d.js";import st from"./detail.9dcbd945.js";import{d as P,s as S,r as F,a0 as pt,ai as ct,o as r,c as mt,V as t,M as a,O as _,u as l,L as s,S as A,a as L,k as dt,T as m,n as g}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.771e5a41.js";import"./index.vue_vue_type_script_setup_true_lang.3dd325bc.js";import"./project.31b61d2e.js";import"./index.vue_vue_type_script_setup_true_lang.d7337262.js";import"./suppler_list.2238c350.js";import"./project_subpackage_budget_detail.d721fc2e.js";import"./department.cd9c927d.js";import"./organization.c13a1cd8.js";import"./paymentplan.b9780dd5.js";import"./subcontracting_contract_detail.bfc61146.js";import"./index.cf38292c.js";import"./approve.cdf281c2.js";import"./flow.ec77bb69.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./custom.735a8774.js";import"./flowSet.0350f9c8.js";import"./receiptrecord.7f70cc23.js";import"./paymentrequest.01756056.js";import"./refundrecord.ceb381cb.js";const _t=m("\u67E5\u8BE2"),ft=m("\u91CD\u7F6E"),vt=m(" \u65B0\u589E "),wt=m(" \u5220\u9664 "),Dt={class:"mt-4"},bt=m(" \u7F16\u8F91 "),ht=m(" \u5220\u9664 "),Ct=m(" \u8BE6\u60C5 "),Et={class:"flex justify-end mt-4"},Ft=P({name:"subcontractingContractLists"}),So=P({...Ft,setup(gt){const h=S(),w=S(),D=F(!1),C=F(!1),f=pt({contract_no:""}),E=F([]),R=n=>{E.value=n.map(({id:e})=>e)},{dictData:y}=it("divide_contract_type,account_period,tax_rate,pay_type,pay_period "),{pager:d,getLists:b,resetParams:N,resetPage:T}=lt({fetchFun:V,params:f}),z=async()=>{var n;D.value=!0,await g(),(n=w.value)==null||n.open("add")},I=async n=>{var p,u;let e=await $({id:n.id});D.value=!0,await g(),(p=w.value)==null||p.open("edit"),(u=w.value)==null||u.setFormData(e)},k=async n=>{await et.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await rt({id:n}),b()},j=async n=>{var p,u;let e=await $({id:n.id});C.value=!0,await g(),(p=h.value)==null||p.open(),(u=h.value)==null||u.setFormData(e)};return b(),(n,e)=>{const p=J,u=K,c=Q,M=nt,U=W,B=X,q=at,o=Y,O=Z,G=ot,v=ct("perms"),H=tt;return r(),mt("div",null,[t(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[t(U,{class:"mb-[-16px]",model:f,inline:"","label-width":"auto"},{default:a(()=>[t(u,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no"},{default:a(()=>[t(p,{class:"w-[280px]",modelValue:f.contract_no,"onUpdate:modelValue":e[0]||(e[0]=i=>f.contract_no=i),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),t(u,null,{default:a(()=>[t(c,{type:"primary",onClick:l(T)},{default:a(()=>[_t]),_:1},8,["onClick"]),t(c,{onClick:l(N)},{default:a(()=>[ft]),_:1},8,["onClick"]),t(M,{class:"ml-2.5","fetch-fun":l(V),params:f,"page-size":l(d).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),_((r(),s(B,{class:"!border-none",shadow:"never"},{default:a(()=>[_((r(),s(c,{type:"primary",onClick:z},{icon:a(()=>[t(q,{name:"el-icon-Plus"})]),default:a(()=>[vt]),_:1})),[[v,["contract.subcontracting_contract/add"]]]),_((r(),s(c,{disabled:!E.value.length,onClick:e[1]||(e[1]=i=>k(E.value))},{default:a(()=>[wt]),_:1},8,["disabled"])),[[v,["contract.subcontracting_contract/delete"]]]),L("div",Dt,[t(O,{data:l(d).lists,onSelectionChange:R},{default:a(()=>[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:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),t(o,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_name","show-overflow-tooltip":""}),t(o,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_name","show-overflow-tooltip":""}),t(o,{label:"\u7B7E\u8BA2\u65E5\u671F",prop:"signing_date","show-overflow-tooltip":""}),t(o,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type","show-overflow-tooltip":""}),t(o,{label:"\u5408\u540C\u91D1\u989D",prop:"contract_amount","show-overflow-tooltip":""}),t(o,{label:"\u6D3D\u5546\u91D1\u989D",prop:"negotiation_amount","show-overflow-tooltip":""}),t(o,{label:"\u4E0D\u542B\u7A0E\u91D1\u989D",prop:"excluding_tax_amount","show-overflow-tooltip":""}),t(o,{label:"\u5B9E\u9645\u5408\u540C\u91D1\u989D",prop:"reality_contract_amount","show-overflow-tooltip":""}),t(o,{label:"\u5DF2\u4ED8\u6B3E\u91D1\u989D",prop:"has_pay_amount","show-overflow-tooltip":""}),t(o,{label:"\u672A\u4ED8\u6B3E\u91D1\u989D",prop:"not_pay_amount","show-overflow-tooltip":""}),t(o,{label:"\u5DF2\u5F00\u7968\u91D1\u989D",prop:"invoice_amount","show-overflow-tooltip":""}),t(o,{label:"\u672A\u5F00\u7968\u91D1\u989D",prop:"not_invoice_amount","show-overflow-tooltip":""}),t(o,{label:"\u5DF2\u9000\u6B3E\u91D1\u989D",prop:"refund_amount","show-overflow-tooltip":""}),t(o,{label:"\u7ED3\u7B97\u5DEE\u5F02",prop:"settlement_difference","show-overflow-tooltip":""}),t(o,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:a(({row:i})=>[_((r(),s(c,{type:"primary",link:"",onClick:x=>I(i)},{default:a(()=>[bt]),_:2},1032,["onClick"])),[[v,["contract.subcontracting_contract/edit"]]]),_((r(),s(c,{type:"danger",link:"",onClick:x=>k(i.id)},{default:a(()=>[ht]),_:2},1032,["onClick"])),[[v,["contract.subcontracting_contract/delete"]]]),_((r(),s(c,{link:"",onClick:x=>j(i)},{default:a(()=>[Ct]),_:2},1032,["onClick"])),[[v,["contract.subcontracting_contract/detail"]]])]),_:1})]),_:1},8,["data"])]),L("div",Et,[t(G,{modelValue:l(d),"onUpdate:modelValue":e[2]||(e[2]=i=>dt(d)?d.value=i:null),onChange:l(b)},null,8,["modelValue","onChange"])])]),_:1})),[[H,l(d).loading]]),C.value?(r(),s(st,{key:0,ref_key:"detailRef",ref:h,"dict-data":l(y),onClose:e[3]||(e[3]=i=>C.value=!1)},null,8,["dict-data"])):A("",!0),D.value?(r(),s(ut,{key:1,ref_key:"editRef",ref:w,"dict-data":l(y),onSuccess:l(b),onClose:e[4]||(e[4]=i=>D.value=!1)},null,8,["dict-data","onSuccess"])):A("",!0)])}}});export{So as default};
|