TaskSystem/public/admin/assets/index.c83c9441.js
2023-09-15 15:27:32 +08:00

2 lines
8.2 KiB
JavaScript

import{B as oe,C as ae,M as ue,N as le,w as ne,D as se,I as re,O as pe,P as ie,L as ce,Q as de}from"./element-plus.49ac63ff.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang.59a38f61.js";import{u as _e}from"./vue-router.9f65afb1.js";import{u as fe}from"./usePaging.2ad8e1e6.js";import{u as ye}from"./useDictOptions.d0e5f6fc.js";import{d as Ee,e as Ce}from"./contract.1819844c.js";import{d as R,s as Be,r as _,$ as N,a4 as Fe,af as ve,o as l,c as m,U as t,L as o,u as a,T as g,a7 as $,K as d,R as p,M as D,a as E,S as w,Q as be,k as M,bf as ke,be as he}from"./@vue.51d7f2d8.js";import"./lodash.08438971.js";import{d as ge}from"./index.e06d2f61.js";import{d as De}from"./dict.4464cc8a.js";import{g as we,s as Ve}from"./company.55cc3a3e.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"./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 Ae=F=>(ke("data-v-3f3ad34d"),F=F(),he(),F),xe={class:"mt-4"},Pe={key:0,style:{color:"#67c23a"}},Se={key:1,style:{color:"#fe0000"}},Ie={class:"flex mt-4 justify-end"},Le=Ae(()=>E("h1",null,"\u91CD\u8981\u63D0\u9192",-1)),Ue={key:0,class:"content"},qe={key:1,class:"content"},Ne={class:"btn_menu"},$e=R({name:"contractLists"}),Me=R({...$e,setup(F){var x;const V=_e();Be(),_(!1);const A=_([]),f=_(!1),v=_(!1),b=_(""),T=s=>{f.value=!0,v.value=!0,b.value=s.party_b},k=()=>{f.value=!1,v.value=!1},z=async()=>{await we({id:b.value}),h(),k()},O=async()=>{await Ve({id:b.value}),h(),k()},n=N({company_id:"",contract_type:"",contract_no:"",status:"",party_a:"",party_b:"",area_manager:"",type:""}),Q=N([{id:"1",name:"\u5DF2\u7B7E\u7EA6"},{id:"0",name:"\u672A\u7B7E\u7EA6"}]);V.query.type&&(n.type=(x=V.query.type)==null?void 0:x.toString());const j=_([]),G=s=>{j.value=s.map(({id:u})=>u)};ye(""),De({type_id:7}).then(s=>{A.value=s.lists});const{pager:C,getLists:h,resetParams:K,resetPage:Z}=fe({fetchFun:Ce,params:n});_();const H=s=>{Ee({id:s.id}).then(u=>{J(u.url,"")})},J=(s,u)=>{let i=document.createElement("a");i.href=s,i.download=u,document.body.appendChild(i),i.click(),document.body.removeChild(i)};return h(),(s,u)=>{const i=oe,y=ae,P=ue,S=le,r=ne,W=se,I=re,c=pe,L=Fe("router-link"),X=ie,Y=me,ee=ce,U=ve("perms"),te=de;return l(),m("div",null,[t(I,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[t(W,{class:"mb-[-16px]",model:a(n),inline:""},{default:o(()=>[t(y,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_id"},{default:o(()=>[t(i,{class:"w-[280px]",modelValue:a(n).company_id,"onUpdate:modelValue":u[0]||(u[0]=e=>a(n).company_id=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8"},null,8,["modelValue"])]),_:1}),t(y,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type"},{default:o(()=>[t(S,{modelValue:a(n).contract_type,"onUpdate:modelValue":u[1]||(u[1]=e=>a(n).contract_type=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7C7B\u578B"},{default:o(()=>[(l(!0),m(g,null,$(a(A),e=>(l(),d(P,{key:e.label,value:e.id,label:e.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(y,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no"},{default:o(()=>[t(i,{class:"w-[280px]",modelValue:a(n).contract_no,"onUpdate:modelValue":u[2]||(u[2]=e=>a(n).contract_no=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),t(y,{label:"\u72B6\u6001",prop:"status"},{default:o(()=>[t(S,{modelValue:a(n).status,"onUpdate:modelValue":u[3]||(u[3]=e=>a(n).status=e),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"},{default:o(()=>[(l(!0),m(g,null,$(a(Q),e=>(l(),d(P,{key:e.label,value:e.id,label:e.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(y,{label:"\u7532\u65B9\u7247\u533A\u7ECF\u7406",prop:"area_manager"},{default:o(()=>[t(i,{class:"w-[280px]",modelValue:a(n).area_manager,"onUpdate:modelValue":u[4]||(u[4]=e=>a(n).area_manager=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7532\u65B9\u7247\u533A\u7ECF\u7406"},null,8,["modelValue"])]),_:1}),t(y,null,{default:o(()=>[t(r,{type:"primary",onClick:a(Z)},{default:o(()=>[p("\u67E5\u8BE2")]),_:1},8,["onClick"]),t(r,{onClick:a(K)},{default:o(()=>[p("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),D((l(),d(I,{class:"!border-none",shadow:"never"},{default:o(()=>[E("div",xe,[t(X,{data:a(C).lists,onSelectionChange:G},{default:o(()=>[t(c,{label:"id",prop:"id","show-overflow-tooltip":""}),t(c,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type_name","show-overflow-tooltip":""}),t(c,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),t(c,{label:"\u7532\u65B9",prop:"party_a_name","show-overflow-tooltip":""},{default:o(e=>{var B,q;return[E("span",null,w((q=(B=e.row)==null?void 0:B.party_a_info)==null?void 0:q.company_name),1)]}),_:1}),t(c,{label:"\u4E59\u65B9",prop:"party_b_name","show-overflow-tooltip":""}),t(c,{label:"\u7532\u65B9\u7247\u533A\u7ECF\u7406",prop:"area_manager_name","show-overflow-tooltip":""}),t(c,{label:"\u7C7B\u578B",prop:"type","show-overflow-tooltip":""},{default:o(e=>[E("span",null,w(e.row.type==1?"\u516C\u53F8":e.row.type==0?"":"\u4E2A\u4EBA"),1)]),_:1}),t(c,{label:"\u72B6\u6001",prop:"status_name","show-overflow-tooltip":""},{default:o(e=>[e.row.status_name=="\u5DF2\u7B7E\u7EA6"?(l(),m("span",Pe,"\u5DF2\u7B7E\u7EA6")):(l(),m("span",Se,"\u672A\u7B7E\u7EA6"))]),_:1}),t(c,{label:"\u64CD\u4F5C",width:"180",fixed:"right",align:"center"},{default:o(({row:e})=>[t(r,{type:"primary",link:""},{default:o(()=>[t(L,{to:{path:"/contract/detail",query:{id:e.id}}},{default:o(()=>[p(w(e.status?"\u8BE6\u60C5":"\u5BA1\u6838"),1)]),_:2},1032,["to"])]),_:2},1024),e.status==0?(l(),m(g,{key:0},[e.check_status==1?(l(),d(r,{key:0,type:"warning",link:""},{default:o(()=>[t(L,{to:{path:"/contract/detail",query:{id:e.id}}},{default:o(()=>[p("\u5F85\u5BA1\u6838")]),_:2},1032,["to"])]),_:2},1024)):e.check_status==2?D((l(),d(r,{key:1,type:"primary",link:"",onClick:B=>T(e)},{default:o(()=>[p("\u53D1\u9001\u5408\u540C")]),_:2},1032,["onClick"])),[[U,["contract.contract/contract_send"]]]):e.check_status==3?D((l(),d(r,{key:2,type:"primary",link:"",onClick:B=>(f.value=!0,b.value=e.party_b)},{default:o(()=>[p("\u53D1\u9001\u77ED\u4FE1")]),_:2},1032,["onClick"])),[[U,["contract.contract/contract_send_again"]]]):be("",!0)],64)):(l(),d(r,{key:1,type:"primary",link:"",onClick:B=>H(e)},{default:o(()=>[p(" \u4E0B\u8F7D\u8BC1\u636E\u5305 ")]),_:2},1032,["onClick"]))]),_:1})]),_:1},8,["data"])]),E("div",Ie,[t(Y,{modelValue:a(C),"onUpdate:modelValue":u[5]||(u[5]=e=>M(C)?C.value=e:null),onChange:a(h)},null,8,["modelValue","onChange"])])]),_:1})),[[te,a(C).loading]]),t(ee,{modelValue:a(f),"onUpdate:modelValue":u[6]||(u[6]=e=>M(f)?f.value=e:null),onClose:k},{default:o(()=>[Le,a(v)?(l(),m("div",Ue," \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(),m("div",qe," \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 ")),E("p",Ne,[a(v)?(l(),d(r,{key:0,type:"primary",size:"large",onClick:z},{default:o(()=>[p("\u786E\u8BA4")]),_:1})):(l(),d(r,{key:1,type:"primary",size:"large",onClick:O},{default:o(()=>[p("\u786E\u8BA4")]),_:1})),t(r,{type:"info",size:"large",onClick:k},{default:o(()=>[p("\u8FD4\u56DE")]),_:1})])]),_:1},8,["modelValue"])])}}});const Dt=ge(Me,[["__scopeId","data-v-3f3ad34d"]]);export{Dt as default};