engineering/public/admin/assets/index.6d55840a.js
2024-02-20 17:15:05 +08:00

2 lines
5.2 KiB
JavaScript

import{L as j,w as A,M,C as q,N as O}from"./element-plus.b3353ca6.js";import{_ as U}from"./index.vue_vue_type_script_setup_true_lang.f8e9523f.js";import{u as z}from"./usePaging.f6660143.js";import{u as G}from"./useDictOptions.c47985a3.js";import{a as H,b as I}from"./procurement_contract_detail.d07248f1.js";import"./lodash.1d82ee7c.js";import{f as J}from"./index.892155dd.js";import{_ as K}from"./edit.vue_vue_type_script_setup_true_name_procurementContractDetailEdit_lang.b52906d2.js";import Q from"./detail.f06e4bcb.js";import{d as y,s as D,r as C,a0 as W,ai as X,o as r,c as Y,O as m,u as i,L as p,M as s,S as k,a as E,V as e,k as Z,T as h,n as B}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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.771e5a41.js";import"./index.vue_vue_type_script_setup_true_lang.c2972ddf.js";import"./procurement_contract.403020ae.js";import"./material_purchase_request.a3e8f690.js";import"./custom.735a8774.js";const tt={class:"mt-4"},et=h(" \u7F16\u8F91 "),ot=h(" \u5220\u9664 "),at=h(" \u8BE6\u60C5 "),lt={class:"flex justify-end mt-4"},rt=y({name:"procurementContractDetailLists"}),Zt=y({...rt,setup(it){const d=D(),_=D(),f=C(!1),v=C(!1),g=W({procurement_contract_id:"",material_procurement_application_id:""}),x=C([]),P=a=>{x.value=a.map(({id:o})=>o)},{dictData:b}=G("tax_rate,procurement_contract_type"),{pager:u,getLists:c,resetParams:nt,resetPage:pt}=z({fetchFun:H,params:g}),V=async a=>{var o,t;f.value=!0,await B(),(o=_.value)==null||o.open("edit"),(t=_.value)==null||t.setFormData(a)},$=async a=>{await J.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await apiProcurementContractDetailDelete({id:a}),c()},L=async a=>{var t,n;let o=await I({id:a.id});v.value=!0,await B(),(t=d.value)==null||t.open(),(n=d.value)==null||n.setFormData(o)};return c(),(a,o)=>{const t=j,n=A,R=M,N=U,S=q,w=X("perms"),T=O;return r(),Y("div",null,[m((r(),p(S,{class:"!border-none",shadow:"never"},{default:s(()=>[E("div",tt,[e(R,{data:i(u).lists,onSelectionChange:P},{default:s(()=>[e(t,{type:"selection",width:"55"}),e(t,{label:"\u5E8F\u53F7",type:"index",width:"55","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(t,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),e(t,{label:"\u4F9B\u5E94\u7F16\u53F7",prop:"supplier_code","show-overflow-tooltip":""}),e(t,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_name","show-overflow-tooltip":""}),e(t,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type_text","show-overflow-tooltip":""}),e(t,{label:"\u7A0E\u7387",prop:"tax_rate_text","show-overflow-tooltip":""}),e(t,{label:"\u6750\u6599\u7C7B\u522B",prop:"material_first_level","show-overflow-tooltip":""}),e(t,{label:"\u6750\u6599\u4E2D\u7C7B",prop:"material_second_level","show-overflow-tooltip":""}),e(t,{label:"\u6750\u6599\u5C0F\u7C7B",prop:"material_three_level","show-overflow-tooltip":""}),e(t,{label:"\u6750\u6599\u540D\u79F0",prop:"material_name","show-overflow-tooltip":""}),e(t,{label:"\u6750\u6599\u7F16\u7801",prop:"material_code","show-overflow-tooltip":""}),e(t,{label:"\u89C4\u683C\u578B\u53F7",prop:"material_specs","show-overflow-tooltip":""}),e(t,{label:"\u54C1\u724C",prop:"material_brand","show-overflow-tooltip":""}),e(t,{label:"\u53C2\u6570\u8BF4\u660E",prop:"material_parameter_description","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:s(({row:l})=>[m((r(),p(n,{type:"primary",link:"",onClick:F=>V(l)},{default:s(()=>[et]),_:2},1032,["onClick"])),[[w,["procurement_contract_detail/edit"]]]),m((r(),p(n,{type:"danger",link:"",onClick:F=>$(l.id)},{default:s(()=>[ot]),_:2},1032,["onClick"])),[[w,["procurement_contract_detail/delete"]]]),m((r(),p(n,{link:"",onClick:F=>L(l)},{default:s(()=>[at]),_:2},1032,["onClick"])),[[w,["procurement_contract_detail/detail"]]])]),_:1})]),_:1},8,["data"])]),E("div",lt,[e(N,{modelValue:i(u),"onUpdate:modelValue":o[0]||(o[0]=l=>Z(u)?u.value=l:null),onChange:i(c)},null,8,["modelValue","onChange"])])]),_:1})),[[T,i(u).loading]]),v.value?(r(),p(Q,{key:0,ref_key:"detailRef",ref:d,"dict-data":i(b),onClose:o[1]||(o[1]=l=>v.value=!1)},null,8,["dict-data"])):k("",!0),f.value?(r(),p(K,{key:1,ref_key:"editRef",ref:_,"dict-data":i(b),onSuccess:i(c),onClose:o[2]||(o[2]=l=>f.value=!1)},null,8,["dict-data","onSuccess"])):k("",!0)])}}});export{Zt as default};