2 lines
8.3 KiB
JavaScript
2 lines
8.3 KiB
JavaScript
import{B as Z,D as ee,y as te,A as oe,w as ae,L as ne,C as ie,N as re,O as le,P as ue}from"./element-plus.b8fa0ea3.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.57e955c0.js";import{f as ce,a as pe}from"./index.9ee818d2.js";import{_ as de}from"./index.vue_vue_type_style_index_0_lang.0f8645da.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang.70b41e16.js";import{u as _e}from"./usePaging.d22bd5fb.js";import{u as fe}from"./useDictOptions.5c9293fe.js";import{c as R,a as W,b as De}from"./subcontractor.a5d8eb8f.js";import{f as ge}from"./subcontracting_contract.735653f3.js";import{a as he}from"./project.36f431fa.js";import{_ as be}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.2d172276.js";import ve from"./detail.e2bf0206.js";import{u as Ce}from"./vue-router.137bc04e.js";import{d as I,s as j,r as k,a0 as Fe,ak as ye,o as s,c as L,V as e,M as o,O as f,u as t,L as p,S as N,n as E,W as we,a8 as ke,a as T,k as Ee,T as _}from"./@vue.5673dc6e.js";import"./@vueuse.ae0833ee.js";import"./@element-plus.d30df31f.js";import"./lodash-es.5979d539.js";import"./dayjs.fbfe78b6.js";import"./axios.ae49a61d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.433a4ad9.js";import"./pinia.dba679c5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.1d1fa3f1.js";import"./color.184f8366.js";import"./clone.83c30c22.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7c4be754.js";import"./ms.a9ae1d6d.js";import"./nprogress.16340954.js";import"./vue-clipboard3.64e2f049.js";import"./clipboard.94b952a9.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.00aeb742.js";import"./index.8c55f384.js";import"./dialogTableConfig.7cc4ec70.js";import"./consult_project.58038ec4.js";import"./cost_approved_project.d6071df5.js";import"./cost_project.ff3c48ff.js";import"./task_type.08eba612.js";import"./suppler_list.3c795c09.js";import"./procurement_contract.4f1e7139.js";import"./paymentplan.60625aaf.js";import"./bank_account.2d4580c0.js";import"./financial_fee_application.ff45119b.js";import"./financial_borrow_money.3fe611e4.js";import"./marketing_custom_return_visit_template.77d7419b.js";import"./marketing_custom_return_visit.1d8f6a4e.js";import"./marketing_custom.192cfacb.js";import"./project_attendance_record.b23ed119.js";import"./marketing_contract.2f3f1b59.js";import"./marketing_competitor.4c498149.js";import"./oa_flow_type.55bc6d55.js";import"./index.0d370579.js";/* empty css */import"./index.3ceb707a.js";import"./approve.73ff43a4.js";import"./flow.62588dfb.js";import"./index.vue_vue_type_script_setup_true_lang.05454f59.js";import"./custom.bbde0f17.js";import"./flowSet.16fea3d6.js";const Be=_("\u67E5\u8BE2"),xe=_("\u91CD\u7F6E"),Ve=_(" \u65B0\u589E "),$e=_(" \u5220\u9664 "),Se={class:"mt-4"},Pe=_(" \u7F16\u8F91 "),Re=_(" \u5220\u9664 "),We=_(" \u8BE6\u60C5 "),je={class:"flex justify-end mt-4"},Le=I({name:"projectLists"}),eo=I({...Le,setup(Ne){var $;const C=j(),g=j(),h=k(!1),F=k(!1),c=Fe({negotiation_no:"",subcontracting_contract_id:"",negotiation_type:"",project_id:""}),y=k([]),q=l=>{y.value=l.map(({id:a})=>a)},{dictData:w}=fe("negotiation_type"),{pager:i,getLists:b,resetParams:z,resetPage:A}=_e({fetchFun:W,params:c}),O=async()=>{var l;h.value=!0,await E(),(l=g.value)==null||l.open("add")},U=async l=>{var d,u;let a=await R({id:l.id});h.value=!0,await E(),(d=g.value)==null||d.open("edit"),(u=g.value)==null||u.setFormData(a)},B=async l=>{await ce.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await De({id:l}),b()},x=async l=>{var d,u;let a=await R({id:l.id});F.value=!0,await E(),(d=C.value)==null||d.open(),(u=C.value)==null||u.setFormData(a)},V=Ce();return($=V.query)!=null&&$.listId&&x({id:V.query.listId}),b(),(l,a)=>{const d=me,u=Z,M=ee,S=te,G=oe,m=ae,H=de,J=ne,P=ie,K=pe,r=re,Q=le,X=se,D=ye("perms"),Y=ue;return s(),L("div",null,[e(P,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(J,{class:"mb-[-16px]",model:c,inline:""},{default:o(()=>[e(u,{label:"\u5173\u8054\u5408\u540C",prop:"subcontracting_contract_id"},{default:o(()=>[e(d,{formData:c,model:"subcontracting_contract_id",api:t(ge)},null,8,["formData","api"])]),_:1}),e(u,{label:"\u6240\u5C5E\u9879\u76EE",prop:"project_id"},{default:o(()=>[e(d,{formData:c,model:"project_id",api:t(he)},null,8,["formData","api"])]),_:1}),e(u,{label:"\u6D3D\u5546\u7F16\u53F7",prop:"negotiation_no"},{default:o(()=>[e(M,{class:"w-[280px]",modelValue:c.negotiation_no,"onUpdate:modelValue":a[0]||(a[0]=n=>c.negotiation_no=n),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6D3D\u5546\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u6D3D\u5546\u7C7B\u522B",prop:"negotiation_type"},{default:o(()=>[e(G,{class:"w-[280px]",modelValue:c.negotiation_type,"onUpdate:modelValue":a[1]||(a[1]=n=>c.negotiation_type=n),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6D3D\u5546\u7C7B\u522B"},{default:o(()=>[e(S,{label:"\u5168\u90E8",value:""}),(s(!0),L(we,null,ke(t(w).negotiation_type,(n,v)=>(s(),p(S,{key:v,label:n.name,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(u,null,{default:o(()=>[e(m,{type:"primary",onClick:t(A)},{default:o(()=>[Be]),_:1},8,["onClick"]),e(m,{onClick:t(z)},{default:o(()=>[xe]),_:1},8,["onClick"]),e(H,{class:"ml-2.5","fetch-fun":t(W),params:c,"page-size":t(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),f((s(),p(P,{class:"!border-none",shadow:"never"},{default:o(()=>[f((s(),p(m,{type:"primary",onClick:O},{icon:o(()=>[e(K,{name:"el-icon-Plus"})]),default:o(()=>[Ve]),_:1})),[[D,["contract.subcontracting_contract_negotiation/add"]]]),f((s(),p(m,{disabled:!y.value.length,onClick:a[2]||(a[2]=n=>B(y.value))},{default:o(()=>[$e]),_:1},8,["disabled"])),[[D,["contract.subcontracting_contract_negotiation/delete"]]]),T("div",Se,[e(Q,{border:"",data:t(i).lists,onSelectionChange:q},{default:o(()=>[e(r,{type:"selection",width:"55"}),e(r,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(r,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_name","render-header":t(i).calcWidth},null,8,["render-header"]),e(r,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","render-header":t(i).calcWidth},null,8,["render-header"]),e(r,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_name","render-header":t(i).calcWidth},null,8,["render-header"]),e(r,{label:"\u6D3D\u5546\u7F16\u53F7",prop:"negotiation_no","render-header":t(i).calcWidth},null,8,["render-header"]),e(r,{"render-header":t(i).calcWidth,label:"\u6D3D\u5546\u5355\u540D\u79F0",prop:"negotiation_name","show-overflow-tooltip":""},null,8,["render-header"]),e(r,{"render-header":t(i).calcWidth,label:"\u6D3D\u5546\u91D1\u989D",prop:"negotiation_amount","show-overflow-tooltip":""},null,8,["render-header"]),e(r,{"render-header":t(i).calcWidth,label:"\u6D3D\u5546\u7C7B\u522B",prop:"negotiation_type_text","show-overflow-tooltip":""},null,8,["render-header"]),e(r,{label:"\u6D3D\u5546\u8D28\u4FDD\u91D1\u989D",prop:"warranty_amount","show-overflow-tooltip":""}),e(r,{label:"\u6D3D\u5546\u8D28\u4FDD\u5230\u671F\u65F6\u95F4",prop:"warranty_expire_date"}),e(r,{label:"\u64CD\u4F5C",width:"160",fixed:"right",align:"center"},{default:o(({row:n})=>[f((s(),p(m,{type:"primary",link:"",onClick:v=>U(n)},{default:o(()=>[Pe]),_:2},1032,["onClick"])),[[D,["contract.subcontracting_contract_negotiation/edit"]]]),f((s(),p(m,{type:"danger",link:"",onClick:v=>B(n.id)},{default:o(()=>[Re]),_:2},1032,["onClick"])),[[D,["contract.subcontracting_contract_negotiation/delete"]]]),f((s(),p(m,{link:"",onClick:v=>x(n)},{default:o(()=>[We]),_:2},1032,["onClick"])),[[D,["contract.subcontracting_contract_negotiation/detail"]]])]),_:1})]),_:1},8,["data"])]),T("div",je,[e(X,{modelValue:t(i),"onUpdate:modelValue":a[3]||(a[3]=n=>Ee(i)?i.value=n:null),onChange:t(b)},null,8,["modelValue","onChange"])])]),_:1})),[[Y,t(i).loading]]),h.value?(s(),p(be,{key:0,ref_key:"editRef",ref:g,"dict-data":t(w),onSuccess:t(b),onClose:a[4]||(a[4]=n=>h.value=!1)},null,8,["dict-data","onSuccess"])):N("",!0),F.value?(s(),p(ve,{key:1,ref_key:"detailRef",ref:C,"dict-data":t(w),onClose:a[5]||(a[5]=n=>F.value=!1)},null,8,["dict-data"])):N("",!0)])}}});export{eo as default};
|