2 lines
12 KiB
JavaScript
2 lines
12 KiB
JavaScript
|
import{k as Be,C as be,D as he,N as ke,O as we,w as ge,F as Ve,J as De,P as Ae,Q as xe,a2 as Le,a3 as Ue,M as Pe,R as Te}from"./element-plus.ff90c99c.js";import{_ as Ie}from"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import{d as ee,r as m,$ as K,ag as Se,aq as $e,o as l,c as E,W as e,Q as t,u,R as _,X as N,F as M,a9 as Y,P as y,U as p,a as C,T as j,j as P}from"./@vue.f8dfc830.js";import{u as qe}from"./vue-router.6d4cf914.js";import{u as Re}from"./usePaging.bd7a7dec.js";import{u as ze}from"./useDictOptions.d306a433.js";import{a as Ne,k as O,f as Me}from"./index.71302537.js";import{i as je,f as Oe,s as Qe,j as Ge,a as Je,c as We,k as Xe}from"./company.b63663e9.js";import"./lodash.3e731b89.js";import{d as Z}from"./dict.ab043624.js";import{d as He}from"./dict.070e6995.js";import{_ as Ke}from"./dialog_index.vue_vue_type_script_setup_true_name_companyLists_lang.12ef08cc.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"./axios.c2babb35.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";const Ye={class:"mt-4"},Ze={key:0,style:{color:"#67c23a"}},ea={key:1,style:{color:"#fe0000"}},aa={style:{display:"flex"}},ta={class:"flex mt-4 justify-end"},ua=C("h1",null,"\u91CD\u8981\u63D0\u9192",-1),oa=C("div",{class:"content"},"\u8BF7\u786E\u8BA4\u4FE1\u606F\u662F\u5426\u6709\u8BEF",-1),la={class:"btn_menu"},na=C("h1",null,"\u91CD\u8981\u63D0\u9192",-1),sa={key:0,class:"content"},ra={key:1,class:"content"},ia={class:"btn_menu"},pa=ee({name:"companyLists"}),ut=ee({...pa,setup(ca){var W;const w=m(!1),ae=s=>{n.value.party_a=s.id,n.value.party_a_name=s.company_name,w.value=!1},D=Ne();console.log(D.userInfo.company_id);const Q=qe(),A=m(!0),v=m(!1),x=m(!1),L=()=>{v.value=!1,x.value=!1},G=m(!1),g=m(!1),T=()=>{g.value=!1,G.value=!1},B=m(""),n=m({party_a:"",party_a_name:"",party_b:"",party_b_name:"",contract_type:"",contract_no:""}),te=m([]),J=m([]),ue=async s=>{const o=await Je({id:s});We().then(d=>{te.value=d}),Z({type_id:7}).then(d=>{J.value=d.lists.filter(c=>He.find(h=>h==c.id))}),n.value.party_b=o.id,n.value.party_b_name=o.company_name,D.userInfo.company.id?(n.value.party_a=D.userInfo.company.id,n.value.party_a_name=D.userInfo.company.company_name):(n.value.party_a="",n.value.party_a_name="")},oe=s=>{B.value=s.id,ue(s.id),le()},le=()=>{G.value=!0,g.value=!0},ne=s=>{v.value=!0,x.value=!0,B.value=s.id},se=async()=>{await je({id:B.value,...n.value}),b(),T()},re=async()=>{await Oe({id:B.value}),b(),L()},ie=async()=>{await Qe({id:B.value}),b(),L()},r=K({company_name:"",area:"",street:"",company_type:"",area_manager:"",is_contract:""});Q.query.company_type&&(A.value=!1,r.company_type=((W=Q.query.company_type)==null?void 0:W.toString())||"");const I=K({dictTypeLists:[]});(async()=>{const s=await Z({type_id:6});I.dictTypeLists=s.lists})();const pe=m([]),ce=s=>{pe.value=s.map(({id:o})=>o)};ze("");const{pager:V,getLists:b,resetParams:de,resetPage:me}=Re({fetchFun:Xe,params:r}),_e=async s=>{await Me.confirm("\u786E\u5B9A\u8981\u8BA4\u8BC1\uFF1F"),await Ge({id:s}),b()},ye=()=>{Be.warning("\u8BF7\u7B49\u5F85\u5408\u540C\u5BA1\u6838\u5B8C\u6210!")};return b(),(s,o)=>{const d=be,c=he,h=ke,S=we,i=ge,fe=Ve,$=De,q=Se("router-link"),f=Ae,Ce=xe,Ee=
|