2 lines
8.0 KiB
JavaScript
2 lines
8.0 KiB
JavaScript
import{y as oe,A as ae,B as le,D as re,w as ne,L as ue,C as ie,S as se,T as pe,U as ce}from"./element-plus.7200a8ef.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang.20ec8eaa.js";import{f as de,a as _e}from"./index.53ee8921.js";import{_ as fe}from"./index.vue_vue_type_style_index_0_lang.4678f084.js";import{u as ve}from"./usePaging.f6660143.js";import{u as we}from"./useDictOptions.c8d7ec31.js";import{a as $,b as A,e as he}from"./procurement_contract.6faddfb8.js";import{a as Ce}from"./project.a27e3af1.js";import{a as be}from"./suppler_list.22bbba5c.js";import{_ as Fe}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.7c519515.js";import Ee from"./detail.f9e38040.js";import{d as I,s as S,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 as R,W as T,a8 as z,a as U,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.9bff6341.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.dba6fa1b.js";import"./@highlightjs.d693a0d8.js";import"./index.adb9b570.js";import"./index.vue_vue_type_script_setup_true_lang.5f6b0374.js";import"./index.vue_vue_type_script_setup_true_lang.e21684c7.js";import"./material_purchase_request_detail.0e250d13.js";import"./department.f8935255.js";import"./organization.14812edb.js";import"./paymentplan.0cf5429f.js";import"./procurement_contract_detail.96710314.js";import"./index.f74e1283.js";import"./approve.0d4002fd.js";import"./flow.2367fd51.js";import"./custom.93a8f22c.js";import"./receiptrecord.20b4135c.js";import"./paymentrequest.3d0e525d.js";import"./refundrecord.602f2862.js";import"./flowSet.75df93d3.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"},Se=I({name:"procurementContractLists"}),Nt=I({...Se,setup(Re){const D=S(),C=S(),b=h(!1),y=h(!1),V=h([]),x=h([]),s=De({supplier_id:"",project_id:"",contract_no:""}),g=h([]),N=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:O,resetPage:q}=ve({fetchFun:$,params:s}),M=async()=>{var r;b.value=!0,await B(),(r=C.value)==null||r.open("add")},W=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()},G=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)},H=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 H(),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(T,null,z(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(T,null,z(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(q)},{default:a(()=>[ke]),_:1},8,["onClick"]),e(m,{onClick:u(O)},{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:M},{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"]]]),U("div",Le,[e(Z,{data:u(_).lists,onSelectionChange:N},{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=>W(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=>G(o)},{default:a(()=>[$e]),_:2},1032,["onClick"])),[[w,["contract.procurement_contract/detail"]]])]),_:1})]),_:1},8,["data"])]),U("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"])):R("",!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"])):R("",!0)])}}});export{Nt as default};
|