2 lines
9.4 KiB
JavaScript
2 lines
9.4 KiB
JavaScript
import{G as ee,H as oe,y as le,I as te,w as ae,D as ue,C as se,L as re,M as ie,N as ne}from"./element-plus.25ac1d37.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.5a7e3ebe.js";import{a as ce}from"./index.2456ddbc.js";import{u as de}from"./usePaging.f6660143.js";import{u as me}from"./useDictOptions.37bb8f6d.js";import{a as _e,b as I}from"./custom_service.fafa3509.js";import"./lodash.86334a69.js";import{a as fe}from"./project.2232de81.js";import{b as ve}from"./custom.c0ef026d.js";import{_ as be}from"./edit.vue_vue_type_script_setup_true_name_customServiceEdit_lang.b47782dd.js";import{_ as we}from"./handle.vue_vue_type_script_setup_true_name_customServiceEdit_lang.a035f414.js";import Ee from"./detail.55f23787.js";import{d as T,s as L,r as _,a0 as Be,ai as Ce,o as s,c as w,V as e,M as t,O as y,u as i,L as p,S as h,W as V,a8 as g,a as N,k as Fe,T as E,n as S}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.5571e62a.js";import"./axios.9ce976cc.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.156d1593.js";import"./color.4188bfef.js";import"./clone.a0efef30.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ca37accd.js";import"./ms.a9ae1d6d.js";import"./nprogress.30953505.js";import"./vue-clipboard3.4e4a29c9.js";import"./clipboard.1a812829.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.8071f294.js";import"./index.vue_vue_type_script_setup_true_lang.82ce88c1.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./index.vue_vue_type_script_setup_true_lang.5d9ec5fd.js";import"./contract.76fbc395.js";import"./index.vue_vue_type_style_index_0_lang.26efdbf5.js";import"./common.8346dce9.js";import"./department.0e8903b3.js";import"./organization.1d95b309.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang.fb1f3018.js";const ye=E("\u67E5\u8BE2"),he=E("\u91CD\u7F6E"),Ve=E(" \u65B0\u589E "),ge={class:"mt-4"},Ae=E(" \u5904\u7406 "),ke=E(" \u8BE6\u60C5 "),De={class:"flex mt-4 justify-end"},xe=T({name:"customServiceLists"}),jo=T({...xe,setup(Le){const A=L(),j=L(),k=L(),B=_(!1),U=_(!1),D=_(!1),$=_([]),R=_([]),u=Be({project_id:"",custom_id:"",urgency:"",receiver:"",name:"",processed_user:"",processing_result:"",classification:""}),z=_([]),H=r=>{z.value=r.map(({id:l})=>l)},{dictData:f}=me("classification,urgency,custom_service_solv_result,is_solve"),{pager:v,getLists:C,resetParams:M,resetPage:O}=de({fetchFun:_e,params:u}),q=async()=>{var r;B.value=!0,await S(),(r=j.value)==null||r.open("add")},G=async r=>{var n,c;let l=await I({id:r.id});U.value=!0,await S(),(n=k.value)==null||n.open("edit"),(c=k.value)==null||c.setFormData(l)},W=async r=>{var n,c;let l=await I({id:r.id});D.value=!0,await S(),(n=A.value)==null||n.open(),(c=A.value)==null||c.setFormData(l)},J=async()=>{let r=await fe({page_no:1,page_size:9999});$.value=r.lists};return(async()=>{let r=await ve({page_no:1,page_size:9999});R.value=r.lists})(),J(),C(),(r,l)=>{const n=ee,c=oe,d=le,F=te,b=ae,K=ue,P=se,Q=ce,a=re,X=ie,Y=pe,x=Ce("perms"),Z=ne;return s(),w("div",null,[e(P,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(K,{class:"mb-[-16px]",model:u,"label-width":"auto",inline:""},{default:t(()=>[e(d,{label:"\u9879\u76EE",prop:"project_id"},{default:t(()=>[e(c,{class:"w-[280px]",modelValue:u.project_id,"onUpdate:modelValue":l[0]||(l[0]=o=>u.project_id=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE"},{default:t(()=>[(s(!0),w(V,null,g($.value,(o,m)=>(s(),p(n,{key:m,label:o.name,value:parseInt(o.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u5BA2\u6237",prop:"custom_id"},{default:t(()=>[e(c,{class:"w-[280px]",modelValue:u.custom_id,"onUpdate:modelValue":l[1]||(l[1]=o=>u.custom_id=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE"},{default:t(()=>[(s(!0),w(V,null,g(R.value,(o,m)=>(s(),p(n,{key:m,label:o.name,value:parseInt(o.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u7D27\u6025\u7A0B\u5EA6",prop:"urgency"},{default:t(()=>[e(c,{class:"w-[280px]",modelValue:u.urgency,"onUpdate:modelValue":l[2]||(l[2]=o=>u.urgency=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u7D27\u6025\u7A0B\u5EA6"},{default:t(()=>[e(n,{label:"\u5168\u90E8",value:""}),(s(!0),w(V,null,g(i(f).urgency,(o,m)=>(s(),p(n,{key:m,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u5206\u7C7B",prop:"classification"},{default:t(()=>[e(c,{class:"w-[280px]",modelValue:u.classification,"onUpdate:modelValue":l[3]||(l[3]=o=>u.classification=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u7D27\u6025\u7A0B\u5EA6"},{default:t(()=>[e(n,{label:"\u5168\u90E8",value:""}),(s(!0),w(V,null,g(i(f).classification,(o,m)=>(s(),p(n,{key:m,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u5904\u7406\u7ED3\u679C",prop:"processing_result"},{default:t(()=>[e(F,{class:"w-[280px]",modelValue:u.processing_result,"onUpdate:modelValue":l[4]||(l[4]=o=>u.processing_result=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5904\u7406\u7ED3\u679C"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u6307\u5B9A\u5904\u7406\u4EBA",prop:"processed_user"},{default:t(()=>[e(F,{class:"w-[280px]",modelValue:u.processed_user,"onUpdate:modelValue":l[5]||(l[5]=o=>u.processed_user=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6307\u5B9A\u5904\u7406\u4EBA"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u6295\u8BC9\u4E3B\u9898",prop:"name"},{default:t(()=>[e(F,{class:"w-[280px]",modelValue:u.name,"onUpdate:modelValue":l[6]||(l[6]=o=>u.name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6295\u8BC9\u4E3B\u9898"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u63A5\u5F85\u4EBA",prop:"receiver"},{default:t(()=>[e(F,{class:"w-[280px]",modelValue:u.receiver,"onUpdate:modelValue":l[7]||(l[7]=o=>u.receiver=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u63A5\u5F85\u4EBA"},null,8,["modelValue"])]),_:1}),e(d,null,{default:t(()=>[e(b,{type:"primary",onClick:i(O)},{default:t(()=>[ye]),_:1},8,["onClick"]),e(b,{onClick:i(M)},{default:t(()=>[he]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),y((s(),p(P,{class:"!border-none",shadow:"never"},{default:t(()=>[y((s(),p(b,{type:"primary",onClick:q},{icon:t(()=>[e(Q,{name:"el-icon-Plus"})]),default:t(()=>[Ve]),_:1})),[[x,["custom_service.custom_service/add"]]]),N("div",ge,[e(X,{data:i(v).lists,onSelectionChange:H},{default:t(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u6D41\u7A0B\u7F16\u53F7",prop:""}),e(a,{label:"\u6D41\u7A0B\u6B65\u9AA4",prop:""}),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:"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:o})=>[o.is_solve!=1?y((s(),p(b,{key:0,type:"primary",link:"",onClick:m=>G(o)},{default:t(()=>[Ae]),_:2},1032,["onClick"])),[[x,["custom_service.custom_service/edit"]]]):h("",!0),y((s(),p(b,{link:"",onClick:m=>W(o)},{default:t(()=>[ke]),_:2},1032,["onClick"])),[[x,["custom_service.custom_service/detail"]]])]),_:1})]),_:1},8,["data"])]),N("div",De,[e(Y,{modelValue:i(v),"onUpdate:modelValue":l[8]||(l[8]=o=>Fe(v)?v.value=o:null),onChange:i(C)},null,8,["modelValue","onChange"])])]),_:1})),[[Z,i(v).loading]]),B.value?(s(),p(be,{key:0,ref_key:"editRef",ref:j,"dict-data":i(f),onSuccess:i(C),onClose:l[9]||(l[9]=o=>B.value=!1)},null,8,["dict-data","onSuccess"])):h("",!0),U.value?(s(),p(we,{key:1,ref_key:"handleRef",ref:k,"dict-data":i(f),onSuccess:i(C),onClose:l[10]||(l[10]=o=>B.value=!1)},null,8,["dict-data","onSuccess"])):h("",!0),D.value?(s(),p(Ee,{key:2,ref_key:"detailRef",ref:A,"dict-data":i(f),onClose:l[11]||(l[11]=o=>D.value=!1)},null,8,["dict-data"])):h("",!0)])}}});export{jo as default};
|