engineering/public/admin/assets/index.a798f09e.js
2024-02-27 10:28:16 +08:00

2 lines
7.7 KiB
JavaScript

import{I as z,y as G,w as H,D as J,C as K,L as Q,M as W,N as X}from"./element-plus.517d4382.js";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as Z,a as ee}from"./index.8b1962e9.js";import{u as oe}from"./usePaging.f6660143.js";import{u as te}from"./useDictOptions.b5854a9e.js";import{_ as le,q as ue,a as ae,b as ne}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.d4dd1634.js";import"./lodash.1d82ee7c.js";import ie from"./detail.1b86aeee.js";import{d as A,a0 as g,s as k,r as C,ai as re,o as p,c as se,V as e,M as u,O as f,u as s,L as d,S as V,a as x,k as pe,T as c,n as q}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"./vue-router.87ebc608.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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_script_setup_true_lang.ed719f67.js";import"./project.a81dff6c.js";import"./index.b17dae19.js";import"./department.b8dec04d.js";import"./organization.5e75830a.js";import"./custom.99349afc.js";const de=c("\u67E5\u8BE2"),me=c("\u91CD\u7F6E"),ce=c(" \u65B0\u589E "),_e=c(" \u5220\u9664 "),fe={class:"mt-4"},we=c(" \u7F16\u8F91 "),Fe=c(" \u5220\u9664 "),be={class:"flex justify-end mt-4"},ve=A({name:"projectLists"}),mo=A({...ve,setup(Be){g([]);const $=k(),w=k(),F=C(!1),E=C(!1),a=g({standard_duration:"",document_number:"",document_name:"",resp_user:"",owning_stage:"",detection_task:""}),B=C([]),U=n=>{B.value=n.map(({id:o})=>o)},{dictData:D}=te("refund_type"),{pager:_,getLists:b,resetParams:L,resetPage:P}=oe({fetchFun:ue,params:a}),R=async()=>{var n;F.value=!0,await q(),(n=w.value)==null||n.open("add")},N=async n=>{var r,i;console.log(n.id);let o=await ae({id:n.id});F.value=!0,await q(),(r=w.value)==null||r.open("edit"),(i=w.value)==null||i.setFormData(o)},h=async n=>{await Z.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ne({id:n}),b()};return b(),(n,o)=>{const r=z,i=G,m=H,S=J,y=K,T=ee,t=Q,j=W,I=Y,v=re("perms"),M=X;return p(),se("div",null,[e(y,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[e(S,{class:"mb-[-16px]",model:a,inline:""},{default:u(()=>[e(i,{label:"\u68C0\u6D4B\u4EFB\u52A1",prop:"detection_task"},{default:u(()=>[e(r,{class:"w-[280px]",modelValue:a.detection_task,"onUpdate:modelValue":o[0]||(o[0]=l=>a.detection_task=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u68C0\u6D4B\u4EFB\u52A1"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u6240\u5C5E\u9636\u6BB5",prop:"owning_stage"},{default:u(()=>[e(r,{class:"w-[280px]",modelValue:a.owning_stage,"onUpdate:modelValue":o[1]||(o[1]=l=>a.owning_stage=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u9636\u6BB5"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u8D23\u4EFB\u4EBA",prop:"resp_user"},{default:u(()=>[e(r,{class:"w-[280px]",modelValue:a.resp_user,"onUpdate:modelValue":o[2]||(o[2]=l=>a.resp_user=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D23\u4EFB\u4EBA"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u6807\u51C6\u5DE5\u671F",prop:"standard_duration"},{default:u(()=>[e(r,{class:"w-[280px]",modelValue:a.standard_duration,"onUpdate:modelValue":o[3]||(o[3]=l=>a.standard_duration=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6807\u51C6\u5DE5\u671F"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u8D44\u6599\u7F16\u53F7",prop:"document_number"},{default:u(()=>[e(r,{class:"w-[280px]",modelValue:a.document_number,"onUpdate:modelValue":o[4]||(o[4]=l=>a.document_number=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D44\u6599\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u8D44\u6599\u540D\u79F0",prop:"document_name"},{default:u(()=>[e(r,{class:"w-[280px]",modelValue:a.document_name,"onUpdate:modelValue":o[5]||(o[5]=l=>a.document_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D44\u6599\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(i,null,{default:u(()=>[e(m,{type:"primary",onClick:s(P)},{default:u(()=>[de]),_:1},8,["onClick"]),e(m,{onClick:s(L)},{default:u(()=>[me]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((p(),d(y,{class:"!border-none",shadow:"never"},{default:u(()=>[f((p(),d(m,{type:"primary",onClick:R},{icon:u(()=>[e(T,{name:"el-icon-Plus"})]),default:u(()=>[ce]),_:1})),[[v,["quality.quality_detection/add"]]]),f((p(),d(m,{disabled:!B.value.length,onClick:o[6]||(o[6]=l=>h(B.value))},{default:u(()=>[_e]),_:1},8,["disabled"])),[[v,["quality.quality_detection/delete"]]]),x("div",fe,[e(j,{data:s(_).lists,onSelectionChange:U},{default:u(()=>[e(t,{type:"selection",width:"55"}),e(t,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(t,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"org_name","show-overflow-tooltip":""}),e(t,{label:"\u90E8\u95E8\u540D\u79F0",prop:"dept_name","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(t,{label:"\u68C0\u6D4B\u4EFB\u52A1",prop:"detection_task","show-overflow-tooltip":""}),e(t,{label:"\u6240\u5C5E\u9636\u6BB5",prop:"owning_stage","show-overflow-tooltip":""}),e(t,{label:"\u8D23\u4EFB\u4EBA",prop:"resp_user","show-overflow-tooltip":""}),e(t,{label:"\u8BA1\u5212\u5F00\u59CB\u65F6\u95F4",prop:"scheduled_start_time","show-overflow-tooltip":""}),e(t,{label:"\u8BA1\u5212\u7ED3\u675F\u65F6\u95F4",prop:"scheduled_end_time","show-overflow-tooltip":""}),e(t,{label:"\u662F\u5426\u5B8C\u6210",prop:"complete","show-overflow-tooltip":""}),e(t,{label:"\u5B9E\u9645\u5F00\u59CB\u65F6\u95F4",prop:"actual_start_time","show-overflow-tooltip":""}),e(t,{label:"\u5B9E\u9645\u7ED3\u675F\u65F6\u95F4",prop:"actual_end_time","show-overflow-tooltip":""}),e(t,{label:"\u8D44\u6599\u7F16\u53F7",prop:"document_number","show-overflow-tooltip":""}),e(t,{label:"\u8D44\u6599\u540D\u79F0",prop:"document_name","show-overflow-tooltip":""}),e(t,{label:"\u6587\u4EF6\u7A3F\u672C",prop:"document_manuscript","show-overflow-tooltip":""}),e(t,{label:"\u662F\u5426\u5F52\u6863",prop:"archiving","show-overflow-tooltip":""}),e(t,{label:"\u8D44\u6599\u5185\u5BB9\u8981\u6C42",prop:"data_content_requirements","show-overflow-tooltip":""}),e(t,{label:"\u68C0\u6D4B\u60C5\u51B5",prop:"detection_situation","show-overflow-tooltip":""}),e(t,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(t,{label:"\u9644\u4EF6",prop:"file","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:u(({row:l})=>[f((p(),d(m,{type:"primary",link:"",onClick:O=>N(l)},{default:u(()=>[we]),_:2},1032,["onClick"])),[[v,["quality.quality_detection/edit"]]]),f((p(),d(m,{type:"danger",link:"",onClick:O=>h(l.id)},{default:u(()=>[Fe]),_:2},1032,["onClick"])),[[v,["quality.quality_detection/delete"]]])]),_:1})]),_:1},8,["data"])]),x("div",be,[e(I,{modelValue:s(_),"onUpdate:modelValue":o[7]||(o[7]=l=>pe(_)?_.value=l:null),onChange:s(b)},null,8,["modelValue","onChange"])])]),_:1})),[[M,s(_).loading]]),F.value?(p(),d(le,{key:0,ref_key:"editRef",ref:w,"dict-data":s(D),onSuccess:s(b),onClose:o[8]||(o[8]=l=>F.value=!1)},null,8,["dict-data","onSuccess"])):V("",!0),E.value?(p(),d(ie,{key:1,ref_key:"detailRef",ref:$,"dict-data":s(D),onClose:o[9]||(o[9]=l=>E.value=!1)},null,8,["dict-data"])):V("",!0)])}}});export{mo as default};