2 lines
7.0 KiB
JavaScript
2 lines
7.0 KiB
JavaScript
import{I as H,y as J,w as K,D as Q,C as X,L as Y,Z as ee,M as oe,N as te}from"./element-plus.e49c119c.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.8c9f8a22.js";import{f as le,a as ue}from"./index.0aba8d1b.js";import{u as ne}from"./usePaging.f6660143.js";import{u as se}from"./useDictOptions.f0a47c79.js";import{a as ie,b as $,e as me}from"./customer_demand_solution.bcf73810.js";import{d as R,s as A,r as D,a0 as re,ai as de,o as l,c as h,V as e,M as a,O as _,u as r,L as d,S as L,a as j,W as pe,a8 as ce,k as _e,T as p,n as y,U as fe}from"./@vue.ab566ce7.js";import"./lodash.86334a69.js";import{_ as ve}from"./edit.vue_vue_type_script_setup_true_name_customerDemandSolutionEdit_lang.7b7d7d06.js";import{_ as he}from"./detail.vue_vue_type_style_index_0_lang.88dfa856.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.4e8ca2f8.js";import"./department.5fe286cf.js";import"./organization.4fe9e5f3.js";import"./index.vue_vue_type_script_setup_true_lang.fcb814c2.js";import"./project.aac4e01a.js";import"./index.vue_vue_type_script_setup_true_lang.1793c656.js";import"./customer_demand.3fd64a76.js";import"./custom.ec06ae29.js";const Ee=p("\u67E5\u8BE2"),Ce=p("\u91CD\u7F6E"),Fe=p(" \u65B0\u589E "),be=p(" \u5220\u9664 "),we={class:"mt-4"},Be={key:0},ke={key:1},De=p(" \u7F16\u8F91 "),ye=p(" \u5220\u9664 "),ge=p(" \u8BE6\u60C5 "),Ve={class:"flex mt-4 justify-end"},xe=R({name:"customerDemandSolutionLists"}),Do=R({...xe,setup(Se){const w=A(),E=A(),C=D(!1),B=D(!1),i=re({theme:"",customer_demand_name:"",custom_name:"",project_name:""}),k=D([]),U=u=>{k.value=u.map(({id:o})=>o)},{dictData:g}=se(""),{pager:f,getLists:F,resetParams:N,resetPage:P}=ne({fetchFun:ie,params:i}),T=async()=>{var u;C.value=!0,await y(),(u=E.value)==null||u.open("add")},I=async u=>{var m,n;let o=await $({id:u.id});C.value=!0,await y(),(m=E.value)==null||m.open("edit"),(n=E.value)==null||n.setFormData(o)},V=async u=>{await le.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await me({id:u}),F()},M=async u=>{var m,n;let o=await $({id:u.id});B.value=!0,await y(),(m=w.value)==null||m.open(),(n=w.value)==null||n.setFormData(o)};return F(),(u,o)=>{const m=H,n=J,c=K,q=Q,x=X,O=ue,s=Y,W=ee,Z=oe,z=ae,v=de("perms"),G=te;return l(),h("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(q,{class:"mb-[-16px]",model:i,inline:""},{default:a(()=>[e(n,{label:"\u89E3\u51B3\u65B9\u6848\u4E3B\u9898",prop:"theme"},{default:a(()=>[e(m,{class:"w-[250px]",modelValue:i.theme,"onUpdate:modelValue":o[0]||(o[0]=t=>i.theme=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u89E3\u51B3\u65B9\u6848\u4E3B\u9898"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name"},{default:a(()=>[e(m,{class:"w-[250px]",modelValue:i.project_name,"onUpdate:modelValue":o[1]||(o[1]=t=>i.project_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name"},{default:a(()=>[e(m,{class:"w-[250px]",modelValue:i.custom_name,"onUpdate:modelValue":o[2]||(o[2]=t=>i.custom_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5BA2\u6237\u9700\u6C42\u4E3B\u9898",prop:"customer_demand_name"},{default:a(()=>[e(m,{class:"w-[250px]",modelValue:i.customer_demand_name,"onUpdate:modelValue":o[3]||(o[3]=t=>i.customer_demand_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u9700\u6C42\u4E3B\u9898"},null,8,["modelValue"])]),_:1}),e(n,null,{default:a(()=>[e(c,{type:"primary",onClick:r(P)},{default:a(()=>[Ee]),_:1},8,["onClick"]),e(c,{onClick:r(N)},{default:a(()=>[Ce]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((l(),d(x,{class:"!border-none",shadow:"never"},{default:a(()=>[_((l(),d(c,{type:"primary",onClick:T},{icon:a(()=>[e(O,{name:"el-icon-Plus"})]),default:a(()=>[Fe]),_:1})),[[v,["custom.customer_demand_solution/add"]]]),_((l(),d(c,{disabled:!k.value.length,onClick:o[4]||(o[4]=t=>V(k.value))},{default:a(()=>[be]),_:1},8,["disabled"])),[[v,["custom.customer_demand_solution/delete"]]]),j("div",we,[e(Z,{data:r(f).lists,onSelectionChange:U},{default:a(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(s,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(s,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""}),e(s,{label:"\u9700\u6C42\u540D\u79F0",prop:"customer_demand_name","show-overflow-tooltip":""}),e(s,{label:"\u89E3\u51B3\u65B9\u6848\u4E3B\u9898",prop:"theme","show-overflow-tooltip":""}),e(s,{label:"\u63D0\u4EA4\u65F6\u95F4",prop:"submission_time","show-overflow-tooltip":""}),e(s,{label:"\u65B9\u6848\u5185\u5BB9",prop:"solution_content","show-overflow-tooltip":""}),e(s,{label:"\u5BA2\u6237\u53CD\u9988",prop:"customer_feedback","show-overflow-tooltip":""}),e(s,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":""},{default:a(({row:t})=>[t.annex&&t.annex.length>0?(l(),h("div",Be,[(l(!0),h(pe,null,ce(t.annex,(b,S)=>(l(),h("div",{key:S},[e(W,{href:b,target:"_blank"},{default:a(()=>[p("\u6587\u4EF6"+fe(S+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(l(),h("div",ke," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(s,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:a(({row:t})=>[_((l(),d(c,{type:"primary",link:"",onClick:b=>I(t)},{default:a(()=>[De]),_:2},1032,["onClick"])),[[v,["custom.customer_demand_solution/edit"]]]),_((l(),d(c,{type:"danger",link:"",onClick:b=>V(t.id)},{default:a(()=>[ye]),_:2},1032,["onClick"])),[[v,["custom.customer_demand_solution/delete"]]]),_((l(),d(c,{link:"",onClick:b=>M(t)},{default:a(()=>[ge]),_:2},1032,["onClick"])),[[v,["custom.customer_demand_solution/detail"]]])]),_:1})]),_:1},8,["data"])]),j("div",Ve,[e(z,{modelValue:r(f),"onUpdate:modelValue":o[5]||(o[5]=t=>_e(f)?f.value=t:null),onChange:r(F)},null,8,["modelValue","onChange"])])]),_:1})),[[G,r(f).loading]]),C.value?(l(),d(ve,{key:0,ref_key:"editRef",ref:E,"dict-data":r(g),onSuccess:r(F),onClose:o[6]||(o[6]=t=>C.value=!1)},null,8,["dict-data","onSuccess"])):L("",!0),B.value?(l(),d(he,{key:1,ref_key:"detailRef",ref:w,"dict-data":r(g),onClose:o[7]||(o[7]=t=>B.value=!1)},null,8,["dict-data"])):L("",!0)])}}});export{Do as default};
|