12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/contract/contract"],{273:function(t,e,n){"use strict";(function(t,e){var r=n(4);n(26);r(n(25));var i=r(n(274));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},274:function(t,e,n){"use strict";n.r(e);var r=n(275),i=n(277);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var c,s=n(32),a=Object(s["default"])(i["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],c);a.options.__file="pages/contract/contract.vue",e["default"]=a.exports},275:function(t,e,n){"use strict";n.r(e);var r=n(276);n.d(e,"render",(function(){return r["render"]})),n.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(e,"components",(function(){return r["components"]}))},276:function(t,e,n){"use strict";var r;n.r(e),n.d(e,"render",(function(){return i})),n.d(e,"staticRenderFns",(function(){return c})),n.d(e,"recyclableRender",(function(){return o})),n.d(e,"components",(function(){return r}));try{r={mescrollBody:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/mescroll-uni/components/mescroll-body/mescroll-body")]).then(n.bind(null,468))},uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,460))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var t=this,e=t.$createElement,n=(t._self._c,{});t.$mp.data=Object.assign({},{$root:{a0:n}})},o=!1,c=[];i._withStripped=!0},277:function(t,e,n){"use strict";n.r(e);var r=n(278),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},278:function(t,e,n){"use strict";(function(t){var r=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(279),o=n(221),c=r(n(58)),s={mixins:[c.default],data:function(){return{list:[],type:"",menu:{},clientId:"",merchantId:""}},onLoad:function(e){var n=this;this.type=parseInt(e.type),this.menu=this.title(),t.setNavigationBarTitle({title:this.menu.title}),t.$on("reloadContract",(function(){n.mescroll.resetUpScroll(!1)}))},methods:{title:function(){var t={title:"",iconClass:"icon-hetongguanli"};switch(this.type){case 1:t={title:"合同列表",iconClass:"icon-hetongguanli"};break;case 2:t={title:"公司合同",iconClass:"icon-anli"};break;case 3:t={title:"个人合同",iconClass:"icon-gerenhetongchaxun"};break;default:break}return t},upCallback:function(t){var e=this,n={currPage:t.num,pageSize:10,projectId:this.$store.getters.project.id};if(1===this.type)n["organizationId"]=this.$store.getters.organization.id,this.getContractList(n);else if(2===this.type){if(n["statusList"]=[1,2,3,4,5],this.merchantId)return n["merchantId"]=this.merchantId,void this.getContractList(n);(0,o.bindProjectDetail)({bindOrganizationId:this.$store.getters.organization.id,projectId:this.$store.getters.project.id,identityId:4}).then((function(t){if(200===t.code){if(0==t.data.length)return e.mescroll.endBySize(0,0);e.merchantId=t.data[0].merchantId,n["merchantId"]=e.merchantId,e.getContractList(n)}else e.mescroll.endErr()})).catch((function(){e.mescroll.endErr()}))}else if(3===this.type){if(n["statusList"]=[1,2,3,4,5],this.clientId)return n["clientId"]=this.clientId,void this.getContractList(n);(0,o.bindProjectDetail)({userId:this.$store.getters.user.userId,projectId:this.$store.getters.project.id,identityId:1}).then((function(t){if(200===t.code){if(0==t.data.length)return e.mescroll.endBySize(0,0);e.clientId=t.data[0].clientId,n["clientId"]=e.clientId,e.getContractList(n)}else e.mescroll.endErr()})).catch((function(){e.mescroll.endErr()}))}},getContractList:function(t){var e=this;(0,i.getContractListByPage)(t).then((function(n){if(200===n.code){e.mescroll.endBySize(n.data.dataList.length,n.data.totalCount),1==t.currPage&&(e.list=[]);var r=n.data.dataList;e.list=e.list.concat(r)}else e.mescroll.endErr()})).catch((function(){e.mescroll.endErr()}))}}};e.default=s}).call(this,n(2)["default"])}},[[273,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/contract/contract.js.map
|