data_center/public/admin/assets/audit_town_market.bb12a7bb.js

2 lines
6.4 KiB
JavaScript
Raw Normal View History

2023-11-25 16:06:28 +08:00
import{B as j,C as G,_ as L,$ as S,a4 as $,b as q,G as H,H as J,D as K,k as z}from"./element-plus.9c2fdfa8.js";import{P as Q}from"./index.6be73b2c.js";import{a as W}from"./examined.f08d1665.js";import"./lodash.47b8af7d.js";import{d as g,r as f,s as F,e as X,$ as k,o as b,c as v,U as e,L as l,u as o,T as Y,a7 as Z,K as ee,R as C}from"./@vue.53f8d7c3.js";import{d as te}from"./index.6e8143ba.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 ae={class:"edit-popup"},le=g({name:"flowEdit"}),oe=g({...le,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(ue,{expose:w,emit:A}){f(!1);const E=A,y=F(),_=F(),p=f("add"),D=X(()=>p.value=="edit"?"\u5BA1\u6838":"\u8BE6\u60C5");f([{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=k({id:"",task:{extend:[]},company_name:"",area_manager:"",check_status:1,remark:""}),m=k({remark:"",file:[]}),R=k({check_status:[{required:!0,validator:(r,t,n)=>{t!=2&&t!=3?n("\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001"):n()},trigger:["blur"]}]}),U=async r=>{var t,n;typeof r.extend=="string"&&(r.extend=JSON.parse(r.extend));for(const s in a)r[s]!=null&&r[s]!=null&&(a[s]=r[s]);if((n=(t=a.task)==null?void 0:t.extend)!=null&&n.stage)switch(+a.task.extend.stage){case 1:i(a.task.extend.stage1);break;case 2:i(a.task.extend.stage2);break;case 3:i(a.task.extend.stage3);break;case 4:i(a.task.extend.stage4);break}},i=r=>{Object.keys(m).forEach(t=>{r[t]!=null&&r[t]!=null&&(m[t]=r[t])})},I=async r=>{},T=async()=>{var r,t;if(await((r=y.value)==null?void 0:r.validate()),a.check_status==3&&a.remark=="")return z.error("\u9A73\u56DE\u5FC5\u987B\u586B\u5199\u5907\u6CE8");await W({id:a.id,check_status:a.check_status,remark:a.remark}),(t=_.value)==null||t.close(),E("success")},M=(r="add")=>{var t;p.value=r,(t=_.value)==null||t.open()},h=()=>{E("close")};return w({open:M,setFormData:U,getDetail:I}),(r,t)=>{const n=j,s=G,d=L,c=S,V=$,N=q,x=H,O=J,P=K;return b(),v("div",ae,[e(Q,{ref_key:"popupRef",ref:_,title:o(D),async:!0,width:"800px",onConfirm:T,onClose:h,button:o(p)=="edit",clickModalClose:o(p)=="details"},{default:l(()=>[e(P,{ref_key:"formRef",ref:y,model:o(a),rules:o(R),"label-width":"120px"},{default:l(()=>[e(c,null,{default:l(()=>[e(d,{span:12},{default:l(()=>[e(s,{label:"ID",prop:"id"},{default:l(()=>[e(n,{readonly:"",modelValue:o(a).id,"onUpdate:modelValue":t[0]||(t[0]=u=>o(a).id=u)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:l(()=>[e(s,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"task.title"},{default:l(()=>[e(n,{readonly:"",modelValue:o(a).task.title,"onUpdate:modelValue":t[1]||(t[1]=u=>o(a).task.title=u)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:l(()=>[e(s,{label:"\u4EFB\u52A1\u91D1\u989D",prop:"task.money"},{default:l(()=>[e(n,{readonly:"",modelValue:o(a).task.money,"onUpdate:modelValue":t[2]||(t[2]=u=>o(a).task.money=u)},null,8,["modelValue"])]),_:1