2 lines
5.6 KiB
JavaScript
2 lines
5.6 KiB
JavaScript
import{I as A,y as M,w as q,D as O,C as G,L as H,M as J,N as K}from"./element-plus.258bf9e7.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as W,a as X}from"./index.ec401e3b.js";import{_ as Y}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as Z}from"./usePaging.f6660143.js";import{u as ee}from"./useDictOptions.c644f395.js";import{_ as oe,a as D,b as te,c as ae}from"./edit.vue_vue_type_script_setup_true_name_dataReceptionEdit_lang.5ba0126e.js";import"./lodash.1d82ee7c.js";import{d as V,s as le,r as k,a0 as ne,ai as ue,o as r,c as ie,V as e,M as t,O as f,u as n,L as d,S as se,a as B,k as re,T as _,n as g}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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";import"./index.vue_vue_type_script_setup_true_lang.c11935ba.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./cost_project.2762b876.js";import"./index.a7758114.js";const pe=_("\u67E5\u8BE2"),me=_("\u91CD\u7F6E"),ce=_(" \u65B0\u589E "),de=_(" \u5220\u9664 "),_e={class:"mt-4"},fe=_(" \u7F16\u8F91 "),Fe=_(" \u5220\u9664 "),Ee={class:"flex justify-end mt-4"},ve=V({name:"dataReceptionLists"}),ro=V({...ve,setup(we){const F=le(),E=k(!1),u=ne({num:"",project:"",project_num:""}),b=k([]),y=i=>{b.value=i.map(({id:o})=>o)},{dictData:j}=ee(""),{pager:p,getLists:v,resetParams:x,resetPage:R}=Z({fetchFun:D,params:u}),$=async()=>{var i;E.value=!0,await g(),(i=F.value)==null||i.open("add")},L=async i=>{var m,s;let o=await te({id:i.id});E.value=!0,await g(),(m=F.value)==null||m.open("edit"),(s=F.value)==null||s.setFormData(o)},h=async i=>{await W.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ae({id:i}),v()};return v(),(i,o)=>{const m=A,s=M,c=q,I=Y,N=O,C=G,P=X,l=H,S=J,T=Q,w=ue("perms"),U=K;return r(),ie("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(N,{class:"mb-[-16px]",model:u,inline:""},{default:t(()=>[e(s,{label:"\u5355\u636E\u7F16\u53F7",prop:"num"},{default:t(()=>[e(m,{class:"w-[280px]",modelValue:u.num,"onUpdate:modelValue":o[0]||(o[0]=a=>u.num=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u636E\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u9879\u76EE\u540D\u79F0",prop:"project"},{default:t(()=>[e(m,{class:"w-[280px]",modelValue:u.project,"onUpdate:modelValue":o[1]||(o[1]=a=>u.project=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u9879\u76EE\u7F16\u53F7",prop:"project_num"},{default:t(()=>[e(m,{class:"w-[280px]",modelValue:u.project_num,"onUpdate:modelValue":o[2]||(o[2]=a=>u.project_num=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(s,null,{default:t(()=>[e(c,{type:"primary",onClick:n(R)},{default:t(()=>[pe]),_:1},8,["onClick"]),e(c,{onClick:n(x)},{default:t(()=>[me]),_:1},8,["onClick"]),e(I,{class:"ml-2.5","fetch-fun":n(D),params:u,"page-size":n(p).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),f((r(),d(C,{class:"!border-none",shadow:"never"},{default:t(()=>[f((r(),d(c,{type:"primary",onClick:$},{icon:t(()=>[e(P,{name:"el-icon-Plus"})]),default:t(()=>[ce]),_:1})),[[w,["data_reception/add"]]]),f((r(),d(c,{disabled:!b.value.length,onClick:o[3]||(o[3]=a=>h(b.value))},{default:t(()=>[de]),_:1},8,["disabled"])),[[w,["data_reception/delete"]]]),B("div",_e,[e(S,{data:n(p).lists,onSelectionChange:y},{default:t(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5355\u636E\u7F16\u53F7",prop:"num","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"projectInfo.project_name","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u7F16\u53F7",prop:"projectInfo.project_num","show-overflow-tooltip":""}),e(l,{label:"\u767B\u8BB0\u65E5\u671F",prop:"apptime","show-overflow-tooltip":""}),e(l,{label:"\u767B\u8BB0\u4EBA",prop:"person","show-overflow-tooltip":""}),e(l,{label:"\u8D44\u6599\u4EFD\u6570",prop:"number","show-overflow-tooltip":""}),e(l,{label:"\u5B58\u653E\u4F4D\u7F6E",prop:"position","show-overflow-tooltip":""}),e(l,{label:"\u8BF4\u660E",prop:"tips","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:a})=>[f((r(),d(c,{type:"primary",link:"",onClick:z=>L(a)},{default:t(()=>[fe]),_:2},1032,["onClick"])),[[w,["data_reception/edit"]]]),f((r(),d(c,{type:"danger",link:"",onClick:z=>h(a.id)},{default:t(()=>[Fe]),_:2},1032,["onClick"])),[[w,["data_reception/delete"]]])]),_:1})]),_:1},8,["data"])]),B("div",Ee,[e(T,{modelValue:n(p),"onUpdate:modelValue":o[4]||(o[4]=a=>re(p)?p.value=a:null),onChange:n(v)},null,8,["modelValue","onChange"])])]),_:1})),[[U,n(p).loading]]),E.value?(r(),d(oe,{key:0,ref_key:"editRef",ref:F,"dict-data":n(j),onSuccess:n(v),onClose:o[5]||(o[5]=a=>E.value=!1)},null,8,["dict-data","onSuccess"])):se("",!0)])}}});export{ro as default};
|