|
- var M=Object.defineProperty,$=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var V=(a,e,l)=>e in a?M(a,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[e]=l,w=(a,e)=>{for(var l in e||(e={}))T.call(e,l)&&V(a,l,e[l]);if(N)for(var l of N(e))U.call(e,l)&&V(a,l,e[l]);return a},x=(a,e)=>$(a,z(e));var _=(a,e,l)=>new Promise((g,i)=>{var n=s=>{try{f(l.next(s))}catch(t){i(t)}},v=s=>{try{f(l.throw(s))}catch(t){i(t)}},f=s=>s.done?g(s.value):Promise.resolve(s.value).then(n,v);f((l=l.apply(a,e)).next())});import{m as I}from"./settlementDocManage.f30ed3f7.js";import{d as O,r as b,A as R,f as p,g as S,p as A,w as r,e as o,b as Y,t as j,x as C,N as D,h as k,i as F}from"./index.551f5afa.js";const G=k(" \u786E\u8BA4\u5408\u5E76 "),H=k(" \u5173\u95ED "),J=O({name:"mergeDialog"}),W=Object.assign(J,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(a,{emit:e}){const l=a,{proxy:g}=F(),i=b(),n=b({}),v=b({projectLeader:{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u8D1F\u8D23\u4EBA",trigger:"blur"},projectNo:{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u7F16\u53F7",trigger:"blur"},projectName:{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0",trigger:"blur"}}),f=s=>_(this,null,function*(){!s||(yield s.validate(t=>_(this,null,function*(){if(t){const m=l.data.map(c=>c.id),u=x(w({},n.value),{settlementIds:m});yield I(u),console.log(u),g.$message.success("\u5408\u5E76\u6210\u529F\uFF01"),e("close",!0)}})))});return R(()=>l.visible,s=>_(this,null,function*(){})),(s,t)=>{const m=p("el-form-item"),u=p("el-col"),c=p("el-input"),q=p("el-row"),B=p("el-form"),y=p("el-button"),L=p("el-dialog");return S(),A(L,{"model-value":a.visible,title:"\u5408\u5E76\u7ED3\u7B97\u5355",width:"560px","destroy-on-close":"",onClose:t[5]||(t[5]=d=>e("close"))},{footer:r(()=>[o(y,{type:"primary",size:"small",onClick:t[3]||(t[3]=d=>f(i.value))},{default:r(()=>[G]),_:1}),o(y,{type:"info",size:"small",onClick:t[4]||(t[4]=d=>e("close"))},{default:r(()=>[H]),_:1})]),default:r(()=>[o(B,{ref_key:"formRef",ref:i,"label-suffix":":",model:n.value,rules:v.value,"label-position":"right",size:"small"},{default:r(()=>[o(u,{span:24},{default:r(()=>[o(m,{label:"\u4F01\u4E1A\u540D\u79F0"},{default:r(()=>[Y("span",null,j(a.data[0].companyName),1)]),_:1})]),_:1}),o(u,{span:24},{default:r(()=>[o(m,{label:"\u6240\u5C5E\u65F6\u95F4"},{default:r(()=>[Y("span",null,j(C(D)(a.data[0].startTime).format("YYYY-MM-DD"))+" \u81F3 "+j(C(D)(a.data[0].endTime).format("YYYY-MM-DD")),1)]),_:1})]),_:1}),o(q,{gutter:16},{default:r(()=>[o(u,{span:24},{default:r(()=>[o(m,{label:"\u9879\u76EE\u540D\u79F0",prop:"projectName"},{default:r(()=>[o(c,{modelValue:n.value.projectName,"onUpdate:modelValue":t[0]||(t[0]=d=>n.value.projectName=d),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),o(u,{span:24},{default:r(()=>[o(m,{label:"\u9879\u76EE\u7F16\u53F7",prop:"projectNo"},{default:r(()=>[o(c,{modelValue:n.value.projectNo,"onUpdate:modelValue":t[1]||(t[1]=d=>n.value.projectNo=d),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),o(u,{span:24},{default:r(()=>[o(m,{label:"\u9879\u76EE\u8D1F\u8D23\u4EBA",prop:"projectLeader"},{default:r(()=>[o(c,{modelValue:n.value.projectLeader,"onUpdate:modelValue":t[2]||(t[2]=d=>n.value.projectLeader=d),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["model-value"])}}});export{W as default};
|