engineering/public/admin/assets/index.079e866f.js
2024-03-04 15:04:21 +08:00

2 lines
9.3 KiB
JavaScript

import{I as ee,y as oe,G as le,H as te,w as ue,D as ae,C as se,L as re,M as ie,N as ne}from"./element-plus.258bf9e7.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{a as ce}from"./index.ec401e3b.js";import{u as me}from"./usePaging.f6660143.js";import{u as de}from"./useDictOptions.c644f395.js";import{a as _e,b as U}from"./custom_service.4ce5ba67.js";import"./lodash.1d82ee7c.js";import{a as fe}from"./project.bccf4059.js";import{b as ve}from"./custom.13e75d58.js";import{_ as we}from"./edit.vue_vue_type_script_setup_true_name_customServiceEdit_lang.0f10251c.js";import{_ as be}from"./handle.vue_vue_type_script_setup_true_name_customServiceEdit_lang.e2c10f63.js";import Ee from"./detail.cd0b54d3.js";import{d as N,s as D,r as m,a0 as Be,ai as Ce,o as p,c as k,V as e,M as t,O as C,u as n,L as c,S as F,W as $,a8 as R,a as P,k as Fe,T as w,n as A}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";import"./index.vue_vue_type_script_setup_true_lang.291052e3.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./index.vue_vue_type_script_setup_true_lang.b97ad17d.js";import"./contract.4f8a540d.js";import"./index.vue_vue_type_style_index_0_lang.0ff67de9.js";import"./common.c510575b.js";import"./department.1c914e1a.js";import"./organization.f0387125.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang.5a5f706a.js";import"./index.a7758114.js";const Ve=w("\u67E5\u8BE2"),he=w("\u91CD\u7F6E"),ye=w(" \u65B0\u589E "),ge={class:"mt-4"},De=w(" \u5904\u7406 "),ke=w(" \u8BE6\u60C5 "),Ae={class:"flex justify-end mt-4"},xe=N({name:"customServiceLists"}),Uo=N({...xe,setup(Le){const V=D(),x=D(),h=D(),b=m(!1),L=m(!1),y=m(!1),T=m([]),I=m([]),u=Be({project_code:"",urgency:"",receiver:"",custom_name:"",name:"",processed_user:"",processing_result:"",classification:"",contract_code:""}),z=m([]),H=r=>{z.value=r.map(({id:o})=>o)},{dictData:d}=de("classification,urgency,custom_service_solv_result,is_solve"),{pager:_,getLists:E,resetParams:M,resetPage:O}=me({fetchFun:_e,params:u}),q=async()=>{var r;b.value=!0,await A(),(r=x.value)==null||r.open("add")},G=async r=>{var i,s;let o=await U({id:r.id});L.value=!0,await A(),(i=h.value)==null||i.open("edit"),(s=h.value)==null||s.setFormData(o)},W=async r=>{var i,s;let o=await U({id:r.id});y.value=!0,await A(),(i=V.value)==null||i.open(),(s=V.value)==null||s.setFormData(o)},J=async()=>{let r=await fe({page_no:1,page_size:9999});T.value=r.lists};return(async()=>{let r=await ve({page_no:1,page_size:9999});I.value=r.lists})(),J(),E(),(r,o)=>{const i=ee,s=oe,B=le,S=te,f=ue,K=ae,j=se,Q=ce,a=re,X=ie,Y=pe,g=Ce("perms"),Z=ne;return p(),k("div",null,[e(j,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(K,{class:"mb-[-16px]",model:u,"label-width":"auto",inline:""},{default:t(()=>[e(s,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_id"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:u.project_code,"onUpdate:modelValue":o[0]||(o[0]=l=>u.project_code=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u7F16\u7801"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u5BA2\u6237\u540D\u79F0"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:u.custom_name,"onUpdate:modelValue":o[1]||(o[1]=l=>u.custom_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u5408\u540C\u7F16\u7801"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:u.contract_code,"onUpdate:modelValue":o[2]||(o[2]=l=>u.contract_code=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u7801"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u7D27\u6025\u7A0B\u5EA6",prop:"urgency"},{default:t(()=>[e(S,{class:"w-[280px]",modelValue:u.urgency,"onUpdate:modelValue":o[3]||(o[3]=l=>u.urgency=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u7D27\u6025\u7A0B\u5EA6"},{default:t(()=>[e(B,{label:"\u5168\u90E8",value:""}),(p(!0),k($,null,R(n(d).urgency,(l,v)=>(p(),c(B,{key:v,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u5206\u7C7B",prop:"classification"},{default:t(()=>[e(S,{class:"w-[280px]",modelValue:u.classification,"onUpdate:modelValue":o[4]||(o[4]=l=>u.classification=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u7D27\u6025\u7A0B\u5EA6"},{default:t(()=>[e(B,{label:"\u5168\u90E8",value:""}),(p(!0),k($,null,R(n(d).classification,(l,v)=>(p(),c(B,{key:v,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u5904\u7406\u7ED3\u679C",prop:"processing_result"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:u.processing_result,"onUpdate:modelValue":o[5]||(o[5]=l=>u.processing_result=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5904\u7406\u7ED3\u679C"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u6307\u5B9A\u5904\u7406\u4EBA",prop:"processed_user"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:u.processed_user,"onUpdate:modelValue":o[6]||(o[6]=l=>u.processed_user=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6307\u5B9A\u5904\u7406\u4EBA"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u6295\u8BC9\u4E3B\u9898",prop:"name"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:u.name,"onUpdate:modelValue":o[7]||(o[7]=l=>u.name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6295\u8BC9\u4E3B\u9898"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u63A5\u5F85\u4EBA",prop:"receiver"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:u.receiver,"onUpdate:modelValue":o[8]||(o[8]=l=>u.receiver=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u63A5\u5F85\u4EBA"},null,8,["modelValue"])]),_:1}),e(s,null,{default:t(()=>[e(f,{type:"primary",onClick:n(O)},{default:t(()=>[Ve]),_:1},8,["onClick"]),e(f,{onClick:n(M)},{default:t(()=>[he]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),C((p(),c(j,{class:"!border-none",shadow:"never"},{default:t(()=>[C((p(),c(f,{type:"primary",onClick:q},{icon:t(()=>[e(Q,{name:"el-icon-Plus"})]),default:t(()=>[ye]),_:1})),[[g,["custom_service.custom_service/add"]]]),P("div",ge,[e(X,{data:n(_).lists,onSelectionChange:H},{default:t(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name"}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name"}),e(a,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(a,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_code","show-overflow-tooltip":""}),e(a,{label:"\u6295\u8BC9\u4E3B\u9898",prop:"name","show-overflow-tooltip":""}),e(a,{label:"\u65E5\u671F",prop:"date","show-overflow-tooltip":""}),e(a,{label:"\u63A5\u5F85\u4EBA",prop:"receiver","show-overflow-tooltip":""}),e(a,{label:"\u5206\u7C7B",prop:"classification","show-overflow-tooltip":""}),e(a,{label:"\u6295\u8BC9\u4EBA",prop:"custom_master_name","show-overflow-tooltip":""}),e(a,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"custom_master_phone","show-overflow-tooltip":""}),e(a,{label:"\u5904\u7406\u7ED3\u679C",prop:"processing_result","show-overflow-tooltip":""}),e(a,{label:"\u7D27\u6025\u7A0B\u5EA6",prop:"urgency","show-overflow-tooltip":""}),e(a,{label:"\u6307\u5B9A\u5904\u7406\u4EBA",prop:"processed_user",width:"105","show-overflow-tooltip":""}),e(a,{label:"\u95EE\u9898\u662F\u5426\u89E3\u51B3",prop:"is_solve_text",width:"110","show-overflow-tooltip":""}),e(a,{label:"\u5B8C\u6210\u65E5\u671F",prop:"done_date","show-overflow-tooltip":""}),e(a,{label:"\u8BC4\u5206",prop:"score","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"110",fixed:"right"},{default:t(({row:l})=>[l.is_solve!=1?C((p(),c(f,{key:0,type:"primary",link:"",onClick:v=>G(l)},{default:t(()=>[De]),_:2},1032,["onClick"])),[[g,["custom_service.custom_service/edit"]]]):F("",!0),C((p(),c(f,{link:"",onClick:v=>W(l)},{default:t(()=>[ke]),_:2},1032,["onClick"])),[[g,["custom_service.custom_service/detail"]]])]),_:1})]),_:1},8,["data"])]),P("div",Ae,[e(Y,{modelValue:n(_),"onUpdate:modelValue":o[9]||(o[9]=l=>Fe(_)?_.value=l:null),onChange:n(E)},null,8,["modelValue","onChange"])])]),_:1})),[[Z,n(_).loading]]),b.value?(p(),c(we,{key:0,ref_key:"editRef",ref:x,"dict-data":n(d),onSuccess:n(E),onClose:o[10]||(o[10]=l=>b.value=!1)},null,8,["dict-data","onSuccess"])):F("",!0),L.value?(p(),c(be,{key:1,ref_key:"handleRef",ref:h,"dict-data":n(d),onSuccess:n(E),onClose:o[11]||(o[11]=l=>b.value=!1)},null,8,["dict-data","onSuccess"])):F("",!0),y.value?(p(),c(Ee,{key:2,ref_key:"detailRef",ref:V,"dict-data":n(d),onClose:o[12]||(o[12]=l=>y.value=!1)},null,8,["dict-data"])):F("",!0)])}}});export{Uo as default};