2 lines
5.0 KiB
JavaScript
2 lines
5.0 KiB
JavaScript
import{B as I,C as O,M as $,N as q,w as M,D as Q,O as j,P as J,I as K,Q as z}from"./element-plus.b64c0a90.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.a080b28e.js";import{u as H}from"./usePaging.2ad8e1e6.js";import{u as W}from"./useDictOptions.aeb58463.js";import{g as X}from"./contract.c83286d8.js";import{d as y,s as Y,r as B,$ as Z,a4 as b,o as c,c as ee,M as te,u as a,K as d,L as o,U as e,R as r,a as f,S as g,Q as v,k as oe}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"./index.53b22837.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";const ae={class:"mt-4"},ue=["href"],le={class:"flex mt-4 justify-end"},ne=y({name:"flowTypeLists"}),Ke=y({...ne,setup(re){const w=Y(),C=B(!1),n=Z({company_name:"",contract_no:"",status:""}),h=p=>{switch(p){case 0:return"\u79DF\u8D41\u5408\u540C";case 1:return"\u81EA\u7531\u8F66\u8F86\u5408\u540C";case 2:return"\u89E3\u9664\u5408\u540C";case 3:return"\u7B7E\u7EA6\u6210\u529F";case 4:return"\u88AB\u9A73\u56DE"}},D=B([]),V=p=>{D.value=p.map(({id:u})=>u)};W("");const{pager:s,getLists:_,resetParams:k,resetPage:x}=H({fetchFun:X,params:n});return _(),(p,u)=>{const F=I,i=O,E=$,A=q,m=M,S=Q,l=j,N=b("router-link"),L=J,P=G,R=K,U=b("edit-popup"),T=z;return c(),ee("div",null,[te((c(),d(R,{class:"!border-none",shadow:"never"},{default:o(()=>[e(S,{class:"mb-[-16px]",inline:""},{default:o(()=>[e(i,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name"},{default:o(()=>[e(F,{class:"w-[280px]",modelValue:a(n).company_name,"onUpdate:modelValue":u[0]||(u[0]=t=>a(n).company_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no"},{default:o(()=>[e(F,{class:"w-[280px]",modelValue:a(n).contract_no,"onUpdate:modelValue":u[1]||(u[1]=t=>a(n).contract_no=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5408\u540C\u72B6\u6001",prop:"status"},{default:o(()=>[e(A,{modelValue:a(n).status,"onUpdate:modelValue":u[2]||(u[2]=t=>a(n).status=t),placeholder:"\u8BF7\u9009\u62E9\u5408\u540C\u7C7B\u578B",clearable:"",class:"w-[280px]"},{default:o(()=>[e(E,{label:"\u672A\u4E0A\u4F20",value:0}),e(E,{label:"\u5DF2\u4E0A\u4F20",value:1})]),_:1},8,["modelValue"])]),_:1}),e(i,null,{default:o(()=>[e(m,{type:"primary",onClick:a(x)},{default:o(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(m,{onClick:a(k)},{default:o(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1}),f("div",ae,[e(L,{data:a(s).lists,"default-sort":{prop:"create_time",order:"descending"},onSelectionChange:V},{default:o(()=>[e(l,{label:"id",prop:"id"}),e(l,{label:"\u5408\u540C\u7C7B\u578B",align:"center"},{default:o(({row:t})=>[r(g(h(t.type)),1)]),_:1}),e(l,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no",align:"center","show-overflow-tooltip":""}),e(l,{label:"\u7532\u65B9",prop:"company_a_name",align:"center","show-overflow-tooltip":""}),e(l,{label:"\u4E59\u65B9",prop:"company_b_name",align:"center","show-overflow-tooltip":""}),e(l,{label:"\u7C7B\u578B",prop:"product_count",align:"center","show-overflow-tooltip":""},{default:o(({row:t})=>[r(" \u516C\u53F8 ")]),_:1}),e(l,{label:"\u72B6\u6001",prop:"product_count",align:"center","show-overflow-tooltip":""},{default:o(({row:t})=>[r(g(t.status?"\u5DF2\u4E0A\u4F20":"\u5F85\u4E0A\u4F20"),1)]),_:1}),e(l,{label:"\u64CD\u4F5C",align:"center",width:"auto",fixed:"right"},{default:o(({row:t})=>[e(m,{type:"primary",link:""},{default:o(()=>[e(N,{to:{path:"vehicle_detail",query:{id:t.id}}},{default:o(()=>[r("\u8BE6\u60C5")]),_:2},1032,["to"])]),_:2},1024),t.status>=3?(c(),d(m,{key:0,type:"primary",link:""},{default:o(()=>[f("a",{href:JSON.parse(t.contract_evidence).party_a},"\u4E0B\u8F7D\u8BC1\u636E",8,ue)]),_:2},1024)):v("",!0)]),_:1})]),_:1},8,["data"])]),f("div",le,[e(P,{modelValue:a(s),"onUpdate:modelValue":u[3]||(u[3]=t=>oe(s)?s.value=t:null),onChange:a(_)},null,8,["modelValue","onChange"])])]),_:1})),[[T,a(s).loading]]),a(C)?(c(),d(U,{key:0,ref_key:"editRef",ref:w,onSuccess:a(_),onClose:u[4]||(u[4]=t=>C.value=!1)},null,8,["onSuccess"])):v("",!0)])}}});export{Ke as default};
|