2 lines
8.8 KiB
JavaScript
2 lines
8.8 KiB
JavaScript
import{G as te,H as oe,y as ae,I as le,w as ue,D as ne,C as re,L as ie,M as pe,N as se}from"./element-plus.e49c119c.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.8c9f8a22.js";import{_ as de}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as me,a as _e}from"./index.f22ffba3.js";import{u as fe}from"./usePaging.f6660143.js";import{u as ve}from"./useDictOptions.738b0ea7.js";import{a as be,d as R,e as we}from"./subcontracting_contract.d7c10302.js";import"./lodash.86334a69.js";import{a as De}from"./project.f050944e.js";import{a as Ce}from"./suppler_list.a88dfdb9.js";import{_ as Fe}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.093166cb.js";import{_ as Ee}from"./detail.vue_vue_type_style_index_0_lang.211c4240.js";import{d as z,s as U,r as C,a0 as he,ai as ye,o as n,c as y,V as e,M as a,O as v,u as i,L as p,S as N,W as V,a8 as x,a as T,k as Be,T as _,n as j}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.5571e62a.js";import"./axios.9ce976cc.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.156d1593.js";import"./color.4188bfef.js";import"./clone.a0efef30.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ca37accd.js";import"./ms.a9ae1d6d.js";import"./nprogress.30953505.js";import"./vue-clipboard3.4e4a29c9.js";import"./clipboard.1a812829.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.2ebad864.js";import"./index.vue_vue_type_script_setup_true_lang.42799aad.js";import"./index.vue_vue_type_script_setup_true_lang.ccf428da.js";import"./department.99a0a262.js";import"./organization.18064b2f.js";import"./custom.bdf64167.js";const ge=_("\u67E5\u8BE2"),ke=_("\u91CD\u7F6E"),Ve=_(" \u65B0\u589E "),xe=_(" \u5220\u9664 "),je={class:"mt-4"},Ae=_(" \u7F16\u8F91 "),Le=_(" \u5220\u9664 "),$e=_(" \u8BE6\u60C5 "),Se={class:"flex mt-4 justify-end"},Ie=z({name:"subcontractingContractLists"}),At=z({...Ie,setup(Pe){const B=U(),F=U(),E=C(!1),g=C(!1),A=C([]),L=C([]),r=he({contract_name:"",contract_no:"",project_id:"",contract_type:"",supplier_id:""}),k=C([]),M=u=>{k.value=u.map(({id:o})=>o)},{dictData:b}=ve("contract_type,account_period,tax_rate,pay_type,pay_period "),{pager:w,getLists:h,resetParams:O,resetPage:q}=fe({fetchFun:be,params:r}),G=async()=>{var u;E.value=!0,await j(),(u=F.value)==null||u.open("add")},H=async u=>{var s,c;let o=await R({id:u.id});E.value=!0,await j(),(s=F.value)==null||s.open("edit"),(c=F.value)==null||c.setFormData(o)},$=async u=>{await me.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await we({id:u}),h()},W=async u=>{var s,c;let o=await R({id:u.id});g.value=!0,await j(),(s=B.value)==null||s.open(),(c=B.value)==null||c.setFormData(o)},J=async()=>{let u=await De({page_no:1,page_size:9999});A.value=u.lists},K=async()=>{let u=await Ce({page_no:1,page_size:9999});L.value=u.lists};return J(),K(),h(),(u,o)=>{const s=te,c=oe,f=ae,S=le,m=ue,Q=ne,I=re,X=_e,l=ie,P=de,Y=pe,Z=ce,D=ye("perms"),ee=se;return n(),y("div",null,[e(I,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(Q,{class:"mb-[-16px]",model:r,inline:"","label-width":"auto"},{default:a(()=>[e(f,{label:"\u9879\u76EE",prop:"project_id"},{default:a(()=>[e(c,{modelValue:r.project_id,"onUpdate:modelValue":o[0]||(o[0]=t=>r.project_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C\u7C7B\u578B"},{default:a(()=>[(n(!0),y(V,null,x(A.value,(t,d)=>(n(),p(s,{key:d,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(f,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:a(()=>[e(c,{modelValue:r.supplier_id,"onUpdate:modelValue":o[1]||(o[1]=t=>r.supplier_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4F9B\u5E94\u5546"},{default:a(()=>[(n(!0),y(V,null,x(L.value,(t,d)=>(n(),p(s,{key:d,label:t.supplier_name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(f,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_name"},{default:a(()=>[e(S,{class:"w-[280px]",modelValue:r.contract_name,"onUpdate:modelValue":o[2]||(o[2]=t=>r.contract_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(f,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no"},{default:a(()=>[e(S,{class:"w-[280px]",modelValue:r.contract_no,"onUpdate:modelValue":o[3]||(o[3]=t=>r.contract_no=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(f,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type"},{default:a(()=>[e(c,{modelValue:r.contract_type,"onUpdate:modelValue":o[4]||(o[4]=t=>r.contract_type=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C\u7C7B\u578B"},{default:a(()=>[(n(!0),y(V,null,x(i(b).contract_type,(t,d)=>(n(),p(s,{key:d,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(f,null,{default:a(()=>[e(m,{type:"primary",onClick:i(q)},{default:a(()=>[ge]),_:1},8,["onClick"]),e(m,{onClick:i(O)},{default:a(()=>[ke]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((n(),p(I,{class:"!border-none",shadow:"never"},{default:a(()=>[v((n(),p(m,{type:"primary",onClick:G},{icon:a(()=>[e(X,{name:"el-icon-Plus"})]),default:a(()=>[Ve]),_:1})),[[D,["contract.subcontracting_contract/add"]]]),v((n(),p(m,{disabled:!k.value.length,onClick:o[5]||(o[5]=t=>$(k.value))},{default:a(()=>[xe]),_:1},8,["disabled"])),[[D,["contract.subcontracting_contract/delete"]]]),T("div",je,[e(Y,{data:i(w).lists,onSelectionChange:M},{default:a(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(l,{label:"\u5904\u7406\u6D41\u7A0B",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u6D41\u7A0B\u6B65\u9AA4",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u6D41\u7A0B\u7F16\u53F7",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),e(l,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_name","show-overflow-tooltip":""}),e(l,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_name","show-overflow-tooltip":""}),e(l,{label:"\u7B7E\u8BA2\u65E5\u671F",prop:"signing_date","show-overflow-tooltip":""}),e(l,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type"},{default:a(({row:t})=>[e(P,{options:i(b).contract_type,value:t.contract_type},null,8,["options","value"])]),_:1}),e(l,{label:"\u5408\u540C\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(l,{label:"\u7A0E\u7387",prop:"tax_rate"},{default:a(({row:t})=>[e(P,{options:i(b).tax_rate,value:t.tax_rate},null,8,["options","value"])]),_:1}),e(l,{label:"\u8C03\u6574\u91D1\u989D",prop:"","show-overflow-tooltip":""}),e(l,{label:"\u4E0D\u542B\u7A0E\u91D1\u989D",prop:"amount_excluding_tax","show-overflow-tooltip":""}),e(l,{label:"\u5B9E\u9645\u5408\u540C\u91D1\u989D",prop:"","show-overflow-tooltip":""}),e(l,{label:"\u5DF2\u4ED8\u6B3E\u91D1\u989D",prop:"","show-overflow-tooltip":""}),e(l,{label:"\u672A\u4ED8\u6B3E\u91D1\u989D",prop:"","show-overflow-tooltip":""}),e(l,{label:"\u5DF2\u5F00\u7968\u91D1\u989D",prop:"","show-overflow-tooltip":""}),e(l,{label:"\u672A\u5F00\u7968\u91D1\u989D",prop:"","show-overflow-tooltip":""}),e(l,{label:"\u5DF2\u9000\u6B3E\u91D1\u989D",prop:"","show-overflow-tooltip":""}),e(l,{label:"\u7ED3\u7B97\u5DEE\u5F02",prop:"","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:a(({row:t})=>[v((n(),p(m,{type:"primary",link:"",onClick:d=>H(t)},{default:a(()=>[Ae]),_:2},1032,["onClick"])),[[D,["contract.subcontracting_contract/edit"]]]),v((n(),p(m,{type:"danger",link:"",onClick:d=>$(t.id)},{default:a(()=>[Le]),_:2},1032,["onClick"])),[[D,["contract.subcontracting_contract/delete"]]]),v((n(),p(m,{link:"",onClick:d=>W(t)},{default:a(()=>[$e]),_:2},1032,["onClick"])),[[D,["contract.subcontracting_contract/detail"]]])]),_:1})]),_:1},8,["data"])]),T("div",Se,[e(Z,{modelValue:i(w),"onUpdate:modelValue":o[6]||(o[6]=t=>Be(w)?w.value=t:null),onChange:i(h)},null,8,["modelValue","onChange"])])]),_:1})),[[ee,i(w).loading]]),g.value?(n(),p(Ee,{key:0,ref_key:"detailRef",ref:B,"dict-data":i(b),onClose:o[7]||(o[7]=t=>g.value=!1)},null,8,["dict-data"])):N("",!0),E.value?(n(),p(Fe,{key:1,ref_key:"editRef",ref:F,"dict-data":i(b),onSuccess:i(h),onClose:o[8]||(o[8]=t=>E.value=!1)},null,8,["dict-data","onSuccess"])):N("",!0)])}}});export{At as default};
|