Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

2 lines
6.4KB

  1. var X=Object.defineProperty,Z=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var U=(s,l,o)=>l in s?X(s,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):s[l]=o,g=(s,l)=>{for(var o in l||(l={}))te.call(l,o)&&U(s,o,l[o]);if(P)for(var o of P(l))ae.call(l,o)&&U(s,o,l[o]);return s},Y=(s,l)=>Z(s,ee(l));var N=(s,l,o)=>new Promise((w,t)=>{var f=p=>{try{v(o.next(p))}catch(u){t(u)}},h=p=>{try{v(o.throw(p))}catch(u){t(u)}},v=p=>p.done?w(p.value):Promise.resolve(p.value).then(f,h);v((o=o.apply(s,l)).next())});import{_ as le,d as oe,D as ne,A as se,b as V,r as O,a3 as I,o as re,c as i,e as k,f as T,i as e,j as a,F as L,J as de,u as S,I as ie,g as b,k as C,h as ce,q as pe,s as ue}from"./index.eb58a47a.js";import{h as me,a as _e}from"./index.d24d71d3.js";import{u as fe}from"./useExportExc.8d0f8829.js";import be from"./preExaminationDialog.6a44f75c.js";import"./uploadAction.1eae5e63.js";const ve=s=>(pe("data-v-3f08072c"),s=s(),ue(),s),ye={class:"flex"},he={class:"flex justify-between"},xe=ve(()=>b("span",null,"\u5F85\u7533\u62A5\u7684\u9879\u76EE",-1)),ge={class:"mb-8"},ke=["onClick"],we=["onClick"],je=oe({name:"preExaminationDeclare"}),De=Object.assign(je,{setup(s){const{statusOptions:l,projectTypeOptions:o}=ne.dictStore.globalDicts||{},w=se(),t=V({projectName:void 0,buildUnitName:void 0,projectType:void 0,year:void 0,times:void 0}),f=O(),h=O(0),v=V([{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName",minWidth:200,showOverflowTooltip:!0},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectTypeName",prop:"projectTypeName",width:80},{label:"\u7533\u62A5\u91D1\u989D(\u4E07\u5143)",key:"declaredAmount",prop:"declaredAmount",width:"150"},{label:"\u7533\u62A5\u5355\u4F4D",key:"buildOrg",prop:"buildOrg",width:"120",showOverflowTooltip:!0},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:"80"},{label:"\u9879\u76EE\u72B6\u6001",key:"status",prop:"status",showOverflowTooltip:!0,width:"180",render:n=>{var r,_,c;return[I("span",{class:["dot mr-4",`bg-${l[n.status].color}`]}),I("span",{class:`text-${(r=l[n.status])==null?void 0:r.color}`},n.status&&((_=l[n.stage])==null?void 0:_.name)+"-"+((c=l[n.status])==null?void 0:c.name))]}},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",width:"180"},{label:"\u64CD\u4F5C",slot:"action",width:"160",fixed:"right"}]),p=O([]),u=(...r)=>N(this,[...r],function*(n=f.value.pageParams){var c,m;const _=yield me(Y(g(g({},n),t),{createOnMin:((c=t.times)==null?void 0:c[0])||void 0,createOnMax:((m=t.times)==null?void 0:m[1])||void 0,times:void 0}));p.value=_.data.records,h.value=_.data.total}),B=()=>{u()},H=()=>{t.projectName=void 0,t.buildUnitName=void 0,t.projectType=void 0,t.projectYear=void 0,t.times=void 0,f.value.pageParams.pageNumber=1,f.value.pageParams.pageSize=10,u()},{exportLoading:$,exportData:z}=fe(),A=()=>{z(()=>{var n,r;return _e(2,Y(g({},t),{createOnMin:((n=t.times)==null?void 0:n[0])||void 0,createOnMax:((r=t.times)==null?void 0:r[1])||void 0,times:void 0}))})},F=n=>{y.visible=!0,y.data=n},y=V({visible:void 0,data:void 0}),R=n=>{y.visible=!1,n&&u()},q=n=>{w.push({name:"preExaminationDeclareDetail",query:{id:n.id}})};return re(()=>N(this,null,function*(){u()})),(n,r)=>{const _=i("el-input"),c=i("el-form-item"),m=i("el-col"),J=i("el-option"),G=i("el-select"),E=i("el-date-picker"),j=i("el-row"),D=i("el-button"),K=i("el-form"),M=i("el-card"),W=i("el-alert"),Q=i("table-list");return k(),T(L,null,[e(j,null,{default:a(()=>[e(M,{class:"w-full search"},{default:a(()=>[e(K,{model:t,size:"small","label-suffix":":"},{default:a(()=>[e(j,{gutter:16,class:"mb-16"},{default:a(()=>[e(m,{span:8},{default:a(()=>[e(c,{label:"\u9879\u76EE\u540D\u79F0"},{default:a(()=>[e(_,{modelValue:t.projectName,"onUpdate:modelValue":r[0]||(r[0]=d=>t.projectName=d),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{span:8},{default:a(()=>[e(c,{label:"\u9879\u76EE\u7C7B\u578B"},{default:a(()=>[e(G,{modelValue:t.projectType,"onUpdate:modelValue":r[1]||(r[1]=d=>t.projectType=d),placeholder:"\u5168\u90E8",class:"w-full"},{default:a(()=>[(k(!0),T(L,null,de(S(o),(d,x)=>(k(),ie(J,{key:x,label:d,value:x},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(m,{span:8},{default:a(()=>[e(c,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:a(()=>[e(E,{modelValue:t.projectYear,"onUpdate:modelValue":r[2]||(r[2]=d=>t.projectYear=d),type:"year","value-format":"YYYY",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(j,{gutter:16},{default:a(()=>[e(m,{span:10},{default:a(()=>[e(c,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:a(()=>[e(E,{modelValue:t.times,"onUpdate:modelValue":r[3]||(r[3]=d=>t.times=d),type:"datetimerange",editable:!1,format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{span:14},{default:a(()=>[e(c,{class:"btn"},{default:a(()=>[b("div",ye,[e(D,{type:"primary",onClick:B},{default:a(()=>[C("\u67E5\u8BE2")]),_:1}),e(D,{onClick:H},{default:a(()=>[C("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(M,{class:"w-full mt-8"},{header:a(()=>[b("div",he,[xe,b("div",null,[e(D,{type:"primary",size:"small",plain:"",loading:S($),onClick:A},{default:a(()=>[C("\u5BFC\u51FA")]),_:1},8,["loading"])])])]),default:a(()=>[b("div",ge,[e(W,{title:"\u6E29\u99A8\u63D0\u793A",closable:!1,type:"info",description:"\u4E00\u7EA7\u5355\u4F4D\u7528\u6237\u6709\u6743\u9650\u8FDB\u884C[\u7533\u62A5\u9884\u5BA1]\u64CD\u4F5C\uFF0C\u82E5\u60A8\u65E0\u6743\u64CD\u4F5C\uFF0C\u8BF7\u8054\u7CFB\u60A8\u4E0A\u7EA7\u5355\u4F4D\u7BA1\u7406\u5458","show-icon":"",class:"primary-alert"})]),e(Q,{ref_key:"tableListRef",ref:f,column:v,data:p.value,total:h.value,onGetTableData:u},{action:a(({scope:d})=>[d.row.canPreDeclared?(k(),T("a",{key:0,onClick:x=>F(d.row)},"\u7533\u62A5\u9884\u5BA1",8,ke)):ce("v-if",!0),b("a",{onClick:x=>q(d.row)},"\u8BE6\u60C5",8,we)]),_:1},8,["column","data","total"])]),_:1})]),_:1}),e(be,{visible:y.visible,data:y.data,onClose:R},null,8,["visible","data"])],64)}}}),Ee=le(De,[["__scopeId","data-v-3f08072c"],["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/declareManage/preExaminationDeclare/index.vue"]]);export{Ee as default};