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

2 lines
7.7 KiB
JavaScript

import{G as ee,H as te,y as oe,I as ae,w as le,D as ue,C as re,L as ne,M as ie,N as se}from"./element-plus.4ff6f47d.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.7dabd2cb.js";import{f as ce,a as me}from"./index.aaca920c.js";import{u as de}from"./usePaging.f6660143.js";import{u as _e}from"./useDictOptions.c83e2497.js";import{d as fe,a as $,e as ve}from"./procurement_contract.38e1c48b.js";import"./lodash.8ea2174a.js";import{a as we}from"./project.86812b1a.js";import{a as Ce}from"./suppler_list.326841bf.js";import{_ as he}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.65e8855b.js";import be from"./detail.314219a6.js";import{d as T,s as A,r as C,a0 as Fe,ai as Ee,o as r,c as g,V as e,M as a,O as f,u as i,L as n,S as R,W as S,a8 as I,a as N,k as De,T as d,n as B}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"./index.vue_vue_type_script_setup_true_lang.33f5ebfe.js";import"./material_purchase_request_detail.1f5f87d5.js";import"./department.a7058b70.js";import"./organization.f9ce12f7.js";import"./paymentplan.475e1263.js";import"./procurement_contract_detail.95c710fc.js";import"./custom.01004c04.js";import"./receiptrecord.95d9433e.js";import"./paymentrequest.9f42c3ff.js";import"./refundrecord.8bc5c9e2.js";const ye=d("\u67E5\u8BE2"),ke=d("\u91CD\u7F6E"),ge=d(" \u65B0\u589E "),Be=d(" \u5220\u9664 "),Ve={class:"mt-4"},xe=d(" \u7F16\u8F91 "),Le=d(" \u5220\u9664 "),je=d(" \u8BE6\u60C5 "),Pe={class:"flex justify-end mt-4"},$e=T({name:"procurementContractLists"}),At=T({...$e,setup(Ae){const D=A(),h=A(),b=C(!1),y=C(!1),V=C([]),x=C([]),s=Fe({supplier_id:"",project_id:"",contract_no:""}),k=C([]),U=u=>{k.value=u.map(({id:t})=>t)},{dictData:L}=_e("procurement_contract_type,pay_type,tax_rate,account_period,pay_period"),{pager:v,getLists:F,resetParams:z,resetPage:M}=de({fetchFun:fe,params:s}),O=async()=>{var u;b.value=!0,await B(),(u=h.value)==null||u.open("add")},q=async u=>{var p,c;let t=await $({id:u.id});b.value=!0,await B(),(p=h.value)==null||p.open("edit"),(c=h.value)==null||c.setFormData(t)},j=async u=>{await ce.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ve({id:u}),F()},G=async u=>{var p,c;let t=await $({id:u.id});y.value=!0,await B(),(p=D.value)==null||p.open(),(c=D.value)==null||c.setFormData(t)},H=async()=>{let u=await we({page_no:1,page_size:9999});V.value=u.lists},W=async()=>{let u=await Ce({page_no:1,page_size:9999});x.value=u.lists};return H(),W(),F(),(u,t)=>{const p=ee,c=te,E=oe,J=ae,m=le,K=ue,P=re,Q=me,l=ne,X=ie,Y=pe,w=Ee("perms"),Z=se;return r(),g("div",null,[e(P,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(K,{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(()=>[(r(!0),g(S,null,I(x.value,(o,_)=>(r(),n(p,{key:_,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(()=>[(r(!0),g(S,null,I(V.value,(o,_)=>(r(),n(p,{key:_,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(J,{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:i(M)},{default:a(()=>[ye]),_:1},8,["onClick"]),e(m,{onClick:i(z)},{default:a(()=>[ke]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((r(),n(P,{class:"!border-none",shadow:"never"},{default:a(()=>[f((r(),n(m,{type:"primary",onClick:O},{icon:a(()=>[e(Q,{name:"el-icon-Plus"})]),default:a(()=>[ge]),_:1})),[[w,["contract.procurement_contract/add"]]]),f((r(),n(m,{disabled:!k.value.length,onClick:t[3]||(t[3]=o=>j(k.value))},{default:a(()=>[Be]),_:1},8,["disabled"])),[[w,["contract.procurement_contract/delete"]]]),N("div",Ve,[e(X,{data:i(v).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})=>[f((r(),n(m,{type:"primary",link:"",onClick:_=>q(o)},{default:a(()=>[xe]),_:2},1032,["onClick"])),[[w,["contract.procurement_contract/edit"]]]),f((r(),n(m,{type:"danger",link:"",onClick:_=>j(o.id)},{default:a(()=>[Le]),_:2},1032,["onClick"])),[[w,["contract.procurement_contract/delete"]]]),f((r(),n(m,{link:"",onClick:_=>G(o)},{default:a(()=>[je]),_:2},1032,["onClick"])),[[w,["contract.procurement_contract/detail"]]])]),_:1})]),_:1},8,["data"])]),N("div",Pe,[e(Y,{modelValue:i(v),"onUpdate:modelValue":t[4]||(t[4]=o=>De(v)?v.value=o:null),onChange:i(F)},null,8,["modelValue","onChange"])])]),_:1})),[[Z,i(v).loading]]),y.value?(r(),n(be,{key:0,ref_key:"detailRef",ref:D,"dict-data":i(L),onClose:t[5]||(t[5]=o=>y.value=!1)},null,8,["dict-data"])):R("",!0),b.value?(r(),n(he,{key:1,ref_key:"editRef",ref:h,"dict-data":i(L),onSuccess:i(F),onClose:t[6]||(t[6]=o=>b.value=!1)},null,8,["dict-data","onSuccess"])):R("",!0)])}}});export{At as default};