engineering/public/admin/assets/index.749bd64c.js
2024-02-27 10:28:16 +08:00

2 lines
7.4 KiB
JavaScript

import{G as Z,H as ee,y as te,w as oe,D as ae,C as le,L as ne,M as ue,N as re}from"./element-plus.517d4382.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as se,a as pe}from"./index.8b1962e9.js";import{_ as de}from"./index.vue_vue_type_style_index_0_lang.9f4b6930.js";import{u as ce}from"./usePaging.f6660143.js";import{u as me}from"./useDictOptions.b5854a9e.js";import{d as S,a as N,e as _e}from"./refundrecord.7625cfa1.js";import"./lodash.1d82ee7c.js";import{d as fe}from"./procurement_contract.97fa9110.js";import{_ as ve}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.d7e3d1e5.js";import Fe from"./detail.fc743c58.js";import{u as be}from"./vue-router.87ebc608.js";import{d as z,a0 as T,s as j,r as h,ai as we,o as l,c as y,V as e,M as a,O as v,u as r,L as i,S as I,W as x,a8 as $,a as U,k as Ce,T as _,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"./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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.b17dae19.js";import"./index.vue_vue_type_script_setup_true_lang.6f6d98ba.js";import"./suppler_list.28d1ed14.js";import"./index.vue_vue_type_script_setup_true_lang.5c2d4339.js";import"./subcontracting.vue_vue_type_script_setup_true_lang.e8d5c8d5.js";import"./subcontracting_contract.66a1e173.js";import"./index.vue_vue_type_script_setup_true_lang.80968ed7.js";import"./bank_account.ef6a10d2.js";import"./projecttype.80aa89f5.js";import"./index.011c79f0.js";import"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./custom.99349afc.js";import"./flowSet.6da79e1c.js";const Ee=_("\u67E5\u8BE2"),he=_("\u91CD\u7F6E"),ye=_(" \u65B0\u589E "),ke=_(" \u5220\u9664 "),Be={class:"mt-4"},ge=_(" \u7F16\u8F91 "),De=_(" \u5220\u9664 "),Ve=_(" \u8BE6\u60C5 "),xe={class:"flex justify-end mt-4"},$e=z({name:"projectLists"}),St=z({...$e,setup(Le){T([]),be();const k=j(),b=j(),w=h(!1),B=h(!1),g=h([]),s=T({refund_type:"",contract_id:"",supplier_id:""}),D=h([]),A=n=>{D.value=n.map(({id:o})=>o)},{dictData:V}=me("refund_type,isaccrued,contract_type"),{pager:f,getLists:C,resetParams:M,resetPage:O}=ce({fetchFun:S,params:s}),q=async()=>{var n;w.value=!0,await L(),(n=b.value)==null||n.open("add")},G=async n=>{var p,d;console.log(n.id);let o=await N({id:n.id});w.value=!0,await L(),(p=b.value)==null||p.open("edit"),(d=b.value)==null||d.setFormData(o)},P=async n=>{await se.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await _e({id:n}),C()},H=async n=>{var p,d;let o=await N({id:n.id});B.value=!0,await L(),(p=k.value)==null||p.open(),(d=k.value)==null||d.setFormData(o)};return(()=>{fe({project_id:"",supplier_id:"",contract_no:"",all:1}).then(n=>{g.value=n.lists})})(),C(),(n,o)=>{const p=Z,d=ee,E=te,m=oe,W=de,J=ae,R=le,K=pe,u=ne,Q=ue,X=ie,F=we("perms"),Y=re;return l(),y("div",null,[e(R,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(J,{class:"mb-[-16px]",model:s,inline:""},{default:a(()=>[e(E,{label:"\u9000\u6B3E\u65B9\u5F0F",prop:"contacts"},{default:a(()=>[e(d,{class:"flex-1",modelValue:s.refund_type,"onUpdate:modelValue":o[0]||(o[0]=t=>s.refund_type=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u9000\u6B3E\u65B9\u5F0F"},{default:a(()=>[(l(!0),y(x,null,$(r(V).refund_type,(t,c)=>(l(),i(p,{key:c,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(E,{label:"\u5408\u540C",prop:"contract_id"},{default:a(()=>[e(d,{class:"flex-1",modelValue:s.contract_id,"onUpdate:modelValue":o[1]||(o[1]=t=>s.contract_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C"},{default:a(()=>[(l(!0),y(x,null,$(g.value,(t,c)=>(l(),i(p,{key:c,label:t.contract_name,value:parseInt(t.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(E,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:a(()=>[e(d,{class:"flex-1",modelValue:s.contract_id,"onUpdate:modelValue":o[2]||(o[2]=t=>s.contract_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C"},{default:a(()=>[(l(!0),y(x,null,$(g.value,(t,c)=>(l(),i(p,{key:c,label:t.contract_name,value:parseInt(t.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(E,null,{default:a(()=>[e(m,{type:"primary",onClick:r(O)},{default:a(()=>[Ee]),_:1},8,["onClick"]),e(m,{onClick:r(M)},{default:a(()=>[he]),_:1},8,["onClick"]),e(W,{class:"ml-2.5","fetch-fun":r(S),params:s,"page-size":r(f).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),v((l(),i(R,{class:"!border-none",shadow:"never"},{default:a(()=>[v((l(),i(m,{type:"primary",onClick:q},{icon:a(()=>[e(K,{name:"el-icon-Plus"})]),default:a(()=>[ye]),_:1})),[[F,["refund.refund/add"]]]),v((l(),i(m,{disabled:!D.value.length,onClick:o[3]||(o[3]=t=>P(D.value))},{default:a(()=>[ke]),_:1},8,["disabled"])),[[F,["refund.refund/delete"]]]),U("div",Be,[e(Q,{data:r(f).lists,onSelectionChange:A},{default:a(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(u,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_name","show-overflow-tooltip":""}),e(u,{label:"\u4F9B\u5E94\u5546\u7F16\u7801",prop:"supplier_code","show-overflow-tooltip":""}),e(u,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(u,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),e(u,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type_text","show-overflow-tooltip":""}),e(u,{label:"\u9000\u6B3E\u65E5\u671F",prop:"refund_date","show-overflow-tooltip":""}),e(u,{label:"\u9000\u6B3E\u91D1\u989D",prop:"refund_amount","show-overflow-tooltip":""}),e(u,{label:"\u9000\u6B3E\u539F\u56E0",prop:"reason","show-overflow-tooltip":""}),e(u,{label:"\u9000\u6B3E\u65B9\u5F0F",prop:"refund_type_text","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:a(({row:t})=>[v((l(),i(m,{type:"primary",link:"",onClick:c=>G(t)},{default:a(()=>[ge]),_:2},1032,["onClick"])),[[F,["refund.refund/edit"]]]),v((l(),i(m,{type:"danger",link:"",onClick:c=>P(t.id)},{default:a(()=>[De]),_:2},1032,["onClick"])),[[F,["refund.refund/delete"]]]),v((l(),i(m,{link:"",onClick:c=>H(t)},{default:a(()=>[Ve]),_:2},1032,["onClick"])),[[F,["refund.refund/detail"]]])]),_:1})]),_:1},8,["data"])]),U("div",xe,[e(X,{modelValue:r(f),"onUpdate:modelValue":o[4]||(o[4]=t=>Ce(f)?f.value=t:null),onChange:r(C)},null,8,["modelValue","onChange"])])]),_:1})),[[Y,r(f).loading]]),w.value?(l(),i(ve,{key:0,ref_key:"editRef",ref:b,"dict-data":r(V),onSuccess:r(C),onClose:o[5]||(o[5]=t=>w.value=!1)},null,8,["dict-data","onSuccess"])):I("",!0),B.value?(l(),i(Fe,{key:1,ref_key:"detailRef",ref:k,"dict-data":r(V),onClose:o[6]||(o[6]=t=>B.value=!1)},null,8,["dict-data"])):I("",!0)])}}});export{St as default};