WokerTask/public/admin/assets/audit_town_market.612aac8b.js

2 lines
4.7 KiB
JavaScript
Raw Normal View History

2023-12-27 14:06:33 +08:00
import{k as P,C as T,a1 as U,a2 as z,b as G,G as $,H as j,B as q,D as H}from"./element-plus.10e48c93.js";import{P as J}from"./index.1f170085.js";import{a as L}from"./shareholdingReview.dbfedeaa.js";import{d as w,r as x,s as h,e as K,$ as d,o as f,c as k,U as e,L as t,u as a,a as y,S as b,R as _,O as Q}from"./@vue.51d7f2d8.js";import{d as W}from"./index.5b774352.js";import"./@vueuse.ec90c285.js";import"./@element-plus.c80b8015.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./lodash.08438971.js";import"./axios.105476b3.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.7ac6f233.js";import"./color.44a05936.js";import"./clone.0afcbf90.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.86067895.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.40d5feba.js";const X={class:"edit-popup"},Y={key:0},Z=w({name:"flowEdit"}),ee=w({...Z,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(te,{expose:B,emit:C}){x(!1);const v=h(),c=h(),r=x("add"),A=K(()=>r.value=="edit"?"\u5BA1\u6838":"\u8BE6\u60C5"),D=s=>{window.open(s,"_blank")},l=d({id:"",check_status:1,remark:"",company_a_name:"",company_b_name:""}),n=d({amount:"",annex:"",file_type:""}),g=d({check_status:[{required:!0,validator:(s,o,u)=>{o!=2&&o!=3?u("\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001"):u()},trigger:["blur"]}]}),R=async s=>{l.id=s.id;for(let o in n)n[o]=JSON.parse(s.extend)[o];l.company_a_name=s.company_a_name,l.company_b_name=s.company_b_name,r.value=="details"&&(l.check_status=s.check_status,l.remark=s.remark)},F=async()=>{var s,o;if(await((s=v.value)==null?void 0:s.validate()),l.check_status==3&&l.remark=="")return P.error("\u9A73\u56DE\u5FC5\u987B\u586B\u5199\u5907\u6CE8");await L({id:l.id,check_status:l.check_status,remark:l.remark}),(o=c.value)==null||o.close(),C("success")},V=(s="add")=>{var o;r.value=s,(o=c.value)==null||o.open()},I=()=>{C("close")};return B({open:V,setFormData:R}),(s,o)=>{const u=T,p=U,i=z,M=G,E=$,N=j,S=q,O=H;return f(),k("div",X,[e(J,{ref_key:"popupRef",ref:c,title:a(A),async:!0,width:"800px",onConfirm:F,onClose:I,button:a(r)=="edit",clickModalClose:a(r)=="details"},{default:t(()=>[e(O,{ref_key:"formRef",ref:v,model:a(l),rules:a(g),"label-width":"120px"},{default:t(()=>[e(i,null,{default:t(()=>[e(p,{span:24},{default:t(()=>[e(u,{label:"\u53C2\u80A1\u516C\u53F8:"},{default:t(()=>[y("div",null,b(a(l).company_b_name),1)]),_:1})]),_:1})]),_:1}),_(),e(i,null,{default:t(()=>[e(p,{span:24},{default:t(()=>[e(u,{label:"\u88AB\u53C2\u80A1\u516C\u53F8:"},{default:t(()=>[y("div",null,b(a(l).company_a_name),1)]),_:1})]),_:1})]),_:1}),_(),e(i,null,{default:t(()=>[e(p,{span:24},{default:t(()=>[e(u,{label:"\u91D1\u989D:"},{default:t(()=>[y("div",null,b(a(n).amount),1)]),_:1})]),_:1})]),_:1}),e(i,null,{default:t(()=>[e(p,{span:24},{default:t(()=>[e(u,{label:"\u5B8C\u6210\u51ED\u8BC1:"},{default:t(()=>[a(n).file_type=="image"?(f(),k("div",Y,[e(M,{style:{width:"100px",height:"100px"},src:a(n).annex,"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":[a(n).annex],fit:"cover"},null,8,["src","preview-src-list"])])):(f(),k("div",{key:1,style:{cursor:"pointer",color:"blue"},onClick:o[0]||(o[0]=m=>D(a(n).annex))}," \u67E5\u770B\u51ED\u8BC1"))]),_:1})]),_:1})]),_:1}),e(p,{span:12},{default:t(()=>[e(u,{label:"\u5BA1\u6838",prop:"check_status",clearable:"",style:{width:"100%"}},{default:t(()=>[e(N,{class:Q({disabled:a(r)=="details"}),modelValue:a(l).check_status,"onUpdate