2 lines
6.9 KiB
JavaScript
2 lines
6.9 KiB
JavaScript
import{I as G,y as H,w as J,D as K,C as Q,L as W,M as X,N as Y}from"./element-plus.4ff6f47d.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.7dabd2cb.js";import{f as tt,a as ot}from"./index.aaca920c.js";import{u as et}from"./usePaging.f6660143.js";import{u as at}from"./useDictOptions.c83e2497.js";import{a as nt,b as V,e as lt}from"./subcontracting_contract.8c088cec.js";import"./lodash.8ea2174a.js";import{_ as it}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.01f498af.js";import ut from"./detail.ed927feb.js";import{d as L,s as $,r as F,a0 as rt,ai as st,o as i,c as ct,V as t,M as a,O as d,u,L as s,S,a as A,k as pt,T as m,n as g}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"./index.vue_vue_type_script_setup_true_lang.c07aa9ab.js";import"./project.86812b1a.js";import"./index.vue_vue_type_script_setup_true_lang.33f5ebfe.js";import"./suppler_list.326841bf.js";import"./project_subpackage_budget_detail.0650519e.js";import"./department.a7058b70.js";import"./organization.f9ce12f7.js";import"./paymentplan.475e1263.js";import"./subcontracting_contract_detail.ba5b3d7d.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./custom.01004c04.js";import"./receiptrecord.95d9433e.js";import"./paymentrequest.9f42c3ff.js";import"./refundrecord.8bc5c9e2.js";const mt=m("\u67E5\u8BE2"),dt=m("\u91CD\u7F6E"),_t=m(" \u65B0\u589E "),ft=m(" \u5220\u9664 "),vt={class:"mt-4"},wt=m(" \u7F16\u8F91 "),Dt=m(" \u5220\u9664 "),bt=m(" \u8BE6\u60C5 "),ht={class:"flex justify-end mt-4"},Ct=L({name:"subcontractingContractLists"}),go=L({...Ct,setup(Et){const h=$(),v=$(),w=F(!1),C=F(!1),D=rt({contract_no:""}),E=F([]),P=n=>{E.value=n.map(({id:e})=>e)},{dictData:y}=at("divide_contract_type,account_period,tax_rate,pay_type,pay_period "),{pager:_,getLists:b,resetParams:R,resetPage:N}=et({fetchFun:nt,params:D}),T=async()=>{var n;w.value=!0,await g(),(n=v.value)==null||n.open("add")},I=async n=>{var c,r;let e=await V({id:n.id});w.value=!0,await g(),(c=v.value)==null||c.open("edit"),(r=v.value)==null||r.setFormData(e)},k=async n=>{await tt.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await lt({id:n}),b()},j=async n=>{var c,r;let e=await V({id:n.id});C.value=!0,await g(),(c=h.value)==null||c.open(),(r=h.value)==null||r.setFormData(e)};return b(),(n,e)=>{const c=G,r=H,p=J,M=K,B=Q,U=ot,o=W,q=X,O=Z,f=st("perms"),z=Y;return i(),ct("div",null,[t(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[t(M,{class:"mb-[-16px]",model:D,inline:"","label-width":"auto"},{default:a(()=>[t(r,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no"},{default:a(()=>[t(c,{class:"w-[280px]",modelValue:D.contract_no,"onUpdate:modelValue":e[0]||(e[0]=l=>D.contract_no=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),t(r,null,{default:a(()=>[t(p,{type:"primary",onClick:u(N)},{default:a(()=>[mt]),_:1},8,["onClick"]),t(p,{onClick:u(R)},{default:a(()=>[dt]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((i(),s(B,{class:"!border-none",shadow:"never"},{default:a(()=>[d((i(),s(p,{type:"primary",onClick:T},{icon:a(()=>[t(U,{name:"el-icon-Plus"})]),default:a(()=>[_t]),_:1})),[[f,["contract.subcontracting_contract/add"]]]),d((i(),s(p,{disabled:!E.value.length,onClick:e[1]||(e[1]=l=>k(E.value))},{default:a(()=>[ft]),_:1},8,["disabled"])),[[f,["contract.subcontracting_contract/delete"]]]),A("div",vt,[t(q,{data:u(_).lists,onSelectionChange:P},{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:l})=>[d((i(),s(p,{type:"primary",link:"",onClick:x=>I(l)},{default:a(()=>[wt]),_:2},1032,["onClick"])),[[f,["contract.subcontracting_contract/edit"]]]),d((i(),s(p,{type:"danger",link:"",onClick:x=>k(l.id)},{default:a(()=>[Dt]),_:2},1032,["onClick"])),[[f,["contract.subcontracting_contract/delete"]]]),d((i(),s(p,{link:"",onClick:x=>j(l)},{default:a(()=>[bt]),_:2},1032,["onClick"])),[[f,["contract.subcontracting_contract/detail"]]])]),_:1})]),_:1},8,["data"])]),A("div",ht,[t(O,{modelValue:u(_),"onUpdate:modelValue":e[2]||(e[2]=l=>pt(_)?_.value=l:null),onChange:u(b)},null,8,["modelValue","onChange"])])]),_:1})),[[z,u(_).loading]]),C.value?(i(),s(ut,{key:0,ref_key:"detailRef",ref:h,"dict-data":u(y),onClose:e[3]||(e[3]=l=>C.value=!1)},null,8,["dict-data"])):S("",!0),w.value?(i(),s(it,{key:1,ref_key:"editRef",ref:v,"dict-data":u(y),onSuccess:u(b),onClose:e[4]||(e[4]=l=>w.value=!1)},null,8,["dict-data","onSuccess"])):S("",!0)])}}});export{go as default};
|