2 lines
7.4 KiB
JavaScript
2 lines
7.4 KiB
JavaScript
|
import{a6 as z,k as J,C as K,D as X,a2 as Y,a3 as Z,b as ee,H as te,I as ae,F as le}from"./element-plus.ff90c99c.js";import{P as oe}from"./index.422d920b.js";import{a as U}from"./examined.6bce4ae2.js";import"./lodash.3e731b89.js";import{d as T,r as k,s as R,$ as F,b as ue,o as _,c as y,W as e,Q as o,u as a,F as I,a9 as h,P as V,U as P,T as ne}from"./@vue.f8dfc830.js";import{d as re}from"./index.71302537.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";import"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";const se={class:"edit-popup"},de=["src"],pe=T({name:"flowEdit"}),me=T({...pe,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(ie,{expose:M,emit:v}){k(!1);const C=R(),b=R(),p=k("add"),B=F([7,6,8]),N=k("\u9500\u552E\u91D1\u989D"),O=ue(()=>p.value=="edit"?"\u5BA1\u6838":"\u8BE6\u60C5");k([{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 t=F({id:"",task:{},company_name:"",area_manager:"",check_status:1,remark:"",amount:"",type:-1}),j=F({check_status:[{required:!0,validator:(d,l,n)=>{l!=2&&l!=3?n("\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001"):n()},trigger:["blur"]}]}),q=async d=>{for(const l in t)d[l]!=null&&d[l]!=null&&(t[l]=d[l])},G=async d=>{},H=async()=>{var d,l;if(await((d=C.value)==null?void 0:d.validate()),t.check_status==3&&t.remark=="")return J.error("\u9A73\u56DE\u5FC5\u987B\u586B\u5199\u5907\u6CE8");B.includes(t.type)?await U({id:t.id,check_status:t.check_status,remark:t.remark,amount:t.amount}):await U({id:t.id,check_status:t.check_status,remark:t.remark}),(l=b.value)==null||l.close(),v("success")},L=(d="add")=>{var l;p.value=d,(l=b.value)==null||l.open()},Q=()=>{v("close")};return M({open:L,setFormData:q,getDetail:G}),(d,l)=>{const n=K,r=X,s=Y,c=Z,x=z,S=ee,D=te,W=ae,$=le;return _(),y("div",se,[e(oe,{ref_key:"popupRef",ref:b,title:a(O),async:!0,width:"800px",onConfirm:H,onClose:Q,button:a(p)=="edit",clickModalClose:a(p)=="details"},{default:o(()=>[e($,{ref_key:"formRef",ref:C,model:a(t),rules:a(j),"label-width":"120px"},{default:o(()=>[e(c,null,{default:o(()=>[e(s,{span:12},{default:o(()=>[e(r,{label:"ID",prop:"id"},{default:o(()=>[e(n,{readonly:"",modelValue:a(t).id,"onUpdate:modelValue":l[0]||(l[0]=u=>a(t).id=u)},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:12},{default:o(()=>[e(r,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"task.title"},{default:o(()=>[e(n,{readonly:"",modelValue:a(t).task.title,"onUpdate:modelValue":l[1]||(l[1]=u=>a(t).task.title=u)},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:12},{default:o(()=>[e(r,{label:"\u4EFB\u52A1\u91D1\u989D",prop:"task.money"},{default:o(()=>[e(n,{readonly:"",modelValue:a(t).task.money,"onUpdate:modelValue":l[2]||(l[2]=u=>a(t).task.money=u)},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:12},{default:o(()=>[e(r,{label:"\u6240\u5C5E\u516C\u53F8",prop:"company_name"},{default:o(()=>[e(n,{readonly:"",modelValue:a(t)
|