2 lines
7.8 KiB
JavaScript
2 lines
7.8 KiB
JavaScript
|
import{B as Z,C as ee,M as te,N as ue,w as oe,D as ae,O as ne,P as le,I as se,L as re,Q as ie}from"./element-plus.9c2fdfa8.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import{u as pe}from"./usePaging.c22e2b6f.js";import{u as de}from"./useDictOptions.aa9aa458.js";import{g as me}from"./contract.707fdd59.js";import{r as L,f as _e,d as fe}from"./index.5be037e5.js";import{d as N,r as D,$ as Fe,a4 as Ce,af as Ee,o as s,c as g,M as h,u as n,K as d,L as u,U as t,k as P,R as r,a as E,S as b,_ as ve,Q as v,bf as ye,be as Be}from"./@vue.53f8d7c3.js";import"./@vueuse.038954e7.js";import"./@element-plus.37f92579.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.47b8af7d.js";import"./axios.96be3cef.js";import"./vue-router.e2f4a118.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.efc99072.js";import"./color.e83714e9.js";import"./clone.fb54e01d.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.b4b577c6.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.9cf3e967.js";function De(p){return L.post({url:"/contract.VehicleContract/initiatingRentCarContract",params:p})}function ge(p){return L.post({url:"/contract.contract/sendSmsAgain",params:p})}const he=p=>(ye("data-v-32372d9a"),p=p(),Be(),p),be={class:"mt-4"},ke=["href"],Ae={class:"flex mt-4 justify-end"},Ve=he(()=>E("h1",null,"\u91CD\u8981\u63D0\u9192",-1)),we={key:0,class:"content"},xe={key:1,class:"content"},Ie={class:"btn_menu"},Se=N({name:"flowTypeLists"}),Pe=N({...Se,setup(p){const m=D(0);var F=0;const _=D(!1),y=D(!1),U=()=>{ge({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)},$=a=>{_.value=!0,y.value=!1,F=a},q=a=>{_.value=!0,F=a},z=()=>{De({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 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\u6709\u8F66\u8F86\u5408\u540C";case 2:return"\u89E3\u9664\u5408\u540C";case 3:return"\u8D2D\u4E70\u5408\u540C"}},M=D([]),O=a=>{M.value=a.map(({id:o})=>o)};de("");const{pager:l,getLists:w,resetParams:R,resetPage:Q}=pe({fetchFun:me,params:f});return w(),(a,o)=>{const C=Z,B=ee,x=te,j=ue,i=oe,J=ae,c=ne,I=Ce("router-link"),K=le,G=ce,H=se,W=re,S=Ee("perms"),X=ie;return s(),g("div",null,[h((s(),d(H,{class:"!border-none",shadow:"never"},{default:u(()=>[t(J,{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]||(o[1]=e=>n(f).contract_no=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7"},null,8,["modelValue"]
|