engineering/public/admin/assets/index.925b1b5f.js
2024-04-19 12:13:39 +08:00

2 lines
6.9 KiB
JavaScript

import{D as Q,B as z,w as G,L as H,C as J,O as K,P as X,Q as Y}from"./element-plus.c5968462.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.963b6450.js";import{f as ee,a as te}from"./index.9aa949ed.js";import{u as oe}from"./usePaging.5a1a0ff2.js";import{u as ae}from"./useDictOptions.65204acf.js";import{b as le,e as V,d as ne}from"./bid_document_examination_detail.a2a70aaa.js";import"./lodash.f060c5ce.js";import{_ as ie}from"./edit.vue_vue_type_script_setup_true_name_bidDocumentExaminationDetailEdit_lang.2090e525.js";import re from"./detail.e6a0f1f9.js";import{d as P,s as A,r as D,a0 as de,ai as ue,o as u,c as se,V as e,M as l,O as f,u as t,L as c,S as W,a as $,k as ce,T as p,n as k}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.9bff6341.js";import"./dayjs.920ed704.js";import"./axios.fd7895df.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.89a2cd6d.js";import"./color.f7f12e1b.js";import"./clone.3f99ce25.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7ca60bdd.js";import"./ms.a9ae1d6d.js";import"./nprogress.2d805d1c.js";import"./vue-clipboard3.f9b015dd.js";import"./clipboard.84da4513.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.d693a0d8.js";import"./index.4450cf90.js";import"./index.vue_vue_type_script_setup_true_lang.c8e42ff4.js";import"./bid_document_examination.05193676.js";import"./index.vue_vue_type_script_setup_true_lang.e21c0518.js";import"./material_list.1ff03a1b.js";import"./custom.e6514cb6.js";const me=p("\u67E5\u8BE2"),pe=p("\u91CD\u7F6E"),_e=p(" \u65B0\u589E "),fe=p(" \u5220\u9664 "),he={class:"mt-4"},be=p(" \u7F16\u8F91 "),ve=p(" \u5220\u9664 "),Ee=p(" \u8BE6\u60C5 "),we={class:"flex justify-end mt-4"},Ce=P({name:"bidDocumentExaminationDetailLists"}),_t=P({...Ce,setup(Fe){const w=A(),b=A(),v=D(!1),C=D(!1),_=de({product_name:"",bid_document_examination_code:""}),F=D([]),L=r=>{F.value=r.map(({id:o})=>o)},{dictData:x}=ae(""),{pager:n,getLists:E,resetParams:R,resetPage:S}=oe({fetchFun:le,params:_}),T=async()=>{var r;v.value=!0,await k(),(r=b.value)==null||r.open("add")},N=async r=>{var s,d;let o=await V({id:r.id});v.value=!0,await k(),(s=b.value)==null||s.open("edit"),(d=b.value)==null||d.setFormData(o)},B=async r=>{await ee.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ne({id:r}),E()},j=async r=>{var s,d;let o=await V({id:r.id});C.value=!0,await k(),(s=w.value)==null||s.open(),(d=w.value)==null||d.setFormData(o)};return E(),(r,o)=>{const s=Q,d=z,m=G,U=H,y=J,I=te,a=K,O=X,q=Z,h=ue("perms"),M=Y;return u(),se("div",null,[e(y,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(U,{class:"mb-[-16px]",model:_,inline:""},{default:l(()=>[e(d,{label:"\u6807\u4E66\u5BA1\u67E5\u7F16\u7801",prop:"bid_document_examination_code"},{default:l(()=>[e(s,{class:"w-[280px]",modelValue:_.bid_document_examination_code,"onUpdate:modelValue":o[0]||(o[0]=i=>_.bid_document_examination_code=i),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6807\u4E66\u5BA1\u67E5\u7F16\u7801"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u4EA7\u54C1\u540D\u79F0",prop:"product_name"},{default:l(()=>[e(s,{class:"w-[280px]",modelValue:_.product_name,"onUpdate:modelValue":o[1]||(o[1]=i=>_.product_name=i),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EA7\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(d,null,{default:l(()=>[e(m,{type:"primary",onClick:t(S)},{default:l(()=>[me]),_:1},8,["onClick"]),e(m,{onClick:t(R)},{default:l(()=>[pe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((u(),c(y,{class:"!border-none",shadow:"never"},{default:l(()=>[f((u(),c(m,{type:"primary",onClick:T},{icon:l(()=>[e(I,{name:"el-icon-Plus"})]),default:l(()=>[_e]),_:1})),[[h,["bid.bid_document_examination_detail/add"]]]),f((u(),c(m,{disabled:!F.value.length,onClick:o[2]||(o[2]=i=>B(F.value))},{default:l(()=>[fe]),_:1},8,["disabled"])),[[h,["bid.bid_document_examination_detail/delete"]]]),$("div",he,[e(O,{border:"",data:t(n).lists,onSelectionChange:L},{default:l(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{"render-header":t(n).calcWidth,label:"\u6807\u4E66\u5BA1\u67E5\u7F16\u53F7",prop:"bid_document_examination_code"},null,8,["render-header"]),e(a,{"render-header":t(n).calcWidth,label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""},null,8,["render-header"]),e(a,{"render-header":t(n).calcWidth,label:"\u9879\u76EE\u540D\u79F0",prop:"project_name"},null,8,["render-header"]),e(a,{"render-header":t(n).calcWidth,label:"\u9879\u76EE\u7F16\u7801",prop:"project_code"},null,8,["render-header"]),e(a,{"render-header":t(n).calcWidth,label:"\u4EA7\u54C1\u540D\u79F0",prop:"product_name"},null,8,["render-header"]),e(a,{"render-header":t(n).calcWidth,label:"\u578B\u53F7\u89C4\u683C",prop:"product_specs","show-overflow-tooltip":""},null,8,["render-header"]),e(a,{label:"\u5355\u4F4D",prop:"product_unit","show-overflow-tooltip":""}),e(a,{label:"\u6570\u91CF",prop:"num","show-overflow-tooltip":""}),e(a,{"render-header":t(n).calcWidth,label:"\u6210\u672C\u5355\u4EF7",prop:"cost_price","show-overflow-tooltip":""},null,8,["render-header"]),e(a,{"render-header":t(n).calcWidth,label:"\u91D1\u989D",prop:"cost_amount","show-overflow-tooltip":""},null,8,["render-header"]),e(a,{"render-header":t(n).calcWidth,label:"\u70B9\u6570",prop:"points","show-overflow-tooltip":""},null,8,["render-header"]),e(a,{label:"\u62A5\u4EF7\u5355\u4EF7",prop:"sale_price","show-overflow-tooltip":""}),e(a,{"render-header":t(n).calcWidth,label:"\u62A5\u4EF7\u91D1\u989D",prop:"sale_amount","show-overflow-tooltip":""},null,8,["render-header"]),e(a,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:l(({row:i})=>[f((u(),c(m,{type:"primary",link:"",onClick:g=>N(i)},{default:l(()=>[be]),_:2},1032,["onClick"])),[[h,["bid.bid_document_examination_detail/edit"]]]),f((u(),c(m,{type:"danger",link:"",onClick:g=>B(i.id)},{default:l(()=>[ve]),_:2},1032,["onClick"])),[[h,["bid.bid_document_examination_detail/delete"]]]),f((u(),c(m,{link:"",onClick:g=>j(i)},{default:l(()=>[Ee]),_:2},1032,["onClick"])),[[h,["bid.bid_document_examination_detail/detail"]]])]),_:1})]),_:1},8,["data"])]),$("div",we,[e(q,{modelValue:t(n),"onUpdate:modelValue":o[3]||(o[3]=i=>ce(n)?n.value=i:null),onChange:t(E)},null,8,["modelValue","onChange"])])]),_:1})),[[M,t(n).loading]]),C.value?(u(),c(re,{key:0,ref_key:"detailRef",ref:w,"dict-data":t(x),onClose:o[4]||(o[4]=i=>C.value=!1)},null,8,["dict-data"])):W("",!0),v.value?(u(),c(ie,{key:1,ref_key:"editRef",ref:b,"dict-data":t(x),onSuccess:t(E),onClose:o[5]||(o[5]=i=>v.value=!1)},null,8,["dict-data","onSuccess"])):W("",!0)])}}});export{_t as default};