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

2 lines
6.4 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.258bf9e7.js";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as Z,a as ee}from"./index.ec401e3b.js";import{u as oe}from"./usePaging.f6660143.js";import{u as te}from"./useDictOptions.c644f395.js";import{b as ae,g as le,d as ie}from"./bid_document_examination_detail.7c75ca6e.js";import"./lodash.1d82ee7c.js";import{_ as ne}from"./edit.vue_vue_type_script_setup_true_name_bidDocumentExaminationDetailEdit_lang.e1c451ce.js";import ue from"./detail.2dc02c36.js";import{d as L,s as V,r as D,a0 as se,ai as de,o as n,c as re,V as e,M as a,O as _,u,L as d,S as A,a as $,k as pe,T as p,n as k}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.fee6e8c3.js";import"./bid_document_examination.3ecf1ccf.js";import"./index.vue_vue_type_script_setup_true_lang.56061058.js";import"./material_list.9f618924.js";import"./custom.13e75d58.js";const me=p("\u67E5\u8BE2"),ce=p("\u91CD\u7F6E"),_e=p(" \u65B0\u589E "),fe=p(" \u5220\u9664 "),be={class:"mt-4"},ve=p(" \u7F16\u8F91 "),we=p(" \u5220\u9664 "),Ee=p(" \u8BE6\u60C5 "),he={class:"flex justify-end mt-4"},Ce=L({name:"bidDocumentExaminationDetailLists"}),fo=L({...Ce,setup(Fe){const h=V(),v=V(),w=D(!1),C=D(!1),m=se({product_name:"",bid_document_examination_code:""}),F=D([]),P=i=>{F.value=i.map(({id:o})=>o)},{dictData:x}=te(""),{pager:f,getLists:E,resetParams:R,resetPage:N}=oe({fetchFun:ae,params:m}),S=async()=>{var i;w.value=!0,await k(),(i=v.value)==null||i.open("add")},T=async i=>{var o,s;w.value=!0,await k(),(o=v.value)==null||o.open("edit"),(s=v.value)==null||s.setFormData(i)},y=async i=>{await Z.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await le({id:i}),E()},j=async i=>{var s,c;let o=await ie({id:i.id});C.value=!0,await k(),(s=h.value)==null||s.open(),(c=h.value)==null||c.setFormData(o)};return E(),(i,o)=>{const s=z,c=G,r=H,I=J,B=K,U=ee,t=Q,M=W,q=Y,b=de("perms"),O=X;return n(),re("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(I,{class:"mb-[-16px]",model:m,inline:""},{default:a(()=>[e(c,{label:"\u6807\u4E66\u5BA1\u67E5\u7F16\u7801",prop:"bid_document_examination_code"},{default:a(()=>[e(s,{class:"w-[280px]",modelValue:m.bid_document_examination_code,"onUpdate:modelValue":o[0]||(o[0]=l=>m.bid_document_examination_code=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6807\u4E66\u5BA1\u67E5\u7F16\u7801"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u4EA7\u54C1\u540D\u79F0",prop:"product_name"},{default:a(()=>[e(s,{class:"w-[280px]",modelValue:m.product_name,"onUpdate:modelValue":o[1]||(o[1]=l=>m.product_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EA7\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(c,null,{default:a(()=>[e(r,{type:"primary",onClick:u(N)},{default:a(()=>[me]),_:1},8,["onClick"]),e(r,{onClick:u(R)},{default:a(()=>[ce]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((n(),d(B,{class:"!border-none",shadow:"never"},{default:a(()=>[_((n(),d(r,{type:"primary",onClick:S},{icon:a(()=>[e(U,{name:"el-icon-Plus"})]),default:a(()=>[_e]),_:1})),[[b,["bid.bid_document_examination_detail/add"]]]),_((n(),d(r,{disabled:!F.value.length,onClick:o[2]||(o[2]=l=>y(F.value))},{default:a(()=>[fe]),_:1},8,["disabled"])),[[b,["bid.bid_document_examination_detail/delete"]]]),$("div",be,[e(M,{data:u(f).lists,onSelectionChange:P},{default:a(()=>[e(t,{type:"selection",width:"55"}),e(t,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(t,{label:"\u6807\u4E66\u5BA1\u67E5\u7F16\u53F7",prop:"bid_document_examination_code","show-overflow-tooltip":""}),e(t,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(t,{label:"\u4EA7\u54C1\u540D\u79F0",prop:"product_name","show-overflow-tooltip":""}),e(t,{label:"\u578B\u53F7\u89C4\u683C",prop:"product_specs","show-overflow-tooltip":""}),e(t,{label:"\u5355\u4F4D",prop:"product_unit","show-overflow-tooltip":""}),e(t,{label:"\u6570\u91CF",prop:"num","show-overflow-tooltip":""}),e(t,{label:"\u6210\u672C\u5355\u4EF7",prop:"cost_price","show-overflow-tooltip":""}),e(t,{label:"\u91D1\u989D",prop:"cost_amount","show-overflow-tooltip":""}),e(t,{label:"\u70B9\u6570",prop:"points","show-overflow-tooltip":""}),e(t,{label:"\u62A5\u4EF7\u5355\u4EF7",prop:"sale_price","show-overflow-tooltip":""}),e(t,{label:"\u62A5\u4EF7\u91D1\u989D",prop:"sale_amount","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:a(({row:l})=>[_((n(),d(r,{type:"primary",link:"",onClick:g=>T(l)},{default:a(()=>[ve]),_:2},1032,["onClick"])),[[b,["bid.bid_document_examination_detail/edit"]]]),_((n(),d(r,{type:"danger",link:"",onClick:g=>y(l.id)},{default:a(()=>[we]),_:2},1032,["onClick"])),[[b,["bid.bid_document_examination_detail/delete"]]]),_((n(),d(r,{link:"",onClick:g=>j(l)},{default:a(()=>[Ee]),_:2},1032,["onClick"])),[[b,["bid.bid_document_examination_detail/detail"]]])]),_:1})]),_:1},8,["data"])]),$("div",he,[e(q,{modelValue:u(f),"onUpdate:modelValue":o[3]||(o[3]=l=>pe(f)?f.value=l:null),onChange:u(E)},null,8,["modelValue","onChange"])])]),_:1})),[[O,u(f).loading]]),C.value?(n(),d(ue,{key:0,ref_key:"detailRef",ref:h,"dict-data":u(x),onClose:o[4]||(o[4]=l=>C.value=!1)},null,8,["dict-data"])):A("",!0),w.value?(n(),d(ne,{key:1,ref_key:"editRef",ref:v,"dict-data":u(x),onSuccess:u(E),onClose:o[5]||(o[5]=l=>w.value=!1)},null,8,["dict-data","onSuccess"])):A("",!0)])}}});export{fo as default};