2 lines
5.5 KiB
JavaScript
2 lines
5.5 KiB
JavaScript
import{I as R,y as I,w as U,D as M,C as q,L as O,M as G,N as H}from"./element-plus.258bf9e7.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{_ as K}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{_ as Q}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as W}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.c644f395.js";import{_ as Y,a as B,b as Z,c as ee}from"./edit.vue_vue_type_script_setup_true_name_projectCommissionDetailEdit_lang.d5e362bd.js";import"./lodash.1d82ee7c.js";import{f as oe}from"./index.ec401e3b.js";import{d as V,s as te,r as g,a0 as ae,ai as le,o as p,c as se,V as e,M as o,O as v,u as l,L as c,S as ie,a as y,k as ne,T as d,n as ue}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"./index.9492d03b.js";import"./index.vue_vue_type_style_index_0_lang.0ff67de9.js";import"./common.c510575b.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";const re=d("\u67E5\u8BE2"),pe=d("\u91CD\u7F6E"),me=d(" \u5220\u9664 "),_e={class:"mt-4"},ce=d(" \u7F16\u8F91 "),de=d(" \u5220\u9664 "),fe={class:"flex justify-end mt-4"},ve=V({name:"projectCommissionDetailLists"}),io=V({...ve,setup(De){const D=te(),C=g(!1),i=ae({engineer:"",task_name:""}),E=g([]),j=u=>{E.value=u.map(({id:t})=>t)},{dictData:k}=X("task_type,major_type"),{pager:n,getLists:f,resetParams:x,resetPage:A}=W({fetchFun:B,params:i}),$=async u=>{var m,r;let t=await Z({id:u.id});C.value=!0,await ue(),(m=D.value)==null||m.open("edit"),(r=D.value)==null||r.setFormData(t)},w=async u=>{await oe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ee({id:u}),f()};return f(),(u,t)=>{const m=R,r=I,_=U,P=Q,L=M,b=q,s=O,h=K,N=G,S=J,F=le("perms"),T=H;return p(),se("div",null,[e(b,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(L,{class:"mb-[-16px]",model:i,inline:""},{default:o(()=>[e(r,{label:"\u5DE5\u7A0B\u5E08",prop:"engineer"},{default:o(()=>[e(m,{class:"w-[280px]",modelValue:i.engineer,"onUpdate:modelValue":t[0]||(t[0]=a=>i.engineer=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5DE5\u7A0B\u5E08"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"task_name"},{default:o(()=>[e(m,{class:"w-[280px]",modelValue:i.task_name,"onUpdate:modelValue":t[1]||(t[1]=a=>i.task_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(r,null,{default:o(()=>[e(_,{type:"primary",onClick:l(A)},{default:o(()=>[re]),_:1},8,["onClick"]),e(_,{onClick:l(x)},{default:o(()=>[pe]),_:1},8,["onClick"]),e(P,{class:"ml-2.5","fetch-fun":l(B),params:i,"page-size":l(n).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),v((p(),c(b,{class:"!border-none",shadow:"never"},{default:o(()=>[v((p(),c(_,{disabled:!E.value.length,onClick:t[2]||(t[2]=a=>w(E.value))},{default:o(()=>[me]),_:1},8,["disabled"])),[[F,["project_commission_detail/delete"]]]),y("div",_e,[e(N,{data:l(n).lists,onSelectionChange:j},{default:o(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"\u5DE5\u7A0B\u5E08",prop:"engineer","show-overflow-tooltip":""}),e(s,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"task_name","show-overflow-tooltip":""}),e(s,{label:"\u4EFB\u52A1\u7C7B\u578B",prop:"task_type"},{default:o(({row:a})=>[e(h,{options:l(k).task_type,value:a.task_type},null,8,["options","value"])]),_:1}),e(s,{label:"\u4E13\u4E1A\u7C7B\u578B",prop:"professional_type"},{default:o(({row:a})=>[e(h,{options:l(k).major_type,value:a.professional_type},null,8,["options","value"])]),_:1}),e(s,{label:"\u9020\u4EF7\u91D1\u989D",prop:"zj_amount","show-overflow-tooltip":""}),e(s,{label:"\u6536\u6B3E\u91D1\u989D",prop:"sk_amount","show-overflow-tooltip":""}),e(s,{label:"\u63D0\u6210\u6BD4\u4F8B\uFF08%\uFF09",prop:"tc_rate","show-overflow-tooltip":""}),e(s,{label:"\u5E94\u63D0\u6210\u91D1\u989D",prop:"tc_amount","show-overflow-tooltip":""}),e(s,{label:"\u672C\u6B21\u652F\u4ED8\u91D1\u989D",prop:"pay_amount","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:a})=>[v((p(),c(_,{type:"primary",link:"",onClick:z=>$(a)},{default:o(()=>[ce]),_:2},1032,["onClick"])),[[F,["project_commission_detail/edit"]]]),v((p(),c(_,{type:"danger",link:"",onClick:z=>w(a.id)},{default:o(()=>[de]),_:2},1032,["onClick"])),[[F,["project_commission_detail/delete"]]])]),_:1})]),_:1},8,["data"])]),y("div",fe,[e(S,{modelValue:l(n),"onUpdate:modelValue":t[3]||(t[3]=a=>ne(n)?n.value=a:null),onChange:l(f)},null,8,["modelValue","onChange"])])]),_:1})),[[T,l(n).loading]]),C.value?(p(),c(Y,{key:0,ref_key:"editRef",ref:D,"dict-data":l(k),onSuccess:l(f),onClose:t[4]||(t[4]=a=>C.value=!1)},null,8,["dict-data","onSuccess"])):ie("",!0)])}}});export{io as default};
|