TaskSystem/public/admin/assets/vehicle_list.bfd22447.js
2023-09-14 18:51:07 +08:00

2 lines
7.6 KiB
JavaScript

import{B as Y,C as Z,M as ee,N as te,w as ue,D as oe,O as ae,P as le,I as ne,L as se,Q as re}from"./element-plus.b64c0a90.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.a080b28e.js";import{u as ce}from"./usePaging.2ad8e1e6.js";import{u as pe}from"./useDictOptions.99264916.js";import{g as de}from"./contract.51a4c60e.js";import{s as me,a as _e}from"./car_contract.9afdc316.js";import{f as fe,d as Fe}from"./index.f190d0dd.js";import{d as L,r as B,$ as Ce,a4 as Ee,af as ve,o as s,c as b,M as g,u as l,K as p,L as u,U as t,R as r,a as C,S as h,_ as ye,Q as E,k as P,bf as Be,be as De}from"./@vue.51d7f2d8.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"./lodash.08438971.js";import"./axios.105476b3.js";import"./vue-router.9f65afb1.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 be=v=>(Be("data-v-5c7b983b"),v=v(),De(),v),ge={class:"mt-4"},he=["href"],ke={class:"flex mt-4 justify-end"},Ae=be(()=>C("h1",null,"\u91CD\u8981\u63D0\u9192",-1)),Ve={key:0,class:"content"},xe={key:1,class:"content"},we={class:"btn_menu"},Ie=L({name:"flowTypeLists"}),Se=L({...Ie,setup(v){const d=B(0);var f=0;const m=B(!1),D=B(!1),N=()=>{me({id:f}).then(a=>{var o=n.lists.findIndex(function(F){return F.id===f});d.value=o,n.lists[d.value].nums=10,k(d.value)})},k=a=>{const o=setInterval(()=>{n.lists[a].nums--,n.lists[a].nums<=0&&clearInterval(o)},1e3)},U=a=>{m.value=!0,D.value=!0,f=a},$=a=>{m.value=!0,f=a},z=()=>{_e({id:f}).then(a=>{fe.msgSuccess("\u53D1\u9001\u6210\u529F");var o=n.lists.findIndex(function(F){return F.id===f});d.value=o,m.value=!1,n.lists[d.value].status=2,n.lists[d.value].nums=10,k(d.value)})},A=()=>{m.value=!1},_=Ce({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"}},q=B([]),M=a=>{q.value=a.map(({id:o})=>o)};pe("");const{pager:n,getLists:x,resetParams:O,resetPage:Q}=ce({fetchFun:de,params:_});return x(),(a,o)=>{const F=Y,y=Z,w=ee,R=te,i=ue,j=oe,c=ae,I=Ee("router-link"),J=le,K=ie,G=ne,H=se,S=ve("perms"),W=re;return s(),b("div",null,[g((s(),p(G,{class:"!border-none",shadow:"never"},{default:u(()=>[t(j,{class:"mb-[-16px]",inline:""},{default:u(()=>[t(y,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name"},{default:u(()=>[t(F,{class:"w-[280px]",modelValue:l(_).company_name,"onUpdate:modelValue":o[0]||(o[0]=e=>l(_).company_name=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(y,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no"},{default:u(()=>[t(F,{class:"w-[280px]",modelValue:l(_).contract_no,"onUpdate:modelValue":o[1]||(o[1]=e=>l(_).contract_no=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),t(y,{label:"\u5408\u540C\u72B6\u6001",prop:"status"},{default:u(()=>[t(R,{modelValue:l(_).status,"onUpdate:modelValue":o[2]||(o[2]=e=>l(_).status=e),placeholder:"\u8BF7\u9009\u62E9\u5408\u540C\u7C7B\u578B",clearable:"",class:"w-[280px]"},{default:u(()=>[t(w,{label:"\u672A\u4E0A\u4F20",value:0}),t(w,{label:"\u5DF2\u4E0A\u4F20",value:1})]),_:1},8,["modelValue"])]),_:1}),t(y,null,{default:u(()=>[t(i,{type:"primary",onClick:l(Q)},{default:u(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),t(i,{onClick:l(O)},{default:u(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1}),C("div",ge,[t(J,{data:l(n).lists,"default-sort":{prop:"create_time",order:"descending"},onSelectionChange:M},{default:u(()=>[t(c,{label:"id",prop:"id"}),t(c,{label:"\u5408\u540C\u7C7B\u578B",align:"center"},{default:u(({row:e})=>[r(h(T(e.type)),1)]),_:1}),t(c,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no",align:"center","show-overflow-tooltip":""}),t(c,{label:"\u7532\u65B9",prop:"company_a_name",align:"center","show-overflow-tooltip":""}),t(c,{label:"\u4E59\u65B9",prop:"company_b_name",align:"center","show-overflow-tooltip":""}),t(c,{label:"\u7C7B\u578B",prop:"product_count",align:"center","show-overflow-tooltip":""},{default:u(({row:e})=>[r(" \u516C\u53F8 ")]),_:1}),t(c,{label:"\u79DF\u8F66\u6570\u91CF(\u8F86)",prop:"num",align:"center","show-overflow-tooltip":""}),t(c,{label:"\u72B6\u6001",prop:"product_count",align:"center","show-overflow-tooltip":""},{default:u(({row:e})=>[C("span",{style:ye(`color:${V(e.status).color}`)},h(V(e.status).tit),5)]),_:1}),t(c,{label:"\u64CD\u4F5C",align:"center",width:"auto",fixed:"right"},{default:u(({row:e})=>[e.status==0?g((s(),p(i,{key:0,type:"primary",link:""},{default:u(()=>[t(I,{to:{path:"vehicle_detail",query:{id:e.id}}},{default:u(()=>[r("\u5BA1\u6838")]),_:2},1032,["to"])]),_:2},1024)),[[S,["contract.contract/wind_control"]]]):E("",!0),e.status>0?g((s(),p(i,{key:1,type:"primary",link:""},{default:u(()=>[t(I,{to:{path:"vehicle_detail",query:{id:e.id}}},{default:u(()=>[r("\u8BE6\u60C5")]),_:2},1032,["to"])]),_:2},1024)),[[S,["contract.contract/wind_control"]]]):E("",!0),e.status==1&&e.contract_logistic_id!=0?(s(),p(i,{key:2,type:"primary",link:"",onClick:X=>U(e.id)},{default:u(()=>[r("\u53D1\u9001\u5408\u540C")]),_:2},1032,["onClick"])):E("",!0),e.status==2?(s(),p(i,{key:3,disabled:e.nums>0,onClick:X=>$(e.id),link:"",type:"primary"},{default:u(()=>[r("\u91CD\u65B0\u53D1\u9001"+h(e.nums?e.nums+"s":""),1)]),_:2},1032,["disabled","onClick"])):E("",!0),e.status==3?(s(),p(i,{key:4,type:"primary",link:""},{default:u(()=>[C("a",{href:JSON.parse(e.contract_evidence).party_a},"\u4E0B\u8F7D\u8BC1\u636E",8,he)]),_:2},1024)):E("",!0)]),_:1})]),_:1},8,["data"])]),C("div",ke,[t(K,{modelValue:l(n),"onUpdate:modelValue":o[3]||(o[3]=e=>P(n)?n.value=e:null),onChange:l(x)},null,8,["modelValue","onChange"])])]),_:1})),[[W,l(n).loading]]),t(H,{modelValue:l(m),"onUpdate:modelValue":o[4]||(o[4]=e=>P(m)?m.value=e:null),onClose:A},{default:u(()=>[Ae,l(D)?(s(),b("div",xe," \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 ")):(s(),b("div",Ve," \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. ")),C("p",we,[l(D)?(s(),p(i,{key:1,type:"primary",size:"large",onClick:N},{default:u(()=>[r("\u91CD\u65B0\u53D1\u9001")]),_:1})):(s(),p(i,{key:0,type:"primary",size:"large",onClick:z},{default:u(()=>[r("\u786E\u8BA4")]),_:1})),t(i,{type:"info",size:"large",onClick:A},{default:u(()=>[r("\u8FD4\u56DE")]),_:1})])]),_:1},8,["modelValue"])])}}});const Et=Fe(Se,[["__scopeId","data-v-5c7b983b"]]);export{Et as default};