data_center/public/admin/assets/index_list_popup.b63f78bd.js

2 lines
6.6 KiB
JavaScript

import{B as O,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.da6dd366.js";import{a as le}from"./examined.727b963f.js";import"./lodash.47b8af7d.js";import{d as h,r as b,s as w,e as ae,$ as D,o as _,c as f,U as e,L as l,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.5be037e5.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.96be3cef.js";import"./vue-router.e2f4a118.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.efc99072.js";import"./color.e83714e9.js";import"./clone.fb54e01d.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.b4b577c6.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}){b(!1);const V=M,F=w(),k=w(),i=b("add"),T=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 a=D({id:"",task:{},company_name:"",area_manager:"",check_status:1,remark:""}),G=D({check_status:[{required:!0,validator:(d,t,r)=>{t!=2&&t!=3?r("\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001"):r()},trigger:["blur"]}]}),L=async d=>{for(const t in a)d[t]!=null&&d[t]!=null&&(a[t]=d[t])},N=async d=>{},P=async()=>{var d,t;if(await((d=F.value)==null?void 0:d.validate()),a.check_status==3&&a.remark=="")return ee.error("\u9A73\u56DE\u5FC5\u987B\u586B\u5199\u5907\u6CE8");await le({id:a.id,check_status:a.check_status,remark:a.remark}),(t=k.value)==null||t.close(),V("success")},$=(d="add")=>{var t;i.value=d,(t=k.value)==null||t.open()},j=()=>{V("close")};return I({open:$,setFormData:L,getDetail:N}),(d,t)=>{const r=O,n=S,s=z,y=J,v=Q,q=W,x=X,H=Y,K=Z;return _(),f("div",re,[e(te,{ref_key:"popupRef",ref:k,title:o(T),async:!0,width:"800px",onConfirm:P,onClose:j,button:o(i)=="edit",clickModalClose:o(i)=="details"},{default:l(()=>[e(K,{ref_key:"formRef",ref:F,model:o(a),rules:o(G),"label-width":"120px"},{default:l(()=>[e(y,null,{default:l(()=>[e(s,{span:12},{default:l(()=>[e(n,{label:"ID",prop:"id"},{default:l(()=>[e(r,{readonly:"",modelValue:o(a).id,"onUpdate:modelValue":t[0]||(t[0]=u=>o(a).id=u)},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:12},{default:l(()=>[e(n,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"task.title"},{default:l(()=>[e(r,{readonly:"",modelValue:o(a).task.title,"onUpdate:modelValue":t[1]||(t[1]=u=>o(a).task.title=u)},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:12},{default:l(()=>[e(n,{label:"\u4EFB\u52A1\u91D1\u989D",prop:"task.money"},{default:l(()=>[e(r,{readonly:"",modelValue:o(a).task.money,"onUpdate:modelValue":t[2]||(t[2]=u=>o(a).task.money=u)},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:12},{default:l(()=>[e(n,{label:"\u6240\u5C5E\u516C\u53F8",prop:"company_name"},{default:l(()=>[e(r,{readonly:"",modelValue:o(a).company_name,"onUpdate:modelValue":t[3]||(t[3]=u=>o(a).company_name=u)},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:24},{default:l(()=>[e(n,{label:"\u4EFB\u52A1\u63CF\u8FF0",prop:"task.content"},{default:l(()=>[e(r,{readonly:"",modelValue:o(a).task.content,"onUpdate:modelValue":t[4]||(t[4]=u=>o(a).task.content=u),clearable:"",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:12},{default:l(()=>[e(n,{label:"\u4EFB\u52A1\u63D0\u4EA4\u65F6\u95F4",prop:"id"},{default:l(()=>[e(r,{readonly:"",modelValue:o(a).task.update_time,"onUpdate:modelValue":t[5]||(t[5]=u=>o(a).task.update_time=u)},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:12},{default:l(()=>[e(n,{label:"\u7247\u533A\u7ECF\u7406",prop:"flow_cate"},{default:l(()=>[e(r,{readonly:"",modelValue:o(a).area_manager,"onUpdate:modelValue":t[6]||(t[6]=u=>o(a).area_manager=u)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(v),e(y,null,{default:l(()=>[e(s,{span:24},{default:l(()=>[e(n,{label:"\u8BE6\u60C5\u63CF\u8FF0",prop:"remark"},{default:l(()=>{var u,p,m;return[e(r,{readonly:"",value:(m=(p=(u=o(a).task)==null?void 0:u.extend)==null?void 0:p.other)==null?void 0:m.note,clearable:"",type:"textarea"},null,8,["value"])]}),_:1})]),_:1}),e(s,{span:24},{default:l(()=>[e(n,{label:"\u56FE\u7247\u9644\u4EF6"},{default:l(()=>{var u,p,m;return[(_(!0),f(g,null,R((m=(p=(u=o(a).task)==null?void 0:u.extend)==null?void 0:p.other)==null?void 0:m.annex,(E,c)=>{var C,B,A;return _(),oe(q,{class:"attachment",key:c,src:E,"preview-src-list":(A=(B=(C=o(a).task)==null?void 0:C.extend)==null?void 0:B.other)==null?void 0:A.annex,"initial-index":c,fit:"cover"},null,8,["src","preview-src-list","initial-index"])}),128))]}),_:1})]),_:1}),e(s,{span:24},{default:l(()=>[e(n,{label:"\u89C6\u9891\u9644\u4EF6"},{default:l(()=>{var u,p,m;return[(_(!0),f(g,null,R((m=(p=(u=o(a).task)==null?void 0:u.extend)==null?void 0:p.other)==null?void 0:m.video_annex,(E,c)=>(_(),f("video",{class:"video",src:E,key:c,controls:""},null,8,ne))),128))]}),_:1})]),_:1})]),_:1}),e(v),e(s,{span:12},{default:l(()=>[e(n,{label:"\u5BA1\u6838",prop:"check_status",clearable:"",style:{width:"100%"}},{default:l(()=>[e(H,{disabled:o(i)=="details",modelValue:o(a).check_status,"onUpdate:modelValue":t[7]||(t[7]=u=>o(a).check_status=u)},{default:l(()=>[e(x,{label:2},{default:l(()=>[U("\u901A\u8FC7")]),_:1}),e(x,{label:3},{default:l(()=>[U("\u9A73\u56DE")]),_:1})]),_:1},8,["disabled","modelValue"])]),_:1})]),_:1}),e(y,null,{default:l(()=>[e(s,null,{default:l(()=>[e(n,{label:"\u5907\u6CE8",prop:"remark"},{default:l(()=>[e(r,{readonly:o(i)=="details",modelValue:o(a).remark,"onUpdate:modelValue":t[8]||(t[8]=u=>o(a).remark=u),clearable:"",type:"textarea"},null,8,["readonly","modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","button","clickModalClose"])])}}});const Qe=ue(de,[["__scopeId","data-v-e5b771eb"]]);export{Qe as default};