2 lines
6.9 KiB
JavaScript
2 lines
6.9 KiB
JavaScript
import{G as oe,H as ae,y as le,w as ne,D as ie,C as re,L as se,M as ue,N as pe}from"./element-plus.258bf9e7.js";import{_ as de}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as me,a as ce}from"./index.ec401e3b.js";import{_ as _e}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as fe}from"./usePaging.f6660143.js";import{u as ve}from"./useDictOptions.c644f395.js";import{a as I,p as N,d as he}from"./paymentplan.26c1cb62.js";import{d as we}from"./procurement_contract.b71ab69f.js";import"./lodash.1d82ee7c.js";import{_ as Ce}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.c7ceaf22.js";import be from"./detail.01dbfb09.js";import{u as ye}from"./vue-router.87ebc608.js";import{d as M,a0 as T,s as j,r as y,ai as Ee,o as i,c as B,V as e,M as a,O as v,u as r,L as s,S as A,n as x,W as q,a8 as z,a as U,k as ke,T as c}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.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.ad39d63c.js";import"./suppler_list.25198ddd.js";import"./index.vue_vue_type_script_setup_true_lang.6abe3f82.js";import"./subcontracting.vue_vue_type_script_setup_true_lang.34474773.js";import"./subcontracting_contract.654d8771.js";import"./projecttype.f974a874.js";import"./index.a91b9a2c.js";import"./approve.4bfa22cd.js";import"./flow.825559ec.js";import"./custom.13e75d58.js";import"./flowSet.6e7dc427.js";const Fe=c("\u67E5\u8BE2"),De=c("\u91CD\u7F6E"),ge=c(" \u65B0\u589E "),Be=c(" \u5220\u9664 "),xe={class:"mt-4"},Ve=c(" \u7F16\u8F91 "),$e=c(" \u5220\u9664 "),Le=c(" \u8BE6\u60C5 "),Pe={class:"flex justify-end mt-4"},Re=M({name:"projectLists"}),St=M({...Re,setup(Se){var R;T([]);const V=ye(),E=j(),w=j(),C=y(!1),k=y(!1),F=y([]),d=T({contract_id:"",supplier_id:""}),D=y([]),O=l=>{D.value=l.map(({id:t})=>t)},{dictData:$}=ve("pay_status,pay_period"),{pager:_,getLists:b,resetParams:G,resetPage:H}=fe({fetchFun:N,params:d}),W=async()=>{var l;C.value=!0,await x(),(l=w.value)==null||l.open("add")},J=async l=>{var u,p;console.log(l.id);let t=await I({id:l.id});C.value=!0,await x(),(u=w.value)==null||u.open("edit"),(p=w.value)==null||p.setFormData(t)},L=async l=>{await me.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await he({id:l}),b()},P=async l=>{var u,p;let t=await I({id:l.id});k.value=!0,await x(),(u=E.value)==null||u.open(),(p=E.value)==null||p.setFormData(t)},K=()=>{we({project_id:"",supplier_id:"",contract_no:"",all:1}).then(l=>{F.value=l.lists})};return(R=V.query)!=null&&R.listId&&P({id:V.query.listId}),K(),b(),(l,t)=>{const u=oe,p=ae,g=le,m=ne,Q=_e,X=ie,S=re,Y=ce,n=se,Z=ue,ee=de,h=Ee("perms"),te=pe;return i(),B("div",null,[e(S,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(X,{class:"mb-[-16px]",model:d,inline:""},{default:a(()=>[e(g,{label:"\u5408\u540C",prop:"contract_id"},{default:a(()=>[e(p,{class:"flex-1",modelValue:d.contract_id,"onUpdate:modelValue":t[0]||(t[0]=o=>d.contract_id=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C"},{default:a(()=>[(i(!0),B(q,null,z(F.value,(o,f)=>(i(),s(u,{key:f,label:o.contract_name,value:parseInt(o.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(g,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:a(()=>[e(p,{class:"flex-1",modelValue:d.contract_id,"onUpdate:modelValue":t[1]||(t[1]=o=>d.contract_id=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C"},{default:a(()=>[(i(!0),B(q,null,z(F.value,(o,f)=>(i(),s(u,{key:f,label:o.contract_name,value:parseInt(o.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(g,null,{default:a(()=>[e(m,{type:"primary",onClick:r(H)},{default:a(()=>[Fe]),_:1},8,["onClick"]),e(m,{onClick:r(G)},{default:a(()=>[De]),_:1},8,["onClick"]),e(Q,{class:"ml-2.5","fetch-fun":r(N),params:d,"page-size":r(_).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),v((i(),s(S,{class:"!border-none",shadow:"never"},{default:a(()=>[v((i(),s(m,{type:"primary",onClick:W},{icon:a(()=>[e(Y,{name:"el-icon-Plus"})]),default:a(()=>[ge]),_:1})),[[h,["refund.refund/add"]]]),v((i(),s(m,{disabled:!D.value.length,onClick:t[2]||(t[2]=o=>L(D.value))},{default:a(()=>[Be]),_:1},8,["disabled"])),[[h,["refund.refund/delete"]]]),U("div",xe,[e(Z,{data:r(_).lists,onSelectionChange:O},{default:a(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(n,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_name","show-overflow-tooltip":""}),e(n,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(n,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),e(n,{label:"\u8BA1\u5212\u4ED8\u6B3E\u65E5\u671F",prop:"pay_date","show-overflow-tooltip":""}),e(n,{label:"\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(n,{label:"\u671F\u6B21",prop:"period_text","show-overflow-tooltip":""}),e(n,{label:"\u72B6\u6001",prop:"status_text","show-overflow-tooltip":""}),e(n,{label:"\u5DF2\u4ED8\u6B3E",prop:"has_payment_amount","show-overflow-tooltip":""}),e(n,{label:"\u672A\u4ED8\u6B3E",prop:"not_payment_amount","show-overflow-tooltip":""}),e(n,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(n,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:a(({row:o})=>[v((i(),s(m,{type:"primary",link:"",onClick:f=>J(o)},{default:a(()=>[Ve]),_:2},1032,["onClick"])),[[h,["refund.refund/edit"]]]),v((i(),s(m,{type:"danger",link:"",onClick:f=>L(o.id)},{default:a(()=>[$e]),_:2},1032,["onClick"])),[[h,["refund.refund/delete"]]]),v((i(),s(m,{link:"",onClick:f=>P(o)},{default:a(()=>[Le]),_:2},1032,["onClick"])),[[h,["refund.refund/detail"]]])]),_:1})]),_:1},8,["data"])]),U("div",Pe,[e(ee,{modelValue:r(_),"onUpdate:modelValue":t[3]||(t[3]=o=>ke(_)?_.value=o:null),onChange:r(b)},null,8,["modelValue","onChange"])])]),_:1})),[[te,r(_).loading]]),C.value?(i(),s(Ce,{key:0,ref_key:"editRef",ref:w,"dict-data":r($),onSuccess:r(b),onClose:t[4]||(t[4]=o=>C.value=!1)},null,8,["dict-data","onSuccess"])):A("",!0),k.value?(i(),s(be,{key:1,ref_key:"detailRef",ref:E,"dict-data":r($),onClose:t[5]||(t[5]=o=>k.value=!1)},null,8,["dict-data"])):A("",!0)])}}});export{St as default};
|