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

2 lines
5.6 KiB
JavaScript

import{I,y as W,w as j,D as q,C as M,L as O,M as z,N as G}from"./element-plus.258bf9e7.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as J,a as K}from"./index.ec401e3b.js";import{u as Q}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.c644f395.js";import{g as Y,e as Z}from"./supervision_witness_sampling.64fef680.js";import"./lodash.1d82ee7c.js";import{u as ee}from"./vue-router.87ebc608.js";import{_ as oe}from"./edit.vue_vue_type_script_setup_true_name_supervisionDiaryEdit_lang.f8d8f5b9.js";import{d as y,s as te,r as h,a0 as le,ai as ae,o as r,c as se,V as e,M as t,O as C,u,L as _,S as ie,a as g,k as ue,T as c,n as D}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"./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.a7758114.js";import"./index.9492d03b.js";const ne=c("\u67E5\u8BE2"),re=c("\u91CD\u7F6E"),pe=c(" \u65B0\u589E "),me=c(" \u5220\u9664 "),de={class:"mt-4"},_e=c(" \u68C0\u9A8C\u7ED3\u679C "),ce={class:"flex justify-end mt-4"},fe=y({name:"supervisionWitnessSamplingLists"}),ao=y({...fe,setup(we){const f=te(),w=h(!1),k=ee(),a=le({project_id:"",material_entry_id:"",code:"",witness:"",sampler:"",witness_sampling_id:k.query.id||""}),b=h([]),B=i=>{b.value=i.map(({id:o})=>o)},{dictData:V}=X("problem_cate"),{pager:p,getLists:v,resetParams:x,resetPage:A}=Q({fetchFun:Y,params:a}),S=async()=>{var i;w.value=!0,await D(),(i=f.value)==null||i.open("add")},L=async i=>{var o,n;w.value=!0,await D(),(o=f.value)==null||o.open("edit"),(n=f.value)==null||n.setFormData(i)},$=async i=>{await J.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Z({id:i}),v()};return v(),(i,o)=>{const n=I,m=W,d=j,N=q,E=M,P=K,s=O,R=z,T=H,F=ae("perms"),U=G;return r(),se("div",null,[e(E,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(N,{class:"mb-[-16px]",model:a,inline:""},{default:t(()=>[e(m,{label:"\u6765\u6E90\u5355\u636E",prop:"material_entry_id"},{default:t(()=>[e(n,{class:"w-[280px]",modelValue:a.material_entry_id,"onUpdate:modelValue":o[0]||(o[0]=l=>a.material_entry_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6765\u6E90\u5355\u636E"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u7F16\u53F7",prop:"code"},{default:t(()=>[e(n,{class:"w-[280px]",modelValue:a.code,"onUpdate:modelValue":o[1]||(o[1]=l=>a.code=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u89C1\u8BC1\u4EBA",prop:"witness"},{default:t(()=>[e(n,{class:"w-[280px]",modelValue:a.witness,"onUpdate:modelValue":o[2]||(o[2]=l=>a.witness=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u89C1\u8BC1\u4EBA"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u53D6\u6837\u4EBA",prop:"sampler"},{default:t(()=>[e(n,{class:"w-[280px]",modelValue:a.sampler,"onUpdate:modelValue":o[3]||(o[3]=l=>a.sampler=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u53D6\u6837\u4EBA"},null,8,["modelValue"])]),_:1}),e(m,null,{default:t(()=>[e(d,{type:"primary",onClick:u(A)},{default:t(()=>[ne]),_:1},8,["onClick"]),e(d,{onClick:u(x)},{default:t(()=>[re]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),C((r(),_(E,{class:"!border-none",shadow:"never"},{default:t(()=>[C((r(),_(d,{type:"primary",onClick:S},{icon:t(()=>[e(P,{name:"el-icon-Plus"})]),default:t(()=>[pe]),_:1})),[[F,["supervision_work.supervision_witness_sampling/add"]]]),C((r(),_(d,{disabled:!b.value.length,onClick:o[4]||(o[4]=l=>$(b.value))},{default:t(()=>[me]),_:1},8,["disabled"])),[[F,["supervision_work.supervision_witness_sampling/delete"]]]),g("div",de,[e(R,{data:u(p).lists,onSelectionChange:B},{default:t(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"\u6750\u6599\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(s,{label:"\u578B\u53F7",prop:"model","show-overflow-tooltip":""}),e(s,{label:"\u53D6\u6837\u65F6\u95F4",prop:"sampling_date","show-overflow-tooltip":""}),e(s,{label:"\u8FDB\u573A\u6570\u91CF",prop:"entry_number","show-overflow-tooltip":""}),e(s,{label:"\u8FDB\u573A\u65E5\u671F",prop:"enter_time","show-overflow-tooltip":""}),e(s,{label:"\u68C0\u9A8C\u7ED3\u679C",prop:"check_result_text","show-overflow-tooltip":""}),e(s,{label:"\u95EE\u9898\u6570\u91CF",prop:"problem_num","show-overflow-tooltip":""}),e(s,{label:"\u56DE\u590D\u6570\u91CF",prop:"reply_num","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[C((r(),_(d,{type:"primary",link:"",onClick:ve=>L(l)},{default:t(()=>[_e]),_:2},1032,["onClick"])),[[F,["supervision_work.supervision_witness_sampling/edit"]]])]),_:1})]),_:1},8,["data"])]),g("div",ce,[e(T,{modelValue:u(p),"onUpdate:modelValue":o[5]||(o[5]=l=>ue(p)?p.value=l:null),onChange:u(v)},null,8,["modelValue","onChange"])])]),_:1})),[[U,u(p).loading]]),w.value?(r(),_(oe,{key:0,ref_key:"editRef",ref:f,"dict-data":u(V),onSuccess:u(v),onClose:o[6]||(o[6]=l=>w.value=!1)},null,8,["dict-data","onSuccess"])):ie("",!0)])}}});export{ao as default};