Files
CNCEC_APP/unpackage/dist/dev/mp-weixin/pages/quality/constructionPlan/index.js
T
2026-08-17 11:01:21 +08:00

3 lines
1.3 KiB
JavaScript

"use strict";const e=require("../../../common/vendor.js"),p=require("../../../api/moduleApi/index.js"),c=require("../../../utils/index.js");if(!Array){const r=e.resolveComponent("u-search"),o=e.resolveComponent("u-empty");(r+o)()}const _=()=>"../../../uni_modules/uview-pro/components/u-search/u-search.js",l=()=>"../../../uni_modules/uview-pro/components/u-empty/u-empty.js";Math||(_+l)();const m={__name:"index",setup(r){let o=e.ref(""),u=e.ref([]);const a=async()=>{let n=await p.getQMSConstructSolution({searchText:o.value});u.value=n},i=c.debounce(n=>{o.value=n,a()},500);return e.onLoad(()=>{a()}),(n,f)=>e.e({a:e.o(e.unref(i),"e6"),b:e.o(t=>e.isRef(o)?o.value=t:o=t,"22"),c:e.p({placeholder:"请输入单位名称","show-action":!1,modelValue:e.unref(o)}),d:e.unref(u).length>0},e.unref(u).length>0?{e:e.f(e.unref(u),(t,s,h)=>({a:e.t(t.UnitName),b:e.t(t.ConstructSolutionNum),c:e.t(t.ConstructSolutionUnitApproveNum),d:e.t(t.ConstructSolutionProjectApproveNum),e:s,f:e.o(y=>e.unref(c.router).push("/pages/quality/constructionPlanDetails/index",{unitId:t.UnitId,companyName:t.UnitName}),s)}))}:{f:e.p({text:"暂无数据",mode:"list"})})}},d=e._export_sfc(m,[["__scopeId","data-v-54917ab0"]]);wx.createPage(d);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/quality/constructionPlan/index.js.map