societyOrder.js 3.7 KB
"use strict";const e=require("../../common/vendor.js"),a=require("../../api/work.js");if(!Array){(e.resolveComponent("up-navbar")+e.resolveComponent("up-empty")+e.resolveComponent("uni-pagination")+e.resolveComponent("up-parse")+e.resolveComponent("up-modal"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js")+n+s+u+o+(()=>"../../uni_modules/uview-plus/components/u-empty/u-empty.js")+(()=>"../../uni_modules/uni-pagination/components/uni-pagination/uni-pagination.js")+(()=>"../../uni_modules/uview-plus/components/u-parse/u-parse.js")+(()=>"../../uni_modules/uview-plus/components/u-modal/u-modal.js"))();const o=()=>"../../components/carCard.js",n=()=>"../../components/navTop.js",s=()=>"../../components/wordInfo.js",u=()=>"../../components/operateList.js",l={__name:"societyOrder",setup(o){const n=e.ref([]),s=e.ref(0),u=e.ref(0),l=e.ref(!1),t=e.ref(!1),r=e.ref({strongInsurancePolicyNumber:"",commercialInsurancePolicyNumber:"",message:""}),p=e.ref({message:""}),v=e.reactive({pageNum:1,pageSize:10,type:0}),i=e.ref("");e.onLoad((e=>{u.value=Number(e.type),c(u.value)})),e.onPullDownRefresh((async()=>{v.pageNum=1,n.value=[],c(u.value)}));const c=o=>{switch(o){case 0:i.value="待处理",a.queryMyList(v).then((a=>{n.value=a.data.rows||[],s.value=a.data.total,e.index.stopPullDownRefresh()}));break;case 1:i.value="已处理",a.queryProcessedList(v).then((a=>{n.value=a.rows||[],s.value=a.total,e.index.stopPullDownRefresh()}));break;case 2:i.value="进行中",a.queryOngoingList(v).then((a=>{n.value=a.rows||[],s.value=a.total,e.index.stopPullDownRefresh()}));break;case 3:i.value="已完结",a.queryEndedList(v).then((a=>{n.value=a.rows||[],s.value=a.total,e.index.stopPullDownRefresh()}));break;case 4:i.value="已作废",a.queryDeprecatedList(v).then((a=>{n.value=a.rows||[],s.value=a.total,e.index.stopPullDownRefresh()}))}},m=e=>{v.type=e,c(u.value)};return(o,d)=>({a:e.p({placeholder:!0,leftIconColor:"#fff",autoBack:!0,bgColor:"transparent"}),b:0===v.type?1:"",c:e.o((e=>m(0))),d:1===v.type?1:"",e:e.o((e=>m(1))),f:e.f(n.value,((o,n,s)=>e.e({a:"8d96000a-2-"+s+",8d96000a-1-"+s,b:e.p({carNum:o.licensePlateNumber}),c:"8d96000a-3-"+s+",8d96000a-1-"+s,d:e.p({phone:o.phone,userName:o.name,company:o.sysDeptName})},0===u.value?{e:e.o(c,o.taskId),f:"8d96000a-4-"+s+",8d96000a-1-"+s,g:e.p({carInfo:o})}:{},{h:e.o((a=>{return n=o.businessKey,void e.index.navigateTo({url:`/pages/carDetail/carDetail?carInfoId=${n}`});var n}),o.taskId)},3===u.value?{i:e.o((e=>{return n=o.processInstanceId,void a.queryResult({processInstanceId:n}).then((e=>{var a,o,n;r.value.strongInsurancePolicyNumber=null==(a=null==e?void 0:e.data)?void 0:a.strongInsurancePolicyNumber,r.value.commercialInsurancePolicyNumber=null==(o=null==e?void 0:e.data)?void 0:o.commercialInsurancePolicyNumber,r.value.message=null==(n=null==e?void 0:e.data)?void 0:n.message,l.value=!0}));var n}),o.taskId)}:{},4===u.value?{j:e.o((e=>{return n=o.processInstanceId,void a.queryDefeatContent({processInstanceId:n,type:2}).then((e=>{var a;p.value.message=null==(a=null==e?void 0:e.data)?void 0:a.message,t.value=!0}));var n}),o.taskId)}:{},{k:o.taskId,l:"8d96000a-1-"+s,m:e.p({tipContent:i.value,carInfo:o})}))),g:0===u.value,h:3===u.value,i:4===u.value,j:e.p({show:0==n.value.length,mode:"list",text:"暂无待办事项"}),k:e.o((e=>c(u.value))),l:e.o((e=>v.pageNum=e)),m:e.p({total:s.value,pageSize:v.pageSize,modelValue:v.pageNum}),n:n.value.length>0,o:e.t(r.value.strongInsurancePolicyNumber),p:e.t(r.value.commercialInsurancePolicyNumber),q:e.p({content:r.value.message}),r:e.o((e=>l.value=!1)),s:e.p({show:l.value,title:"保单回馈"}),t:e.p({content:p.value.message}),v:e.o((e=>t.value=!1)),w:e.p({show:t.value,title:"作废备注"})})}},t=e._export_sfc(l,[["__scopeId","data-v-8d96000a"]]);wx.createPage(t);