2 lines
6.4 KiB
JavaScript
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.e49c119c.js";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang.8c9f8a22.js";import{f as Z,a as ee}from"./index.0aba8d1b.js";import{u as oe}from"./usePaging.f6660143.js";import{u as te}from"./useDictOptions.f0a47c79.js";import{a as ae,e as le,b as ie}from"./bid_document_examination_detail.eb6e240d.js";import"./lodash.86334a69.js";import{_ as ne}from"./edit.vue_vue_type_script_setup_true_name_bidDocumentExaminationDetailEdit_lang.8e8d6da1.js";import ue from"./detail.40765d5f.js";import{d as L,s as V,r as F,a0 as se,ai as re,o as n,c as de,V as e,M as a,O as _,u,L as r,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.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.5571e62a.js";import"./axios.9ce976cc.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.156d1593.js";import"./color.4188bfef.js";import"./clone.a0efef30.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ca37accd.js";import"./ms.a9ae1d6d.js";import"./nprogress.30953505.js";import"./vue-clipboard3.4e4a29c9.js";import"./clipboard.1a812829.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.4e8ca2f8.js";import"./index.vue_vue_type_script_setup_true_lang.25403172.js";import"./bid_buy_bidding_document.333af843.js";import"./index.vue_vue_type_script_setup_true_lang.d375a43c.js";import"./material_list.28fce1a9.js";import"./custom.ec06ae29.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 mt-4 justify-end"},Ce=L({name:"bidDocumentExaminationDetailLists"}),fo=L({...Ce,setup(De){const h=V(),v=V(),w=F(!1),C=F(!1),m=se({product_name:"",bid_document_examination_code:""}),D=F([]),P=i=>{D.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()},I=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,d=H,U=J,B=K,j=ee,t=Q,M=W,q=Y,b=re("perms"),O=X;return n(),de("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(U,{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(d,{type:"primary",onClick:u(N)},{default:a(()=>[me]),_:1},8,["onClick"]),e(d,{onClick:u(R)},{default:a(()=>[ce]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((n(),r(B,{class:"!border-none",shadow:"never"},{default:a(()=>[_((n(),r(d,{type:"primary",onClick:S},{icon:a(()=>[e(j,{name:"el-icon-Plus"})]),default:a(()=>[_e]),_:1})),[[b,["bid.bid_document_examination_detail/add"]]]),_((n(),r(d,{disabled:!D.value.length,onClick:o[2]||(o[2]=l=>y(D.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:"\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:"product_code","show-overflow-tooltip":""}),e(t,{label:"\u6295\u6807\u5BA1\u67E5\u5355\u53F7",prop:"cost_price","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(),r(d,{type:"primary",link:"",onClick:g=>T(l)},{default:a(()=>[ve]),_:2},1032,["onClick"])),[[b,["bid.bid_document_examination_detail/edit"]]]),_((n(),r(d,{type:"danger",link:"",onClick:g=>y(l.id)},{default:a(()=>[we]),_:2},1032,["onClick"])),[[b,["bid.bid_document_examination_detail/delete"]]]),_((n(),r(d,{link:"",onClick:g=>I(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(),r(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(),r(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};
|