|
|
|
"use strict";const e=require("../../common/vendor.js"),a=require("../../common/assets.js"),o=require("../../api/work.js"),u=require("../../store/modules/tabbar.js");if(!Array){(e.resolveComponent("up-navbar")+e.resolveComponent("up-icon")+e.resolveComponent("up-empty")+e.resolveComponent("uni-pagination")+e.resolveComponent("up-input")+e.resolveComponent("up-form-item")+e.resolveComponent("up-textarea")+e.resolveComponent("up-form")+e.resolveComponent("up-modal")+e.resolveComponent("up-parse")+e.resolveComponent("up-radio")+e.resolveComponent("up-radio-group")+e.resolveComponent("up-tabbar-item")+e.resolveComponent("up-tabbar"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js")+(()=>"../../uni_modules/uview-plus/components/u-icon/u-icon.js")+t+s+l+n+(()=>"../../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-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-form-item/u-form-item.js")+(()=>"../../uni_modules/uview-plus/components/u-textarea/u-textarea.js")+(()=>"../../uni_modules/uview-plus/components/u-form/u-form.js")+(()=>"../../uni_modules/uview-plus/components/u-modal/u-modal.js")+(()=>"../../uni_modules/uview-plus/components/u-parse/u-parse.js")+(()=>"../../uni_modules/uview-plus/components/u-radio/u-radio.js")+(()=>"../../uni_modules/uview-plus/components/u-radio-group/u-radio-group.js")+(()=>"../../uni_modules/uview-plus/components/u-tabbar-item/u-tabbar-item.js")+(()=>"../../uni_modules/uview-plus/components/u-tabbar/u-tabbar.js"))();const n=()=>"../../components/carCard.js",l=()=>"../../components/centerLine.js",s=()=>"../../components/wordInfo.js",t=()=>"../../components/navTop.js",r={__name:"companyHome",setup(n){const l=u.useTabbarStore(),s=e.ref([]),t=e.ref([]),r=e.ref([]),p=e.ref(0),m=e.ref(0),i=e.ref(!1),c=e.ref({username:"",taskId:""}),v=e.ref([]),d=e.ref(!1),b=e.ref({}),g=e.ref(!1),y=e.ref(!1),f=e.ref(!1),I=e.ref({message:"",commercialInsurancePolicyNumber:"",strongInsurancePolicyNumber:""}),h=e.ref({policystatus:"2",message:"",commercialInsurancePolicyNumber:"",strongInsurancePolicyNumber:""}),N=e.reactive({pageNum:1,pageSize:10,type:0});e.reactive({pageNum:1,pageSize:10,orderprogress:1,policystatus:0});const w=e=>{var a,o,u;p.value=null==(a=e.detail)?void 0:a.current,0===(null==(o=e.detail)?void 0:o.current)?P():1===(null==(u=e.detail)?void 0:u.current)?j():_()},C=e=>{N.type=e,i.value=!1,p.value=0,P()},P=async()=>{const{data:e}=await o.queryMyList(N);s.value=e.rows||[],m.value=e.total,l.companyTotal=e.total},j=async()=>{const{rows:e,total:a}=await o.queryOngoingList(N);t.value=e||[],m.value=a,l.companyTotal=a},_=async()=>{const{rows:e,total:a}=await o.queryEndedList(N);r.value=e||[],m.value=a,l.companyTotal=a},k=e=>{h.value.taskId=e,g.value=!0},x=e=>{b.value.taskId=e,d.value=!0},S=()=>{const e={policystatus:"2",message:h.value.message,policynumber:h.value.policynumber};o.disposeUser(e,h.value.taskId).then((e=>{g.value=!1,P(),proxy.$modal.msgSuccess("回馈成功")}))},z=()=>{const e={policystatus:"1",comment:b.value.message};o.disposeUser(e,b.value.taskId).then((e=>{d.value=!1,P()}))};e.onPullDownRefresh((async()=>{N.pageNum=1,s.value=[],t.value=[],r.value=[],await P(),e.index.stopPullDownRefresh()}));const V=()=>{const e={username:c.value.username},a=c.value.taskId;o.transfer(e,a).then((e=>{y.value=!1,P(),proxy.$modal.msgSuccess("保单已分配成功")}))},q=a=>{l.employeeCurrent=a,e.index.redirectTo({url:"/pages/companyMy/companyMy"})};return P(),(u,n)=>({a:e.p({placeholder:!0,leftIconSize:0,bgColor:"transparent"}),b:0===p.value?1:"",c:e.o((e=>p.value=0)),d:1===p.value?1:"",e:e.o((e=>p.value=1)),f:2===p.value?1:"",g:e.o((e=>p.value=2)),h:e.o((e=>i.value=!i.value)),i:e.p({name:"list",color:"#333",size:"28"}),j:0===N.type?1:"",k:e.o((e=>C(0))),l:1===N.type?1:"",m:e.o((e=>C(1))),n:i.value,o:e.f(s.value,((a,u,n)=>e.e({a:"817e8b45-3-"+n+",817e8b45-2-"+n,b:e.p({carNum:a.licensePlateNumber}),c:"817e8b45-4-"+n+",817e8b45-2-"+n,d:e.p({phone:a.phone,userName:a.name,company:a.sysDeptName}),e:"已承接"===a.orderProgress},"已承接"===a.orderProgress?{f:e.o((e=>k(a.taskId)),a.taskId),g:e.o((e=>x(a.taskId)),a.taskId),h:"817e8b45-5-"+n+",817e8b45-2-"+n,i:e.p({leftContent:"承接回馈",rightContent:"问题件"})}:{j:e.o((u=>{return n=a.taskId,void e.index.showModal({content:"是否要承接该保单",success:function(a){a.confirm?o.disposeUser({},n).then((a=>{e.index.$u.toast("承接成功"),P()})):a.cancel&&e.index.$u.toast("已取消")}});var n}),a.taskId),k:e.o((e=>(async e=>{const{data:a}=await o.getUserList();c.value.taskId=e,v.value=a,y.value=!0})(a.taskId)),a.taskId),l:"817e8b45-6-"+n+",817e8b45-2-"+n,m:e.p({leftContent:"承接",rightContent:"转办"})},{n:a.taskId,o:"817e8b45-2-"+n,p:e.p({tipContent:a.orderProgress,carInfo:a})}))),p:e.p({show:0==s.value.length,mode:"list",text:"暂无待办事项"}),q:e.o(P),r:e.o((e=>N.pageNum=e)),s:e.p({total:m.value,pageSize:N.pageSize,modelValue:N.pageNum}),t:s.value.length>0,v:e.f(t.value,((a,o,u)=>({a:"817e8b45-10-"+u+",817e8b45-9-"+u,b:e.p({carNum:a.licensePlateNumber}),c:"817e8b45-11-"+u+",817e8b45-9-"+u,d:e.p({phone:a.phone,userName:a.name,company:a.sysDeptName}),e:e.o((e=>k(a.taskId)),o),f:e.o((e=>x(a.taskId)),o),g:"817e8b45-12-"+u+",817e8b45-9-"+u,h:o,i:"817e8b45-9-"+u,j:e.p({tipContent:"查看详情",carInfo:a})}))),w:e.p({leftContent:"承接回馈",rightContent:"问题件"}),x:e.p({show:0==t.value.length,mode:"list",text:"暂无数据"}),y:e.o(j),z:e.o((e=>N.pageNum=e)),A:e.p({total:m.value,pageSize:N.pageSize,modelValue:N.pageNum}),B:t.value.length>0,C:e.f(r.value,((a,u,n)=>({a:"817e8b45-16-"+n+",817e8b45-15-"+n,b:e.p({carNum:a.licensePlateNumber}),c:"817e8b45-17-"+n+",817e8b45-15-"+n,d:e.p({phone:a.phone,userName:a.name,company:a.sysDeptName}),e:e.o((e=>{return u=a.processInstanceId,void o.queryResult({processInstanceId:u}).then((e=>{var a,o,u;I.value.strongInsurancePolicyNumber=null==(a=null==e?void 0:e.data)?void 0:a.strongInsurancePolicyNumber,I.value.commercialInsurancePolicyNumber=null==(o=null==e?void 0:e.data)?void 0:o.commercialInsurancePolicyNumber,I.value.message=null==(u=null==e?void 0:e.data)?void 0:u.message,f.value=!0}));var u}),u),f:u,g:"817e8b45-15-"+n,h:e.p({tipContent:a.policyStatus,carInfo:a})}))),D:e.p({show:0==r.value.length,mode:"list",text:"暂无数据"}),E:e.o(_),F:e.o((e=>N.pageNum=e)),G:e.p({total:m.value,pageSize:N.pageSize,modelValue:N.pageNum}),H:r.value.length>0,I:p.value,J:e.o(w),K:e.o((e=>h.value.commercialInsurancePolicyNumber=e)),L:e.p({modelValue:h.value.commercialInsurancePolicyNumber}),M:e.p({label:"商险单号",prop:"commercialInsurancePolicyNumber"}),N:e.o((e=>h.value.strongInsurancePolicyNumber=e)),O:e.p({modelValue:h.value.strongInsurancePolicyNumber}),P:e.p({label:"强险单号",prop:"strongInsurancePolicyNumber"}),Q:e.o((e=>h.value.message=e)),R:e.p({placeholder:"请输入内容",modelValue:h.value.message}),S:e.p({label:"回馈内容",prop:"name"}),T:e.p({model:h.value,labelWidth:"80"}),U:e.o(S),V:e.o((e=>g.value=!1)),W:e.p({show:g.value,showCancelButton:!0,title:"填写回馈及单号"}),X:e.o((e=>b.value.message=e)),Y:e.p({placeholder:"请输入内容",modelValue:b.value.message}),Z:e.o(z),aa:e.o((e=>d.value=!1)),ab:e.p({show:d.value,showCancelButton:!0,title:"问题件回馈"}),ac:e.o((e=>I.value.commercialInsurancePolicyNumber=e)),ad:e.p({border:"none",disabled:!0,disabledColor:"#fff",modelValue:I.value.commercialInsurancePolicyNumber}),ae:e.p({label:"商险单号",prop:"commercialInsurancePolicyNumber"}),af:e.o((e=>I.value.strongInsurancePolicyNumber=e)),ag:e.p({border:"none",disabled:!0,disabledColor:"#fff",modelValue:I.value.strongInsurancePolicyNumber}),ah:e.p({label:"强险单号",prop:"strongInsurancePolicyNumber"}),ai:e.p({content:I.value.message}),aj:e.p({label:"回馈内容",prop:"name"}),ak:e.p({model:I.value,labelWidth:"80"}),al:e.o((e=>f.value=!1)),am:e.p({show:f.value,title:"回馈内容"}),an:e.f(v.value,((a,o,u)=>({a:o,b:"817e8b45-40-"+u+",817e8b45-39",c:e.p({label:a.nickName,name:a.userName})}))),ao:e.o((e=>c.value.username=e)),ap:e.p({modelValue:c.value.username}),aq:e.o(V),ar:e.o((e=>y.value=!1)),as:e.p({show:y.value,showCancelButton:!0,title:"选择转办人员"}),at:e.p({text:"主页",icon:"home",badge:e.unref(l).companyTotal}),av:a._imports_0$4,aw:a._imports_1$2,ax:e.o(q),ay:e.p({text:"我的",icon:"account"}),az:e.p({value:e.unref(l).employeeCurrent,activeColor:"#3680FE",inactiveColor:"#707070"})})}},p=e._export_sfc(r,[["__scopeId","data-v-817e8b45"]]);wx.createPage(p); |
|
|
|
"use strict";const e=require("../../common/vendor.js"),a=require("../../common/assets.js"),o=require("../../api/work.js"),n=require("../../store/modules/tabbar.js");if(!Array){(e.resolveComponent("up-navbar")+e.resolveComponent("up-icon")+e.resolveComponent("up-empty")+e.resolveComponent("uni-pagination")+e.resolveComponent("up-input")+e.resolveComponent("up-form-item")+e.resolveComponent("up-textarea")+e.resolveComponent("up-form")+e.resolveComponent("up-modal")+e.resolveComponent("up-parse")+e.resolveComponent("up-radio")+e.resolveComponent("up-radio-group")+e.resolveComponent("up-tabbar-item")+e.resolveComponent("up-tabbar"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js")+(()=>"../../uni_modules/uview-plus/components/u-icon/u-icon.js")+t+s+l+u+(()=>"../../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-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-form-item/u-form-item.js")+(()=>"../../uni_modules/uview-plus/components/u-textarea/u-textarea.js")+(()=>"../../uni_modules/uview-plus/components/u-form/u-form.js")+(()=>"../../uni_modules/uview-plus/components/u-modal/u-modal.js")+(()=>"../../uni_modules/uview-plus/components/u-parse/u-parse.js")+(()=>"../../uni_modules/uview-plus/components/u-radio/u-radio.js")+(()=>"../../uni_modules/uview-plus/components/u-radio-group/u-radio-group.js")+(()=>"../../uni_modules/uview-plus/components/u-tabbar-item/u-tabbar-item.js")+(()=>"../../uni_modules/uview-plus/components/u-tabbar/u-tabbar.js"))();const u=()=>"../../components/carCard.js",l=()=>"../../components/centerLine.js",s=()=>"../../components/wordInfo.js",t=()=>"../../components/navTop.js",r={__name:"companyHome",setup(u){const l=n.useTabbarStore(),s=e.ref([]),t=e.ref([]),r=e.ref([]),p=e.ref(0),m=e.ref(0),c=e.ref(!1),i=e.ref({username:"",taskId:""}),v=e.ref([]),d=e.ref(!1),b=e.ref({}),g=e.ref(!1),y=e.ref(!1),h=e.ref(!1),f=e.ref({message:"",commercialInsurancePolicyNumber:"",strongInsurancePolicyNumber:""}),I=e.ref({policystatus:"2",message:"",commercialInsurancePolicyNumber:"",strongInsurancePolicyNumber:""}),N=e.reactive({pageNum:1,pageSize:10,type:0});e.reactive({pageNum:1,pageSize:10,orderprogress:1,policystatus:0});const w=e=>{var a,o,n;p.value=null==(a=e.detail)?void 0:a.current,0===(null==(o=e.detail)?void 0:o.current)?P():1===(null==(n=e.detail)?void 0:n.current)?j():_()},C=e=>{N.type=e,c.value=!1,p.value=0,P()},P=async()=>{const{data:e}=await o.queryMyList(N);s.value=e.rows||[],m.value=e.total,l.companyTotal=e.total},j=async()=>{const{rows:e,total:a}=await o.queryOngoingList(N);t.value=e||[],m.value=a,l.companyTotal=a},_=async()=>{const{rows:e,total:a}=await o.queryEndedList(N);r.value=e||[],m.value=a,l.companyTotal=a},k=e=>{I.value.taskId=e,g.value=!0},x=e=>{b.value.taskId=e,d.value=!0},S=()=>{const e={policystatus:"2",message:I.value.message,policynumber:I.value.policynumber};o.disposeUser(e,I.value.taskId).then((e=>{g.value=!1,P(),proxy.$modal.msgSuccess("回馈成功")}))},z=()=>{const e={policystatus:"1",comment:b.value.message};o.disposeUser(e,b.value.taskId).then((e=>{d.value=!1,P()}))};e.onPullDownRefresh((async()=>{N.pageNum=1,s.value=[],t.value=[],r.value=[],await P(),e.index.stopPullDownRefresh()}));const V=()=>{const e={username:i.value.username},a=i.value.taskId;o.transfer(e,a).then((e=>{y.value=!1,P(),proxy.$modal.msgSuccess("保单已分配成功")}))},q=a=>{l.employeeCurrent=a,e.index.redirectTo({url:"/pages/companyMy/companyMy"})};return P(),(n,u)=>({a:e.p({placeholder:!0,leftIconSize:0,bgColor:"transparent"}),b:0===p.value?1:"",c:e.o((e=>p.value=0)),d:1===p.value?1:"",e:e.o((e=>p.value=1)),f:2===p.value?1:"",g:e.o((e=>p.value=2)),h:e.o((e=>c.value=!c.value)),i:e.p({name:"list",color:"#333",size:"28"}),j:0===N.type?1:"",k:e.o((e=>C(0))),l:1===N.type?1:"",m:e.o((e=>C(1))),n:c.value,o:e.f(s.value,((a,n,u)=>e.e({a:"36c2b759-3-"+u+",36c2b759-2-"+u,b:e.p({carNum:a.licensePlateNumber}),c:"36c2b759-4-"+u+",36c2b759-2-"+u,d:e.p({phone:""==a.phone||null==a.phone?a.businessPhone:a.phone,userName:""==a.name||null==a.name?a.businessName:a.name,company:a.sysDeptName}),e:"已承接"===a.orderProgress},"已承接"===a.orderProgress?{f:e.o((e=>k(a.taskId)),a.taskId),g:e.o((e=>x(a.taskId)),a.taskId),h:"36c2b759-5-"+u+",36c2b759-2-"+u,i:e.p({leftContent:"承接回馈",rightContent:"问题件"})}:{j:e.o((n=>{return u=a.taskId,void e.index.showModal({content:"是否要承接该保单",success:function(a){a.confirm?o.disposeUser({},u).then((a=>{e.index.$u.toast("承接成功"),P()})):a.cancel&&e.index.$u.toast("已取消")}});var u}),a.taskId),k:e.o((e=>(async e=>{const{data:a}=await o.getUserList();i.value.taskId=e,v.value=a,y.value=!0})(a.taskId)),a.taskId),l:"36c2b759-6-"+u+",36c2b759-2-"+u,m:e.p({leftContent:"承接",rightContent:"转办"})},{n:a.taskId,o:"36c2b759-2-"+u,p:e.p({tipContent:a.orderProgress,carInfo:a})}))),p:e.p({show:0==s.value.length,mode:"list",text:"暂无待办事项"}),q:e.o(P),r:e.o((e=>N.pageNum=e)),s:e.p({total:m.value,pageSize:N.pageSize,modelValue:N.pageNum}),t:s.value.length>0,v:e.f(t.value,((a,o,n)=>({a:"36c2b759-10-"+n+",36c2b759-9-"+n,b:e.p({carNum:a.licensePlateNumber}),c:"36c2b759-11-"+n+",36c2b759-9-"+n,d:e.p({phone:""==a.phone||null==a.phone?a.businessPhone:a.phone,userName:""==a.name||null==a.name?a.businessName:a.name,company:a.sysDeptName}),e:e.o((e=>k(a.taskId)),o),f:e.o((e=>x(a.taskId)),o),g:"36c2b759-12-"+n+",36c2b759-9-"+n,h:o,i:"36c2b759-9-"+n,j:e.p({tipContent:"查看详情",carInfo:a})}))),w:e.p({leftContent:"承接回馈",rightContent:"问题件"}),x:e.p({show:0==t.value.length,mode:"list",text:"暂无数据"}),y:e.o(j),z:e.o((e=>N.pageNum=e)),A:e.p({total:m.value,pageSize:N.pageSize,modelValue:N.pageNum}),B:t.value.length>0,C:e.f(r.value,((a,n,u)=>({a:"36c2b759-16-"+u+",36c2b759-15-"+u,b:e.p({carNum:a.licensePlateNumber}),c:"36c2b759-17-"+u+",36c2b759-15-"+u,d:e.p({phone:""==a.phone||null==a.phone?a.businessPhone:a.phone,userName:""==a.name||null==a.name?a.businessName:a.name,company:a.sysDeptName}),e:e.o((e=>{return n=a.processInstanceId,void o.queryResult({processInstanceId:n}).then((e=>{var a,o,n;f.value.strongInsurancePolicyNumber=null==(a=null==e?void 0:e.data)?void 0:a.strongInsurancePolicyNumber,f.value.commercialInsurancePolicyNumber=null==(o=null==e?void 0:e.data)?void 0:o.commercialInsurancePolicyNumber,f.value.message=null==(n=null==e?void 0:e.data)?void 0:n.message,h.value=!0}));var n}),n),f:n,g:"36c2b759-15-"+u,h:e.p({tipContent:a.policyStatus,carInfo:a})}))),D:e.p({show:0==r.value.length,mode:"list",text:"暂无数据"}),E:e.o(_),F:e.o((e=>N.pageNum=e)),G:e.p({total:m.value,pageSize:N.pageSize,modelValue:N.pageNum}),H:r.value.length>0,I:p.value,J:e.o(w),K:e.o((e=>I.value.commercialInsurancePolicyNumber=e)),L:e.p({modelValue:I.value.commercialInsurancePolicyNumber}),M:e.p({label:"商险单号",prop:"commercialInsurancePolicyNumber"}),N:e.o((e=>I.value.strongInsurancePolicyNumber=e)),O:e.p({modelValue:I.value.strongInsurancePolicyNumber}),P:e.p({label:"强险单号",prop:"strongInsurancePolicyNumber"}),Q:e.o((e=>I.value.message=e)),R:e.p({placeholder:"请输入内容",modelValue:I.value.message}),S:e.p({label:"回馈内容",prop:"name"}),T:e.p({model:I.value,labelWidth:"80"}),U:e.o(S),V:e.o((e=>g.value=!1)),W:e.p({show:g.value,showCancelButton:!0,title:"填写回馈及单号"}),X:e.o((e=>b.value.message=e)),Y:e.p({placeholder:"请输入内容",modelValue:b.value.message}),Z:e.o(z),aa:e.o((e=>d.value=!1)),ab:e.p({show:d.value,showCancelButton:!0,title:"问题件回馈"}),ac:e.o((e=>f.value.commercialInsurancePolicyNumber=e)),ad:e.p({border:"none",disabled:!0,disabledColor:"#fff",modelValue:f.value.commercialInsurancePolicyNumber}),ae:e.p({label:"商险单号",prop:"commercialInsurancePolicyNumber"}),af:e.o((e=>f.value.strongInsurancePolicyNumber=e)),ag:e.p({border:"none",disabled:!0,disabledColor:"#fff",modelValue:f.value.strongInsurancePolicyNumber}),ah:e.p({label:"强险单号",prop:"strongInsurancePolicyNumber"}),ai:e.p({content:f.value.message}),aj:e.p({label:"回馈内容",prop:"name"}),ak:e.p({model:f.value,labelWidth:"80"}),al:e.o((e=>h.value=!1)),am:e.p({show:h.value,title:"回馈内容"}),an:e.f(v.value,((a,o,n)=>({a:o,b:"36c2b759-40-"+n+",36c2b759-39",c:e.p({label:a.nickName,name:a.userName})}))),ao:e.o((e=>i.value.username=e)),ap:e.p({modelValue:i.value.username}),aq:e.o(V),ar:e.o((e=>y.value=!1)),as:e.p({show:y.value,showCancelButton:!0,title:"选择转办人员"}),at:e.p({text:"主页",icon:"home",badge:e.unref(l).companyTotal}),av:a._imports_0$4,aw:a._imports_1$2,ax:e.o(q),ay:e.p({text:"我的",icon:"account"}),az:e.p({value:e.unref(l).employeeCurrent,activeColor:"#3680FE",inactiveColor:"#707070"})})}},p=e._export_sfc(r,[["__scopeId","data-v-36c2b759"]]);wx.createPage(p); |
...
|
...
|
|