WokerTask/public/admin/assets/index_list_popup.b5563261.js

2 lines
6.7 KiB
JavaScript
Raw Normal View History

2023-12-29 18:51:22 +08:00
import{a6 as Q,k as S,C as W,D as $,a2 as z,a3 as J,b as K,H as X,I as Y,F as Z}from"./element-plus.ff90c99c.js";import{P as ee}from"./index.6e7b2ec9.js";import{a as te}from"./examined.f0595c99.js";import"./lodash.ffb5376d.js";import{d as h,r as b,s as w,b as ae,$ as D,o as _,c as f,W as e,Q as a,u as o,F as g,a9 as U,P as le,U as R}from"./@vue.f8dfc830.js";import{d as oe}from"./index.9acc1fa4.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.f9df025a.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.d1ea016b.js";import"./color.992612d2.js";import"./clone.d8d3ae9a.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.4e7fd6e6.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 ue={class:"edit-popup"},re=["src"],ne=h({name:"flowEdit"}),se=h({...ne,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(pe,{expose:I,emit:F}){b(!1);const V=w(),k=w(),i=b("add"),M=ae(()=>i.value=="edit"?"\u5BA1\u6838":"\u8BE6\u60C5");b([{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:""}),P=D({check_status:[{required:!0,validator:(p,t,r)=>{t!=2&&t!=3?r("\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001"):r()},trigger:["blur"]}]}),N=async p=>{for(const t in l)p[t]!=null&&p[t]!=null&&(l[t]=p[t])},T=async p=>{},j=async()=>{var p,t;if(await((p=V.value)==null?void 0:p.validate()),l.check_status==3&&l.remark=="")return S.error("\u9A73\u56DE\u5FC5\u987B\u586B\u5199\u5907\u6CE8");await te({id:l.id,check_status:l.check_status,remark:l.remark}),(t=k.value)==null||t.close(),F("success")},q=(p="add")=>{var t;i.value=p,(t=k.value)==null||t.open()},G=()=>{F("close")};return I({open:q,setFormData:N,getDetail:T}),(p,t)=>{const r=W,n=$,s=z,y=J,v=Q,H=K,x=X,L=Y,O=Z;return _(),f("div",ue,[e(ee,{ref_key:"popupRef",ref:k,title:o(M),async:!0,width:"800px",onConfirm:j,onClose:G,button:o(i)=="edit",clickModalClose:o(i)=="details"},{default:a(()=>[e(O,{ref_key:"formRef",ref:V,model:o(l),rules:o(P),"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\u