engineering/public/admin/assets/index.175b26b0.js
2024-03-04 15:04:21 +08:00

2 lines
8.0 KiB
JavaScript

import{G as oe,H as ae,y as le,I as re,w as ne,D as ue,C as ie,L as se,M as pe,N as ce}from"./element-plus.258bf9e7.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as de,a as _e}from"./index.ec401e3b.js";import{_ as fe}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as ve}from"./usePaging.f6660143.js";import{u as we}from"./useDictOptions.c644f395.js";import{d as $,a as A,e as he}from"./procurement_contract.b71ab69f.js";import{a as Ce}from"./project.bccf4059.js";import{a as be}from"./suppler_list.25198ddd.js";import{_ as Fe}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.e06d7b60.js";import Ee from"./detail.118e483b.js";import{d as T,s as R,r as h,a0 as De,ai as ye,o as n,c as k,V as e,M as a,O as v,u,L as i,S,W as z,a8 as I,a as N,k as ge,T as d,n as B}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"./lodash.1d82ee7c.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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";import"./index.vue_vue_type_script_setup_true_lang.5a5f706a.js";import"./index.vue_vue_type_script_setup_true_lang.ad39d63c.js";import"./material_purchase_request_detail.aec1c0eb.js";import"./department.1c914e1a.js";import"./organization.f0387125.js";import"./paymentplan.26c1cb62.js";import"./procurement_contract_detail.86c33f43.js";import"./index.a91b9a2c.js";import"./approve.4bfa22cd.js";import"./flow.825559ec.js";import"./custom.13e75d58.js";import"./receiptrecord.fd1ec468.js";import"./paymentrequest.166f3439.js";import"./refundrecord.12b16dcd.js";import"./flowSet.6e7dc427.js";const ke=d("\u67E5\u8BE2"),Be=d("\u91CD\u7F6E"),Ve=d(" \u65B0\u589E "),xe=d(" \u5220\u9664 "),Le={class:"mt-4"},je=d(" \u7F16\u8F91 "),Pe=d(" \u5220\u9664 "),$e=d(" \u8BE6\u60C5 "),Ae={class:"flex justify-end mt-4"},Re=T({name:"procurementContractLists"}),Ut=T({...Re,setup(Se){const D=R(),C=R(),b=h(!1),y=h(!1),V=h([]),x=h([]),s=De({supplier_id:"",project_id:"",contract_no:""}),g=h([]),U=r=>{g.value=r.map(({id:t})=>t)},{dictData:L}=we("procurement_contract_type,pay_type,tax_rate,account_period,pay_period"),{pager:_,getLists:F,resetParams:M,resetPage:O}=ve({fetchFun:$,params:s}),q=async()=>{var r;b.value=!0,await B(),(r=C.value)==null||r.open("add")},G=async r=>{var p,c;let t=await A({id:r.id});b.value=!0,await B(),(p=C.value)==null||p.open("edit"),(c=C.value)==null||c.setFormData(t)},j=async r=>{await de.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await he({id:r}),F()},H=async r=>{var p,c;let t=await A({id:r.id});y.value=!0,await B(),(p=D.value)==null||p.open(),(c=D.value)==null||c.setFormData(t)},W=async()=>{let r=await Ce({page_no:1,page_size:9999});V.value=r.lists},J=async()=>{let r=await be({page_no:1,page_size:9999});x.value=r.lists};return W(),J(),F(),(r,t)=>{const p=oe,c=ae,E=le,K=re,m=ne,Q=fe,X=ue,P=ie,Y=_e,l=se,Z=pe,ee=me,w=ye("perms"),te=ce;return n(),k("div",null,[e(P,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(X,{class:"mb-[-16px]",model:s,inline:"","label-width":"auto"},{default:a(()=>[e(E,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:a(()=>[e(c,{modelValue:s.supplier_id,"onUpdate:modelValue":t[0]||(t[0]=o=>s.supplier_id=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4F9B\u5E94\u5546"},{default:a(()=>[(n(!0),k(z,null,I(x.value,(o,f)=>(n(),i(p,{key:f,label:o.supplier_name,value:parseInt(o.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(E,{label:"\u9879\u76EE",prop:"project_id"},{default:a(()=>[e(c,{modelValue:s.project_id,"onUpdate:modelValue":t[1]||(t[1]=o=>s.project_id=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE"},{default:a(()=>[(n(!0),k(z,null,I(V.value,(o,f)=>(n(),i(p,{key:f,label:o.name,value:parseInt(o.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(E,{label:"\u5408\u540C\u7F16\u53F7",prop:"project_id"},{default:a(()=>[e(K,{class:"w-[280px]",modelValue:s.contract_no,"onUpdate:modelValue":t[2]||(t[2]=o=>s.contract_no=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(E,null,{default:a(()=>[e(m,{type:"primary",onClick:u(O)},{default:a(()=>[ke]),_:1},8,["onClick"]),e(m,{onClick:u(M)},{default:a(()=>[Be]),_:1},8,["onClick"]),e(Q,{class:"ml-2.5","fetch-fun":u($),params:s,"page-size":u(_).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),v((n(),i(P,{class:"!border-none",shadow:"never"},{default:a(()=>[v((n(),i(m,{type:"primary",onClick:q},{icon:a(()=>[e(Y,{name:"el-icon-Plus"})]),default:a(()=>[Ve]),_:1})),[[w,["contract.procurement_contract/add"]]]),v((n(),i(m,{disabled:!g.value.length,onClick:t[3]||(t[3]=o=>j(g.value))},{default:a(()=>[xe]),_:1},8,["disabled"])),[[w,["contract.procurement_contract/delete"]]]),N("div",Le,[e(Z,{data:u(_).lists,onSelectionChange:U},{default:a(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5E8F\u53F7",type:"index",width:"55","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_name","show-overflow-tooltip":""}),e(l,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),e(l,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_name","show-overflow-tooltip":""}),e(l,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type","show-overflow-tooltip":""}),e(l,{label:"\u7B7E\u8BA2\u65E5\u671F",prop:"signing_date","show-overflow-tooltip":""}),e(l,{label:"\u5408\u540C\u91D1\u989D",prop:"contract_amount","show-overflow-tooltip":""}),e(l,{label:"\u5DF2\u4ED8\u6B3E\u91D1\u989D",prop:"has_pay_amount","show-overflow-tooltip":""}),e(l,{label:"\u5DF2\u5F00\u7968\u91D1\u989D",prop:"has_invoice_amount","show-overflow-tooltip":""}),e(l,{label:"\u672A\u4ED8\u6B3E\u91D1\u989D",prop:"not_pay_amount","show-overflow-tooltip":""}),e(l,{label:"\u672A\u5F00\u7968\u91D1\u989D",prop:"not_invoice_amount","show-overflow-tooltip":""}),e(l,{label:"\u9000\u6B3E\u91D1\u989D",prop:"refund_amount","show-overflow-tooltip":""}),e(l,{label:"\u5DF2\u5165\u5E93\u6570\u91CF",prop:"has_storage_num","show-overflow-tooltip":""}),e(l,{label:"\u672A\u5165\u5E93\u6570\u91CF",prop:"not_storage_num","show-overflow-tooltip":""}),e(l,{label:"\u6570\u91CF",prop:"num","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:a(({row:o})=>[v((n(),i(m,{type:"primary",link:"",onClick:f=>G(o)},{default:a(()=>[je]),_:2},1032,["onClick"])),[[w,["contract.procurement_contract/edit"]]]),v((n(),i(m,{type:"danger",link:"",onClick:f=>j(o.id)},{default:a(()=>[Pe]),_:2},1032,["onClick"])),[[w,["contract.procurement_contract/delete"]]]),v((n(),i(m,{link:"",onClick:f=>H(o)},{default:a(()=>[$e]),_:2},1032,["onClick"])),[[w,["contract.procurement_contract/detail"]]])]),_:1})]),_:1},8,["data"])]),N("div",Ae,[e(ee,{modelValue:u(_),"onUpdate:modelValue":t[4]||(t[4]=o=>ge(_)?_.value=o:null),onChange:u(F)},null,8,["modelValue","onChange"])])]),_:1})),[[te,u(_).loading]]),y.value?(n(),i(Ee,{key:0,ref_key:"detailRef",ref:D,"dict-data":u(L),onClose:t[5]||(t[5]=o=>y.value=!1)},null,8,["dict-data"])):S("",!0),b.value?(n(),i(Fe,{key:1,ref_key:"editRef",ref:C,"dict-data":u(L),onSuccess:u(F),onClose:t[6]||(t[6]=o=>b.value=!1)},null,8,["dict-data","onSuccess"])):S("",!0)])}}});export{Ut as default};