2 lines
7.8 KiB
JavaScript
2 lines
7.8 KiB
JavaScript
|
import{B as Z,C as tt,M as et,N as ut,w as ot,D as at,O as nt,P as lt,I as st,L as rt,Q as it}from"./element-plus.9816852d.js";import{_ as ct}from"./index.vue_vue_type_script_setup_true_lang.f99137a4.js";import{u as pt}from"./usePaging.2ad8e1e6.js";import{u as dt}from"./useDictOptions.da699b22.js";import{g as mt}from"./contract.6ef39b51.js";import{r as L,f as _t,d as ft}from"./index.fdc772f5.js";import{d as N,r as B,$ as Ft,a4 as Ct,af as Et,o as s,c as D,M as h,u as n,K as d,L as u,U as e,R as r,a as E,S as b,_ as vt,Q as v,k as P,bf as yt,be as Bt}from"./@vue.51d7f2d8.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"./lodash.675f209e.js";import"./axios.54f807ba.js";import"./vue-router.9f65afb1.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";function gt(p){return L.post({url:"/contract.VehicleContract/initiatingRentCarContract",params:p})}function Dt(p){return L.post({url:"/contract.contract/sendSmsAgain",params:p})}const ht=p=>(yt("data-v-57d9d6f0"),p=p(),Bt(),p),bt={class:"mt-4"},kt=["href"],At={class:"flex mt-4 justify-end"},Vt=ht(()=>E("h1",null,"\u91CD\u8981\u63D0\u9192",-1)),xt={key:0,class:"content"},wt={key:1,class:"content"},It={class:"btn_menu"},St=N({name:"flowTypeLists"}),Pt=N({...St,setup(p){const m=B(0);var F=0;const _=B(!1),g=B(!1),U=()=>{Dt({id:F}).then(a=>{var o=l.lists.findIndex(function(C){return C.id===F});g.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)},$=a=>{_.value=!0,F=a},q=a=>{_.value=!0,F=a},z=()=>{gt({id:F}).then(a=>{_t.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=Ft({company_name:"",contract_no:"",status:""}),V=a=>{switch(a){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)"}}},T=a=>{switch(a){case 0:return"\u79DF\u8D41\u5408\u540C";case 1:return"\u81EA\u7531\u8F66\u8F86\u5408\u540C";case 2:return"\u89E3\u9664\u5408\u540C"}},M=B([]),O=a=>{M.value=a.map(({id:o})=>o)};dt("");const{pager:l,getLists:x,resetParams:R,resetPage:Q}=pt({fetchFun:mt,params:f});return x(),(a,o)=>{const C=Z,y=tt,w=et,j=ut,i=ot,J=at,c=nt,I=Ct("router-link"),K=lt,G=ct,H=st,W=rt,S=Et("perms"),X=it;return s(),D("div",null,[h((s(),d(H,{class:"!border-none",shadow:"never"},{default:u(()=>[e(J,{class:"mb-[-16px]",inline:""},{default:u(()=>[e(y,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name"},{default:u(()=>[e(C,{class:"w-[280px]",modelValue:n(f).company_name,"onUpdate:modelValue":o[0]||(o[0]=t=>n(f).company_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(y,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no"},{default:u(()=>[e(C,{class:"w-[280px]",modelValue:n(f).contract_no,"onUpdate:modelValue":o[1]||(o[1]=t=>n(f).contract_no=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(y,{label:"\u5408\u540C\u72B6\u6001",pro
|