suyuan-breed/public/admin/assets/index.3fa8129a.js

2 lines
5.7 KiB
JavaScript

import{B as M,C as Q,w as z,D as G,J as O,K as W,L as X,M as Y,N as Z}from"./element-plus.ae8e286c.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.4acf6c9d.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.4e44db35.js";import{f as te,b as ae}from"./index.fccb4ef5.js";import{u as le}from"./vue-router.ed788fee.js";import{u as ne}from"./usePaging.2a59f422.js";import{u as ie}from"./useDictOptions.7b4b6189.js";import{_ as se,a as ue,b as re}from"./edit.vue_vue_type_script_setup_true_name_animalInfoEdit_lang.879dca2d.js";import{d as $,s as pe,r as B,_ as me,ae as _e,o as i,c as ce,T as e,K as o,L as _,u as s,J as u,Q as F,a as A,R as r,S as V,j as de,n as x}from"./@vue.108c970a.js";import"./lodash.e92d81a1.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.664390f6.js";import"./axios.4ebfdb3f.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.dbf33394.js";import"./color.e1b5fced.js";import"./clone.0a4e8ac3.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.f174a91e.js";import"./ms.a9ae1d6d.js";import"./nprogress.d7c3ab1b.js";import"./vue-clipboard3.add720e2.js";import"./clipboard.01ea18f5.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./index.0d3bed35.js";const fe=r("\u67E5\u8BE2"),he=r("\u91CD\u7F6E"),ve=r(" \u65B0\u589E "),be=r(" \u5220\u9664 "),we={class:"mt-4"},Ce=r(" \u7F16\u8F91 "),Fe=r(" \u5220\u9664 "),ye={class:"flex mt-4 justify-end"},Ee=$({name:"animalInfoLists"}),mo=$({...Ee,setup(ge){const{query:I}=le(),c=pe(),d=B(!1);let w=I.fence_house_id;typeof w>"u"&&(w="");const f=me({sn:"",fence_house_id:w}),C=B([]),L=n=>{C.value=n.map(({id:l})=>l)},{dictData:y}=ie("animal_type"),{pager:m,getLists:h,resetParams:R,resetPage:S}=ne({fetchFun:ue,params:f}),T=async()=>{var n;d.value=!0,await x(),(n=c.value)==null||n.open("add")},N=async n=>{var l,v;d.value=!0,await x(),(l=c.value)==null||l.open("edit"),(v=c.value)==null||v.setFormData(n)},E=async n=>{await te.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await re({id:n}),h()};return h(),(n,l)=>{const v=M,g=Q,p=z,P=G,k=O,j=ae,t=W,D=X,q=oe,H=Y,J=ee,b=_e("perms"),K=Z;return i(),ce("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(P,{class:"mb-[-16px]",model:f,inline:""},{default:o(()=>[e(g,{label:"\u8033\u53F7",prop:"sn"},{default:o(()=>[e(v,{class:"w-[280px]",modelValue:f.sn,"onUpdate:modelValue":l[0]||(l[0]=a=>f.sn=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8033\u53F7"},null,8,["modelValue"])]),_:1}),e(g,null,{default:o(()=>[e(p,{type:"primary",onClick:s(S)},{default:o(()=>[fe]),_:1},8,["onClick"]),e(p,{onClick:s(R)},{default:o(()=>[he]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),u(k,{class:"!border-none",shadow:"never"},{default:o(()=>[_((i(),u(p,{type:"primary",onClick:T},{icon:o(()=>[e(j,{name:"el-icon-Plus"})]),default:o(()=>[ve]),_:1})),[[b,["animal_info.animal_info/add"]]]),_((i(),u(p,{disabled:!C.value.length,onClick:l[1]||(l[1]=a=>E(C.value))},{default:o(()=>[be]),_:1},8,["disabled"])),[[b,["animal_info.animal_info/delete"]]]),A("div",we,[e(H,{data:s(m).lists,onSelectionChange:L},{default:o(()=>[e(t,{type:"selection",width:"55"}),e(t,{label:"\u6240\u5C5E\u680F\u820D",prop:"fence_house_id"},{default:o(({row:a})=>[a.fence_house_id!=null?(i(),u(D,{key:0,class:"mr-2",type:"info"},{default:o(()=>[r("ID: "+V(a.fence_house_id),1)]),_:2},1024)):F("",!0),a.fenceHouseAttr!=null?(i(),u(D,{key:1,class:"mr-2",type:"info"},{default:o(()=>[r("\u540D\u79F0: "+V(a.fenceHouseAttr.fence_house_name),1)]),_:2},1024)):F("",!0)]),_:1}),e(t,{label:"\u8033\u53F7",prop:"sn","show-overflow-tooltip":""}),e(t,{label:"\u54C1\u7C7B",prop:"animal_type"},{default:o(({row:a})=>[e(q,{options:s(y).animal_type,value:a.animal_type},null,8,["options","value"])]),_:1}),e(t,{label:"\u54C1\u79CD",prop:"brand","show-overflow-tooltip":""}),e(t,{label:"\u751F\u7406\u9636\u6BB5",prop:"physi_stage","show-overflow-tooltip":""}),e(t,{label:"\u6027\u522B",prop:"gender","show-overflow-tooltip":""}),e(t,{label:"\u8840\u7EDF\u7EAF\u5EA6",prop:"blood_purity","show-overflow-tooltip":""}),e(t,{label:"\u6765\u6E90",prop:"animal_source","show-overflow-tooltip":""}),e(t,{label:"\u73B0\u4F30\u91CF",prop:"current_estimation","show-overflow-tooltip":""}),e(t,{label:"\u4EE3\u6570",prop:"algebra","show-overflow-tooltip":""}),e(t,{label:"\u51FA\u751F\u65E5\u671F",prop:"birth","show-overflow-tooltip":""}),e(t,{label:"\u5165\u573A\u65E5\u671F",prop:"entry_date","show-overflow-tooltip":""}),e(t,{label:"\u51FA\u751F\u4F53\u91CD",prop:"birth_estimation","show-overflow-tooltip":""}),e(t,{label:"\u5065\u5EB7\u72B6\u51B5",prop:"health_condition","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:a})=>[_((i(),u(p,{type:"primary",link:"",onClick:U=>N(a)},{default:o(()=>[Ce]),_:2},1032,["onClick"])),[[b,["animal_info.animal_info/edit"]]]),_((i(),u(p,{type:"danger",link:"",onClick:U=>E(a.id)},{default:o(()=>[Fe]),_:2},1032,["onClick"])),[[b,["animal_info.animal_info/delete"]]])]),_:1})]),_:1},8,["data"])]),A("div",ye,[e(J,{modelValue:s(m),"onUpdate:modelValue":l[2]||(l[2]=a=>de(m)?m.value=a:null),onChange:s(h)},null,8,["modelValue","onChange"])])]),_:1})),[[K,s(m).loading]]),d.value?(i(),u(se,{key:0,ref_key:"editRef",ref:c,"dict-data":s(y),onSuccess:s(h),onClose:l[3]||(l[3]=a=>d.value=!1)},null,8,["dict-data","onSuccess"])):F("",!0)])}}});export{mo as default};