WokerTask/public/admin/assets/vehicle_list.c3f0b5d3.js

2 lines
7.9 KiB
JavaScript
Raw Normal View History

2024-01-16 16:29:09 +08:00
import{C as Z,D as ee,N as te,O as ue,w as oe,F as ae,P as ne,Q as le,J as se,M as re,R as ie}from"./element-plus.ff90c99c.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import{u as pe}from"./usePaging.bd7a7dec.js";import{u as de}from"./useDictOptions.15bfecbd.js";import{g as me}from"./contract.dfe58a77.js";import{r as N,f as _e,d as fe}from"./index.87cea444.js";import{d as U,r as g,$ as Fe,ag as Ce,aq as Ee,o as s,c as D,R as b,u as n,P as d,Q as u,W as t,U as r,a as E,V as h,L as ve,T as v,j as S,bg as ye,bf as Be}from"./@vue.f8dfc830.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./lodash.3e731b89.js";import"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.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.79024f1a.js";function ge(p){return N.post({url:"/contract.VehicleContract/initiatingRentCarContract",params:p})}function De(p){return N.post({url:"/contract.contract/sendSmsAgain",params:p})}const be=p=>(ye("data-v-aecaad78"),p=p(),Be(),p),he={class:"mt-4"},ke=["href"],Ae={class:"flex justify-end mt-4"},Ve=be(()=>E("h1",null,"\u91CD\u8981\u63D0\u9192",-1)),xe={key:0,class:"content"},we={key:1,class:"content"},Ie={class:"btn_menu"},Pe=U({name:"flowTypeLists"}),Se=U({...Pe,setup(p){const m=g(0);var F=0;const _=g(!1),y=g(!1),q=()=>{De({id:F}).then(a=>{var o=l.lists.findIndex(function(C){return C.id===F});y.value=!0,m.value=o,l.lists[m.value].nums=10,k(m.value)})},k=a=>{const o=setInterval(()=>{l.lists[a].nums--,l.lists[a].nums<=0&&clearInterval(o)},1e3)},L=a=>{_.value=!0,y.value=!1,F=a},T=a=>{_.value=!0,F=a},$=()=>{ge({id:F}).then(a=>{_e.msgSuccess("\u53D1\u9001\u6210\u529F");var o=l.lists.findIndex(function(C){return C.id===F});m.value=o,_.value=!1,l.lists[m.value].status=2,l.lists[m.value].nums=10,k(m.value)})},A=()=>{_.value=!1},f=Fe({company_name:"",contract_no:"",status:""}),V=a=>{switch(a){case-1:return{tit:"\u5F85\u5BA1\u6838",color:"black"};case 0:return{tit:"\u5F85\u4E0A\u4F20",color:"rgb(238, 190, 119)"};case 1:return{tit:"\u5DF2\u4E0A\u4F20",color:"rgb(103, 194, 58)"};case 2:return{tit:"\u7B7E\u7EA6\u4E2D",color:"red"};case 3:return{tit:"\u5DF2\u7B7E\u7EA6",color:"rgb(103, 194, 58)"}}},z=a=>{switch(a){case 0:return"\u79DF\u8D41\u5408\u540C";case 1:return"\u81EA\u6709\u8F66\u8F86\u5408\u540C";case 2:return"\u89E3\u9664\u5408\u540C";case 3:return"\u8D2D\u4E70\u5408\u540C"}},R=g([]),O=a=>{R.value=a.map(({id:o})=>o)};de("");const{pager:l,getLists:x,resetParams:j,resetPage:J}=pe({fetchFun:me,params:f});return x(),(a,o)=>{const C=Z,B=ee,w=te,M=ue,i=oe,Q=ae,c=ne,I=Ce("router-link"),W=le,G=ce,H=se,K=re,P=Ee("perms"),X=ie;return s(),D("div",null,[b((s(),d(H,{class:"!border-none",shadow:"never"},{default:u(()=>[t(Q,{class:"mb-[-16px]",inline:""},{default:u(()=>[t(B,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name"},{default:u(()=>[t(C,{class:"w-[280px]",modelValue:n(f).company_name,"onUpdate:modelValue":o[0]||(o[0]=e=>n(f).company_name=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(B,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no"},{default:u(()=>[t(C,{class:"w-[280px]",modelValue:n(f).contract_no,"onUpdate:modelValue":o[1]