WokerTask/public/admin/assets/index.34834675.js

2 lines
8.3 KiB
JavaScript
Raw Normal View History

2023-12-27 14:06:33 +08:00
import{B as oe,C as ue,M as le,N as ne,w as se,D as re,I as pe,O as ie,P as ce,L as de,Q as _e}from"./element-plus.9816852d.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang.f99137a4.js";import{u as fe}from"./vue-router.9f65afb1.js";import{u as ye}from"./usePaging.2ad8e1e6.js";import{u as Ee}from"./useDictOptions.da699b22.js";import{d as Ce,e as Be}from"./contract.6ef39b51.js";import{d as T,s as Fe,r as _,$,a4 as ve,af as be,o as l,c as m,U as t,L as a,u as o,T as D,a7 as M,K as d,R as p,M as w,a as E,S as V,Q as ke,k as R,bf as he,be as ge}from"./@vue.51d7f2d8.js";import"./lodash.675f209e.js";import{d as De}from"./index.fdc772f5.js";import{d as we}from"./dict.3a310f15.js";import{f as Ve,s as Ae}from"./company.7379ac7d.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.js";import"./lodash-es.29c53eac.js";import"./dayjs.576af3ba.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./axios.54f807ba.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.0a5c0f85.js";import"./color.e5eb3bba.js";import"./clone.546d9b81.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.aee266dc.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 xe=F=>(he("data-v-4a76ea26"),F=F(),ge(),F),Pe={class:"mt-4"},Se={key:0,style:{color:"#67c23a"}},Le={key:1,style:{color:"#fe0000"}},Ue={class:"flex mt-4 justify-end"},Ie=xe(()=>E("h1",null,"\u91CD\u8981\u63D0\u9192",-1)),qe={key:0,class:"content"},Ne={key:1,class:"content"},$e={class:"btn_menu"},Me=T({name:"contractLists"}),Re=T({...Me,setup(F){var P;const A=fe();Fe(),_(!1);const x=_([]),f=_(!1),v=_(!1),b=_(""),k=_(""),z=s=>{f.value=!0,v.value=!0,b.value=s.id,k.value=s.party_b},h=()=>{f.value=!1,v.value=!1},O=async()=>{await Ve({id:k.value,contract_id:b.value}),g(),h()},Q=async()=>{await Ae({id:k.value,contract_id:b.value}),g(),h()},n=$({company_id:"",contract_type:"",contract_no:"",status:"",party_a:"",party_b:"",area_manager:"",type:""}),j=$([{id:"1",name:"\u5DF2\u7B7E\u7EA6"},{id:"0",name:"\u672A\u7B7E\u7EA6"}]);A.query.type&&(n.type=(P=A.query.type)==null?void 0:P.toString());const G=_([]),K=s=>{G.value=s.map(({id:u})=>u)};Ee(""),we({type_id:7}).then(s=>{x.value=s.lists});const{pager:C,getLists:g,resetParams:Z,resetPage:H}=ye({fetchFun:Be,params:n});_();const J=s=>{Ce({id:s.id}).then(u=>{W(u.url,"")})},W=(s,u)=>{let i=document.createElement("a");i.href=s,i.download=u,document.body.appendChild(i),i.click(),document.body.removeChild(i)};return g(),(s,u)=>{const i=oe,y=ue,S=le,L=ne,r=se,X=re,U=pe,c=ie,I=ve("router-link"),Y=ce,ee=me,te=de,q=be("perms"),ae=_e;return l(),m("div",null,[t(U,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[t(X,{class:"mb-[-16px]",model:o(n),inline:""},{default:a(()=>[t(y,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_id"},{default:a(()=>[t(i,{class:"w-[280px]",modelValue:o(n).company_id,"onUpdate:modelValue":u[0]||(u[0]=e=>o(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:a(()=>[t(L,{modelValue:o(n).contract_type,"onUpdate:modelValue":u[1]||(u[1]=e=>o(n).contract_type=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7C7B\u578B"},{default:a(()=>[(l(!0),m(D,null,M(o(x),e=>(l(),d(S,{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:a(()=>[t(i,{class:"w-[280px]",modelValue:o(n).contract_no,"onUpdate:modelValue":u[2]||(u[2]=e=>o(n).contract_no