TaskSystem/public/admin/assets/index.bdda475b.js

2 lines
5.7 KiB
JavaScript

import{B as M,C as O,w as Z,D as z,I as G,O as H,t as J,P as W,Q as X}from"./element-plus.7fac9e8c.js";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang.799ce07c.js";import{u as ee}from"./usePaging.b8657078.js";import{u as te}from"./useDictOptions.601c9e96.js";import{b as ae,d as oe}from"./task_scheduling.435a0295.js";import"./lodash.ffb5376d.js";import{k as D,d as le}from"./index.790484d9.js";import{_ as se}from"./edit.vue_vue_type_script_setup_true_name_taskSchedulingEdit_lang.a95a03e7.js";import{d as ne}from"./dict.9b728a76.js";import{_ as ie}from"./money.vue_vue_type_script_setup_true_name_taskSchedulingEdit_lang.8b56dbff.js";import{d as x,r as v,s as w,Z as ue,ag as me,an as re,o as n,c as pe,U as e,L as o,u as a,R as _,M as f,K as u,a as B,j as de,Q as V,n as ce}from"./@vue.d637abc3.js";import"./lodash-es.151604d4.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.d7d1da82.js";import"./@element-plus.10970f06.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./axios.f9df025a.js";import"./vue-router.1750fa4b.js";import"./pinia.065bb054.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.d1ea016b.js";import"./color.992612d2.js";import"./clone.d8d3ae9a.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.4e7fd6e6.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.bbdcd52a.js";import"./index.35244a94.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.f83ef291.js";import"./dialog_index.vue_vue_type_script_setup_true_name_companyLists_lang.baa8e791.js";import"./company.d21fb762.js";const _e={class:"mt-4"},fe={class:"flex mt-4 justify-end"},ye=x({name:"taskSchedulingLists"}),ve=x({...ye,setup(ke){const S=v([]),R=w(),k=w(),F=v(!1),C=v(!1),m=ue({create_user_id:"",template_id:"",company_id:"",type:"",status:""}),A=v([]),$=s=>{A.value=s.map(({id:l})=>l)},{dictData:L}=te(""),{pager:r,getLists:p,resetParams:P,resetPage:T}=ee({fetchFun:oe,params:m}),U=async s=>{var l,d;C.value=!0,await ce(),(l=k.value)==null||l.open(s.money?"edit":"add"),(d=k.value)==null||d.setFormData(s)},I=s=>{ae({id:s.id,status:s.status}).finally(()=>{p()})};return ne({type_id:10}).then(s=>{S.value=s.lists}),p(),(s,l)=>{const d=M,h=O,c=Z,N=z,b=G,i=H,q=J,E=me("router-link"),Q=W,j=Y,y=re("perms"),K=X;return n(),pe("div",null,[e(b,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(N,{class:"mb-[-16px] formtabel",model:a(m),inline:"","label-width":"100px"},{default:o(()=>[e(h,{label:"\u533A\u57DF\u7ECF\u7406",prop:"create_user_id"},{default:o(()=>[e(d,{class:"w-[280px]",modelValue:a(m).create_user_id,"onUpdate:modelValue":l[0]||(l[0]=t=>a(m).create_user_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u533A\u57DF\u7ECF\u7406"},null,8,["modelValue"])]),_:1}),e(h,{label:"\u516C\u53F8",prop:"company_id"},{default:o(()=>[e(d,{class:"w-[280px]",modelValue:a(m).company_id,"onUpdate:modelValue":l[1]||(l[1]=t=>a(m).company_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8"},null,8,["modelValue"])]),_:1}),e(h,null,{default:o(()=>[e(c,{class:"el-btn",type:"primary",onClick:a(T)},{default:o(()=>[_("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(c,{onClick:a(P)},{default:o(()=>[_("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((n(),u(b,{class:"!border-none",shadow:"never"},{default:o(()=>[B("div",_e,[e(Q,{data:a(r).lists,onSelectionChange:$},{default:o(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"\u533A\u57DF\u7ECF\u7406",prop:"admin_name","show-overflow-tooltip":""}),e(i,{label:"\u516C\u53F8",prop:"company_name","show-overflow-tooltip":""}),e(i,{label:"\u6BCF\u65E5\u6700\u5927\u91D1\u989D",prop:"money","show-overflow-tooltip":""}),e(i,{label:"\u516C\u53F8\u7C7B\u578B",prop:"company_type_name","show-overflow-tooltip":""}),f((n(),u(i,{label:"\u72B6\u6001","min-width":"100"},{default:o(({row:t})=>[e(q,{modelValue:t.status,"onUpdate:modelValue":g=>t.status=g,"active-value":1,"inactive-value":0,onChange:g=>I(t)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1})),[[y,["task_scheduling.task_scheduling/edit"]]]),e(i,{label:"\u64CD\u4F5C",fixed:"right"},{default:o(({row:t})=>[f((n(),u(c,{onClick:g=>U(t),type:"primary",link:""},{default:o(()=>[_(" \u91D1\u989D ")]),_:2},1032,["onClick"])),[[y,["task.task_calendar"]]]),f((n(),u(c,{type:"primary",link:""},{default:o(()=>[e(E,{to:{path:a(D)("task_template.task_template/lists"),query:{id:t.id,company_id:t.company_id,company_type:t.dict_company_type}}},{default:o(()=>[_("\u4EFB\u52A1\u5B89\u6392")]),_:2},1032,["to"])]),_:2},1024)),[[y,["task_template.task_template/lists"]]]),f((n(),u(c,{type:"primary",link:""},{default:o(()=>[e(E,{to:{path:a(D)("task.task_calendar"),query:{id:t.id,company_id:t.company_id}}},{default:o(()=>[_("\u4EFB\u52A1\u65E5\u7A0B")]),_:2},1032,["to"])]),_:2},1024)),[[y,["task.task_calendar"]]])]),_:1})]),_:1},8,["data"])]),B("div",fe,[e(j,{modelValue:a(r),"onUpdate:modelValue":l[2]||(l[2]=t=>de(r)?r.value=t:null),onChange:a(p)},null,8,["modelValue","onChange"])])]),_:1})),[[K,a(r).loading]]),a(F)?(n(),u(se,{key:0,ref_key:"editRef",ref:R,"dict-data":a(L),onSuccess:a(p),onClose:l[3]||(l[3]=t=>F.value=!1)},null,8,["dict-data","onSuccess"])):V("",!0),a(C)?(n(),u(ie,{key:1,ref_key:"moneyRef",ref:k,onSuccess:a(p),onClose:l[4]||(l[4]=t=>C.value=!1)},null,8,["onSuccess"])):V("",!0)])}}});const pt=le(ve,[["__scopeId","data-v-1f10c852"]]);export{pt as default};