2 lines
6.6 KiB
JavaScript
2 lines
6.6 KiB
JavaScript
|
import{B as K,C as S,_ as z,$ as J,a4 as Q,b as W,G as X,H as Y,D as Z,k as ee}from"./element-plus.9c2fdfa8.js";import{P as te}from"./index.3fc23cf2.js";import{a as ae}from"./examined.451b6d37.js";import"./lodash.5512e984.js";import{d as h,r as V,s as w,e as le,$ as D,o as _,c as f,U as e,L as a,u as o,T as g,a7 as R,K as oe,R as U}from"./@vue.53f8d7c3.js";import{d as ue}from"./index.b57b84f0.js";import"./@vueuse.038954e7.js";import"./@element-plus.37f92579.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.vue_vue_type_style_index_0_scoped_187b1ead_lang.33043b78.js";import"./axios.92474d72.js";import"./vue-router.e2f4a118.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ee641d3d.js";import"./color.cbc2f3a9.js";import"./clone.7fddbad2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a7d78d4d.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.9cf3e967.js";const re={class:"edit-popup"},ne=["src"],se=h({name:"flowEdit"}),de=h({...se,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(pe,{expose:I,emit:M}){V(!1);const F=M,b=w(),k=w(),i=V("add"),P=le(()=>i.value=="edit"?"\u5BA1\u6838":"\u8BE6\u60C5");V([{content:"\u4EFB\u52A1\u5B8C\u6210",timestamp:"2023-8-28 13:30:00"},{content:"\u5F20\u4E09\u4E09\u5BA1\u6838",timestamp:"2023-8-28 13:30:00"},{content:"\u674E\u601D\u601D\u5BA1\u6838",timestamp:"2023-8-28 13:30:00",type:"primary",hollow:!0}]);const l=D({id:"",task:{},company_name:"",area_manager:"",check_status:1,remark:""}),T=D({check_status:[{required:!0,validator:(d,t,r)=>{t!=2&&t!=3?r("\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001"):r()},trigger:["blur"]}]}),G=async d=>{for(const t in l)d[t]!=null&&d[t]!=null&&(l[t]=d[t])},L=async d=>{},N=async()=>{var d,t;if(await((d=b.value)==null?void 0:d.validate()),l.check_status==3&&l.remark=="")return ee.error("\u9A73\u56DE\u5FC5\u987B\u586B\u5199\u5907\u6CE8");await ae({id:l.id,check_status:l.check_status,remark:l.remark}),(t=k.value)==null||t.close(),F("success")},O=(d="add")=>{var t;i.value=d,(t=k.value)==null||t.open()},$=()=>{F("close")};return I({open:O,setFormData:G,getDetail:L}),(d,t)=>{const r=K,n=S,s=z,y=J,v=Q,j=W,C=X,q=Y,H=Z;return _(),f("div",re,[e(te,{ref_key:"popupRef",ref:k,title:o(P),async:!0,width:"800px",onConfirm:N,onClose:$,button:o(i)=="edit",clickModalClose:o(i)=="details"},{default:a(()=>[e(H,{ref_key:"formRef",ref:b,model:o(l),rules:o(T),"label-width":"120px"},{default:a(()=>[e(y,null,{default:a(()=>[e(s,{span:12},{default:a(()=>[e(n,{label:"ID",prop:"id"},{default:a(()=>[e(r,{readonly:"",modelValue:o(l).id,"onUpdate:modelValue":t[0]||(t[0]=u=>o(l).id=u)},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:12},{default:a(()=>[e(n,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"task.title"},{default:a(()=>[e(r,{readonly:"",modelValue:o(l).task.title,"onUpdate:modelValue":t[1]||(t[1]=u=>o(l).task.title=u)},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:12},{default:a(()=>[e(n,{label:"\u4EFB\u52A1\u91D1\u989D",prop:"task.money"},{default:a(()=>[e(r,{readonly:"",modelValue:o(l).task.money,"onUpdate:modelValue":t[2]||(t[2]=u=>o(l).task.money=u)},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:12},{default:a(()=>[e(n,{label:"\u6240\u5C5E\u516C\u53F8",prop:"company_name"},{default:a(()=>[e(r,{readonly:"",modelValue:o(l).company_name,"onUpdate:modelValue":t[3]||(t[3]=u=>o(l).company_name=u)},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:24},{default:a(()=>[e(n,{label:"\u4EFB\u52A1\u63CF\u8FF0",prop:"task.content"},{default:a(()=>[e(r,{readonly:"",model
|