TaskSystem/public/admin/assets/index.65608fee.js
2023-09-14 18:51:07 +08:00

2 lines
7.5 KiB
JavaScript

import{B as tt,C as et,M as ot,N as at,w as ut,D as lt,I as nt,O as st,P as rt,L as it,Q as pt}from"./element-plus.b64c0a90.js";import{_ as ct}from"./index.vue_vue_type_script_setup_true_lang.a080b28e.js";import{u as dt}from"./usePaging.2ad8e1e6.js";import{u as _t}from"./useDictOptions.99264916.js";import{e as mt,f as ft,g as Et,h as yt}from"./shop_contract.88c73cf1.js";import{d as L,$ as x,s as Ct,r as h,a4 as Bt,af as ht,o as l,c as d,U as e,L as o,u as a,T as S,a7 as Ft,K as r,R as i,M as f,a as D,S as vt,Q as P,k as I,bf as kt,be as bt}from"./@vue.51d7f2d8.js";import"./lodash.08438971.js";import{d as Dt}from"./index.f190d0dd.js";import{_ as gt}from"./edit.vue_vue_type_script_setup_true_name_shopContractEdit_lang.4fd48760.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.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"./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";import"./index.9561c5d9.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";const wt=F=>(kt("data-v-122d84f4"),F=F(),bt(),F),Vt={class:"mt-4"},At={key:0,style:{color:"#67c23a"}},xt={key:1,style:{color:"#fe0000"}},St={class:"flex mt-4 justify-end"},Pt=wt(()=>D("h1",null,"\u91CD\u8981\u63D0\u9192",-1)),It={key:0,class:"content"},Lt={key:1,class:"content"},Ut={class:"btn_menu"},$t=L({name:"shopContractLists"}),Nt=L({...$t,setup(F){const U=x([{id:"1",name:"\u5DF2\u7B7E\u7EA6"},{id:"0",name:"\u672A\u7B7E\u7EA6"}]),$=Ct(),g=h(!1),n=x({contract_no:"",party_a:"",party_b:"",check_status:"",status:""}),N=h([]),R=c=>{N.value=c.map(({id:u})=>u)},{dictData:M}=_t(""),{pager:E,getLists:y,resetParams:T,resetPage:q}=dt({fetchFun:yt,params:n}),z=c=>{mt({id:c.id}).then(u=>{O(u.url,"")})},O=(c,u)=>{let p=document.createElement("a");p.href=c,p.download=u,document.body.appendChild(p),p.click(),document.body.removeChild(p)},_=h(!1),v=h(!1),k=h(""),Q=c=>{_.value=!0,v.value=!0,k.value=c.party_b},b=()=>{_.value=!1,v.value=!1},j=async()=>{await ft({id:k.value}),y(),b()},K=async()=>{await Et({id:k.value}),y(),b()};return y(),(c,u)=>{const p=tt,C=et,Z=ot,G=at,s=ut,H=lt,w=nt,m=st,V=Bt("router-link"),J=rt,W=ct,X=it,B=ht("perms"),Y=pt;return l(),d("div",null,[e(w,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(H,{class:"mb-[-16px]",model:a(n),inline:""},{default:o(()=>[e(C,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no"},{default:o(()=>[e(p,{class:"w-[280px]",modelValue:a(n).contract_no,"onUpdate:modelValue":u[0]||(u[0]=t=>a(n).contract_no=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(C,{label:"\u7532\u65B9",prop:"party_a"},{default:o(()=>[e(p,{class:"w-[280px]",modelValue:a(n).party_a,"onUpdate:modelValue":u[1]||(u[1]=t=>a(n).party_a=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7532\u65B9"},null,8,["modelValue"])]),_:1}),e(C,{label:"\u4E59\u65B9",prop:"party_b"},{default:o(()=>[e(p,{class:"w-[280px]",modelValue:a(n).party_b,"onUpdate:modelValue":u[2]||(u[2]=t=>a(n).party_b=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4E59\u65B9"},null,8,["modelValue"])]),_:1}),e(C,{label:"\u7B7E\u7EA6\u72B6\u6001",prop:"status"},{default:o(()=>[e(G,{modelValue:a(n).status,"onUpdate:modelValue":u[3]||(u[3]=t=>a(n).status=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"},{default:o(()=>[(l(!0),d(S,null,Ft(a(U),t=>(l(),r(Z,{key:t.label,value:t.id,label:t.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(C,null,{default:o(()=>[e(s,{type:"primary",onClick:a(q)},{default:o(()=>[i("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(s,{onClick:a(T)},{default:o(()=>[i("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((l(),r(w,{class:"!border-none",shadow:"never"},{default:o(()=>[D("div",Vt,[e(J,{data:a(E).lists,onSelectionChange:R},{default:o(()=>[e(m,{label:"id",width:"100",prop:"id","show-overflow-tooltip":""}),e(m,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),e(m,{label:"\u7532\u65B9",prop:"party_a_name","show-overflow-tooltip":""}),e(m,{label:"\u4E59\u65B9",prop:"party_b_name","show-overflow-tooltip":""}),e(m,{label:"\u7B7E\u7EA6\u72B6\u6001",prop:"status","show-overflow-tooltip":""},{default:o(({row:t})=>[t.status?(l(),d("span",At,"\u5DF2\u7B7E\u7EA6")):(l(),d("span",xt,"\u672A\u7B7E\u7EA6"))]),_:1}),e(m,{label:"\u64CD\u4F5C",width:"220",fixed:"right"},{default:o(({row:t})=>[f((l(),r(s,{type:"primary",link:""},{default:o(()=>[e(V,{to:{path:"/contract/shop_contract_detail",query:{id:t.id}}},{default:o(()=>[i(vt(t.status?"\u8BE6\u60C5":"\u5BA1\u6838"),1)]),_:2},1032,["to"])]),_:2},1024)),[[B,["shop_contract/details"]]]),t.status==0?(l(),d(S,{key:0},[t.check_status==1?f((l(),r(s,{key:0,type:"warning",link:""},{default:o(()=>[e(V,{to:{path:"/contract/shop_contract_detail",query:{id:t.id}}},{default:o(()=>[i("\u5F85\u5BA1\u6838")]),_:2},1032,["to"])]),_:2},1024)),[[B,["shop_contract/details"]]]):t.check_status==2?f((l(),r(s,{key:1,type:"primary",link:"",onClick:A=>Q(t)},{default:o(()=>[i("\u53D1\u9001\u5408\u540C")]),_:2},1032,["onClick"])),[[B,["shop_contract/contract_send"]]]):t.check_status==3?f((l(),r(s,{key:2,type:"primary",link:"",onClick:A=>(_.value=!0,k.value=t.party_b)},{default:o(()=>[i("\u53D1\u9001\u77ED\u4FE1")]),_:2},1032,["onClick"])),[[B,["shop_contract/contract_send_again"]]]):P("",!0)],64)):f((l(),r(s,{key:1,type:"primary",link:"",onClick:A=>z(t)},{default:o(()=>[i(" \u4E0B\u8F7D\u8BC1\u636E\u5305 ")]),_:2},1032,["onClick"])),[[B,["shop_contract/evidence"]]])]),_:1})]),_:1},8,["data"])]),D("div",St,[e(W,{modelValue:a(E),"onUpdate:modelValue":u[4]||(u[4]=t=>I(E)?E.value=t:null),onChange:a(y)},null,8,["modelValue","onChange"])])]),_:1})),[[Y,a(E).loading]]),a(g)?(l(),r(gt,{key:0,ref_key:"editRef",ref:$,"dict-data":a(M),onSuccess:a(y),onClose:u[5]||(u[5]=t=>g.value=!1)},null,8,["dict-data","onSuccess"])):P("",!0),e(X,{modelValue:a(_),"onUpdate:modelValue":u[6]||(u[6]=t=>I(_)?_.value=t:null),onClose:b},{default:o(()=>[Pt,a(v)?(l(),d("div",It," \u8BF7\u786E\u8BA4\u4FE1\u606F\u662F\u5426\u6709\u8BEF,\u53D1\u9001\u5408\u540C,\u8BF7\u786E\u8BA4\u4FE1\u606F\u662F\u5426\u6709\u8BEF,\u53D1\u9001\u7535\u5B50\u5408\u540C\u540E\u77ED\u65F6\u95F4\u5185\u5C06\u4E0D\u53EF\u518D\u6B21\u53D1\u9001. ")):(l(),d("div",Lt," \u786E\u8BA4\u7B7E\u7EA6\u77ED\u4FE1\u5C06\u572860\u79D2\u540E\u53D1\u9001,\u8BF7\u6CE8\u610F\u67E5\u6536,\u5E76\u70B9\u51FB\u77ED\u4FE1\u94FE\u63A5\u8FDB\u884C\u7EBF\u4E0A\u5408\u540C\u7B7E\u7EA6 ")),D("p",Ut,[a(v)?(l(),r(s,{key:0,type:"primary",size:"large",onClick:j},{default:o(()=>[i("\u786E\u8BA4")]),_:1})):(l(),r(s,{key:1,type:"primary",size:"large",onClick:K},{default:o(()=>[i("\u786E\u8BA4")]),_:1})),e(s,{type:"info",size:"large",onClick:b},{default:o(()=>[i("\u8FD4\u56DE")]),_:1})])]),_:1},8,["modelValue"])])}}});const De=Dt(Nt,[["__scopeId","data-v-122d84f4"]]);export{De as default};