engineering/public/admin/assets/index.d84bb83d.js
2023-12-28 22:39:33 +08:00

2 lines
7.1 KiB
JavaScript

import{G as J,B as W,y as X,A as Y,w as Z,N as tt,C as ot,P as et,Q as at,R as lt}from"./element-plus.fe574ac0.js";import{_ as nt}from"./index.vue_vue_type_script_setup_true_lang.628d4476.js";import{_ as rt}from"./index.vue_vue_type_script_setup_true_lang.23d19169.js";import{f as ut,a as it}from"./index.db0f15e9.js";import{u as st}from"./usePaging.160b82b8.js";import{u as ct}from"./useDictOptions.e2898198.js";import{a as pt,b as A,e as mt}from"./contract.2a1e18c7.js";import"./lodash.3080e53f.js";import{_ as dt}from"./edit.vue_vue_type_script_setup_true_name_contractEdit_lang.6bd08d7f.js";import{_ as _t}from"./detail.vue_vue_type_style_index_0_lang.b178625a.js";import{d as N,s as R,r as D,$ as ft,af as vt,o as u,c as L,U as t,L as e,M as f,u as n,K as s,R as P,V as Ct,a7 as wt,a as S,k as bt,S as m,n as g}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.92e7f918.js";import"./dayjs.79cf08f3.js";import"./axios.77c85d3e.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.54284180.js";import"./color.1c59b943.js";import"./clone.0c702ab2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.66e2071a.js";import"./ms.a9ae1d6d.js";import"./nprogress.81114d43.js";import"./vue-clipboard3.f3fb4eed.js";import"./clipboard.c973b911.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.vue_vue_type_script_setup_true_lang.32adb8e4.js";import"./custom.2807f272.js";import"./index.c85b5a1d.js";import"./index.vue_vue_type_script_setup_true_lang.0eba2e6b.js";import"./bid_buy_bidding_document.40c3d8cc.js";import"./index.43ec6251.js";import"./no_perms.2c994bf8.js";import"./common.a55eb913.js";import"./department.111e51f3.js";import"./organization.2adc7593.js";const ht=m("\u67E5\u8BE2"),yt=m("\u91CD\u7F6E"),Et=m(" \u65B0\u589E "),Ft=m(" \u5220\u9664 "),Bt={class:"mt-4"},kt=m(" \u7F16\u8F91 "),Dt=m(" \u5220\u9664 "),gt=m(" \u8BE6\u60C5 "),Vt={class:"flex mt-4 justify-end"},$t=N({name:"contractLists"}),Vo=N({...$t,setup(xt){const E=R(),w=R(),b=D(!1),F=D(!1),d=ft({contract_name:"",contract_type:""}),B=D([]),T=r=>{B.value=r.map(({id:a})=>a)},{dictData:_}=ct("contract_type,contract_pricing_method,contract_status"),{pager:v,getLists:h,resetParams:U,resetPage:j}=st({fetchFun:pt,params:d}),I=async()=>{var r;b.value=!0,await g(),(r=w.value)==null||r.open("add")},q=async r=>{var c,i;let a=await A({id:r.id});b.value=!0,await g(),(c=w.value)==null||c.open("edit"),(i=w.value)==null||i.setFormData(a)},V=async r=>{await ut.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await mt({id:r}),h()},G=async r=>{var c,i;let a=await A({id:r.id});F.value=!0,await g(),(c=E.value)==null||c.open(),(i=E.value)==null||i.setFormData(a)};return h(),(r,a)=>{const c=J,i=W,$=X,K=Y,p=Z,M=tt,x=ot,O=it,l=et,k=rt,Q=at,z=nt,C=vt("perms"),H=lt;return u(),L("div",null,[t(x,{class:"!border-none mb-4",shadow:"never"},{default:e(()=>[t(M,{class:"mb-[-16px]",model:d,inline:""},{default:e(()=>[t(i,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_name"},{default:e(()=>[t(c,{class:"w-[280px]",modelValue:d.contract_name,"onUpdate:modelValue":a[0]||(a[0]=o=>d.contract_name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(i,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type"},{default:e(()=>[t(K,{class:"w-[280px]",modelValue:d.contract_type,"onUpdate:modelValue":a[1]||(a[1]=o=>d.contract_type=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C\u7C7B\u578B"},{default:e(()=>[t($,{label:"\u5168\u90E8",value:""}),(u(!0),L(Ct,null,wt(n(_).contract_type,(o,y)=>(u(),s($,{key:y,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(i,null,{default:e(()=>[t(p,{type:"primary",onClick:n(j)},{default:e(()=>[ht]),_:1},8,["onClick"]),t(p,{onClick:n(U)},{default:e(()=>[yt]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((u(),s(x,{class:"!border-none",shadow:"never"},{default:e(()=>[f((u(),s(p,{type:"primary",onClick:I},{icon:e(()=>[t(O,{name:"el-icon-Plus"})]),default:e(()=>[Et]),_:1})),[[C,["contract.contract/add"]]]),f((u(),s(p,{disabled:!B.value.length,onClick:a[2]||(a[2]=o=>V(B.value))},{default:e(()=>[Ft]),_:1},8,["disabled"])),[[C,["contract.contract/delete"]]]),S("div",Bt,[t(Q,{data:n(v).lists,onSelectionChange:T},{default:e(()=>[t(l,{type:"selection",width:"55"}),t(l,{label:"\u5BA2\u6237\u540D\u79F0",prop:"customer_name","show-overflow-tooltip":""}),t(l,{label:"\u5BA1\u6279id",prop:"approve_id","show-overflow-tooltip":""}),t(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),t(l,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),t(l,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_code","show-overflow-tooltip":""}),t(l,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type"},{default:e(({row:o})=>[t(k,{options:n(_).contract_type,value:o.contract_type},null,8,["options","value"])]),_:1}),t(l,{label:"\u5408\u540C\u8BA1\u4EF7\u65B9\u5F0F",prop:"contract_pricing_method"},{default:e(({row:o})=>[t(k,{options:n(_).contract_pricing_method,value:o.contract_pricing_method},null,8,["options","value"])]),_:1}),t(l,{label:"\u7532\u65B9",prop:"party_a","show-overflow-tooltip":""}),t(l,{label:"\u4E59\u65B9",prop:"party_b","show-overflow-tooltip":""}),t(l,{label:"\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),t(l,{label:"\u4E1A\u52A1\u8D1F\u8D23\u4EBA",prop:"business_director","show-overflow-tooltip":""}),t(l,{label:"\u5408\u540C\u72B6\u6001",prop:"contract_status","show-overflow-tooltip":""},{default:e(({row:o})=>[t(k,{options:n(_).contract_status,value:o.contract_status},null,8,["options","value"])]),_:1}),t(l,{label:"\u5408\u540C\u6709\u6548\u671F",prop:"expire","show-overflow-tooltip":""}),t(l,{label:"\u7B7E\u7EA6\u65E5\u671F",prop:"contract_date","show-overflow-tooltip":""}),t(l,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:e(({row:o})=>[f((u(),s(p,{type:"primary",link:"",onClick:y=>q(o)},{default:e(()=>[kt]),_:2},1032,["onClick"])),[[C,["contract.contract/edit"]]]),f((u(),s(p,{type:"danger",link:"",onClick:y=>V(o.approve_id)},{default:e(()=>[Dt]),_:2},1032,["onClick"])),[[C,["contract.contract/delete"]]]),f((u(),s(p,{link:"",onClick:y=>G(o)},{default:e(()=>[gt]),_:2},1032,["onClick"])),[[C,["contract.contract/detail"]]])]),_:1})]),_:1},8,["data"])]),S("div",Vt,[t(z,{modelValue:n(v),"onUpdate:modelValue":a[3]||(a[3]=o=>bt(v)?v.value=o:null),onChange:n(h)},null,8,["modelValue","onChange"])])]),_:1})),[[H,n(v).loading]]),F.value?(u(),s(_t,{key:0,ref_key:"detailRef",ref:E,"dict-data":n(_),onClose:a[4]||(a[4]=o=>F.value=!1)},null,8,["dict-data"])):P("",!0),b.value?(u(),s(dt,{key:1,ref_key:"editRef",ref:w,"dict-data":n(_),onSuccess:n(h),onClose:a[5]||(a[5]=o=>b.value=!1)},null,8,["dict-data","onSuccess"])):P("",!0)])}}});export{Vo as default};