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

2 lines
8.4 KiB
JavaScript

import{I as Z,y as ee,G as te,H as oe,w as le,D as ae,C as ue,L as ne,M as re,N as pe}from"./element-plus.258bf9e7.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{b as ce,f as _e,a as de}from"./index.ec401e3b.js";import{u as me}from"./usePaging.f6660143.js";import{u as fe}from"./useDictOptions.c644f395.js";import{_ as ve,a as be,b as U,c as Fe}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.1e8d329b.js";import we from"./detail.f8c0b27e.js";import{d as Y,a0 as N,s as T,r as j,ai as De,o as u,c as E,V as e,M as o,O as v,u as n,L as i,S as M,W as $,a8 as A,a as P,U as he,k as ye,T as m,n as L}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.e10c5f83.js";import"./subcontracting_contract.654d8771.js";import"./department.1c914e1a.js";import"./organization.f0387125.js";import"./custom.13e75d58.js";const Ee=m("\u67E5\u8BE2"),Ce=m("\u91CD\u7F6E"),ge=m(" \u65B0\u589E "),Be=m(" \u5220\u9664 "),ke={class:"mt-4"},Ve=m(" \u7F16\u8F91 "),xe=m(" \u5220\u9664 "),je=m(" \u8BE6\u60C5 "),$e={class:"flex justify-end mt-4"},Ae=Y({name:"projectLists"}),gt=Y({...Ae,setup(Pe){const C=N([]),g=T(),D=T(),h=j(!1),B=j(!1),s=N({supplier_id:"",procurement_contract_id:"",contract_no:"",project_id:""}),k=j([]),I=r=>{k.value=r.map(({id:l})=>l)},{dictData:b}=fe("procurement_contract_type,pay_type,account_period,pay_period"),{pager:F,getLists:y,resetParams:O,resetPage:q}=me({fetchFun:be,params:s}),G=async()=>{var r;h.value=!0,await L(),(r=D.value)==null||r.open("add")},H=async r=>{var _,p;console.log(r.id);let l=await U({id:r.id});h.value=!0,await L(),(_=D.value)==null||_.open("edit"),(p=D.value)==null||p.setFormData(l)},S=async r=>{await _e.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Fe({id:r}),y()},W=async r=>{var _,p;let l=await U({id:r.id});B.value=!0,await L(),(_=g.value)==null||_.open(),(p=g.value)==null||p.setFormData(l)};return y(),(r,l)=>{const _=Z,p=ee,f=te,V=oe,d=le,z=ae,R=ue,J=de,a=ne,x=se,K=re,Q=ie,w=De("perms"),X=pe;return u(),E("div",null,[e(R,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(z,{class:"mb-[-16px]",model:s,inline:""},{default:o(()=>[e(p,{label:"\u5408\u540C\u7F16\u53F7",prop:"procurement_contract_id"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:s.procurement_contract_id,"onUpdate:modelValue":l[0]||(l[0]=t=>s.procurement_contract_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u9879\u76EE",prop:"project_id"},{default:o(()=>[e(V,{class:"w-[280px]",modelValue:s.project_id,"onUpdate:modelValue":l[1]||(l[1]=t=>s.project_id=t),clearable:"",placeholder:"\u9879\u76EE"},{default:o(()=>[e(f,{label:"\u5168\u90E8",value:""}),(u(!0),E($,null,A(C,(t,c)=>(u(),i(f,{key:c,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(p,{label:"\u91C7\u8D2D\u5408\u540C",prop:"supplier_id"},{default:o(()=>[e(V,{class:"w-[280px]",modelValue:s.supplier_id,"onUpdate:modelValue":l[2]||(l[2]=t=>s.supplier_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u91C7\u8D2D\u5408\u540C"},{default:o(()=>[e(f,{label:"\u5168\u90E8",value:""}),(u(!0),E($,null,A(C,(t,c)=>(u(),i(f,{key:c,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(p,{label:"\u4F9B\u5E94\u5546",prop:"project_type"},{default:o(()=>[e(V,{class:"w-[280px]",modelValue:s.project_type,"onUpdate:modelValue":l[3]||(l[3]=t=>s.project_type=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4F9B\u5E94\u5546"},{default:o(()=>[e(f,{label:"\u5168\u90E8",value:""}),(u(!0),E($,null,A(C,(t,c)=>(u(),i(f,{key:c,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(p,null,{default:o(()=>[e(d,{type:"primary",onClick:n(q)},{default:o(()=>[Ee]),_:1},8,["onClick"]),e(d,{onClick:n(O)},{default:o(()=>[Ce]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((u(),i(R,{class:"!border-none",shadow:"never"},{default:o(()=>[v((u(),i(d,{type:"primary",onClick:G},{icon:o(()=>[e(J,{name:"el-icon-Plus"})]),default:o(()=>[ge]),_:1})),[[w,["procurement_contract_change.procurement_contract_change/add"]]]),v((u(),i(d,{disabled:!k.value.length,onClick:l[4]||(l[4]=t=>S(k.value))},{default:o(()=>[Be]),_:1},8,["disabled"])),[[w,["procurement_contract_change.procurement_contract_change/delete"]]]),P("div",ke,[e(K,{data:n(F).lists,onSelectionChange:I},{default:o(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u6D41\u7A0B\u6B65\u9AA4",prop:"custom_name","show-overflow-tooltip":""}),e(a,{label:"\u6D41\u7A0B\u7F16\u53F7",prop:"custom_name","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(a,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),e(a,{label:"\u4F9B\u5E94\u5546\u5408\u540C\u53F7",prop:"supplier_contract_no","show-overflow-tooltip":""}),e(a,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_name","show-overflow-tooltip":""}),e(a,{label:"\u4F9B\u5E94\u5546\u7F16\u7801",prop:"supplier_name","show-overflow-tooltip":""}),e(a,{label:"\u5408\u540C\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(a,{label:"\u4E0D\u542B\u7A0E\u91D1\u989D",prop:"amount_excluding_tax","show-overflow-tooltip":""}),e(a,{label:"\u542B\u7A0E\u91D1\u989D",prop:"amount_including_tax","show-overflow-tooltip":""}),e(a,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type"},{default:o(({row:t})=>[e(x,{options:n(b).procurement_contract_type,value:t.contract_type},null,8,["options","value"])]),_:1}),e(a,{label:"\u7B7E\u8BA2\u65E5\u671F",prop:"signing_date"},{default:o(({row:t})=>[P("span",null,he(t.signing_date?n(ce)(t.signing_date,"YYYY-MM-DD "):""),1)]),_:1}),e(a,{label:"\u4ED8\u6B3E\u65B9\u5F0F",prop:"pay_type"},{default:o(({row:t})=>[e(x,{options:n(b).pay_type,value:t.pay_type},null,8,["options","value"])]),_:1}),e(a,{label:"\u8D26\u671F",prop:"account_period"},{default:o(({row:t})=>[e(x,{options:n(b).account_period,value:t.account_period},null,8,["options","value"])]),_:1}),e(a,{label:"\u8D28\u4FDD\u91D1\u6BD4\u4F8B(\uFF05)",prop:"retention_money_rate","show-overflow-tooltip":""}),e(a,{label:"\u8D28\u4FDD\u91D1",prop:"retention_money","show-overflow-tooltip":""}),e(a,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:o(({row:t})=>[v((u(),i(d,{type:"primary",link:"",onClick:c=>H(t)},{default:o(()=>[Ve]),_:2},1032,["onClick"])),[[w,["procurement_contract_change.procurement_contract_change/edit"]]]),v((u(),i(d,{type:"danger",link:"",onClick:c=>S(t.id)},{default:o(()=>[xe]),_:2},1032,["onClick"])),[[w,["procurement_contract_change.procurement_contract_change/delete"]]]),v((u(),i(d,{link:"",onClick:c=>W(t)},{default:o(()=>[je]),_:2},1032,["onClick"])),[[w,["procurement_contract_change.procurement_contract_change/detail"]]])]),_:1})]),_:1},8,["data"])]),P("div",$e,[e(Q,{modelValue:n(F),"onUpdate:modelValue":l[5]||(l[5]=t=>ye(F)?F.value=t:null),onChange:n(y)},null,8,["modelValue","onChange"])])]),_:1})),[[X,n(F).loading]]),h.value?(u(),i(ve,{key:0,ref_key:"editRef",ref:D,"dict-data":n(b),onSuccess:n(y),onClose:l[6]||(l[6]=t=>h.value=!1)},null,8,["dict-data","onSuccess"])):M("",!0),B.value?(u(),i(we,{key:1,ref_key:"detailRef",ref:g,"dict-data":n(b),onClose:l[7]||(l[7]=t=>B.value=!1)},null,8,["dict-data"])):M("",!0)])}}});export{gt as default};