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

2 lines
7.3 KiB
JavaScript

import{I as Y,y as Z,G as tt,H as ot,w as et,D as at,C as nt,L as lt,M as it,N as ut}from"./element-plus.258bf9e7.js";import{_ as rt}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as st,a as pt}from"./index.ec401e3b.js";import{_ as ct}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as mt}from"./usePaging.f6660143.js";import{u as dt}from"./useDictOptions.c644f395.js";import{c as P,a as S,b as _t}from"./subcontractor.3d3161e3.js";import{_ as ft}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.52256f2f.js";import Dt from"./detail.30209c67.js";import{u as gt}from"./vue-router.87ebc608.js";import{d as U,s as I,r as k,a0 as vt,ai as wt,o as u,c as N,V as t,M as e,O as f,u as i,L as p,S as T,n as E,W as bt,a8 as Ft,a as j,k as ht,T as d}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"./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"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./subcontracting_contract.654d8771.js";import"./department.1c914e1a.js";import"./organization.f0387125.js";import"./index.a91b9a2c.js";import"./approve.4bfa22cd.js";import"./flow.825559ec.js";import"./custom.13e75d58.js";import"./flowSet.6e7dc427.js";const Ct=d("\u67E5\u8BE2"),yt=d("\u91CD\u7F6E"),kt=d(" \u65B0\u589E "),Et=d(" \u5220\u9664 "),Bt={class:"mt-4"},Vt=d(" \u7F16\u8F91 "),xt=d(" \u5220\u9664 "),$t=d(" \u8BE6\u60C5 "),Lt={class:"flex justify-end mt-4"},Rt=U({name:"projectLists"}),Ro=U({...Rt,setup(Pt){var $;const F=I(),g=I(),v=k(!1),h=k(!1),s=vt({negotiation_no:"",negotiation_name:"",negotiation_type:""}),C=k([]),q=l=>{C.value=l.map(({id:o})=>o)},{dictData:y}=dt("negotiation_type"),{pager:_,getLists:w,resetParams:z,resetPage:A}=mt({fetchFun:S,params:s}),M=async()=>{var l;v.value=!0,await E(),(l=g.value)==null||l.open("add")},O=async l=>{var c,r;console.log(l.id);let o=await P({id:l.id});v.value=!0,await E(),(c=g.value)==null||c.open("edit"),(r=g.value)==null||r.setFormData(o)},B=async l=>{await st.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await _t({id:l}),w()},V=async l=>{var c,r;let o=await P({id:l.id});h.value=!0,await E(),(c=F.value)==null||c.open(),(r=F.value)==null||r.setFormData(o)},x=gt();return($=x.query)!=null&&$.listId&&V({id:x.query.listId}),w(),(l,o)=>{const c=Y,r=Z,L=tt,G=ot,m=et,H=ct,W=at,R=nt,J=pt,n=lt,K=it,Q=rt,D=wt("perms"),X=ut;return u(),N("div",null,[t(R,{class:"!border-none mb-4",shadow:"never"},{default:e(()=>[t(W,{class:"mb-[-16px]",model:s,inline:""},{default:e(()=>[t(r,{label:"\u6D3D\u5546\u5355\u540D\u79F0",prop:"negotiation_name"},{default:e(()=>[t(c,{class:"w-[280px]",modelValue:s.negotiation_name,"onUpdate:modelValue":o[0]||(o[0]=a=>s.negotiation_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6D3D\u5546\u5355\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(r,{label:"\u6D3D\u5546\u7F16\u53F7",prop:"negotiation_no"},{default:e(()=>[t(c,{class:"w-[280px]",modelValue:s.negotiation_no,"onUpdate:modelValue":o[1]||(o[1]=a=>s.negotiation_no=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6D3D\u5546\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),t(r,{label:"\u6D3D\u5546\u7C7B\u522B",prop:"negotiation_type"},{default:e(()=>[t(G,{class:"w-[280px]",modelValue:s.negotiation_type,"onUpdate:modelValue":o[2]||(o[2]=a=>s.negotiation_type=a),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6D3D\u5546\u7C7B\u522B"},{default:e(()=>[t(L,{label:"\u5168\u90E8",value:""}),(u(!0),N(bt,null,Ft(i(y).negotiation_type,(a,b)=>(u(),p(L,{key:b,label:a.name,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(r,null,{default:e(()=>[t(m,{type:"primary",onClick:i(A)},{default:e(()=>[Ct]),_:1},8,["onClick"]),t(m,{onClick:i(z)},{default:e(()=>[yt]),_:1},8,["onClick"]),t(H,{class:"ml-2.5","fetch-fun":i(S),params:s,"page-size":i(_).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),f((u(),p(R,{class:"!border-none",shadow:"never"},{default:e(()=>[f((u(),p(m,{type:"primary",onClick:M},{icon:e(()=>[t(J,{name:"el-icon-Plus"})]),default:e(()=>[kt]),_:1})),[[D,["contract.subcontracting_contract_negotiation/add"]]]),f((u(),p(m,{disabled:!C.value.length,onClick:o[3]||(o[3]=a=>B(C.value))},{default:e(()=>[Et]),_:1},8,["disabled"])),[[D,["contract.subcontracting_contract_negotiation/delete"]]]),j("div",Bt,[t(K,{data:i(_).lists,onSelectionChange:q},{default:e(()=>[t(n,{type:"selection",width:"55"}),t(n,{label:"\u5E8F\u53F7",type:"index",width:"55"}),t(n,{label:"\u6D3D\u5546\u7F16\u53F7",prop:"negotiation_no","show-overflow-tooltip":""}),t(n,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),t(n,{label:"\u6D3D\u5546\u5355\u540D\u79F0",prop:"negotiation_name","show-overflow-tooltip":""}),t(n,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),t(n,{label:"\u9879\u76EE\u7F16\u53F7",prop:"project_code","show-overflow-tooltip":""}),t(n,{label:"\u4F9B\u5E94\u5546",prop:"supplier_name","show-overflow-tooltip":""}),t(n,{label:"\u6D3D\u5546\u91D1\u989D",prop:"negotiation_amount","show-overflow-tooltip":""}),t(n,{label:"\u6D3D\u5546\u7C7B\u522B",prop:"negotiation_type_text","show-overflow-tooltip":""}),t(n,{label:"\u6D3D\u5546\u8D28\u4FDD\u91D1\u989D",prop:"warranty_amount","show-overflow-tooltip":""}),t(n,{label:"\u6D3D\u5546\u8D28\u4FDD\u5230\u671F\u65F6\u95F4",prop:"warranty_expire_date","show-overflow-tooltip":""}),t(n,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),t(n,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:e(({row:a})=>[f((u(),p(m,{type:"primary",link:"",onClick:b=>O(a)},{default:e(()=>[Vt]),_:2},1032,["onClick"])),[[D,["contract.subcontracting_contract_negotiation/edit"]]]),f((u(),p(m,{type:"danger",link:"",onClick:b=>B(a.id)},{default:e(()=>[xt]),_:2},1032,["onClick"])),[[D,["contract.subcontracting_contract_negotiation/delete"]]]),f((u(),p(m,{link:"",onClick:b=>V(a)},{default:e(()=>[$t]),_:2},1032,["onClick"])),[[D,["contract.subcontracting_contract_negotiation/detail"]]])]),_:1})]),_:1},8,["data"])]),j("div",Lt,[t(Q,{modelValue:i(_),"onUpdate:modelValue":o[4]||(o[4]=a=>ht(_)?_.value=a:null),onChange:i(w)},null,8,["modelValue","onChange"])])]),_:1})),[[X,i(_).loading]]),v.value?(u(),p(ft,{key:0,ref_key:"editRef",ref:g,"dict-data":i(y),onSuccess:i(w),onClose:o[5]||(o[5]=a=>v.value=!1)},null,8,["dict-data","onSuccess"])):T("",!0),h.value?(u(),p(Dt,{key:1,ref_key:"detailRef",ref:F,"dict-data":i(y),onClose:o[6]||(o[6]=a=>h.value=!1)},null,8,["dict-data"])):T("",!0)])}}});export{Ro as default};