"use strict";const e=require("../../../common/vendor.js"),o=require("./method.js"),s=require("./model.js"),t=require("../../../gen/Enums.js");if(require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/libraries/setTabBar.js"),require("../../../common/libraries/apiLoading.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/userUserLogin.js"),!Array){(e.resolveComponent("hs-button")+e.resolveComponent("cc-scroll-loading")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../../components/hs-button/hs-button.js")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js")+(()=>"../../../components/hs-footer/hs-footer.js"))();const l=e.defineComponent({__name:"index",setup:l=>(e.onLoad((()=>{var e;null==(e=o.method)||e.getList()})),e.onShow((()=>{var e,t,l;(null==(t=null==(e=s.useModel)?void 0:e.loadingStatus)?void 0:t.value)&&(s.useModel.listData.value=[],s.useModel.formData.value={page:1},null==(l=o.method)||l.getList())})),e.onUnload((()=>{s.useModel.loadingStatus.value=!1,s.useModel.listData.value=[],s.useModel.formData.value={page:1}})),(l,u)=>{var r,a,n,i,d;return{a:e.f(null==(a=null==(r=e.unref(s.useModel))?void 0:r.listData)?void 0:a.value,((s,l,u)=>{var r,a,n;return e.e({a:e.t(null==(r=e.unref(t.GoodsReleasesStatusEnum)[s.status])?void 0:r.text),b:e.n(`value status status_${s.status}`),c:e.t((null==(a=null==s?void 0:s.asset_house)?void 0:a.full_name)||"-"),d:e.t((null==s?void 0:s.passed_time)||"-"),e:e.t((null==(n=e.unref(t.GoodsReleasesPassedTypeEnum)[null==s?void 0:s.passed_type])?void 0:n.text)||"-"),f:"Approved"===(null==s?void 0:s.status)},"Approved"===(null==s?void 0:s.status)?{g:e.o((t=>{var l;return null==(l=e.unref(o.method))?void 0:l.showPassedDoc(s)}),`items_${l}`),h:"7380a1c0-1-"+u+",7380a1c0-0",i:e.p({label:"出示放行码",type:"ghost"})}:{},{j:`items_${l}`})})),b:e.o(null==(n=e.unref(o.method))?void 0:n.loadMore),c:e.p({meta:null==(d=null==(i=e.unref(s.useModel))?void 0:i.metaData)?void 0:d.value}),d:e.p({btnParimaryName:"新增申请",url:"/ME/release_items/add/index"})}})});wx.createPage(l);
